/* Telugu font — unicode-range auto-applies it to any Telugu characters site-wide */
    @font-face {
      font-family: 'SreeKrushnadevaraya';
      src: url('fonts/sreekrushnadevaraya-regular-webfont.woff2') format('woff2'),
           url('fonts/sreekrushnadevaraya-regular-webfont.woff') format('woff'),
           url('fonts/SreeKrushnadevaraya-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
      unicode-range: U+0C00-U+0C7F;
    }

@font-face {font-family: 'Mallanna'; src: url('fonts/Mallanna.ttf'), format('truetype'), url('fonts/Mallanna.woff'), format('woff'), url('fonts/Mallanna.woff2'), format('woff2');}
@font-face {font-family: 'Suranna'; src: url('fonts/Suranna.ttf'), format('truetype'), url('fonts/Suranna.woff'), format('woff'), url('fonts/Suranna.woff2'), format('woff2');}
@font-face {font-family: 'Sreekrushnadevaraya'; src: url('fonts/Sreekrushnadevaraya.ttf'), format('truetype'), url('fonts/Sreekrushnadevaraya.woff'), format('woff'), url('fonts/Suranna.woff2'), format('woff2');}

    :root {
      /* ── Color palette (overridden by sitelook_loader.php) ── */
      --maroon:     #7b1113;
      --gold:       #d8b36a;
      --gold-soft:  #ead7a8;
      --cream:      #fffaf0;
      --paper:      #fbf6e8;
      --ink:        #222;
      --ink-soft:   #555;
      --green:      #0d7a45;
      --blue:       #174a8b;
      --footer-bg:  #2d1717;
      --footer-text:#fff;
      --footer-link:#ffe0a3;

      /* ── Layout ── */
      --page-max-w: 1100px;
      --home-max-w: 1120px;

      /* ── Cards & borders ── */
      --radius-card:   12px;
      --radius-btn:    999px;
      --radius-note:   0 8px 8px 0;
      --radius-input:  6px;
      --card-padding:  1.2rem;
      --card-accent-w: 3px;
      --card-border-w: 1px;

      /* ── Motion ── */
      --transition-speed:   0.2s;
      --card-hover-lift:    -4px;
      --card-hover-shadow:  0 8px 24px rgba(123,17,19,.1);
      --nav-underline-off:  5px;

      /* ── Gradients ── */
      --gradient-hero:   radial-gradient(circle at top left, rgba(216,179,106,.35), transparent 38%),
                         linear-gradient(135deg, #fffaf0, #f7ead1);
      --gradient-banner: linear-gradient(135deg, #fffaf0 0%, #fbf6e8 100%);

      /* ── Calendar ── */
      --cal-cell-bg:     #fff;
      --cal-header-bg:   #ccb4cd;
      --cal-table-margin:0.75rem;
      --cal-table-min-w: 196px;
      --cal-pulse-color: #7b1113;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      color: var(--ink);
      background: #fff;
      line-height: 1.65;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Telugu glyphs need a taller line-height */
    :lang(te), .telugu {
      font-family: 'SreeKrushnadevaraya', serif;
      line-height: 2;
      font-size: 1.05em;
    }

    a { color: var(--maroon); }

    .site-header {
      padding: 1rem;
      border-bottom: 1px solid var(--gold-soft);
      background: #fff;
      position: sticky;
      top: 0;
      z-index: 20;
    }

    .site-header-inner {
      max-width: var(--home-max-w);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-weight: 800;
      color: var(--maroon);
      letter-spacing: 0.02em;
      text-decoration: none;
    }

    .brand-logo {
      height: 44px;
      width: auto;
      display: block;
    }

    .brand-name {
      line-height: 0.8rem;
    }

    @media (max-width: 420px) {
      .brand-name { display: none; }
    }

	.brand-text { display: flex; flex-direction: column; line-height: 0.8rem; }
	.brand-subtitle { font-size: 0.75em; font-weight: normal; color: var(--maroon); opacity: 0.7; letter-spacing: normal; line-height:0.7rem;}


    .footer-logo {
      height: 64px;
      width: auto;
      display: block;
      margin: 0 auto 1rem;
      opacity: .85;
    }

    .nav a {
      margin-left: 1rem;
      text-decoration: none;
      font-weight: 600;
    }

    .nav-te-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      margin-left: 1rem;
      background: var(--maroon);
      color: #fff;
      border-radius: 50%;
      font-family: 'SreeKrushnadevaraya', serif;
      font-size: 1.05rem;
      line-height: 1;
      text-decoration: none;
      flex-shrink: 0;
      transition: background .15s, color .15s;
    }
    .nav-te-icon:hover,
    .nav-te-icon--active {
      background: var(--gold);
      color: var(--maroon);
    }

    .home-section {
      max-width: var(--home-max-w);
      margin: 0 auto;
      padding: 3rem 1rem;
    }

    .home-section h1,
    .home-section h2,
    .home-section h3 {
      color: var(--maroon);
      line-height: 1.25;
    }

    .hero {
      max-width: none;
      background: var(--gradient-hero);
      border-bottom: 1px solid var(--gold-soft);
    }

    .hero-inner {
      max-width: var(--home-max-w);
      margin: 0 auto;
      padding: 3rem 1rem;
      text-align: center;
    }

    .hero h1 {
      font-size: clamp(2rem, 5vw, 4.2rem);
      margin: 0.4rem 0;
    }

    .hero h2 {
      font-size: clamp(1.2rem, 2.6vw, 2rem);
      color: #3a2b18;
      font-weight: 700;
    }

    .eyebrow {
      font-weight: 800;
      color: var(--green);
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .hero-actions,
    .benefit-grid,
    .card-list,
    .stat-grid,
    .level-grid,
    .grid {
      display: grid;
      gap: 1rem;
    }

    .hero-actions {
      grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
      justify-content: center;
      margin-top: 1.5rem;
    }

    .btn {
      display: inline-block;
      padding: .8rem 1.2rem;
      border-radius: var(--radius-btn);
      text-decoration: none;
      font-weight: 800;
      border: 2px solid var(--maroon);
    }

    .btn.primary {
      background: var(--maroon);
      color: #fff;
    }

    .btn.secondary {
      background: #fff;
      color: var(--maroon);
    }

    .card-list,
    .level-grid,
    .stat-grid,
    .benefit-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .card,
    .level-card,
    .testimonial-card,
    .poem-card,
    .stat-card,
    .benefit,
    details {
      border: var(--card-border-w) solid var(--gold-soft);
      background: var(--gradient-card, var(--cream));
      border-radius: var(--radius-card);
      padding: 1.1rem;
      box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }

	.blessing-image {
	  position: relative;
	  background: url('/images/cultural/california_students_7218.webp') center/cover no-repeat;
	  padding: 2em; border-radius: 15px; overflow: hidden;
	}
	.blessing-image::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.7); z-index: 0; }
	.blessing-image > * { position: relative; z-index: 1; }


	.graduation-image {
	  position: relative;
	  background: url('/images/graduation/graduation2025-26_L5.webp') center/cover no-repeat;
	  padding: 2em; border-radius: 15px; overflow: hidden;
	}
	.graduation-image::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.7); z-index: 0; }
	.graduation-image > * { position: relative; z-index: 1; }

	.classroom_exp1-image {
	  position: relative;
	  background: url('/images/classroom/students_online_aggipulla.webp') center/cover no-repeat;
	  padding: 2em; border-radius: 15px; overflow: hidden;
	}
	.classroom_exp1-image::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.7); z-index: 0; }
	.classroom_exp1-image > * { position: relative; z-index: 1; }

	.classroom_exp2-image {
	  position: relative;
	  background: url('/images/classroom/students_online_utensils.webp') center/cover no-repeat;
	  padding: 2em; border-radius: 15px; overflow: hidden;
	}
	.classroom_exp2-image::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.7); z-index: 0; }
	.classroom_exp2-image > * { position: relative; z-index: 1; }

    .check {
      display: inline-flex;
      width: 2rem;
      height: 2rem;
      align-items: center;
      justify-content: center;
      background: var(--green);
      color: white;
      border-radius: 50%;
      font-weight: 800;
    }

    .closing {
      margin-top: 1.5rem;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--maroon);
      text-align: center;
    }

    .levels h2 span {
      color: #555;
      font-size: .75em;
    }

    .level-card h3 {
      margin-top: 0;
      border-bottom: 2px solid var(--gold);
      padding-bottom: .3rem;
    }

    .level-card.cbe {
      grid-column: 1 / -1;
      background: #f8f3e4;
    }

    .telugu {
      color: #4a2a00;
      font-weight: 600;
    }

    .two-col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
      align-items: start;
    }

    blockquote {
      margin: 2rem 0 0;
      padding: 1.25rem;
      border-left: 6px solid var(--gold);
      background: #fffaf0;
      font-size: 1.15rem;
    }

    blockquote cite {
      display: block;
      margin-top: 1rem;
      font-size: .95rem;
      color: #555;
    }

    .stats {
      background: #fff;
    }

    .stat-card {
      text-align: center;
      background: var(--maroon);
      color: #fff;
    }

    .stat-card strong {
      display: block;
      font-size: clamp(2.5rem, 8vw, 5rem);
      line-height: 1;
      color: var(--gold);
    }

    .below-stats {
      margin-top: 2rem;
    }

    .stars {
      color: #c9971e;
      font-size: 1.4rem;
      letter-spacing: .15em;
    }

    .author {
      font-weight: 800;
      color: var(--maroon);
    }

    .benefit {
      font-weight: 800;
      color: var(--green);
      font-size: 1.1rem;
    }

    details {
      margin-bottom: .8rem;
      background: #fff;
    }

    summary {
      cursor: pointer;
      font-weight: 800;
      color: var(--maroon);
    }

    .site-footer {
      margin-top: auto;
      padding: 2rem 1rem;
      background: var(--gradient-footer, var(--footer-bg));
      color: var(--footer-text);
      text-align: center;
    }

    .site-footer a {
      color: var(--footer-link);
    }

    /* ─── Mobile nav toggle ─────────────────────────────────── */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      margin-left: auto;
    }
    .nav-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--maroon);
      border-radius: 2px;
      transition: transform .25s, opacity .25s;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    @media (max-width: 640px) {
      .nav-toggle { display: flex; }
      .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        border-top: 1px solid var(--gold-soft);
        margin-top: 0.5rem;
      }
      .nav.open { display: flex; }
      .nav a { margin-left: 0; padding: 0.5rem 0; }
    }

    /* Active nav link */
    .nav a[aria-current="page"] {
      color: var(--maroon);
      text-decoration: underline;
      text-decoration-color: var(--gold);
      text-underline-offset: var(--nav-underline-off);
      text-decoration-thickness: 2px;
    }

    /* ─── Page title banner (subpages) ───────────────────────── */
    .bv-page-banner {
      background: var(--gradient-banner);
      border-bottom: 3px solid var(--gold);
      padding: var(--banner-pad, 2.5rem 1rem 2rem);
      margin-bottom: 0;
    }
    .bv-page-banner-inner {
      max-width: var(--page-max-w);
      margin: 0 auto;
    }
    .bv-page-banner h1 {
      margin: 0;
      font-size: var(--h1-banner, clamp(1.8rem, 4vw, 2.8rem));
      color: var(--maroon);
      line-height: 1.2;
      font-weight: 800;
    }
    .bv-page-banner p {
      margin: 0.5rem 0 0;
      color: #555;
      font-size: 1.05rem;
    }

    /* ─── Subpage shared layout (.bv-about-page) ─────────────── */
    .bv-about-page {
      max-width: var(--page-max-w);
      margin: 0 auto;
      padding: 2.5rem 1rem 3rem;
      line-height: 1.7;
    }
    .bv-about-page h1,
    .bv-about-page h2,
    .bv-about-page h3 {
      line-height: 1.25;
      margin-top: 2rem;
      margin-bottom: 0.65rem;
      color: var(--maroon);
    }
    .bv-about-page h1 {
      font-size: var(--h1-section, clamp(1.35rem, 2.5vw, 1.75rem));
      border-bottom: 2px solid var(--gold);
      padding-bottom: 0.4rem;
    }
    .bv-about-page h2 {
      font-size: 1.2rem;
      padding-left: 0.8rem;
      border-left: 4px solid var(--gold);
    }
    .bv-about-page h3 { font-size: 1.05rem; color: #444; font-weight: 700; }
    .bv-about-page .section { margin-bottom: 2.5rem; }
    .bv-about-page ul { margin-top: 0.5rem; line-height: 1.8; }
    .bv-about-page a { color: var(--maroon); }
    .bv-about-page a:hover { text-decoration-color: var(--gold); }

    .bv-about-page .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    .bv-about-page .card {
      border: var(--card-border-w) solid var(--gold-soft);
      border-top: var(--card-accent-w) solid var(--gold);
      border-radius: 0 0 var(--radius-card) var(--radius-card);
      padding: var(--card-padding);
      background: var(--gradient-card, var(--cream));
      box-shadow: 0 2px 8px rgba(0,0,0,.06);
      transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    }
    .bv-about-page .card:hover {
      transform: translateY(var(--card-hover-lift));
      box-shadow: var(--card-hover-shadow);
    }
    .bv-about-page .card h2 {
      border-left: none;
      padding-left: 0;
      margin-top: 0;
    }
    .bv-about-page .note {
      background: var(--paper);
      border-left: 4px solid var(--gold);
      padding: var(--note-pad, 0.85rem 1.1rem);
      margin: 1rem 0;
      border-radius: var(--radius-note);
    }
    .bv-about-page .team-list {
      columns: 2 260px;
      column-gap: 2rem;
      padding-left: 1.2rem;
      line-height: 2;
    }

    /* ─── Donate page ────────────────────────────────────────── */
    .bv-about-page .donation-highlight {
      background: var(--maroon);
      color: #fff;
      border-radius: var(--radius-card);
      padding: 1.5rem;
      margin: 1.25rem 0;
    }
    .bv-about-page .donation-highlight h2 {
      color: var(--gold);
      margin-top: 0;
      border-left: none;
      padding-left: 0;
      font-size: 1.15rem;
    }
    .bv-about-page .donation-email {
      display: inline-block;
      margin-top: 0.5rem;
      padding: 0.5rem 1rem;
      background: rgba(255,255,255,.12);
      color: #fff;
      border: 1px solid rgba(255,255,255,.3);
      border-radius: 6px;
      font-weight: 700;
      font-size: 1rem;
      word-break: break-word;
      letter-spacing: .01em;
    }
    .bv-about-page address {
      font-style: normal;
      background: #fff;
      border: 1px solid var(--gold-soft);
      border-left: 4px solid var(--gold);
      border-radius: 0 8px 8px 0;
      padding: 1rem 1.25rem;
      line-height: 1.9;
    }
    .bv-about-page .qr-placeholder {
      border: 2px dashed var(--gold);
      border-radius: 10px;
      padding: 1rem;
      text-align: center;
      background: #fff;
      margin-top: 0.75rem;
    }

    /* ─── Testimonials page ──────────────────────────────────── */
    .bv-about-page article.card {
      position: relative;
      padding-top: 2.75rem;
    }
    .bv-about-page article.card::before {
      content: '\201C';
      position: absolute;
      top: 0.4rem;
      left: 1rem;
      font-size: 4rem;
      line-height: 1;
      color: var(--gold);
      font-family: Georgia, 'Times New Roman', serif;
      opacity: .8;
    }
    .bv-about-page .quote-title {
      margin-top: 0;
      color: var(--maroon);
      font-size: 1.05rem;
      font-weight: 800;
      border-left: none;
      padding-left: 0;
    }
    .bv-about-page blockquote {
      margin: 0.5rem 0 0;
      padding: 0;
      border: none;
      background: none;
      font-style: italic;
      font-size: .975rem;
      color: #333;
      line-height: 1.7;
    }
    .bv-about-page .author {
      margin-top: 1rem;
      font-weight: 800;
      color: var(--maroon);
      font-size: .85rem;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .bv-about-page .role {
      color: #888;
      font-weight: 500;
      text-transform: none;
      letter-spacing: 0;
    }
    .bv-about-page .cta {
      margin-top: 2rem;
      background: var(--paper);
      border-left: 4px solid var(--gold);
      padding: 1rem 1.25rem;
      border-radius: 0 8px 8px 0;
      font-size: 1rem;
    }

    /* ─── Privacy & Terms pages ──────────────────────────────── */
    .privacy-policy-page,
    .bv-terms-page {
      max-width: 800px;
      margin: 0 auto;
      padding: 2.5rem 1rem 3rem;
      line-height: 1.85;
    }
    .privacy-policy-page h2,
    .bv-terms-page h2 {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--maroon);
      margin-top: 2rem;
      padding-left: 0.8rem;
      border-left: 4px solid var(--gold);
    }
    .privacy-policy-page ul,
    .bv-terms-page ul {
      line-height: 1.9;
    }
    .privacy-policy-page a,
    .bv-terms-page a {
      color: var(--maroon);
    }

    /* ─── Calendar page ──────────────────────────────────────── */
    .bv-calendar-page {
      padding: 1rem 1rem 2rem;
      overflow-x: auto;
    }

    /* greg_cal: the monthly table class used by show_monthly_calendar().
       These styles are normally supplied by star_style.css in the portal;
       we define them here so the public calendar page works standalone. */
    table.greg_cal {
      border: 1px solid #aaa;
      border-collapse: collapse;
      background-color: var(--cal-cell-bg);
      margin: var(--cal-table-margin);
      padding: 0;
      min-width: var(--cal-table-min-w);
    }
    table.greg_cal td {
      font-family: verdana, arial, helvetica, sans-serif;
      font-size: 12px;
      padding: 6px 4px 4px;
      margin: 0;
      border: 1px solid #ccc;
      min-width: 24px;
      text-align: center;
    }
    table.greg_cal th {
      padding: 4px 4px;
      background-color: var(--cal-header-bg);
      font-family: verdana, arial, helvetica, sans-serif;
      font-size: 12px;
      text-align: center;
      border: 1px solid #aaa;
    }
    table.greg_cal a { text-decoration: none; }
    .ts4 th, .ts4 td { padding-left: 4px; padding-top: 4px; padding-right: 4px; }
