/* =========================================================
   MAHADEV CHARITABLE FOUNDATION — GLOBAL STYLESHEET
   Design tokens
   Ink       #10203E  (deep temple-blue, from crest)
   Gold      #C98A2E  (crest gold arc)
   Saffron   #E07A3F  (Seva pillar)
   Leaf      #4C7A3D  (Shiksha pillar)
   Rustcross #D9622B  (Swasthya pillar)
   Pine      #24594A  (Paryavaran pillar)
   Cream     #FBF7EF  (page background)
   Paper     #FFFFFF
   ========================================================= */

:root {
  --ink: #10203e;
  --ink-soft: #24345a;
  --gold: #c98a2e;
  --gold-light: #e7b866;
  --saffron: #e07a3f;
  --leaf: #4c7a3d;
  --rust: #d9622b;
  --pine: #24594a;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --line: rgba(16, 32, 62, 0.12);
  --text-muted: #5b6478;

  --font-display: "Marcellus", "Noto Serif Devanagari", serif;
  --font-body: "Work Sans", "Noto Sans Devanagari", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(16, 32, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* =========================================================
   ARC DIVIDER — signature motif, echoes the crest's ring
   ========================================================= */
.arc-divider {
  position: relative;
  height: 46px;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
}

.arc-divider svg {
  width: 100%;
  height: 100%;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.brand-title {
    font-family: "Cinzel", serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 4px;
    color: #10264b;
    margin: 0;
}

.brand-subtitle {
    font-family: "Cinzel", serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    color: #c98620;
    margin-top: 8px;
    white-space: nowrap;
}

/* Language Selector *
.language-selector {
    display: flex;
    align-items: center;
}

#google_translate_element {
    display: flex;
    align-items: center;
}

#google_translate_element select {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

#google_translate_element select option {
    color: #222;
    background: #fff;
}

/* Hide Google branding *
.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget select {
    font-size: 14px !important;
}

/* Hide top Google translate bar *
body {
    top: 0 !important;
}

.goog-te-banner-frame {
    display: none !important;
}*/

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-icon {
    color: #fff;
    font-size: 18px;
}

/* Google Translate container */
#google_translate_element {
    display: flex;
    align-items: center;
}

/* Google Translate dropdown */
#google_translate_element select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: rgb(201, 138, 46);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;

    padding: 8px 35px 8px 12px;

    font-size: 14px;
    font-family: Arial, sans-serif;

    cursor: pointer;
    outline: none;

    min-width: 145px;

    background-image:
        linear-gradient(45deg, transparent 50%, #fff 50%),
        linear-gradient(135deg, #fff 50%, transparent 50%);

    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

#google_translate_element select:hover {
    background-color: #10264b;
}

#google_translate_element select:focus {
    border-color: #fff;
}

/* Dropdown options */
#google_translate_element select option {
    background: #fff;
    color: #222;
}

/* Hide Google Translate branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
}

.goog-te-gadget span {
    display: none !important;
}

/* Google top translation bar */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {

    .language-selector {
        width: 100%;
        justify-content: flex-start;
    }

    #google_translate_element select {
        min-width: 130px;
        padding: 7px 30px 7px 10px;
        font-size: 13px;
    }

    .language-icon {
        font-size: 16px;
    }
}
/* ==========================================
   ICON BOX
   ========================================== */

.icon_box {
    display: flex;
    align-items: center;
    margin-left: auto;
}


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

.top_header_text {
    display: flex;
    align-items: center;

    font-family: "Cinzel", serif;
    font-size: 17px !important;
    font-weight: 600;
    letter-spacing: 1px;

    white-space: nowrap;
    margin-right: 10px;
}

.top_header_text i {
    font-size: 18px !important;
    margin-right: 10px !important;
    color: #c98620 !important;
}


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

@media (max-width: 992px) {

    .brand-title {
        font-size: 40px;
        letter-spacing: 3px;
    }

    .brand-subtitle {
        font-size: 16px;
        margin-top: 6px;
    }

    .top_header_text {
        font-size: 14px !important;
    }

    .top_header_text i {
        font-size: 16px !important;
        margin-right: 7px !important;
    }

}


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

@media (max-width: 768px) {

    .brand-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 13px;
        margin-top: 5px;
    }

.navbar-brand img
 {
  width: 25% !important;
}
    /* Hide top header text */
    .top_header_text {
        display: none !important;
    }

    .icon_box {
        margin-left: auto;
    }

}


/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {

    .brand-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 11px;
        margin-top: 4px;
    }

}


/* ==========================================
   VERY SMALL MOBILE
   ========================================== */

@media (max-width: 360px) {

    .brand-title {
        font-size: 23px;
        letter-spacing: 1px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

}
   .navbar {
    width: 100%;
    padding: 4px 40px;
    background: #fff;
    display: flex;
    justify-content: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    width: 10%;
   /* height: 55px;*/
    object-fit: contain;
}

.brand-text {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    color: #8b1e1e;
}

.brand-text span {
    font-size: 13px;
    color: #555;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

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

.brand img {
  width: 60px;
  /*height: 48px;*/
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: rgba(201, 138, 46, 0.12);
}

.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1a2c52;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-donate {
  display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
  margin-top: 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  display: block;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 34ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   RESPONSIVE — mobile nav
   ========================================================= */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
    position: relative;
    z-index: 210;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 62, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 190;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--paper);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 90px 20px 28px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    padding: 13px 16px;
  }

  .nav-cta {
    display: none;
  }

  .nav-donate {
    display: block;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .nav-donate .btn {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .nav-cta .btn-primary {
    padding: 9px 16px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}