/*
Theme Name:  Astra Child — CrackNEETPG
Template:    astra
Description: CrackNEETPG custom child theme
Version:     1.0.0
*/

/* ═══ DESIGN TOKENS ═══════════════════════════════════════════════ */
:root {
  --navy:       #0A2540;
  --navy-light: #0D3260;
  --teal:       #0E7C86;
  --teal-light: #14A0AC;
  --teal-pale:  #E6F4F5;
  --gold:       #F5A623;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --text:       #1A2B3C;
  --text-muted: #5B6F82;
  --border:     #D4E4EE;
  --shadow-sm:  0 2px 8px rgba(10,37,64,.08);
  --shadow-md:  0 6px 24px rgba(10,37,64,.12);
  --shadow-lg:  0 16px 48px rgba(10,37,64,.16);
  --radius:     10px;
  --radius-lg:  18px;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-head:  'Crimson Pro', Georgia, serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ GLOBAL ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); transition: color var(--transition); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

/* ═══ HEADER ═══════════════════════════════════════════════════════ */
.site-header, #masthead {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  position: sticky; top: 0; z-index: 9999;
}
.custom-logo, .site-logo img { max-height: 48px !important; width: auto !important; }
.site-title a, .ast-site-identity .site-title a {
  color: var(--white) !important;
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
}
.main-navigation a, .ast-nav-menu a, #ast-hf-menu-1 a {
  color: rgba(255,255,255,.85) !important;
  font-size: 0.93rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 6px 14px !important; border-radius: 6px; transition: all var(--transition);
}
.main-navigation a:hover, .ast-nav-menu a:hover {
  color: var(--white) !important; background: rgba(14,124,134,.3) !important;
}
a.ast-header-custom-button, .ast-custom-button-link {
  background: var(--teal) !important; color: var(--white) !important;
  border: none !important; border-radius: 8px !important;
  padding: 10px 20px !important; font-weight: 600 !important; font-size: 0.9rem !important;
  transition: all var(--transition) !important; text-decoration: none !important;
}
a.ast-header-custom-button:hover { background: var(--teal-light) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,124,134,.4) !important; }
.menu-toggle { color: var(--white) !important; }

/* ═══ BUTTONS ══════════════════════════════════════════════════════ */
.cnpg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white) !important;
  border: none; border-radius: var(--radius); padding: 14px 28px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none !important; transition: all var(--transition);
}
.cnpg-btn:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,124,134,.35); color: var(--white) !important; }
.cnpg-btn-outline { background: transparent; color: var(--teal) !important; border: 2px solid var(--teal); }
.cnpg-btn-outline:hover { background: var(--teal); color: var(--white) !important; }
.cnpg-btn-white { background: var(--white); color: var(--navy) !important; }
.cnpg-btn-white:hover { background: var(--off-white); color: var(--navy) !important; box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* ═══ HERO ═════════════════════════════════════════════════════════ */
.cnpg-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D3260 55%, #0A4A55 100%);
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 24px;
}
.cnpg-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,124,134,.25) 0%, transparent 70%); pointer-events: none;
}
.cnpg-hero::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,124,134,.15) 0%, transparent 70%); pointer-events: none;
}
.cnpg-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 2;
}
.cnpg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,124,134,.2); border: 1px solid rgba(14,124,134,.4);
  color: var(--teal-light); border-radius: 100px; padding: 6px 16px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 24px;
}
.cnpg-hero-badge::before { content: '●'; color: var(--gold); font-size: 0.6rem; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.cnpg-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.12; color: var(--white);
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.cnpg-hero h1 em { font-style: normal; color: var(--teal-light); }
.cnpg-hero-sub { font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 500px; }
.cnpg-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cnpg-hero-trust { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: rgba(255,255,255,.55); }
.cnpg-hero-trust span { display: flex; align-items: center; gap: 6px; }
.cnpg-hero-trust .trust-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.cnpg-hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 36px; backdrop-filter: blur(12px);
}
.cnpg-hero-card-title { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: 20px; font-weight: 600; }
.cnpg-profile-types { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.cnpg-profile-types li {
  background: rgba(14,124,134,.15); border: 1px solid rgba(14,124,134,.3);
  border-radius: 8px; padding: 10px 14px; font-size: 0.88rem;
  color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 10px;
}
.cnpg-profile-types li::before { content: '▸'; color: var(--teal-light); font-size: 0.75rem; }
.cnpg-card-cta { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

/* ═══ SECTIONS ══════════════════════════════════════════════════════ */
.cnpg-section { padding: 80px 24px; }
.cnpg-section-alt { background: var(--off-white); }
.cnpg-container { max-width: 1100px; margin: 0 auto; }
.cnpg-section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.cnpg-section-title { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
.cnpg-section-sub { font-size: 1.08rem; color: var(--text-muted); line-height: 1.7; max-width: 560px; }
.cnpg-section-header { margin-bottom: 56px; }

/* ═══ HOW IT WORKS ══════════════════════════════════════════════════ */
.cnpg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cnpg-step {
  text-align: center; padding: 40px 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.cnpg-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.cnpg-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 14px rgba(14,124,134,.3);
}
.cnpg-step h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.cnpg-step p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ═══ FEATURES ══════════════════════════════════════════════════════ */
.cnpg-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cnpg-feature-card {
  padding: 32px 28px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.cnpg-feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-3px); }
.cnpg-feature-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.cnpg-feature-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cnpg-feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ═══ STATS ══════════════════════════════════════════════════════════ */
.cnpg-stats { background: linear-gradient(135deg, var(--navy), #0D3260); padding: 56px 24px; }
.cnpg-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; text-align: center; }
.cnpg-stat-val { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.cnpg-stat-val span { color: var(--teal-light); }
.cnpg-stat-label { font-size: 0.88rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* ═══ TESTIMONIALS ══════════════════════════════════════════════════ */
.cnpg-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cnpg-testi {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.cnpg-testi:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cnpg-testi-quote { font-family: var(--font-head); font-size: 3rem; color: var(--teal-pale); line-height: 1; margin-bottom: 12px; }
.cnpg-testi p { font-size: 0.95rem; line-height: 1.7; color: var(--text); margin-bottom: 20px; font-style: italic; }
.cnpg-testi-author { display: flex; align-items: center; gap: 12px; }
.cnpg-testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.cnpg-testi-name { font-weight: 600; font-size: 0.93rem; color: var(--navy); margin-bottom: 2px; }
.cnpg-testi-meta { font-size: 0.8rem; color: var(--text-muted); }
.cnpg-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 4px; }

/* ═══ CTA BANNER ════════════════════════════════════════════════════ */
.cnpg-cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.cnpg-cta-banner h2 { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.cnpg-cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; position: relative; z-index: 1; max-width: 540px; margin-left: auto; margin-right: auto; }
.cnpg-cta-banner .cnpg-btn { position: relative; z-index: 1; background: var(--white); color: var(--navy) !important; font-size: 1.1rem; padding: 16px 36px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.cnpg-cta-banner .cnpg-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ═══ FOOTER ════════════════════════════════════════════════════════ */
.site-footer, #colophon { background: var(--navy) !important; color: rgba(255,255,255,.65) !important; border-top: 3px solid var(--teal); }
.ast-small-footer, .ast-footer-copyright { display: none !important; }
.cnpg-footer-main {
  max-width: 1100px; margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.cnpg-footer-brand h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; font-weight: 700; }
.cnpg-footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.cnpg-footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 16px; }
.cnpg-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cnpg-footer-col ul li { margin-bottom: 10px; }
.cnpg-footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); }
.cnpg-footer-col ul li a:hover { color: var(--teal-light); }
.cnpg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px;
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.cnpg-footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.4); margin: 0; }
.cnpg-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.cnpg-footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,.4); text-decoration: none; transition: color var(--transition); }
.cnpg-footer-nav a:hover { color: var(--teal-light); }

/* ═══ BLOG ══════════════════════════════════════════════════════════ */
.blog .site-content, .archive .site-content { background: var(--off-white); padding: 48px 0; }
.blog .ast-article-inner, .archive .ast-article-inner {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.blog .ast-article-inner:hover, .archive .ast-article-inner:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--teal); }
.entry-title a { font-family: var(--font-head); color: var(--navy) !important; text-decoration: none; font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
.entry-title a:hover { color: var(--teal) !important; }
.entry-meta { font-size: 0.82rem; color: var(--text-muted); }
.entry-summary { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; }
.ast-read-more, .more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal) !important; font-weight: 600; font-size: 0.88rem; text-decoration: none; margin-top: 8px; transition: gap var(--transition); }
.ast-read-more:hover, .more-link:hover { gap: 10px; }
.widget-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--teal); }
.page-numbers a { color: var(--teal); border-color: var(--border); }
.page-numbers .current { background: var(--teal); border-color: var(--teal); color: var(--white); }
.single .entry-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); font-weight: 700; line-height: 1.2; }
.single .entry-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.single .entry-content h2, .single .entry-content h3 { font-family: var(--font-head); color: var(--navy); margin-top: 2em; }
.single .entry-content a { color: var(--teal); text-decoration: underline; }

/* ═══ MOBILE ════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cnpg-hero-inner  { grid-template-columns: 1fr; gap: 40px; }
  .cnpg-hero        { min-height: auto; padding: 60px 20px; }
  .cnpg-steps       { grid-template-columns: 1fr; }
  .cnpg-features    { grid-template-columns: 1fr 1fr; }
  .cnpg-testimonials{ grid-template-columns: 1fr; }
  .cnpg-stats-grid  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cnpg-footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cnpg-footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cnpg-features    { grid-template-columns: 1fr; }
  .cnpg-stats-grid  { grid-template-columns: 1fr 1fr; }
  .cnpg-footer-main { grid-template-columns: 1fr; }
  .cnpg-hero-actions{ flex-direction: column; }
  .cnpg-hero-actions .cnpg-btn { width: 100%; justify-content: center; }
  .cnpg-footer-bottom { flex-direction: column; text-align: center; }
}

/* Force header navy — override Astra builder */
#masthead,
#masthead .site-header-section,
.ast-header-break-point .site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header,
.ast-masthead-custom-menu-items,
header.site-header { background-color: #0A2540 !important; }

/* Hide site title text — logo image already has the name */
.ast-site-identity .site-title,
.ast-site-identity .site-description { display: none !important; }
