@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap");


/* ======================================================
   ROOT VARIABLES
====================================================== */

:root {

  --red: #e2231a;
  --red-dark: #b81b14;

  --blue: #0b5aa5;
  --blue-dark: #094a89;

  --ink: #1c2b3a;

  --white: #ffffff;

  --grey-bg: #f4f6f8;
  --grey-border: #e0e4e8;

  --muted: #8a97a3;

  --shadow: 0 8px 22px rgba(0,0,0,.14);

  /* Surface colors */
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-blue: #edf5ff;
  --surface-grey: #f4f6f8;

  /* Borders */
  --border-light: #e7eef6;
  --border-card: #e4eaf0;

  /* Shadows */
  --shadow-small: 0 8px 22px rgba(13,40,67,.07);
  --shadow-medium: 0 12px 30px rgba(13,40,67,.10);
  --shadow-large: 0 20px 42px rgba(13,40,67,.15);

  /* Radius */
  --radius-small: 12px;
  --radius-card: 18px;
  --radius-section: 28px;

  /* Layout */
  --section-gap: 56px;

}


/* ======================================================
   RESET AND BASE
====================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Noto Sans Devanagari", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ======================================================
   TOP HEADER
====================================================== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  object-fit: cover;
}

.site-tagline {
  flex: 1;
  min-width: 240px;
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.top-right .date-header {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.cta-blink {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  animation: cta-blink 1.3s ease-in-out infinite;
}

.cta-blink:hover {
  background: var(--red-dark);
}

@keyframes cta-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ======================================================
   MAIN NAVIGATION
====================================================== */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--red);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.login-icon-btn {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0 !important;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.login-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.login-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}
/* ======================================================
   KNOWLEDGE HUB DROPDOWN
====================================================== */

.nav-list {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 50px;
  padding: 14px 18px;

  border: 0;

  background: transparent;
  color: var(--white);

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  background: rgba(255, 255, 255, 0.16);
}

.nav-dropdown-arrow {
  width: 17px;
  height: 17px;

  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}


/* Dropdown panel */

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 1200;

  display: grid;
  gap: 4px;

  width: 270px;
  padding: 10px;

  border: 1px solid var(--border-card);
  border-radius: 16px;

  background: var(--white);
  box-shadow: var(--shadow-large);

  list-style: none;

  opacity: 0;
  visibility: hidden;

  transform:
    translateX(-50%)
    translateY(-8px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

.nav-dropdown-menu li {
  display: block;
  width: 100%;
}

.main-nav .nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 12px 14px;

  border-radius: 10px;

  color: var(--ink);

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus-visible {
  transform: translateX(3px);

  background: var(--surface-blue);
  color: var(--blue);
}

.main-nav .nav-dropdown-menu a[aria-current="page"] {
  background: #fff1f0;
  color: var(--red);
}

.nav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  background: var(--surface-blue);

  font-size: 1.05rem;
}


/* Dropdown triangle */

.nav-dropdown-menu::before {
  content: "";

  position: absolute;
  top: -7px;
  left: 50%;

  width: 14px;
  height: 14px;

  border-top: 1px solid var(--border-card);
  border-left: 1px solid var(--border-card);

  background: var(--white);

  transform:
    translateX(-50%)
    rotate(45deg);
}


/* ======================================================
   MOBILE DROPDOWN
====================================================== */

@media (max-width: 900px) {

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-toggle {
    min-height: 44px;
    padding: 12px 14px;

    white-space: nowrap;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 58px;
    right: 12px;
    left: 12px;

    width: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;

    transform: translateY(-8px);
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateY(0);
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .main-nav .nav-dropdown-menu a {
    padding: 13px 14px;
  }

}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

  .nav-dropdown-toggle,
  .nav-dropdown-arrow,
  .nav-dropdown-menu,
  .nav-dropdown-menu a {
    transition: none;
  }

}

/* ======================================================
   NOTICE TICKER
====================================================== */

.notice-bar {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
  background: var(--grey-bg);
  color: #333;
  font-size: 0.85rem;
}

.notice-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-label {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--red);
  color: var(--white);

  font-size: 0.85rem;
  font-weight: 700;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;

  padding-right: 48px;

  color: #333;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ticker-item:hover {
  color: var(--red);
  text-decoration: underline;
}

.ticker-item::before {
  content: "●";

  margin-right: 10px;

  color: var(--red);
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
/* ======================================================
   PREMIUM PERSONAL HERO
====================================================== */

.personal-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);
  align-items: center;
  gap: 56px;

  margin-top: 28px;
  padding: 52px 48px;
  overflow: hidden;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-section);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(43, 135, 255, 0.14),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--surface) 0%,
      var(--surface-soft) 100%
    );
}


/* Hero text column */

.hero-intro {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;

  margin-bottom: 8px;
  padding: 8px 18px;

  border-radius: 999px;

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 0.95rem;
  font-weight: 700;

  animation: heroFadeUp 0.7s ease both;
}

.hero-intro h1 {
  margin: 10px 0 12px;
  color: var(--blue);

  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;

  animation: heroSlideLeft 0.8s 0.08s ease both;
}

.hero-intro h2 {
  margin-bottom: 22px;

  color: var(--red);

  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;

  animation: heroFadeUp 0.8s 0.18s ease both;
}

.hero-description {
  max-width: 680px;
  margin-bottom: 30px;

  color: #4f5f6f;

  font-size: 1.05rem;
  line-height: 1.95;

  animation: heroFadeUp 0.8s 0.28s ease both;
}


/* Hero buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 34px;

  animation: heroFadeUp 0.8s 0.38s ease both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 12px 30px;

  border: 2px solid transparent;
  border-radius: 999px;

  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
}

.hero-btn:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.28);
  outline-offset: 3px;
}

.hero-btn-primary {
  background: var(--red);
  color: var(--white);

  box-shadow:
    0 10px 24px rgba(226, 35, 26, 0.22);
}

.hero-btn-primary:hover {
  background: var(--red-dark);

  box-shadow:
    0 14px 28px rgba(226, 35, 26, 0.3);
}

.hero-btn-secondary {
  border-color: var(--blue);

  background: var(--surface);
  color: var(--blue);
}

.hero-btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}


/* Hero statistics */

.hero-highlights {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(120px, 1fr));
  gap: 16px;

  max-width: 600px;

  animation: heroFadeUp 0.8s 0.48s ease both;
}

.hero-highlight {
  padding: 18px 14px;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-small);

  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero-highlight:hover {
  transform: translateY(-4px);

  border-color: rgba(11, 90, 165, 0.25);
  box-shadow: var(--shadow-medium);
}

.hero-highlight strong {
  display: block;

  color: var(--red);

  font-size: 2rem;
  line-height: 1.1;
}

.hero-highlight span {
  display: block;

  margin-top: 8px;

  color: #5f6d79;

  font-size: 0.82rem;
  line-height: 1.45;
}


/* Hero image column */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}

.hero-photo-card {
  position: relative;

  width: min(100%, 430px);
  padding: 18px;
  overflow: hidden;

  border-radius: var(--radius-section);

  background:
    linear-gradient(
      135deg,
      var(--blue),
      #2b87ff
    );

  box-shadow: var(--shadow-large);

  animation:
    heroPhotoIn 0.9s 0.18s ease both,
    floatPhoto 5s 1.1s ease-in-out infinite;
}

.hero-photo-card img {
  display: block;

  width: 100%;
  aspect-ratio: 4 / 4.1;

  border-radius: 22px;

  object-fit: cover;
  object-position: center;
}

.hero-photo-badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;

  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);
  color: var(--red);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.14);

  font-weight: 700;
  text-align: center;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* Hero responsive layout */

@media (max-width: 980px) {
  .personal-hero {
    grid-template-columns: 1fr;
    gap: 42px;

    padding: 44px 36px;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-description,
  .hero-highlights {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .personal-hero {
    gap: 34px;

    margin-top: 20px;
    padding: 34px 22px;

    border-radius: 22px;
  }

  .hero-intro h1 {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;

    margin-bottom: 28px;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    max-width: 380px;
    padding: 14px;

    border-radius: 22px;
  }

  .hero-photo-card img {
    border-radius: 18px;
  }

  .hero-photo-badge {
    right: 22px;
    bottom: 22px;
    left: 22px;

    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-intro h1,
  .hero-intro h2,
  .hero-description,
  .hero-actions,
  .hero-highlights,
  .hero-photo-card {
    animation: none;
  }

  .hero-btn,
  .hero-highlight {
    transition: none;
  }
}
/* ======================================================
   WEBSITE AUDIENCE SECTION
====================================================== */

.audience-section {
  margin-top: var(--section-gap);
  padding: 44px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-section);

  background: var(--surface-soft);
}

.audience-heading {
  align-items: center;
}

.audience-intro {
  max-width: 510px;

  color: #5f6d79;

  font-size: 0.95rem;
  line-height: 1.8;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  margin-top: 28px;
}

.audience-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 250px;
  padding: 26px 22px;
  overflow: hidden;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.audience-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--red),
      var(--blue)
    );
}

.audience-card:hover {
  transform: translateY(-6px);

  border-color: rgba(11, 90, 165, 0.28);
  box-shadow: var(--shadow-medium);
}

.audience-card:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: 4px;
}

.audience-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  margin-bottom: 20px;

  border-radius: var(--radius-card);

  background: var(--surface-blue);

  font-size: 2rem;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.audience-card:hover .audience-icon {
  transform: scale(1.08) rotate(-3deg);
  background: #e3efff;
}

.audience-card h3 {
  margin-bottom: 10px;

  color: var(--blue);

  font-size: 1.08rem;
  line-height: 1.45;
}

.audience-card p {
  margin-bottom: 18px;

  color: #5f6d79;

  font-size: 0.88rem;
  line-height: 1.7;
}

.audience-card span {
  margin-top: auto;

  color: var(--red);

  font-size: 0.84rem;
  font-weight: 700;
}


/* Audience responsive layout */

@media (max-width: 1100px) {
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .audience-section {
    padding: 30px 20px;

    border-radius: 22px;
  }

  .audience-heading {
    align-items: flex-start;
  }

  .audience-intro {
    max-width: none;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-card,
  .audience-icon {
    transition: none;
  }
}
/* ---------- Homepage blogs ---------- */

.homepage-blogs {
  margin-top: 56px;
  padding-top: 38px;

  border-top: 1px solid #e9edf2;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 24px;
}

.section-eyebrow {
  margin-bottom: 3px;

  color: var(--red);

  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  color: var(--blue);

  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.section-link {
  flex-shrink: 0;

  padding-bottom: 3px;

  border-bottom: 2px solid var(--red);

  color: var(--red);

  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.section-link:hover {
  border-color: var(--red-dark);
  color: var(--red-dark);
}

/* ======================================================
   PREMIUM BLOG CARDS — V3
====================================================== */

.homepage-blogs {
  margin-top: var(--section-gap);
  padding-top: 38px;

  border-top: 1px solid var(--border-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  position: relative;

  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-7px);

  border-color: rgba(226, 35, 26, 0.32);
  box-shadow: var(--shadow-large);
}

.blog-card:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: 4px;
}

.blog-card::after {
  content: "पढ्नुहोस् →";

  position: absolute;
  right: 18px;
  bottom: 16px;

  color: var(--red);

  font-size: 0.8rem;
  font-weight: 700;

  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.blog-card:hover::after,
.blog-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}


/* Blog thumbnail */

.blog-thumb {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #eef4fa,
      #dde7f2
    );
}

.blog-thumb::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.36),
      transparent 58%
    );

  opacity: 0;

  transition: opacity 0.35s ease;
}

.blog-card:hover .blog-thumb::before,
.blog-card:focus-visible .blog-thumb::before {
  opacity: 1;
}

.blog-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.blog-card:hover .blog-thumb img,
.blog-card:focus-visible .blog-thumb img {
  transform: scale(1.07);
}

.blog-thumb.no-thumb::after {
  content: "📷 फोटो थप्नुहोस्";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  color: var(--muted);

  font-size: 0.82rem;
  text-align: center;
}


.blog-title {
  display: flex;
  align-items: flex-start;
  flex: 1;

  min-height: 96px;
  padding: 18px 18px 42px;

  color: var(--ink);

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;

  transition: color 0.25s ease;
}
.blog-card:hover .blog-title,
.blog-card:focus-visible .blog-title {
  color: var(--red);
}


/* Blog responsive layout */

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .homepage-blogs {
    padding-top: 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-title {
    min-height: auto;
  }

  .blog-card::after {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-thumb::before,
  .blog-thumb img,
  .blog-card::after,
  .blog-title {
    transition: none;
  }
}
/* ======================================================
   PREMIUM DOWNLOADS SHOWCASE — V3
====================================================== */

.downloads-showcase {
  margin-top: var(--section-gap);
  padding: 42px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-section);

  background:
    linear-gradient(
      135deg,
      var(--surface-soft) 0%,
      var(--surface) 100%
    );
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  margin-top: 26px;
}

.download-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.download-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 5px;

  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--red)
    );
}

.download-card:hover {
  transform: translateY(-6px);

  border-color: rgba(11, 90, 165, 0.3);
  box-shadow: var(--shadow-medium);
}

.download-card:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: 4px;
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  margin-bottom: 20px;

  border-radius: var(--radius-card);

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 2rem;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.download-card:hover .download-icon,
.download-card:focus-visible .download-icon {
  transform: scale(1.08) rotate(-3deg);
  background: #e3efff;
}

.download-card h3 {
  margin-bottom: 10px;

  color: var(--blue);

  font-size: 1.05rem;
  line-height: 1.5;
}

.download-card p {
  margin-bottom: 18px;

  color: #5f6d79;

  font-size: 0.88rem;
  line-height: 1.7;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding-top: 16px;

  border-top: 1px solid var(--border-light);
}

.download-type {
  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 600;
}

.download-action {
  color: var(--red);

  font-size: 0.84rem;
  font-weight: 700;

  transition: color 0.2s ease;
}

.download-card:hover .download-action,
.download-card:focus-visible .download-action {
  color: var(--red-dark);
}


/* Downloads responsive layout */

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .downloads-showcase {
    padding: 30px 20px;

    border-radius: 22px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-card,
  .download-icon,
  .download-action {
    transition: none;
  }
}
/* ---------- Hero animation ---------- */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-38px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translateX(36px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes floatPhoto {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}


/* ======================================================
   BOOK PROMOTION BANNER
====================================================== */

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin: 56px 0;
  padding: 16px 24px;

  border: 2px solid var(--red);
  border-radius: 8px;

  background:
    linear-gradient(
      90deg,
      #fff5f5 0%,
      #ffffff 50%,
      #f5f9ff 100%
    );
}

.promo-banner .promo-photo {
  flex-shrink: 0;

  width: 170px;
  height: 200px;

  object-fit: contain;
}

.promo-banner .promo-photo.promo-bulk {
  width: 200px;
  height: 230px;
}

.promo-banner .promo-text {
  position: relative;
  flex: 1;

  min-height: 5.2em;
  overflow: hidden;

  text-align: center;
}

.promo-banner .promo-text span {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  color: var(--red);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;

  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.promo-banner .promo-text span.active {
  opacity: 1;
  transform: translateY(0);
}

.promo-banner .promo-text a {
  color: var(--blue);
  text-decoration: none;
}

.promo-banner .promo-text a:hover {
  text-decoration: underline;
}


/* ======================================================
   NEWS SECTION
====================================================== */

#news-list {
  min-width: 0;
  scroll-margin-top: 110px;
}

.news-section {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 30px;
  margin-top: 56px;
  padding-bottom: 10px;
}

/* ======================================================
   PREMIUM NEWS CARDS
====================================================== */

/* ======================================================
   PREMIUM NEWS CARDS — V3
====================================================== */

.news-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;

  margin-bottom: 20px;
  padding: 18px;
  overflow: hidden;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.news-item:hover {
  transform: translateY(-5px);

  border-color: rgba(226, 35, 26, 0.28);
  box-shadow: var(--shadow-medium);
}


/* News thumbnail */

.news-thumb {
  position: relative;

  width: 100%;
  height: 175px;
  overflow: hidden;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #edf4fa,
      #dfe9f3
    );
}

.news-thumb:empty::after {
  content: "📰 समाचार तस्बिर";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  color: var(--muted);

  font-size: 0.8rem;
  text-align: center;
}

.news-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.news-item:hover .news-thumb img {
  transform: scale(1.06);
}


/* News content */

.news-body {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.news-body h3 {
  margin: 0 0 9px;

  color: var(--red);

  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 700;
  line-height: 1.55;

  transition: color 0.2s ease;
}

.news-item:hover .news-body h3 {
  color: var(--red-dark);
}

.news-date,
.news-source-plain {
  margin: 0;

  color: var(--muted);

  font-size: 0.8rem;
  line-height: 1.6;
}

.news-source-plain {
  margin-top: 2px;

  color: #637384;
}


/* Expandable news body */

.news-more {
  max-height: 0;
  overflow: hidden;

  margin-top: 0;

  opacity: 0;

  transition:
    max-height 0.42s ease,
    margin-top 0.3s ease,
    opacity 0.3s ease;
}

.news-more.expanded {
  max-height: 1800px;
  margin-top: 14px;

  opacity: 1;
}

.news-more p {
  margin: 0 0 10px;

  color: #4f5f6f;

  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}


/* Read-more button */

.news-read-more {
  align-self: flex-start;

  margin-top: 14px;
  padding: 7px 0 3px;

  border: 0;
  border-bottom: 2px solid var(--red);

  background: transparent;
  color: var(--red);

  font-size: 0.84rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.news-read-more:hover {
  transform: translateY(-1px);

  border-color: var(--red-dark);
  color: var(--red-dark);
}

.news-read-more:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 4px;
}


/* Original-source link */

.news-source-link {
  display: inline-flex;
  align-items: center;

  color: var(--blue);

  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.news-source-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.news-source-link:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 3px;
}


/* API empty/error message */

.empty-message {
  padding: 30px 24px;

  border: 1px dashed var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface-soft);
  color: var(--muted);

  line-height: 1.7;
  text-align: center;
}


/* News-card responsive layout */

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 16px;

    padding: 15px;
  }

  .news-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-body h3 {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-item,
  .news-thumb img,
  .news-body h3,
  .news-more,
  .news-read-more {
    transition: none;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 24px 0 10px;
}

.pagination button,
.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;

  border: none;
  border-radius: 10px;

  background: var(--red);
  color: var(--white);

  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.pagination button.active,
.pagination a.active {
  background: var(--blue);
}

.pagination button:hover,
.pagination a:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
}

/* ======================================================
   PREMIUM SIDEBAR — V3
====================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;

  min-width: 0;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 64px;
  padding: 16px 20px;

  border: 1px solid rgba(226, 35, 26, 0.2);
  border-radius: var(--radius-card);

  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--red-dark)
    );

  color: var(--white);
  box-shadow:
    0 14px 30px rgba(226, 35, 26, 0.22);

  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.support-banner:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 36px rgba(226, 35, 26, 0.3);
}

.support-banner:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: 4px;
}

.social-heading {
  margin: 8px 0 2px;

  color: var(--blue);

  font-size: 1.05rem;
  line-height: 1.4;
}

.fb-page-wrap {
  width: 100%;
}

.social-stat {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;

  min-height: 82px;
  padding: 14px 16px;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 251, 255, 0.98)
    );

  box-shadow: var(--shadow-small);

  color: var(--ink);
  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.social-stat:hover {
  transform: translateY(-4px);

  border-color: rgba(11, 90, 165, 0.22);
  box-shadow: var(--shadow-medium);
}

.social-stat:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 4px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 16px;

  background: var(--surface-blue);
}

.icon-box svg {
  width: 28px;
  height: 28px;

  fill: currentColor;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;

  color: #607080;

  font-size: 0.82rem;
  line-height: 1.35;
}

.stat strong {
  color: var(--ink);

  font-size: 1.2rem;
  line-height: 1.2;
}

.social-stat.fb {
  color: #1877f2;
}

.social-stat.tw {
  color: #111111;
}

.social-stat.yt {
  color: #ff0000;
}

.social-stat.ig {
  color: #c13584;
}

.social-stat.fb .stat,
.social-stat.tw .stat,
.social-stat.yt .stat,
.social-stat.ig .stat {
  color: #607080;
}

.social-stat.fb .stat strong,
.social-stat.tw .stat strong,
.social-stat.yt .stat strong,
.social-stat.ig .stat strong {
  color: var(--ink);
}


/* Sidebar responsive layout */

@media (max-width: 980px) {
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .support-banner,
  .social-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .support-banner,
  .social-heading {
    grid-column: auto;
  }

  .social-stat {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-banner,
  .social-stat {
    transition: none;
  }
}

/* ======================================================
   ADVERTISEMENT BANNER
====================================================== */

.banner-ad {
  margin: 10px 0 24px;
  padding: 24px 16px;

  border-radius: 6px;

  background:
    linear-gradient(
      90deg,
      #7b2ff7 0%,
      #d885d0 55%,
      #ffe3ef 100%
    );

  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
}


/* ======================================================
   PREMIUM FOOTER — V3
====================================================== */

.site-footer {
  position: relative;

  margin-top: var(--section-gap);
  padding: 58px 0 24px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 255, 255, 0.1),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--blue-dark),
      var(--blue)
    );

  color: var(--white);
}

.site-footer::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--red),
      #ff8a65,
      #ffffff,
      #5ea7ff
    );
}

.footer-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.35fr)
    minmax(280px, 1fr);
  gap: 34px;
}

.footer-col {
  min-width: 0;
}

.footer-col h2,
.footer-col h4 {
  position: relative;

  margin: 0 0 20px;
  padding-bottom: 12px;

  border: 0;

  color: var(--white);

  font-size: 1.08rem;
  line-height: 1.4;
}

.footer-col h2::after,
.footer-col h4::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 46px;
  height: 3px;

  border-radius: 999px;

  background: var(--red);
}


/* Contact information */

.footer-col address {
  font-style: normal;
}

.footer-col p {
  margin: 0 0 10px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-col address a {
  color: var(--white);

  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.footer-col address a:hover {
  color: #dcecff;
  text-decoration: underline;
}

.footer-col address a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}


/* Footer links */

.footer-links-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}

.footer-links-cols ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-links-cols li {
  position: relative;

  margin-bottom: 10px;
  padding-left: 16px;

  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-links-cols li::before {
  content: "";

  position: absolute;
  top: 0.7em;
  left: 0;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--red);
}

.footer-links-cols li a {
  color: rgba(255, 255, 255, 0.88);

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links-cols li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links-cols li a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}


/* Contact form */

.contact-form {
  padding: 20px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);

  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 34px rgba(4, 29, 53, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form label {
  display: block;

  margin-top: 12px;
  margin-bottom: 6px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 11px 12px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);

  font-family: inherit;
  font-size: 0.9rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7cb7ff;
  outline: none;

  background: var(--white);
  box-shadow:
    0 0 0 3px rgba(124, 183, 255, 0.22);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  width: auto;
  min-width: 140px;
  margin-top: 16px;
  padding: 11px 22px;

  border: 0;
  border-radius: 999px;

  background: var(--red);
  color: var(--white);

  font-weight: 700;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);

  background: var(--red-dark);
  box-shadow:
    0 10px 22px rgba(226, 35, 26, 0.28);
}

.contact-form button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-status {
  min-height: 1.3em;
  margin-top: 10px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 0.8rem;
  line-height: 1.5;
}


/* Visitor counter */

.visitor-row {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;

  margin-top: 38px;
  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.16);

  color: rgba(255, 255, 255, 0.9);

  font-size: 0.9rem;
  text-align: center;
}

.digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 38px;
  margin: 0 1px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;

  background:
    linear-gradient(
      180deg,
      #172a3d,
      #0d1b2a
    );

  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.18);

  font-size: 0.9rem;
  font-weight: 700;
}


/* Copyright */

.copyright {
  position: relative;
  z-index: 1;

  margin-top: 16px;

  color: rgba(255, 255, 255, 0.76);

  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}


/* Footer responsive layout */

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 46px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-links-cols {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form button {
    width: 100%;
  }

  .visitor-row {
    margin-top: 30px;
  }

  .digit-box {
    width: 31px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-col address a,
  .footer-links-cols li a,
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    transition: none;
  }
}

/* ======================================================
   ACCESSIBILITY AND REDUCED MOTION
====================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta-blink,
  .ticker-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ======================================================
   TABLET RESPONSIVE
====================================================== */

@media (max-width: 1100px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
  .personal-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 34px;

    padding: 44px 34px;
  }

  .hero-intro h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }

  .hero-highlights {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .news-section {
    grid-template-columns: 1.7fr 1fr;
  }

  .promo-banner .promo-photo {
    width: 130px;
    height: 170px;
  }

  .promo-banner .promo-photo.promo-bulk {
    width: 150px;
    height: 190px;
  }
  .design-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}


/* ======================================================
   MOBILE AND SMALL TABLET
====================================================== */

@media (max-width: 900px) {
  .top-bar {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .site-tagline {
    order: 3;
    width: 100%;
  }

  .top-right {
    width: 100%;
    align-items: center;
  }

  .main-nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;

    padding-top: 4px;
    padding-bottom: 4px;

    scrollbar-width: thin;
  }

  .main-nav li {
    flex-shrink: 0;
  }

  .main-nav a {
    padding: 12px 14px;
    white-space: nowrap;
  }

  .login-icon-btn {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }

  .personal-hero {
    grid-template-columns: 1fr;
    gap: 42px;

    margin-top: 20px;
    padding: 42px 30px;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-photo-card {
    width: min(100%, 440px);
  }

  .news-section {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .promo-banner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .promo-banner .promo-text {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }
  .blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}


/* ======================================================
   MOBILE RESPONSIVE
====================================================== */

@media (max-width: 700px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
.audience-section {
  padding: 30px 20px;
  border-radius: 22px;
}

.audience-heading {
  align-items: flex-start;
}

.audience-intro {
  max-width: none;
}

.audience-grid {
  grid-template-columns: 1fr;
}

.audience-card {
  min-height: auto;
}
  .site-tagline {
    min-width: 100%;
    font-size: 1.1rem;
  }

  .notice-flex {
    gap: 8px;
  }

  .notice-label {
    padding: 5px 9px;
  }

  .personal-hero {
    padding: 34px 20px;
    border-radius: 22px;
  }

  .hero-intro h1 {
    font-size: clamp(2.65rem, 13vw, 3.6rem);
  }

  .hero-intro h2 {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .hero-actions {
    margin-bottom: 28px;
  }

  .hero-btn {
    min-height: 48px;
    padding: 11px 24px;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
  }

  .hero-highlight {
    min-width: 0;
    padding: 14px 8px;
  }

  .hero-highlight strong {
    font-size: 1.55rem;
  }

  .hero-highlight span {
    font-size: 0.72rem;
  }

  .homepage-blogs {
    margin-top: 42px;
    padding-top: 30px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
  }

  .promo-banner .promo-photo {
    width: 110px;
    height: 140px;
  }

  .promo-banner .promo-photo.promo-bulk {
    width: 140px;
    height: 160px;
  }

  .promo-banner .promo-text {
    min-height: 8em;
  }

  .promo-banner .promo-text span {
    font-size: 0.95rem;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 220px;
  }

  .footer-links-cols {
    grid-template-columns: 1fr;
  }
  @media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    height: 220px;
  }
}
.downloads-showcase {
  padding: 30px 20px;
  border-radius: 22px;
}

.download-grid {
  grid-template-columns: 1fr;
}

.download-card {
  min-height: auto;
}
}
/* ======================================================
   PREMIUM FREE DESIGNS SHOWCASE — V3
====================================================== */

.designs-showcase {
  margin-top: var(--section-gap);
  padding: 42px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-section);

  background:
    linear-gradient(
      135deg,
      #fff9ff 0%,
      var(--surface) 100%
    );
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;

  margin-top: 26px;
}

.design-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.design-card:hover {
  transform: translateY(-6px);

  border-color: rgba(126, 69, 170, 0.28);
  box-shadow: var(--shadow-medium);
}

.design-card:focus-visible {
  outline: 3px solid rgba(126, 69, 170, 0.25);
  outline-offset: 4px;
}


/* Design thumbnail */

.design-thumb {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #f3eef8,
      #e8dff1
    );
}

.design-thumb::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(26, 17, 35, 0.48),
      transparent 58%
    );

  opacity: 0;

  transition: opacity 0.3s ease;
}

.design-card:hover .design-thumb::after,
.design-card:focus-visible .design-thumb::after {
  opacity: 1;
}

.design-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.design-card:hover .design-thumb img,
.design-card:focus-visible .design-thumb img {
  transform: scale(1.07);
}

.design-thumb.no-thumb::before {
  content: "🎨";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 3rem;
}


/* Design content */

.design-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 18px;
}

.design-content h3 {
  margin-bottom: 8px;

  color: var(--blue);

  font-size: 1rem;
  line-height: 1.5;

  transition: color 0.2s ease;
}

.design-card:hover .design-content h3,
.design-card:focus-visible .design-content h3 {
  color: #7e45aa;
}

.design-content p {
  margin-bottom: 14px;

  color: #5f6d79;

  font-size: 0.84rem;
  line-height: 1.65;
}

.design-action {
  display: inline-flex;
  align-items: center;

  margin-top: auto;

  color: var(--red);

  font-size: 0.82rem;
  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.design-card:hover .design-action,
.design-card:focus-visible .design-action {
  transform: translateX(3px);
  color: var(--red-dark);
}


/* Designs responsive layout */

@media (max-width: 1100px) {
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .designs-showcase {
    padding: 30px 20px;

    border-radius: 22px;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-card,
  .design-thumb::after,
  .design-thumb img,
  .design-content h3,
  .design-action {
    transition: none;
  }
}
/* ======================================================
   FLOATING ACTION BUTTONS — V2
====================================================== */

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  width: auto;
  height: auto;

  pointer-events: none;
}

.floating-actions .floating-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 56px;

  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;

  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 50% !important;

  box-shadow: 0 12px 28px rgba(13, 40, 67, 0.22);

  font-size: 0;
  line-height: 1;

  cursor: pointer;
  text-decoration: none;

  pointer-events: auto;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.floating-actions .floating-btn:hover {
  transform: translateY(-3px) scale(1.04);

  box-shadow: 0 17px 34px rgba(13, 40, 67, 0.3);
}

.floating-actions .floating-btn:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.3);
  outline-offset: 4px;
}


/* Icons */

.floating-actions .floating-btn svg {
  display: block;

  width: 27px !important;
  height: 27px !important;

  flex: 0 0 27px;

  fill: currentColor;
}

.floating-actions .floating-btn i {
  display: block;

  width: auto;
  height: auto;

  font-size: 29px !important;
  line-height: 1 !important;
}


/* WhatsApp */

.floating-actions .whatsapp-btn {
  background: #25d366 !important;
  color: #ffffff !important;

  animation: whatsappPulse 2.6s ease-in-out infinite;
}

.floating-actions .whatsapp-btn:hover {
  background: #1ebe5d !important;
}


/* Back to top */

.floating-actions .back-to-top-btn {
  appearance: none;
  -webkit-appearance: none;

  background: var(--blue) !important;
  color: var(--white) !important;

  opacity: 0;
  visibility: hidden;

  transform: translateY(12px);

  pointer-events: none;
}

.floating-actions .back-to-top-btn.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;
}

.floating-actions .back-to-top-btn:hover {
  background: var(--blue-dark) !important;
}


/* Tooltip — desktop only */

.floating-actions .floating-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);

  display: block;

  width: max-content;
  max-width: 230px;
  padding: 8px 12px;

  border-radius: 10px;

  background: rgba(28, 43, 58, 0.96);
  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(-50%)
    translateX(6px);

  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.floating-actions .floating-btn:hover .floating-tooltip,
.floating-actions .floating-btn:focus-visible .floating-tooltip {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(-50%)
    translateX(0);
}


/* WhatsApp pulse */

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow:
      0 12px 28px rgba(13, 40, 67, 0.22),
      0 0 0 0 rgba(37, 211, 102, 0.28);
  }

  50% {
    box-shadow:
      0 16px 34px rgba(13, 40, 67, 0.25),
      0 0 0 10px rgba(37, 211, 102, 0);
  }
}


/* Mobile */

@media (max-width: 700px) {
  .floating-actions {
    right: 12px;
    bottom:
      calc(
        12px + env(safe-area-inset-bottom)
      );

    gap: 9px;
  }

  .floating-actions .floating-btn {
    flex-basis: 50px;

    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  .floating-actions .floating-btn svg {
    width: 24px !important;
    height: 24px !important;

    flex-basis: 24px;
  }

  .floating-actions .floating-btn i {
    font-size: 26px !important;
  }

  .floating-actions .floating-tooltip {
    display: none !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  .floating-actions .floating-btn,
  .floating-actions .floating-tooltip,
  .floating-actions .whatsapp-btn {
    animation: none;
    transition: none;
  }
}
/* ======================================================
   SMALL MOBILE RESPONSIVE
====================================================== */

@media (max-width: 480px) {
  .brand {
    font-size: 1.1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .date-header {
    text-align: center;
  }

  .cta-blink {
    width: 100%;
    text-align: center;
  }

  .personal-hero {
    padding: 30px 16px;
  }

  .hero-eyebrow {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 18px;

    text-align: left;
  }

  .hero-highlight span {
    margin-top: 0;
    text-align: right;
  }

  .hero-photo-card {
    padding: 12px;
    border-radius: 22px;
  }

  .hero-photo-card img {
    border-radius: 17px;
  }

  .hero-photo-badge {
    right: 20px;
    bottom: 20px;
    left: 20px;

    padding: 10px 14px;

    font-size: 0.86rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    height: 190px;
  }

  .social-stat .icon-box {
    width: 46px;
    height: 46px;
  }

  .banner-ad {
    font-size: 1rem;
  }
  .blog-grid {
  grid-template-columns: 1fr;
}

.blog-title {
  min-height: auto;
}
.design-grid {
  grid-template-columns: 1fr;
}
}
/* ======================================================
404 PAGE
====================================================== */

.error-page{

min-height:75vh;

display:flex;
flex-direction:column;

align-items:center;
justify-content:center;

text-align:center;

}

.error-page h1{

font-size:7rem;

color:var(--red);

margin-bottom:8px;

}

.error-page h2{

margin-bottom:16px;

color:var(--blue);

}

.error-page p{

max-width:520px;

margin-bottom:28px;

color:var(--muted);

line-height:1.8;

}
/* ======================================================
   GLOBAL SEARCH — PRODUCTION VERSION
====================================================== */

.global-search {
  position: relative;
  z-index: 10001;

  max-width: 700px;
  margin: 28px auto;
}

#site-search {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;

  border: 2px solid #dbe5ef;
  border-radius: 999px;

  background: var(--surface);
  color: var(--ink);

  font-family: inherit;
  font-size: 1rem;

  box-shadow: var(--shadow-small);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

#site-search::placeholder {
  color: var(--muted);
}

#site-search:focus {
  border-color: var(--blue);
  outline: none;

  box-shadow:
    0 0 0 4px rgba(11, 90, 165, 0.13),
    var(--shadow-small);
}

#search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 10002;

  display: none;
  max-height: min(430px, 65vh);
  overflow-y: auto;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-large);
}

#search-results.show {
  display: block;

  animation: searchResultsIn 0.2s ease both;
}

.search-item {
  border-bottom: 1px solid var(--border-light);
}

.search-item:last-child {
  border-bottom: 0;
}

.search-item-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;

  padding: 13px 16px;

  color: var(--ink);
  text-decoration: none;

  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.search-item-link:hover,
.search-item-link.active {
  background: var(--surface-blue);
}

.search-item-link:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: -3px;
}

.search-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  background: var(--surface-soft);

  font-size: 1.25rem;
}

.search-item-content {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.search-item-content strong {
  color: var(--ink);

  font-size: 0.92rem;
  line-height: 1.4;
}

.search-item-content small {
  color: var(--muted);

  font-size: 0.74rem;
}

.search-item-arrow {
  color: var(--red);

  font-weight: 700;
}

.search-item mark {
  padding: 0;

  background: transparent;
  color: var(--red);

  font-weight: 800;
}

.search-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 24px;

  color: var(--muted);
  text-align: center;
}

.search-empty strong {
  color: var(--ink);
}

.search-empty-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 8px;
}

.search-empty-links a {
  padding: 7px 12px;

  border-radius: 999px;

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.search-empty-links a:hover {
  background: var(--blue);
  color: var(--white);
}

@keyframes searchResultsIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .global-search {
    margin: 20px auto;
  }

  #site-search {
    min-height: 52px;
    padding: 12px 18px;

    font-size: 0.95rem;
  }

  #search-results {
    max-height: 60vh;
  }

  .search-item-link {
    grid-template-columns: 38px minmax(0, 1fr) 20px;

    padding: 12px 13px;
  }

  .search-item-icon {
    width: 38px;
    height: 38px;

    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-search,
  .search-item-link,
  #search-results.show {
    animation: none;
    transition: none;
  }
}
/* ======================================================
   iEMIS TEACHER RESOURCE CENTER
====================================================== */

.iemis-resource-center {
  position: relative;

  margin-top: var(--section-gap);
  padding: 46px;
  overflow: hidden;

  border: 1px solid rgba(11, 90, 165, 0.16);
  border-radius: var(--radius-section);

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(226, 35, 26, 0.1),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #f6faff 0%,
      #ffffff 58%,
      #fff7f6 100%
    );

  box-shadow: var(--shadow-small);
}

.iemis-resource-center::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 5px;

  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--red)
    );
}


/* Intro */

.iemis-resource-intro {
  max-width: 760px;
  margin: 0 auto 32px;

  text-align: center;
}

.iemis-resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
  padding: 7px 14px;

  border: 1px solid rgba(11, 90, 165, 0.16);
  border-radius: 999px;

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.iemis-resource-intro h2 {
  margin: 0 0 12px;

  color: var(--ink);

  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.iemis-resource-intro p {
  max-width: 670px;
  margin: 0 auto;

  color: #5d6d7d;

  font-size: 0.96rem;
  line-height: 1.8;
}

.iemis-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 20px;
  padding: 11px 18px;

  border-radius: 999px;

  background: var(--blue);
  color: var(--white);

  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(11, 90, 165, 0.2);

  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.iemis-primary-link:hover {
  transform: translateY(-2px);

  background: var(--blue-dark);
  box-shadow: 0 14px 28px rgba(11, 90, 165, 0.28);
}

.iemis-primary-link:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.25);
  outline-offset: 4px;
}


/* Main topic cards */

.iemis-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.iemis-topic-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;

  min-width: 0;
  min-height: 132px;
  padding: 20px;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.iemis-topic-card:hover {
  transform: translateY(-5px);

  border-color: rgba(11, 90, 165, 0.28);
  box-shadow: var(--shadow-medium);
}

.iemis-topic-card:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 4px;
}

.iemis-topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      var(--surface-blue),
      #e3efff
    );

  font-size: 1.75rem;

  transition: transform 0.25s ease;
}

.iemis-topic-card:hover .iemis-topic-icon,
.iemis-topic-card:focus-visible .iemis-topic-icon {
  transform: scale(1.07) rotate(-3deg);
}

.iemis-topic-content {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-width: 0;
}

.iemis-topic-content strong {
  color: var(--blue);

  font-size: 1rem;
  line-height: 1.45;
}

.iemis-topic-content small {
  color: #657586;

  font-size: 0.8rem;
  line-height: 1.65;
}

.iemis-topic-arrow {
  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  transition: transform 0.22s ease;
}

.iemis-topic-card:hover .iemis-topic-arrow,
.iemis-topic-card:focus-visible .iemis-topic-arrow {
  transform: translateX(4px);
}


/* Secondary topics */

.iemis-secondary-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;

  margin-top: 22px;
}

.iemis-secondary-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 54px;
  padding: 12px 14px;

  border: 1px solid var(--border-light);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);

  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.iemis-secondary-links a:hover {
  transform: translateY(-3px);

  border-color: rgba(226, 35, 26, 0.24);
  background: #ffffff;
}

.iemis-secondary-links a:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 3px;
}


/* Disclaimer */

.iemis-resource-disclaimer {
  max-width: 900px;
  margin: 24px auto 0;
  padding-top: 18px;

  border-top: 1px solid var(--border-light);

  color: var(--muted);

  font-size: 0.76rem;
  line-height: 1.7;
  text-align: center;
}


/* Responsive */

@media (max-width: 900px) {
  .iemis-resource-center {
    padding: 38px 28px;
  }

  .iemis-primary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .iemis-resource-center {
    padding: 34px 18px;

    border-radius: 22px;
  }

  .iemis-resource-intro {
    margin-bottom: 26px;
  }

  .iemis-topic-card {
    grid-template-columns: 50px minmax(0, 1fr) 20px;
    gap: 12px;

    min-height: auto;
    padding: 16px;
  }

  .iemis-topic-icon {
    width: 50px;
    height: 50px;

    font-size: 1.45rem;
  }

  .iemis-secondary-links {
    grid-template-columns: 1fr;
  }

  .iemis-primary-link {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iemis-primary-link,
  .iemis-topic-card,
  .iemis-topic-icon,
  .iemis-topic-arrow,
  .iemis-secondary-links a {
    transition: none;
  }
}
/* ======================================================
   KNOWLEDGE PAGE — STUDENT MANAGEMENT
====================================================== */

.knowledge-page {
  padding: 34px 0 64px;

  background:
    linear-gradient(
      180deg,
      #f7fbff 0%,
      #ffffff 48%,
      #f8fafc 100%
    );
}


/* Hero */

.knowledge-hero {
  position: relative;

  padding: 44px;
  overflow: hidden;

  border: 1px solid rgba(11, 90, 165, 0.16);
  border-radius: var(--radius-section);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(226, 35, 26, 0.1),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #edf6ff,
      #ffffff 58%,
      #fff7f6
    );

  box-shadow: var(--shadow-small);
}

.knowledge-hero::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 5px;

  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--red)
    );
}

.knowledge-eyebrow {
  display: inline-flex;

  margin: 0 0 14px;
  padding: 7px 13px;

  border: 1px solid rgba(11, 90, 165, 0.15);
  border-radius: 999px;

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 0.78rem;
  font-weight: 700;
}

.knowledge-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;

  color: var(--ink);

  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
}

.knowledge-hero > p:not(.knowledge-eyebrow) {
  max-width: 760px;
  margin: 0;

  color: #586979;

  font-size: 1rem;
  line-height: 1.85;
}

.knowledge-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 24px;

  color: var(--muted);

  font-size: 0.8rem;
}

.knowledge-breadcrumb a {
  color: var(--blue);

  font-weight: 700;
  text-decoration: none;
}

.knowledge-breadcrumb a:hover {
  text-decoration: underline;
}


/* Topics section */

.knowledge-topics {
  margin-top: 34px;
}

.knowledge-topics .section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.knowledge-topics .section-head h2 {
  margin: 0 0 8px;

  color: var(--ink);

  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.knowledge-topics .section-head p {
  margin: 0;

  color: var(--muted);

  font-size: 0.92rem;
  line-height: 1.7;
}

.knowledge-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-topic-card {
  position: relative;

  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;

  min-width: 0;
  min-height: 132px;
  padding: 20px;

  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.knowledge-topic-card:hover {
  transform: translateY(-5px);

  border-color: rgba(11, 90, 165, 0.28);
  box-shadow: var(--shadow-medium);
}

.knowledge-topic-card:focus-visible {
  outline: 3px solid rgba(11, 90, 165, 0.24);
  outline-offset: 4px;
}

.knowledge-topic-card > span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      var(--surface-blue),
      #e1edfb
    );

  font-size: 1.5rem;

  grid-row: 1 / span 2;

  transition: transform 0.24s ease;
}

.knowledge-topic-card:hover > span,
.knowledge-topic-card:focus-visible > span {
  transform: scale(1.07) rotate(-3deg);
}

.knowledge-topic-card h3 {
  align-self: end;

  margin: 0;

  color: var(--blue);

  font-size: 1rem;
  line-height: 1.45;
}

.knowledge-topic-card p {
  align-self: start;

  margin: 5px 0 0;

  color: #667687;

  font-size: 0.82rem;
  line-height: 1.65;
}


/* Important note */

.knowledge-note {
  margin-top: 34px;
  padding: 24px 26px;

  border-left: 5px solid var(--red);
  border-radius: 14px;

  background: #fff8f7;
  box-shadow: var(--shadow-small);
}

.knowledge-note h2 {
  margin: 0 0 8px;

  color: var(--red-dark);

  font-size: 1.05rem;
}

.knowledge-note p {
  margin: 0;

  color: #5f6872;

  font-size: 0.84rem;
  line-height: 1.75;
}


/* Responsive */

@media (max-width: 800px) {
  .knowledge-hero {
    padding: 34px 26px;
  }

  .knowledge-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .knowledge-page {
    padding-top: 20px;
  }

  .knowledge-hero {
    padding: 30px 18px;

    border-radius: 22px;
  }

  .knowledge-topic-card {
    grid-template-columns: 48px minmax(0, 1fr);

    min-height: auto;
    padding: 16px;
  }

  .knowledge-topic-card > span {
    width: 48px;
    height: 48px;

    font-size: 1.3rem;
  }

  .knowledge-note {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-topic-card,
  .knowledge-topic-card > span {
    transition: none;
  }
}
/* ======================================================
   KNOWLEDGE ARTICLE TABLE
====================================================== */

.article-table-wrap {
  width: 100%;
  overflow-x: auto;

  margin-top: 18px;

  border: 1px solid var(--border-light);
  border-radius: 14px;

  background: var(--surface);
}

.article-table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;
}

.article-table th,
.article-table td {
  padding: 13px 15px;

  border-bottom: 1px solid var(--border-light);

  text-align: left;
  vertical-align: top;

  font-size: 0.84rem;
  line-height: 1.6;
}

.article-table th {
  background: var(--surface-blue);
  color: var(--blue);

  font-weight: 700;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-table tbody tr:hover {
  background: #fafcff;
}
/* ======================================================
   KNOWLEDGE ARTICLE CONTENT
====================================================== */

.article-page {
  padding-bottom: 70px;
}

.article-page .knowledge-hero {
  margin-bottom: 38px;
}

.article-page .article-section {
  max-width: 1120px;
  margin: 0 auto 26px;
  padding: 28px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);

  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.article-page .article-section h2 {
  margin: 0 0 14px;

  color: var(--blue);

  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.35;
}

.article-page .article-section > p {
  margin: 0 0 14px;

  color: #344054;

  font-size: 0.98rem;
  line-height: 1.9;
}


/* Step-by-step list */

.article-steps {
  display: grid;
  gap: 16px;

  margin: 20px 0 0;
  padding: 0;

  list-style: none;
  counter-reset: article-step;
}

.article-steps li {
  position: relative;

  min-height: 92px;
  padding: 18px 20px 18px 72px;

  border: 1px solid var(--border-light);
  border-radius: 15px;

  background: #f9fbfd;

  counter-increment: article-step;
}

.article-steps li::before {
  content: counter(article-step);

  position: absolute;
  top: 18px;
  left: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: var(--blue);
  color: var(--white);

  font-size: 0.9rem;
  font-weight: 800;
}

.article-steps strong {
  display: block;

  margin-bottom: 5px;

  color: var(--ink);

  font-size: 1rem;
}

.article-steps p {
  margin: 0;

  color: #475467;

  font-size: 0.86rem;
  line-height: 1.7;
}


/* Data table */

.article-table-wrap {
  width: 100%;
  overflow-x: auto;

  margin-top: 18px;

  border: 1px solid var(--border-light);
  border-radius: 14px;

  background: var(--surface);
}

.article-table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;
}

.article-table th,
.article-table td {
  padding: 13px 15px;

  border-bottom: 1px solid var(--border-light);

  text-align: left;
  vertical-align: top;

  font-size: 0.84rem;
  line-height: 1.6;
}

.article-table th {
  background: var(--surface-blue);
  color: var(--blue);

  font-weight: 800;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-table tbody tr:hover {
  background: #f8fbff;
}


/* Action cards */

.article-problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;

  margin-top: 18px;
}

.article-problem-list > div {
  padding: 18px;

  border: 1px solid var(--border-light);
  border-radius: 14px;

  background: #fafcff;
}

.article-problem-list h3 {
  margin: 0 0 7px;

  color: var(--red);

  font-size: 0.98rem;
}

.article-problem-list p {
  margin: 0;

   color: #475467;

  font-size: 0.84rem;
  line-height: 1.7;
}


/* Screenshot/video placeholder */

.article-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 220px;
  margin-top: 18px;
  padding: 28px;

  border: 2px dashed #cbd8e4;
  border-radius: 16px;

  background: #f8fbfe;

  color: var(--muted);
  text-align: center;
}

.article-placeholder > span {
  margin-bottom: 10px;

  font-size: 2.2rem;
}

.article-placeholder strong {
  margin-bottom: 6px;

  color: var(--ink);
}

.article-placeholder p {
  max-width: 520px;
  margin: 0;

  font-size: 0.84rem;
  line-height: 1.7;
}


/* Responsive */

@media (max-width: 800px) {
  .article-page .article-section {
    padding: 22px;
  }

  .article-problem-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .article-page .knowledge-hero {
    margin-bottom: 24px;
  }

  .article-page .article-section {
    margin-bottom: 18px;
    padding: 18px;

    border-radius: 16px;
  }

  .article-steps li {
    padding: 64px 16px 16px;
  }

  .article-steps li::before {
    top: 15px;
    left: 16px;
  }
}
/* ======================================================
   KNOWLEDGE ARTICLE — FAQ, RELATED & AUTHOR
====================================================== */

.article-faq {
  display: grid;
  gap: 12px;

  margin-top: 18px;
}

.article-faq details {
  overflow: hidden;

  border: 1px solid var(--border-light);
  border-radius: 14px;

  background: #fafcff;
}

.article-faq summary {
  position: relative;

  padding: 16px 46px 16px 18px;

  color: var(--ink);

  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;
  list-style: none;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: 18px;

  color: var(--blue);

  font-size: 1.2rem;
  font-weight: 800;

  transform: translateY(-50%);
}

.article-faq details[open] summary::after {
  content: "−";
}

.article-faq details p {
  margin: 0;
  padding: 0 18px 16px;

  color: #637384;

  font-size: 0.84rem;
  line-height: 1.75;
}


/* Related guides */

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 18px;
}

.article-related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;
  padding: 14px 16px;

  border: 1px solid var(--border-light);
  border-radius: 13px;

  background: #f8fbff;
  color: var(--blue);

  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.article-related-grid a::after {
  content: "→";

  color: var(--red);
}

.article-related-grid a:hover {
  transform: translateY(-3px);

  border-color: rgba(11, 90, 165, 0.28);
  background: #ffffff;
}
.article-related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
  grid-template-columns: 1fr;
}
/* ======================================================
   SINGLE RELATED LINK
====================================================== */

.single-link-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

.single-link-grid a {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .single-link-grid {
    max-width: 100%;
  }

  .single-link-grid a {
    white-space: normal;
  }
}
/* Author box */

.article-author {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;

  max-width: 1120px;
  margin: 0 auto 26px;
  padding: 24px;

  border: 1px solid rgba(11, 90, 165, 0.18);
  border-radius: var(--radius-card);

  background:
    linear-gradient(
      135deg,
      #f1f7ff,
      #ffffff
    );

  box-shadow: var(--shadow-small);
}.about-photo{
  flex-shrink:0;
  width:180px;
}

.about-photo img{
  width:100%;
  display:block;
  border-radius:18px;
  border:4px solid #fff;
  box-shadow:var(--shadow-small);
}
.article-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.article-author-label {
  margin: 0 0 4px;

  color: var(--red);

  font-size: 0.76rem;
  font-weight: 700;
}

.article-author h2 {
  margin: 0 0 7px;

  color: var(--ink);

  font-size: 1.2rem;
}

.article-author-content > p:not(.article-author-label) {
  margin: 0;

  color: #607182;

  font-size: 0.84rem;
  line-height: 1.7;
}

.article-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 13px;
}

.article-author-links a {
  padding: 6px 11px;

  border-radius: 999px;

  background: var(--surface-blue);
  color: var(--blue);

  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.article-author-links a:hover {
  background: var(--blue);
  color: var(--white);
}


/* Responsive */

@media (max-width: 700px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-author {
    grid-template-columns: 1fr;

    padding: 20px;
  }

  .article-author-avatar {
    width: 64px;
    height: 64px;
  }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 0.84rem;
}

.article-meta span {
  padding: 8px 14px;

  border-radius: 999px;

  background: #f4f8fc;
}
/* ======================================================
   ARTICLE PREVIOUS / NEXT NAVIGATION
====================================================== */

.article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;

  max-width: 1120px;
  margin: 0 auto 26px;
}

.article-navigation-link {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-height: 88px;
  padding: 18px 20px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);

  background: var(--surface);
  color: var(--ink);

  text-decoration: none;
  box-shadow: var(--shadow-small);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.article-navigation-link:hover {
  transform: translateY(-4px);

  border-color: rgba(11, 90, 165, 0.3);
  box-shadow: var(--shadow-medium);
}

.article-navigation-link.next {
  text-align: right;
}

.article-navigation-label {
  color: var(--red);

  font-size: 0.76rem;
  font-weight: 700;
}

.article-navigation-link strong {
  color: var(--blue);

  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-navigation-link.next {
    text-align: left;
  }
}
/* ======================================================
   REUSABLE PROFILE TEMPLATE
====================================================== */

.profile-section {
  margin-top: 34px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;

  padding: 36px;

  border: 1px solid rgba(11, 90, 165, 0.16);
  border-radius: var(--radius-section);

  background:
    linear-gradient(
      135deg,
      #f5f9ff,
      #ffffff 65%
    );

  box-shadow: var(--shadow-small);
}

.profile-photo {
  overflow: hidden;

  border-radius: 24px;

  background: var(--surface-blue);
  box-shadow: var(--shadow-medium);
}

.profile-photo img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
}

.profile-content h2 {
  margin: 0 0 16px;

  color: var(--blue);

  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.25;
}

.profile-content > p:not(.knowledge-eyebrow) {
  margin: 0 0 14px;

  color: #5d6d7d;

  font-size: 0.95rem;
  line-height: 1.85;
}

.profile-content .article-related-grid {
  margin-top: 22px;
}

@media (max-width: 850px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .profile-layout {
    padding: 22px;

    border-radius: 22px;
  }
}
.is-hidden {
  display: none !important;
}
/* ==========================================
   QUICK STEPS
========================================== */

.quick-steps {
    background: #f8fbff;
    border: 1px solid #d9e8fb;
    border-radius: 18px;
    padding: 2rem;
    margin: 2rem 0;
}

.quick-steps h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.quick-steps li {
    margin-bottom: .9rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
}

.quick-steps strong {
    color: var(--heading-color);
}

/* ======================================================
   MOBILE HAMBURGER NAVIGATION
====================================================== */

.nav-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    padding: 8px 16px;
  }

  .nav-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 44px;
    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;

    background: transparent;
    color: var(--white);

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;
  }

  .nav-menu-icon {
    display: grid;
    gap: 4px;
    width: 22px;
  }

  .nav-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .main-nav.menu-open .nav-menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .main-nav.menu-open .nav-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .main-nav.menu-open .nav-menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav > .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;

    width: 100%;
    max-height: calc(100vh - 72px);
    padding: 8px 0 2px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main-nav.menu-open > .nav-list {
    display: flex;
  }

  .main-nav > .nav-list > li {
    display: block;
    width: 100%;
  }

  .main-nav > .nav-list > li > a,
  .main-nav .nav-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;

    border-radius: 8px;

    text-align: left;
    white-space: normal;
  }

  .main-nav .nav-dropdown-toggle {
    justify-content: space-between;
  }

  .main-nav .nav-dropdown {
    position: static;
  }

  .main-nav .nav-dropdown-menu {
    position: static;

    display: none;
    gap: 3px;

    width: 100%;
    max-height: none;
    margin-top: 3px;
    padding: 7px;
    overflow: visible;

    border: 0;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.97);
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .nav-dropdown.open > .nav-dropdown-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .nav-dropdown-menu::before {
    display: none;
  }

  .main-nav .nav-dropdown-menu li {
    display: block;
    width: 100%;
  }

  .main-nav .nav-dropdown-menu a {
    width: 100%;
    padding: 11px 13px;
  }

  .main-nav .login-icon-btn {
    width: 42px;
    height: 42px;
    margin: 7px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu-icon span {
    transition: none;
  }
}
