/* ==========================================================================
   INNER PAGE PROFESSIONAL STYLES
   Shared across: programs, team, projects, blog, summer-camps, nsa-edutran
   Applied after professional.css — overrides for inner-page consistency
   ========================================================================== */

/* ── HERO SHARED BASE ──────────────────────────────────────────────────────── */

/* All inner-page heroes get the same refined treatment */
.team-hero,
.projects-page-hero,
.policy-hero,
.programs-hero-section,
.summer-hero,
.edutran-hero,
.division-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 72px !important;
    background: linear-gradient(135deg, #0D1F35 0%, #102A43 40%, #1A3D72 100%) !important;
}

/* Subtle dot-grid overlay */
.team-hero::before,
.projects-page-hero::before,
.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Gold accent top border */
.team-hero::after,
.projects-page-hero::after,
.policy-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C8962A 30%, #FFD060 70%, transparent);
}

/* ── HERO SECTION TAG ── */
.team-hero .section-tag,
.projects-page-hero .section-tag,
.policy-hero .section-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(200,150,42,0.15) !important;
    color: #E8C56A !important;
    border: 1px solid rgba(200,150,42,0.35) !important;
    border-radius: 50px !important;
    padding: 6px 18px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 18px !important;
}

.team-hero .section-tag::before,
.team-hero .section-tag::after,
.projects-page-hero .section-tag::before,
.projects-page-hero .section-tag::after,
.policy-hero .section-tag::before,
.policy-hero .section-tag::after {
    display: none !important;
}

/* ── HERO H1 ── */
.team-hero h1,
.projects-page-hero h1,
.policy-hero h1 {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
}

/* ── HERO DESCRIPTION ── */
.team-hero p,
.projects-page-hero p,
.policy-hero p {
    font-size: 1.05rem !important;
    color: rgba(255,255,255,0.72) !important;
    line-height: 1.75 !important;
    max-width: 560px;
}

/* Centre-aligned hero text */
.team-hero,
.projects-page-hero,
.policy-hero {
    text-align: center;
}

.team-hero p,
.projects-page-hero p,
.policy-hero p {
    margin: 0 auto !important;
}

/* ── HERO STATS BAR ─────────────────────────────────────────────────────────── */
.projects-hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 4px 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ph-stat {
    flex: 1;
    text-align: center;
    padding: 16px 24px;
    position: relative;
}

.ph-stat + .ph-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.ph-stat-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFD060;
    line-height: 1;
    margin-bottom: 4px;
}

.ph-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ── SECTION HEADER — UNIFIED ──────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px !important;
}

.section-header .section-tag {
    display: inline-block;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #1E5AA8 !important;
    background: #EEF2FF !important;
    border-radius: 50px !important;
    padding: 5px 16px !important;
    margin-bottom: 14px !important;
}

.section-header .section-tag::before,
.section-header .section-tag::after {
    display: none !important;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #102A43 !important;
    -webkit-text-fill-color: #102A43 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
}

.section-header h2 em,
.section-header h2 .gradient-text {
    font-style: normal;
    background: linear-gradient(90deg, #C8962A, #E8B840) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.section-header .section-description,
.section-header p {
    font-size: 1.0625rem !important;
    color: #71717A !important;
    max-width: 560px;
    margin: 0 auto !important;
    line-height: 1.75 !important;
}

/* ── CARDS — UNIFIED PROFESSIONAL HOVER ─────────────────────────────────────── */
.instructor-card,
.team-card,
.project-card,
.service-card,
.tier-card,
.feature-card,
.benefit-card,
.highlight-card {
    background: #fff !important;
    border: 1px solid #E4E4E7 !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 12px rgba(16,42,67,0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    overflow: hidden;
    position: relative;
}

.instructor-card::before,
.team-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #102A43, #1E5AA8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 2;
}

.instructor-card:hover::before,
.team-card:hover::before,
.project-card:hover::before {
    transform: scaleX(1);
}

.instructor-card:hover,
.team-card:hover,
.project-card:hover,
.service-card:hover,
.tier-card:hover,
.feature-card:hover,
.benefit-card:hover,
.highlight-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 40px rgba(16,42,67,0.12) !important;
    border-color: rgba(30,90,168,0.2) !important;
}

/* ── HIGHLIGHT CARDS (summer-camps) ─────────────────────────────────────────── */
.highlight-card {
    text-align: center;
    padding: 28px 20px !important;
}

.highlight-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.highlight-card h4 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #102A43 !important;
    margin-bottom: 6px !important;
}

.highlight-card p {
    font-size: 13px !important;
    color: #71717A !important;
    line-height: 1.55 !important;
}

/* ── LEADERSHIP / TEAM SECTION ──────────────────────────────────────────────── */
.leadership-section,
.team-instructors-section {
    background: #F7FAFC !important;
}

/* ── PROGRAMS PAGE SPECIFICS ─────────────────────────────────────────────────── */

/* Remove distracting bg-grid/orb on light pages */
.programs-page .bg-grid,
.team-page .bg-grid { opacity: 0.015 !important; }

/* Programs hero section (uses own class in programs-page.css) */
.programs-hero-section {
    padding: 100px 0 0 !important;
}

/* ── BLOG FEATURED POST ──────────────────────────────────────────────────────── */
.featured-post {
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(16,42,67,0.08), 0 0 0 1px rgba(16,42,67,0.04) !important;
    border: none !important;
    overflow: hidden;
}

.featured-post-img {
    border-radius: 0 !important;
}

/* ── NSA EDUTRAN / DIVISION PAGES ────────────────────────────────────────────── */

/* Division page hero uses gradient already — just refine typography */
.division-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
}

.division-description {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.75) !important;
}

/* Hero stats bar within division pages */
.hero-stats-bar .stat-item {
    border-right: 1px solid rgba(255,255,255,0.12) !important;
}

.hero-stats-bar .stat-item:last-child {
    border-right: none !important;
}

/* ── BREADCRUMB / PAGE CONTEXT ───────────────────────────────────────────────── */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}

.page-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.page-breadcrumb span { color: rgba(255,255,255,0.85); }
.page-breadcrumb i { font-size: 10px; }

/* ── CALL TO ACTION STRIPS ───────────────────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, #102A43, #1A3D72);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.cta-strip h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin-bottom: 10px;
    position: relative;
}

.cta-strip p {
    color: rgba(255,255,255,0.72) !important;
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 28px;
    position: relative;
}

.cta-strip .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #C1121F, #9B0E18);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(193,18,31,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cta-strip .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(193,18,31,0.5);
}

/* ── TABS / FILTER PILLS ─────────────────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid #E4E4E7;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: #52525B;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #102A43;
    border-color: #102A43;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16,42,67,0.2);
}

/* ── PROFESSIONAL TABLE STYLES ───────────────────────────────────────────────── */
.pro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(16,42,67,0.06), 0 0 0 1px rgba(16,42,67,0.04);
}

.pro-table th {
    background: #102A43;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 14px 20px;
    text-align: left;
}

.pro-table td {
    padding: 13px 20px;
    font-size: 14px;
    color: #3F3F46;
    border-bottom: 1px solid #F4F4F5;
}

.pro-table tr:last-child td { border-bottom: none; }
.pro-table tr:hover td { background: #F9FAFB; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .team-hero,
    .projects-page-hero,
    .policy-hero {
        padding: 90px 0 52px !important;
    }

    .projects-hero-stats {
        gap: 0;
        padding: 2px 0;
    }

    .ph-stat { padding: 12px 16px; }
    .ph-stat-num { font-size: 1.3rem; }

    .cta-strip { padding: 36px 24px; }
    .filter-tabs { justify-content: center; }
}

@media (max-width: 480px) {
    .projects-hero-stats { flex-wrap: wrap; }
    .ph-stat { flex: 1 1 45%; }
    .ph-stat + .ph-stat::before { display: none; }

    .highlight-card .icon { width: 48px; height: 48px; font-size: 22px; }
}
