/* ============================================================
   CRNIndia.com — Common Stylesheet
   styles.css — Shared across all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --navy:       #0C1B33;
  --navy-mid:   #112040;
  --navy-card:  rgba(255,255,255,0.045);
  --gold:       #C9A84C;
  --gold-light: #E2C06A;
  --gold-pale:  #f5e8c0;
  --white:      #ffffff;
  --text-muted: rgba(255,255,255,0.45);
  --cream:      #F8F5EF;
  --cream-dark: #EDEAE1;
  --text:       #1a2b45;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border-light: rgba(201,168,76,0.15);
  --shadow:     rgba(12,27,51,0.08);
  --green:      #4ade80;
  --red:        #f87171;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; line-height: 1.6; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  min-height: 68px;
  background: rgba(10,22,44,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  overflow: visible;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--gold); }
.logo-tag { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.58rem; color: rgba(255,255,255,0.3); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-top: -2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; overflow: visible; position: relative; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 0.52rem 1.4rem; border-radius: 4px; font-weight: 700 !important; font-size: 0.82rem; letter-spacing: 0.02em; transition: all 0.2s; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── DROPDOWN ── */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500; font-family: 'DM Sans', sans-serif; transition: color 0.2s; padding: 0; }
.dropdown-toggle:hover { color: var(--gold); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: rgba(10,20,40,0.99); border: 1px solid rgba(201,168,76,0.2); border-radius: 12px; padding: 1rem; min-width: 520px; opacity: 0; visibility: hidden; transition: opacity .15s; backdrop-filter: blur(16px); z-index: 300; box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.dropdown-menu::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; background: transparent; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown:hover { padding-bottom: 20px; margin-bottom: -20px; }
.dropdown-menu-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.dm-section { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(201,168,76,0.6); margin-bottom: 0.25rem; padding: 0 0.25rem; }
.dm-browse { display: flex; flex-direction: column; gap: 0.35rem; }
.dm-browse a { display: block; padding: 0.6rem 0.9rem; border-radius: 6px; text-decoration: none; font-size: 0.83rem; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.1); transition: all 0.2s; font-weight: 500; }
.dm-browse a:hover { background: rgba(201,168,76,0.1); color: var(--gold); border-color: rgba(201,168,76,0.25); }
.dm-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0.5rem 0; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.dm-grid a { display: block; padding: 0.45rem 0.75rem; border-radius: 5px; text-decoration: none; font-size: 0.8rem; color: rgba(255,255,255,0.55); transition: all 0.2s; }
.dm-grid a:hover { background: rgba(201,168,76,0.08); color: var(--gold); }

/* ── HAMBURGER ── */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; z-index: 201; }
.ham span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
@media(max-width:768px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(12,27,51,0.99); flex-direction: column; gap: 0; padding: 0.5rem 0 1.5rem; z-index: 199; border-bottom: 1px solid rgba(201,168,76,0.15); overflow-y: auto; max-height: calc(100vh - 68px); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links button, .dropdown-toggle { display: block; width: 100%; padding: 0.75rem 6%; font-size: 0.95rem; color: rgba(255,255,255,0.7); text-align: left; }
  .nav-links a:hover, .nav-links button:hover { color: var(--gold); background: rgba(201,168,76,0.06); }
  .dropdown-menu { display: none !important; position: static; transform: none; min-width: unset; border: none; border-radius: 0; background: rgba(255,255,255,0.03); box-shadow: none; padding: 0; margin: 0; }
  .dropdown-menu.mob-open { display: block !important; }
  .dm-grid { grid-template-columns: 1fr; }
  .ham { display: flex; }
  .nav-cta { display: none; }
}

/* ── FOOTER ── */
footer {
  background: #07101E;
  padding: 55px 6% 28px;
  color: rgba(255,255,255,0.32);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.f-logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--white); text-decoration: none; display: block; margin-bottom: 0.8rem; }
.f-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; max-width: 230px; }
.footer-col h5 { color: rgba(255,255,255,0.6); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-disc { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 0.9rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.7rem; line-height: 1.75; color: rgba(255,255,255,0.2); text-align: center; }
.footer-btm { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.3rem; text-align: center; font-size: 0.76rem; }
.footer-btm a { color: var(--gold); text-decoration: none; }

/* ── SHARED ── */
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.eline { width: 28px; height: 1px; background: var(--gold); display: block; }
.btn-gold { background: var(--gold); color: var(--navy); padding: 0.82rem 2.1rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.02em; transition: all 0.25s; display: inline-block; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.18); padding: 0.82rem 2.1rem; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 0.88rem; transition: all 0.25s; display: inline-block; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 6% 2rem; }
}
