/* parents-guide.css — Styles for blog.html (Parents Guide page) */

:root {
    --brand-navy: #1D3557;
    --brand-dark: #0A1128;
    --brand-yellow: #FFC107;
    --bg-white: #FFFFFF;
}

/* ------------------------------------------------------------
   NAVBAR OVERRIDES (Matching Meet Sumit / Results)
------------------------------------------------------------ */
#navbar {
    background-color: var(--brand-navy) !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-text .impetus { color: var(--bg-white); }
.logo-text .learning { color: var(--brand-yellow); }

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--bg-white);
}
.nav-links a.active {
    color: var(--brand-yellow) !important;
    opacity: 1;
}

.nav-cta-btn {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.nav-cta-btn:hover {
    background: var(--bg-white);
    transform: translateY(-2px);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.pg-hero {
    background: var(--brand-navy);
    padding: 160px 5% 80px;
}

.pg-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.pg-hero .section-tag {
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.pg-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white);
    line-height: 1.15;
    margin: 20px 0 24px;
    font-weight: 900;
}

.pg-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 50px;
}

/* Filter Pills */
.pg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
    transition: 0.3s;
    min-height: 44px;
}

.filter-pill:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.filter-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

/* ── BODY WRAPPER ─────────────────────────────────────────────── */
.pg-body {
    background: #F8FAFC;
    padding: 80px 5% 100px;
}

.pg-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ── FEATURED ARTICLE ─────────────────────────────────────────── */
.pg-featured {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pg-featured:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pg-featured-content {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.pg-featured-image {
    background: #E2E8F0;
    min-height: 360px;
    overflow: hidden;
}

.pg-featured-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-card-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.pg-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94A3B8;
    font-size: 0.85rem;
}

.pg-img-placeholder i { width: 40px; height: 40px; }
.pg-img-placeholder.small i { width: 28px; height: 28px; }

.pg-featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--navy);
    line-height: 1.3;
    font-weight: 800;
}

/* ── CATEGORY TAGS ────────────────────────────────────────────── */
.pg-cat-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.pg-cat-tag.exams-parents { background: #EEF2FF; color: #3730A3; }
.pg-cat-tag.student-stories { background: #F0FDF4; color: #15803D; }
.pg-cat-tag.mentorship { background: #EFF6FF; color: #1D4ED8; }
.pg-cat-tag.foundational { background: #FFF7ED; color: #C2410C; }

/* ── EXCERPT / META ───────────────────────────────────────────── */
.pg-excerpt, .pg-card-excerpt {
    font-size: 0.97rem;
    color: #475569;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pg-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.pg-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #64748B;
}

.author-avatar {
    width: 32px; height: 32px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pg-readtime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94A3B8;
}
.pg-readtime i { width: 14px; height: 14px; }

.pg-read-link {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, padding-left 0.2s;
    width: fit-content;
}
.pg-read-link:hover {
    color: var(--gold);
    padding-left: 4px;
    text-decoration: underline;
}

/* ── THREE CARDS GRID ─────────────────────────────────────────── */
.pg-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pg-card {
    flex: 1 1 350px;
    max-width: 420px;
    width: 100%;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.pg-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}

.pg-card-img-wrap {
    background: #E2E8F0;
    aspect-ratio: 16/9;
}

.pg-card-img-wrap .pg-img-placeholder {
    min-height: 100%;
}

.pg-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    align-items: center;
    text-align: center;
}

.pg-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.4;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── NEWSLETTER ───────────────────────────────────────────────── */
.pg-newsletter {
    background: #F0F6FF;
    border: 1px solid #C7DEFF;
    border-radius: 20px;
    padding: 56px 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.pg-newsletter-text { flex: 1; }

.pg-newsletter-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.pg-newsletter-text p {
    font-size: 0.97rem;
    color: #475569;
    line-height: 1.75;
}

.pg-newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-newsletter-form > div {
    display: flex;
    gap: 0;
}

.pg-newsletter-form input[type="email"] {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-right: none;
    padding: 0 18px;
    height: 44px;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    outline: none;
    background: white;
    color: var(--navy);
    min-height: 44px;
}

.pg-newsletter-form input[type="email"]:focus {
    border-color: var(--brand-navy);
}

.pg-newsletter-form button {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: 1px solid var(--brand-yellow);
    margin-left: -1px;
    padding: 0 24px;
    height: 44px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pg-newsletter-form button:hover {
    background: var(--brand-navy);
    color: white;
    border-color: var(--brand-navy);
}

.pg-newsletter-note {
    font-size: 0.78rem;
    color: #94A3B8;
}

/* Inline form layout */
.pg-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Override: put input+button on same row */
.pg-newsletter-form input[type="email"],
.pg-newsletter-form button {
    display: inline-flex;
}

.pg-newsletter-form {
    flex-direction: column;
}

/* Wrap input + button in a div for same-row */

.pg-cta-strip {
    background: var(--brand-navy);
    padding: 100px 5%;
}

.pg-cta-inner {
    max-width: 1300px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.pg-cta-strip h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    line-height: 1.25;
    max-width: 700px;
}

.pg-cta-strip p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 600px;
}

.btn-cta-gold-pg {
    background: var(--gold);
    color: #1B3A6B;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.btn-cta-gold-pg:hover {
    background: white;
    transform: translateY(-3px);
}

.pg-cta-subnote {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35) !important;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pg-card-grid { grid-template-columns: repeat(2, 1fr); }
    .pg-newsletter { flex-direction: column; gap: 32px; padding: 40px 36px; }
}

@media (max-width: 900px) {
    .pg-featured { grid-template-columns: 1fr; }
    .pg-featured-image { min-height: 220px; }
    .pg-featured-content { padding: 36px 28px; }
    .pg-featured-title { font-size: 1.35rem; }
}

@media (max-width: 680px) {
    .pg-card-grid { grid-template-columns: 1fr; }
    .pg-hero { padding: 130px 5% 60px; }
    .pg-hero-h1 { font-size: 1.8rem; }
    .pg-body { padding: 50px 5% 70px; }
    .pg-inner { gap: 40px; }
    .pg-featured-content { padding: 24px 20px !important; }
    .pg-cta-strip { padding: 60px 5% !important; }
}

@media (max-width: 480px) {
    .pg-newsletter-form > div {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .pg-newsletter-form input[type="email"] {
        border-right: 1px solid #CBD5E1 !important;
        border-radius: 8px !important;
        width: 100% !important;
    }
    .pg-newsletter-form button {
        border-radius: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }
    .pg-newsletter {
        padding: 30px 20px !important;
    }
}

/* ── ARTICLE MODAL READER ──────────────────────────────────────── */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 14, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.article-modal-window {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: #FFFFFF;
    border-radius: 24px;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(40px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-modal-overlay.active .article-modal-window {
    transform: scale(1) translateY(0);
}

.article-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--navy);
    transition: all 0.3s ease;
    z-index: 11;
}

.article-modal-close:hover {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(90deg);
}

.article-modal-close i {
    width: 20px;
    height: 20px;
}

.article-modal-body {
    padding: 56px 48px;
    color: #334155;
    font-family: 'Outfit', sans-serif;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .article-modal-body { padding: 40px 24px; }
    .article-modal-close { top: 16px; right: 16px; }
}

.article-modal-body h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.article-modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--navy);
    margin: 36px 0 16px;
    font-weight: 700;
}

.article-modal-body h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin: 24px 0 12px;
    font-weight: 700;
}

.article-modal-body p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.85;
}

.article-modal-body blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #1e293b;
    font-family: 'Playfair Display', serif;
}

.article-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
}

.article-modal-body th {
    background: #F8FAFC;
    border-bottom: 2px solid #E2E8F0;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--navy);
}

.article-modal-body td {
    border-bottom: 1px solid #E2E8F0;
    padding: 14px 16px;
    color: #475569;
}

.article-modal-body tr:hover td {
    background: #F8FAFC;
}
