/* ============================================================
   Dr. Nikhil Yadav – Main Stylesheet
   Palette: Deep Saffron #E07B39 | Navy #1B2A4A | Cream #FDF8F2 | Gold #C8942A
   Typography: Playfair Display (headings) + Inter (body)
   ============================================================ */

:root {
  --saffron:   #E07B39;
  --saffron-dk:#C96B2A;
  --navy:      #1B2A4A;
  --navy-lt:   #263657;
  --cream:     #FDF8F2;
  --gold:      #C8942A;
  --text:      #2D2D2D;
  --muted:     #6B7280;
  --border:    #E5E0D8;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(27,42,74,.10);
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; color: var(--navy); }

a { color: var(--saffron); text-decoration: none; }
a:hover { color: var(--saffron-dk); }

img { max-width: 100%; height: auto; }

/* ── Top Bar ──────────────────────────────────────────── */
.topbar { background: var(--navy); font-size: .82rem; }
.topbar-social { color: rgba(255,255,255,.7); transition: color .2s; }
.topbar-social:hover { color: var(--saffron); }
.topbar-link { color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-link:hover { color: #fff; }
.btn-topbar {
  background: var(--saffron);
  color: #fff !important;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.btn-topbar:hover { background: var(--saffron-dk); }

/* ── Navbar ───────────────────────────────────────────── */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: .6rem 0;
  z-index: 1050;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}
.brand-sub {
  font-size: .7rem;
  color: var(--saffron);
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--navy) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .4rem .7rem !important;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active { background: var(--cream); color: var(--saffron) !important; }
.btn-nav-cta {
  background: var(--saffron) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: .45rem 1.1rem !important;
}
.btn-nav-cta:hover { background: var(--saffron-dk) !important; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 60%, #2d4070 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-pattern.svg') center/cover no-repeat;
  opacity: .05;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(224,123,57,.18);
  color: var(--saffron);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  border: 1px solid rgba(224,123,57,.3);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .8rem;
}
.hero-title span { color: var(--saffron); }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.hero-badge {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary-hero {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-primary-hero:hover { background: var(--saffron-dk); color: #fff; transform: translateY(-1px); }
.btn-outline-hero {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  padding: .73rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.btn-outline-hero:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.hero-photo-wrap {
  position: relative;
  text-align: center;
}
.hero-photo {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-photo-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  padding: .5rem 1.4rem;
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(200,148,42,.4);
}

/* ── Section ──────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }

.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
  display: block;
  margin-bottom: .4rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--saffron);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* ── Cards ────────────────────────────────────────────── */
.card-ny {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  height: 100%;
}
.card-ny:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,42,74,.15); }
.card-ny .card-img { width: 100%; height: 220px; object-fit: cover; }
.card-ny .card-body { padding: 1.4rem; }
.card-ny .card-title { font-size: 1.1rem; margin-bottom: .5rem; }
.card-ny .card-text { font-size: .9rem; color: var(--muted); }

/* Book Card */
.book-card { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s; }
.book-card:hover { transform: translateY(-3px); }
.book-cover { width: 110px; min-width: 110px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.book-lang-badge { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; }

/* ── Counter ──────────────────────────────────────────── */
.counter-section { background: var(--navy); }
.counter-card { text-align: center; padding: 2rem; }
.counter-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--saffron); }
.counter-label { color: rgba(255,255,255,.75); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-saffron {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: .6rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-saffron:hover { background: var(--saffron-dk); color: #fff; transform: translateY(-1px); }
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: .58rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
  transition: all .2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── Form ─────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(224,123,57,.15);
  outline: none;
}
.form-label { font-weight: 500; font-size: .9rem; margin-bottom: .3rem; }

/* ── Gallery Grid ─────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(27,42,74,.5); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: #fff; }

/* ── News ─────────────────────────────────────────────── */
.news-meta { font-size: .8rem; color: var(--muted); }
.news-category-badge {
  background: rgba(224,123,57,.12);
  color: var(--saffron);
  font-size: .74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Campaign card ────────────────────────────────────── */
.campaign-card { border-left: 4px solid var(--saffron); }
.campaign-status {
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-active { background: #d1fae5; color: #065f46; }
.status-ended  { background: #f3f4f6; color: #6b7280; }

/* ── Page Banner ──────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(224,123,57,.1);
}
.page-banner h1 { color: #fff; font-size: 2.2rem; margin: 0; }
.breadcrumb-item { font-size: .85rem; }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: var(--saffron); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Auth Pages ───────────────────────────────────────── */
.auth-card {
  max-width: 460px;
  margin: 4rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(27,42,74,.12);
  overflow: hidden;
}
.auth-header { background: var(--navy); padding: 2rem; text-align: center; }
.auth-header h2 { color: #fff; margin: 0; }
.auth-header p { color: rgba(255,255,255,.7); margin: .4rem 0 0; font-size: .9rem; }
.auth-body { padding: 2rem; }

/* ── Alert ────────────────────────────────────────────── */
.alert { border-radius: 8px; border: none; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--navy); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; margin-bottom: .2rem; }
.footer-tagline { color: var(--saffron); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-desc { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.6; }
.footer-yt-btn { color: #fff; background: #ff0000; padding: .4rem 1rem; border-radius: 6px; font-size: .85rem; font-weight: 600; transition: opacity .2s; }
.footer-yt-btn:hover { color: #fff; opacity: .85; }
.footer-heading { color: rgba(255,255,255,.9); font-family: 'Inter', sans-serif; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--saffron); }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: .7rem; display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact-list i { color: var(--saffron); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-bottom a { color: var(--saffron); }

/* ── Testimonial / Quote ──────────────────────────────── */
.quote-block {
  background: var(--cream);
  border-left: 4px solid var(--saffron);
  padding: 1.4rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ── Pagination ───────────────────────────────────────── */
.pagination .page-link { color: var(--navy); border-color: var(--border); border-radius: 6px !important; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.pagination .page-link:hover { background: var(--cream); color: var(--saffron); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .hero-photo { width: 240px; height: 300px; }
  .hero-photo-wrap { margin-top: 2rem; }
  .section { padding: 3rem 0; }
  .counter-number { font-size: 2.2rem; }
  .book-card { flex-direction: column; }
  .book-cover { width: 100%; max-width: 160px; }
}

/* ── Back to Top ──────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(224,123,57,.4);
  z-index: 999;
  transition: opacity .2s;
}
#backToTop:hover { background: var(--saffron-dk); }

/* ── Admin overrides (when loaded inside admin) ───────── */
body.admin-body { background: #f4f6fb; }
