:root {
  --cream: #fffadf;
  --cream-alt: #fffadb;
  --maroon: #550000;
  --title: #880000;
  --footer: #ffe3b5;
  --text: #545454;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture,
picture img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--maroon);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  margin-bottom: 24px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-only,
.faq-mobile-heading {
  display: none;
}

/* Shared section styling */

.section {
  padding: 10px;
}

.wide-image {
  width: 100%;
  border-radius: 20px;
}

.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--maroon);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  background: #740000;
}

.pill {
  min-width: 190px;
  padding: 13px 28px;
  border-radius: 35px;
  font-size: 18px;
}

.bar-title {
  margin: 0 0 28px;
  padding: 13px 15px;
  border-radius: 40px;
  background: var(--maroon);
  color: #fff;
  font-family: "Roboto", sans-serif;
}

.divider {
  min-height: 74px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider img {
  width: 54%;
}

/* Hero and announcement */

.hero {
  padding: 20px 10px 0;
}

.hero-image {
  width: 100%;
  border-radius: 15px;
}

.hero-title {
  padding: 38px 10px 12px;
  background: var(--cream-alt);
  text-align: center;
}

.hero-title h1 {
  margin: 0 0 12px;
  color: var(--title);
}

.hero-title p {
  margin-bottom: 0;
  font-weight: 700;
}

.announcement {
  overflow: hidden;
  padding: 10px;
  color: #f00;
  font-weight: 700;
}

.announcement-text {
  width: max-content;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}

.announcement a {
  color: inherit;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Strategic Vision */

.strategic-grid {
  max-width: 1140px;
  margin: 45px auto 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px 70px;
}

.vision-card {
  min-width: 0;
  text-align: center;
}

.vision-card > a:first-child {
  display: block;
}

.vision-card img,
.opportunity-grid img,
.additional-opportunities img,
.course-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 25px;
  box-shadow: 0 0 10px #000;
}

.vision-card .button {
  margin-top: 20px;
}

/* Banners and opportunities */

.digital,
.punyabhoomi {
  text-align: center;
}

.digital > a:first-child,
.punyabhoomi > a:first-child {
  display: block;
}

.digital .button {
  margin-top: 14px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 20px;
  padding: 0 10px;
}

.opportunity-grid > a,
.additional-opportunities > a,
.course-grid > a {
  display: block;
  min-width: 0;
}

.additional-opportunities {
  max-width: 1140px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.donation {
  text-align: center;
}

.donation .bar-title {
  font-family: "Roboto Flex", sans-serif;
  font-size: 30px;
}

.donation p {
  padding: 0 15px;
  margin-bottom: 26px;
  text-align: left;
  font-weight: 600;
  line-height: 2;
}

/* FAQ */

.faq {
  padding: 30px 25px 90px;
  background: var(--cream-alt);
}

.faq-desktop-heading {
  margin-bottom: 35px;
  font-family: "Roboto Flex", sans-serif;
}

.faq-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 20px;
  background: #2a0000;
  box-shadow: 0 8px 20px #0007;
}

.faq-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-copy {
  position: relative;
  z-index: 1;
  max-width: 730px;
  padding: 55px 95px;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

.faq-copy h3 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.25;
}

.faq-copy p {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
}

.faq-copy h4 {
  margin-bottom: 25px;
  font-size: 22px;
  line-height: 1.4;
}

.faq-button {
  background: #fff;
  color: #555;
  border-radius: 35px;
  font-family: "Roboto", sans-serif;
}

.faq-button:hover,
.faq-button:focus-visible {
  background: #f0e7d5;
}

/* Courses and campaigns */

.course-grid {
  max-width: 1300px;
  margin: 25px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.course-grid img {
  border-radius: 20px;
  box-shadow: 0 0 7px #0008;
}

.coming-soon {
  margin: 15px 0 10px;
  color: var(--maroon);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.news {
  padding-top: 15px;
}

.punyabhoomi {
  padding: 25px 10px 30px;
}

.punyabhoomi > a:first-child {
  max-width: 1140px;
  margin: auto;
}

.punyabhoomi .button {
  margin-top: 30px;
}

/* Carousels */

.dharma h2,
.crorepati h2 {
  margin-bottom: 24px;
}

.carousel {
  position: relative;
  --visible-slides: 3;
}

.carousel-window {
  overflow: hidden;
  padding: 12px 0;
  touch-action: pan-y;
}

.square-carousel .carousel-window {
  margin: 0 30px;
}

.banner-carousel .carousel-window {
  max-width: 1140px;
  margin: auto;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform .5s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 calc(
    (100% - (var(--visible-slides) - 1) * 10px)
    / var(--visible-slides)
  );
  min-width: 0;
}

.slide img {
  width: 100%;
  border-radius: 25px;
}

.square-carousel .slide img {
  aspect-ratio: 1;
  object-fit: contain;
  box-shadow: 0 0 8px #0008;
}

.banner-carousel .slide img {
  aspect-ratio: 3 / 1;
  object-fit: contain;
  border-radius: 20px;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 25px);
  z-index: 2;
  width: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--maroon);
  font: 40px/1 "Roboto", sans-serif;
}

.carousel-arrow.previous { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-dots {
  min-height: 30px;
  padding: 14px 0 5px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0003;
}

.carousel-dot.active {
  background: #252525;
}

/* Footer */

.site-footer {
  margin-top: 0;
  background: var(--footer);
  color: #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  padding: 40px 30px;
  font-size: 14px;
  font-weight: 700;
}

.footer-brand {
  text-align: center;
}

.footer-brand .logo {
  width: 100%;
}

.footer-tagline {
  margin: 25px 0 45px;
  color: var(--maroon);
  font-size: 16px;
  line-height: 1.8;
}

.footer-brand .button {
  font-size: 13px;
}

.whatsapp-link {
  display: block;
  width: 48px;
  margin: 40px auto 10px;
}

.whatsapp-link img {
  width: 48px;
  height: 48px;
}

.chat-caption {
  font-size: 12px;
}

.footer-column h2 {
  margin: 8px 0 38px;
  color: #570404;
  font-family: "Abhaya Libre", serif;
  font-size: 34px;
  text-align: left;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--maroon);
  text-decoration: underline;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.contact-row > span:first-child {
  flex: 0 0 24px;
  color: var(--maroon);
  font-size: 25px;
  line-height: 1.2;
}

.contact-row > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.address-row {
  margin-top: 28px;
}

address {
  font-style: normal;
  line-height: 1.8;
}

.copyright {
  padding: 10px;
  background: #410000;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* Image entrance effect: logos remain stationary. */

.image-pop {
  animation: imageZoomIn .9s ease both;
  transform-origin: center;
}

@keyframes imageZoomIn {
  0% {
    opacity: 0;
    transform: scale(.3);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {

  .strategic-grid {
    padding-inline: 25px;
    gap: 35px;
  }

  .faq-copy {
    padding-inline: 55px;
  }

  .footer-grid {
    gap: 18px;
    padding-inline: 20px;
    font-size: 12px;
  }
}

/* Mobile: preserve the reference's compact multi-column grids. */

@media (max-width: 767px) {
  body {
    font-size: 13.68px;
  }

  h1,
  h2 {
    font-size: 24px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: initial;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-image {
    border-radius: 20px;
  }

  .hero-title {
    padding: 24px 0 10px;
  }

  .hero-title p {
    font-size: 12px;
  }

  .divider {
    min-height: 34px;
    padding: 10px;
  }

  .divider img {
    width: 60%;
  }

  .announcement {
    padding: 10px;
  }

  .section {
    padding: 10px;
  }

  .bar-title {
    padding: 13px 10px;
    margin-bottom: 28px;
    border-radius: 35px;
  }

  .strategic-grid {
    margin: 35px 10px 15px;
    gap: 50px 20px;
  }

  .vision-card .button {
    max-width: 95%;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 11px;
  }

  .vision-card img,
  .additional-opportunities img {
    border-radius: 25px;
  }

  .digital .button {
    margin-top: 15px;
    padding: 12px 22px;
    font-size: 13px;
  }

  .opportunity-grid {
    padding: 0 20px;
    gap: 35px 20px;
  }

  .opportunity-grid img {
    border-radius: 15px;
    box-shadow: 0 0 8px #000;
  }

  .additional-opportunities {
    margin: 40px 10px 0;
    gap: 20px;
  }

  .donation .bar-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .donation p {
    padding: 0 15px;
    margin-bottom: 28px;
    line-height: 2.1;
    text-align: center;
    font-weight: 400;
  }

  .pill {
    min-width: 190px;
    font-size: 18px;
  }

  .faq {
    padding: 0 20px;
  }

  .faq-desktop-heading,
  .faq-background {
    display: none;
  }

  .faq-panel {
    min-height: 0;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 3px 8px #0007;
  }

  .faq-copy {
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: center;
    font-family: "Montserrat", sans-serif;
  }

  .faq-mobile-heading {
    display: block;
    margin-bottom: 24px;
    color: #fff;
    font-family: "Roboto Flex", sans-serif;
    font-size: 21px;
  }

  .faq-copy h3 {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .faq-copy p {
    font-size: 12px;
    line-height: 2.2;
    margin-bottom: 25px;
  }

  .faq-copy h4 {
    font-size: 12px;
    line-height: 2.1;
    margin-bottom: 18px;
  }

  .faq-button {
    padding: 12px 28px;
    border: 2px solid #ddd;
    background: transparent;
    color: #fff;
    font-size: 12px;
  }

  .faq-button:hover,
  .faq-button:focus-visible {
    background: #550000;
  }

  .course-grid {
    margin: 25px 10px 0;
    gap: 20px;
  }

  .course-grid img {
    border-radius: 15px;
  }

  .coming-soon {
    font-size: 18px;
    margin: 8px 0 10px;
  }

  .news {
    padding-top: 15px;
  }

  .punyabhoomi {
    padding-top: 30px;
    padding-bottom: 25px;
  }

  .punyabhoomi .button {
    margin-top: 22px;
  }

  .dharma h2,
  .crorepati h2 {
    font-size: 18px;
    line-height: 1.4;
  }

  .square-carousel .carousel-window {
    margin: 0 30px;
  }

  .banner-carousel .carousel-window {
    margin: 0 10px;
  }

  .carousel-dots {
    padding-top: 22px;
    min-height: 40px;
  }

  .banner-carousel .carousel-arrow {
    opacity: .3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 25px;
    font-size: 12px;
  }

  .footer-brand .logo {
    max-width: 335px;
    margin: auto;
  }

  .footer-tagline {
    font-size: 13px;
    margin-top: 30px;
    margin-bottom: 45px;
    line-height: 2;
  }

  .footer-brand .button {
    font-size: 12px;
  }

  .footer-column h2 {
    margin-bottom: 35px;
    font-size: 24px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-contact {
    padding-bottom: 15px;
  }

  .copyright {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-pop,
  .announcement-text {
    animation: none;
  }

  .announcement-text {
    width: auto;
    padding-left: 0;
    white-space: normal;
  }
.carousel-track {
    transition: none;
  }
}

/* =========================================
   GURU MISSION — PAGE-SPECIFIC STYLES
   ========================================= */

.gm-main {
  background: #fffadf;
  color: #000;
  font-family: "Montserrat", sans-serif;
}

/* Override homepage heading and paragraph defaults
   only inside this page's main content. */

.gm-main h1,
.gm-main h2,
.gm-main p {
  margin: 0;
}

.gm-title-bar {
  padding: 10px;
  background: #550000;
  text-align: center;
}

.gm-title-bar h1 {
  color: #fff;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.gm-hero {
  padding: 10px;
}

.gm-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 0;
}

.gm-question-bar {
  padding: 10px;
  background: #550000;
  text-align: center;
}

.gm-question-bar h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.gm-introduction {
  padding: 10px;
}

.gm-introduction h2 {
  color: #550000;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.857142857;
  text-align: center;
}

.gm-introduction p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.857142857;
  text-align: left;
}

.gm-section {
  padding: 10px;
}

.gm-card {
  padding: 0 10px;
  border: 2px solid #000;
  border-radius: 22px;
  background: #fff4b8;
  box-shadow: 0 0 10px 1px rgb(0 0 0 / 50%);
}

.gm-card-inner {
  max-width: 1140px;
  margin: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gm-card h2 {
  color: #550000;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.857142857;
  text-align: left;
}

.gm-card p {
  margin-top: -12px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.857142857;
  text-align: left;
}

.gm-card strong {
  font-weight: 700;
}

.gm-principles,
.gm-resolution {
  padding: 10px;
}

.gm-principles h2,
.gm-resolution h2 {
  color: #550000;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.857142857;
  text-align: center;
}

.gm-principles p {
  color: #ff6500;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.857142857;
  text-align: center;
}

.gm-resolution p {
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.857142857;
  text-align: left;
}

@media (max-width: 767px) {
  .gm-title-bar h1 {
    font-size: 25px;
    line-height: 35px;
  }

  .gm-question-bar h2 {
    font-size: 13px;
    line-height: 1.3;
  }

  .gm-introduction h2 {
    font-size: 18px;
    line-height: 25px;
  }

  .gm-introduction p {
    font-size: 15px;
    line-height: 20px;
  }

  .gm-card h2 {
    font-size: 16px;
    line-height: 1.857142857;
  }

  .gm-card p {
    font-size: 14px;
    line-height: 26px;
  }

  .gm-principles h2,
  .gm-resolution h2 {
    font-size: 20px;
  }

  .gm-principles p,
  .gm-resolution p {
    font-size: 16px;
    line-height: 1.857142857;
  }
}

/* =========================================
   DIGITAL GURUKUL — PAGE-SPECIFIC STYLES
   ========================================= */

.dg-main {
  background: #fffadf;
  color: #000;
  font-family: "Montserrat", sans-serif;
}

/* Desktop reference has a 20px gap below the header. */
.digital-gurukul-page .site-header {
  margin-bottom: 20px;
}

.dg-plan {
  padding: 10px;
}

.dg-plan-container {
  padding: 0 10px;
}

.dg-plan-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: auto;
  padding: 10px 0;
}

.dg-plan-image {
  min-width: 0;
  padding: 10px;
}

.dg-plan-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 25px;
}

.dg-plan-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  padding: 10px;
}

.dg-plan-copy h1,
.dg-plan-copy h2 {
  margin: 0;
  color: #550000;
  font-size: 25px;
  font-weight: 700;
  line-height: 32.5px;
  text-align: left;
}

.dg-plan-copy p {
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.857142857;
  text-align: left;
}

.dg-register {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;

  width: 300px;
  max-width: 100%;
  min-height: 45px;

  padding: 10px 24px;
  border-radius: 25px;

  background: #550000;
  color: #fff;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.dg-register:hover,
.dg-register:focus-visible {
  background: #740000;
}

.dg-separator {
  padding: 25px 10px;
}

.dg-separator hr {
  margin: 0;
  border: 0;
  border-top: 3px solid #550000;
}

@media (max-width: 767px) {
  .digital-gurukul-page .site-header {
    margin-bottom: 0;
  }

  .dg-plan-inner {
    grid-template-columns: 1fr;
  }

  /* The reference keeps these headings at 25px on mobile. */
  .dg-plan-copy h1,
  .dg-plan-copy h2 {
    font-size: 25px;
    line-height: 32.5px;
  }

  .dg-plan-copy p {
    font-size: 13.68px;
    line-height: 1.857142857;
  }

  .dg-register {
    font-size: 13.68px;
  }
}

/* Proper footer contact icons */

.site-footer .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.site-footer .contact-row > i {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  margin: 0;
  padding-top: 3px;
  color: #550000;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.site-footer .contact-row > a,
.site-footer .contact-row > address {
  flex: 1;
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.site-footer .contact-row > a {
  text-decoration: none;
}

.site-footer .contact-row > a:hover {
  color: #550000;
}

.site-footer .address-row > i {
  font-size: 30px;
}

.site-footer .address-row address {
  font-style: normal;
}

/* Large green WhatsApp icon below Donate Now */

.site-footer .whatsapp-link {
  display: block;
  width: 48px;
  margin: 40px auto 10px;
  color: #25d366;
  text-decoration: none;
}

.site-footer .whatsapp-link > i {
  display: block;
  font-size: 48px;
  line-height: 1;
  text-align: center;
}

.site-footer .footer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* HEADER — shared across all pages */

.site-header {
  position: relative;
  z-index: 50;
  background: #fffadf;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header a {
  text-decoration: none;
}

.site-header button,
.site-header input {
  font: inherit;
}

.site-header [hidden] {
  display: none !important;
}

.site-header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* LANGUAGE STRIP */

.site-header .language-strip {
  position: relative;
  z-index: 60;
  background: #fff;
  color: #b44141;
}

.site-header .language-inner {
  max-width: 1140px;
  min-height: 29px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.site-header .language-control {
  position: relative;
}

.site-header .language-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-header .language-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-shadow: 0 5px 22px #0003;
}

.site-header .language-popup input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.site-header .language-options {
  max-height: 350px;
  margin-top: 8px;
  overflow-y: auto;
}

.site-header .language-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.site-header .language-option:hover,
.site-header .language-option:focus-visible {
  background: #fff3d5;
}

/* LOGO AND NAVIGATION */

.site-header .header-main {
  min-height: 184px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-header .header-brand {
  display: block;
  flex: 0 1 440px;
}

.site-header .header-brand .logo {
  display: block;
  width: 440px;
  max-width: 100%;
  height: auto;
}

.site-header .nav-list,
.site-header .submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav-list {
  display: flex;
  align-items: center;
}

.site-header .nav-list > li {
  position: relative;
}

.site-header .nav-link {
  display: block;
  padding: 13px 19px;
  color: #550000;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

/* Same hover treatment for all top-level items. */

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active {
  background: #550000;
  color: #fff;
}

/* Digital Gurukul link and arrow form one visual item. */

.site-header .nav-parent {
  display: flex;
  align-items: stretch;
  transition: background-color .2s ease;
}

.site-header .nav-parent .digital-link {
  padding-right: 7px;
  background: transparent;
}

.site-header .submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #550000;
  font-size: 14px;
  cursor: pointer;
}

.site-header .has-submenu:hover .nav-parent,
.site-header .has-submenu.open .nav-parent,
.site-header .has-submenu.active-parent .nav-parent {
  background: #550000;
}

.site-header .has-submenu:hover .digital-link,
.site-header .has-submenu:hover .submenu-toggle,
.site-header .has-submenu.open .digital-link,
.site-header .has-submenu.open .submenu-toggle,
.site-header .has-submenu.active-parent .digital-link,
.site-header .has-submenu.active-parent .submenu-toggle {
  color: #fff;
}

/* Dropdown sits directly below its parent, with no hover gap. */

.site-header .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  width: 280px;
  background: #fffadf;
}

.site-header .submenu a {
  display: block;
  padding: 16px 20px;
  color: #550000;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.site-header .submenu a:hover,
.site-header .submenu a:focus-visible,
.site-header .submenu a.active {
  background: #550000;
  color: #fff;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1024px) {
  .site-header .header-main {
    padding-inline: 15px;
    gap: 15px;
  }

  .site-header .header-brand {
    flex-basis: 330px;
  }

  .site-header .nav-link {
    padding-inline: 10px;
    font-size: 12px;
  }
}

/* MOBILE — retain the reference's horizontal navigation. */

@media (max-width: 767px) {
  .site-header .language-inner {
    min-height: 30px;
    padding: 3px 15px;
    font-size: 12px;
  }

  .site-header .language-popup {
    width: min(300px, calc(100vw - 30px));
  }

  .site-header .header-main {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .site-header .header-brand {
    padding: 12px 15px;
  }

  .site-header .header-brand .logo {
    width: 285px;
    max-width: 90%;
  }

  .site-header .main-nav {
    padding: 0 12px;
    background: #ffeb80;
  }

  .site-header .nav-list {
    min-height: 46px;
    justify-content: center;
  }

  .site-header .nav-link {
    padding: 15px 4px;
    font-size: 9px;
  }

  .site-header .nav-link.active {
    background: transparent;
    color: #550000;
  }

  .site-header .nav-parent .digital-link {
    padding-right: 2px;
  }

  .site-header .submenu-toggle {
    padding: 0 3px;
    font-size: 10px;
  }

  .site-header .has-submenu.active-parent:not(.open) .nav-parent {
    background: transparent;
  }

  .site-header .has-submenu.active-parent:not(.open) .digital-link,
  .site-header .has-submenu.active-parent:not(.open) .submenu-toggle {
    color: #550000;
  }

  .site-header .submenu {
    right: -75px;
    left: auto;
    width: min(280px, calc(100vw - 30px));
  }

  .site-header .submenu a {
    padding: 16px 12px;
    font-size: 12px;
    text-align: center;
  }
}

.guruji-ai-button {
  display: inline-block;
  padding: 13px 24px;
  background: #550000;
  color: #fffadf;
  border: 2px solid #550000;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.guruji-ai-button:hover,
.guruji-ai-button:focus-visible {
  background: #fffadf;
  color: #550000;
  border-color: #550000;
  text-decoration: none;
  outline: none;
}