/* Homepage Updates CSS - Professional Government/MNC Style */

/* Home 2026 palette (scoped usage below) */
:root {
    --mf-pink: #ff2bbf;
    --mf-purple: #7c3aed;
    --mf-yellow: #ffd400;
    --mf-yellow-2: #ffb800;
    --mf-bg: #ffffff;
    --mf-bg-2: #faf7ff;
    --mf-text: rgba(11, 11, 16, 0.92);
    --mf-muted: rgba(11, 11, 16, 0.64);
    --mf-surface: rgba(255, 255, 255, 0.78);
    --mf-border: rgba(124, 58, 237, 0.16);
}

/* Professional Navy Blue & Dark Green Theme */
.premium-purple-section {
    /* Reuse existing var names to avoid refactors */
    --pp-navy: rgba(11, 11, 16, 0.92);
    --pp-navy-dark: rgba(11, 11, 16, 0.86);
    --pp-green: var(--mf-purple);
    --pp-green-light: var(--mf-pink);
    --pp-cream: rgba(11, 11, 16, 0.96);
    --pp-cream-dark: rgba(11, 11, 16, 0.76);
    --pp-text: rgba(11, 11, 16, 0.68);

    position: relative;
    overflow: hidden;
    color: var(--pp-cream);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 43, 191, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.14) 0%, transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%);
    border-top: 3px solid rgba(124, 58, 237, 0.55);
    border-bottom: 1px solid rgba(124, 58, 237, 0.14);
}

.premium-purple-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 212, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 212, 0, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.22;
    mix-blend-mode: normal;
    pointer-events: none;
}

.premium-purple-section > .container,
.premium-purple-section > .position-absolute,
.premium-purple-section .container {
    position: relative;
    z-index: 1;
}

.premium-purple-section h1,
.premium-purple-section h2,
.premium-purple-section h3,
.premium-purple-section h4,
.premium-purple-section h5,
.premium-purple-section h6 {
    color: var(--pp-cream);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-purple-section p,
.premium-purple-section small,
.premium-purple-section span {
    color: var(--pp-text);
}

body.critical-above-fold .home-certificates .cert-title,
body.critical-above-fold .home-awards .cert-title,
body.critical-above-fold .home-certificates .cert-overlay-info,
body.critical-above-fold .home-awards .cert-overlay-info {
    color: rgba(11, 11, 16, 0.92) !important;
}

/* Force Full Screen Hero */
.hero-carousel {
    height: 100vh !important;
    min-height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* About Section - Professional Government Style */
.about-section-bg {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 43, 191, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.16) 0%, transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%);
    border-top: 3px solid rgba(255, 43, 191, 0.55);
    border-bottom: 1px solid rgba(124, 58, 237, 0.14);
}

.about-section-kicker {
    color: var(--mf-purple);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--mf-pink);
    padding-left: 16px;
    margin-bottom: 1rem;
}

.about-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    color: rgba(11, 11, 16, 0.96);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    max-width: 28ch;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 992px) {
    .about-section-title {
        max-width: none;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .about-section-title {
        letter-spacing: 0.5px;
        margin-bottom: 1.25rem;
    }
}

.about-section-text {
    color: rgba(11, 11, 16, 0.70);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 500;
}

.about-icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #001f3f;
}

.about-item-title {
    color: #001f3f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.about-item-subtitle {
    color: #4a4a4a;
    font-weight: 500;
}

.about-read-more-btn {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    color: #faf8f5;
    border: 3px solid #1a5f5f;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 40px;
    box-shadow: 0 6px 20px rgba(13, 77, 77, 0.3);
    transition: all 0.3s ease;
}

.about-read-more-btn:hover {
    background: linear-gradient(135deg, #1a5f5f, #2d7f7f);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 77, 77, 0.4);
    color: #faf8f5;
}

.about-section-bg .img-border img {
    width: 100%;
    height: clamp(280px, 42vh, 460px);
    object-fit: cover;
}

/* Success Stories Layout - Professional Style */
.success-stories-container {
    padding: 60px 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 90% 30%, rgba(255, 43, 191, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%);
    border-top: 3px solid rgba(124, 58, 237, 0.55);
}

body.critical-above-fold .success-stories-container h2,
body.critical-above-fold .success-stories-container h3,
body.critical-above-fold .success-stories-container h4,
body.critical-above-fold .success-stories-container h5,
body.critical-above-fold .success-stories-container h6 {
    color: rgba(11, 11, 16, 0.96) !important;
}

.story-grid-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .story-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Video Slider (Left) */
.video-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 212, 0, 0.35);
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-slide.active {
    opacity: 1;
    z-index: 10;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 10px;
}

.video-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Right Side Image Grid - Professional Style */
.story-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 20px;
}

.story-img-item {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid var(--pp-navy);
}

.story-img-item:hover {
    transform: translateY(-5px);
    border-color: var(--pp-green);
}

.story-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-img-item:hover img {
    transform: scale(1.1);
}

/* Youtube Links Section - Professional */
.youtube-links-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--pp-navy);
}

.yt-link-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 180px;
    box-shadow: 0 4px 10px rgba(0, 31, 63, 0.15);
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid var(--pp-navy);
}

.yt-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 31, 63, 0.25);
    border-color: var(--pp-green);
}

.yt-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pp-green), var(--pp-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-cream);
    font-size: 22px;
    transition: all 0.3s;
    border: 3px solid var(--pp-cream);
}

.yt-link-card:hover .yt-overlay {
    background: linear-gradient(135deg, var(--pp-green-light), #2d7f7f);
    transform: translate(-50%, -50%) scale(1.15);
}

/* Certificates & Awards Redesign - Government Style */
.cert-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.cert-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.12);
    background: var(--pp-cream);
    padding: 12px;
    border: 3px solid var(--pp-navy);
    transition: all 0.3s ease;
}

.cert-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.2);
    border-color: var(--pp-green);
}

.cert-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--pp-cream-dark);
}

.cert-overlay-info {
    text-align: center;
    padding-top: 15px;
}

.cert-year-badge {
    background: linear-gradient(135deg, var(--pp-green), var(--pp-green-light));
    color: var(--pp-cream);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--pp-green-light);
}

.cert-title {
    font-weight: 700;
    color: var(--pp-navy);
    margin: 5px 0 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* New Impact Section - Professional Government Style */
.impact-stats-section {
    padding: 80px 0;
    color: var(--pp-cream);
    position: relative;
    overflow: hidden;
}

.impact-stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 28px 16px;
    border-radius: 8px;
    background: rgba(13, 77, 77, 0.15);
    border: 2px solid rgba(26, 95, 95, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.impact-stat-item:hover {
    transform: translateY(-6px);
    background: rgba(13, 77, 77, 0.25);
    border-color: var(--pp-green-light);
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pp-green), var(--pp-green-light));
    border: 3px solid rgba(250, 248, 245, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.impact-icon i {
    font-size: 1.5rem;
    color: var(--pp-cream);
}

.impact-stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.impact-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Volunteer CTA */
.volunteer-cta-section {
    padding: 90px 0;
    text-align: center;
    color: white;
}

.volunteer-cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.75);
}

.volunteer-cta-section .btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

/* Membership CTA polishing */
.membership-cta-section .backdrop-blur {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.membership-benefit-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* -----------------------------
   Home: Our Reach + Programs - Professional Style
------------------------------ */

.section-title-kicker {
    color: var(--pp-green);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title-display {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: var(--pp-navy);
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-sub {
    color: var(--text-muted, #5a5a5a);
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .section-title-display {
        font-size: 2.2rem;
    }
}

/* Reach - Professional */
.home-reach-section {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 43, 191, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 78% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%);
    color-scheme: light;
    border-top: 3px solid rgba(255, 43, 191, 0.55);
    border-bottom: 1px solid rgba(124, 58, 237, 0.14);
}

body.critical-above-fold .home-reach-section .section-title-display,
body.critical-above-fold .home-reach-section .section-title-kicker {
    color: rgba(11, 11, 16, 0.96) !important;
}

body.critical-above-fold .home-reach-section .section-title-sub {
    color: rgba(11, 11, 16, 0.64) !important;
}

@supports (forced-color-adjust: none) {
    .home-reach-section {
        forced-color-adjust: none;
    }
}

.reach-map-card {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.reach-map {
    width: 100%;
    height: clamp(620px, 78vh, 900px);
    position: relative;
    background: transparent;
    color-scheme: light;
    overflow: hidden;
    contain: layout paint;
}

@supports (forced-color-adjust: none) {
    .reach-map {
        forced-color-adjust: none;
    }
}

@media (max-width: 576px) {
    .home-reach-section > .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .reach-map {
        /* Wider feel on small screens */
        width: calc(100% + 8px);
        margin-left: -4px;
        margin-right: -4px;
        height: 560px;
        min-height: 560px;
    }
}

.reach-map svg.reach-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    filter: none;
}

.reach-map .reach-state {
    fill: rgba(124, 58, 237, 0.14);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 160ms ease, filter 160ms ease;
}

.reach-map .reach-state.is-available {
    fill: rgba(255, 43, 191, 0.18);
}

.reach-map .reach-state.is-hover,
.reach-map .reach-state.is-selected {
    filter: drop-shadow(0 12px 22px rgba(255, 212, 0, 0.20));
    fill: rgba(255, 212, 0, 0.28);
}

.reach-map .reach-state-label {
    font-size: 11px;
    font-weight: 800;
    fill: rgba(255, 255, 255, 0.92);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.55);
    stroke-width: 3px;
}

@media (max-width: 576px) {
    .reach-map .reach-state-label {
        display: none;
    }
}

.reach-tooltip {
    position: absolute;
    left: 14px;
    top: 14px;
    bottom: auto;
    z-index: 5;
    width: min(270px, calc(100% - 28px));
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.reach-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reach-tooltip .rt-title {
    font-weight: 800;
    font-size: 1rem;
    margin: 0 0 6px;
}

.reach-tooltip .rt-kicker {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.reach-tooltip .rt-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.reach-tooltip .rt-list li {
    margin: 2px 0;
}

.reach-map-note {
    padding: 12px 14px;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.75);
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    margin-top: 10px;
}

.reach-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
}

.reach-points {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.reach-points__title {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reach-points__list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.reach-points__list li {
    margin: 10px 0;
    line-height: 1.5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reach-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 5px;
    flex: 0 0 12px;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.reach-dot--blue { background: var(--mf-purple); }
.reach-dot--green { background: var(--mf-pink); }
.reach-dot--amber { background: var(--mf-yellow); }

@media (max-width: 991px) {
    .reach-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reach-stat {
    text-align: center;
    padding: 12px;
}

.reach-stat-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.reach-stat-circle span {
    font-size: 2.1rem;
    font-weight: 800;
    color: rgba(11, 11, 16, 0.92);
}

.reach-stat-label {
    font-weight: 700;
    color: rgba(11, 11, 16, 0.62);
    font-size: 0.95rem;
    line-height: 1.25;
}

@media (max-width: 576px) {
    .reach-stat-circle {
        width: 120px;
        height: 120px;
    }
    .reach-stat-circle span {
        font-size: 1.8rem;
    }
}

/* Programs (3D flip cards) - Professional Style */
.home-programs-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 86% 26%, rgba(255, 43, 191, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%);
    border-top: 3px solid rgba(124, 58, 237, 0.55);
}

body.critical-above-fold .home-programs-section .section-title-display,
body.critical-above-fold .home-programs-section .section-title-kicker {
    color: rgba(11, 11, 16, 0.96) !important;
}

body.critical-above-fold .home-programs-section .section-title-sub {
    color: rgba(11, 11, 16, 0.64) !important;
}

.flip-card {
    background: transparent;
    perspective: 1100px;
    height: 190px;
    outline: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(0, 31, 63, 0.15);
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(255, 43, 191, 0.12) 0%, rgba(124, 58, 237, 0.10) 55%, rgba(255, 255, 255, 0.92) 100%);
    color: rgba(11, 11, 16, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.flip-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    color: var(--mf-yellow);
}

.flip-title {
    font-weight: 800;
    font-size: 1.15rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(11, 11, 16, 0.92);
}

.flip-underline {
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: var(--mf-yellow);
    margin-top: 12px;
    opacity: 0.9;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(255, 43, 191, 0.10) 55%, rgba(255, 255, 255, 0.94) 100%);
    color: rgba(11, 11, 16, 0.92);
    text-align: center;
    border: 1px solid rgba(255, 212, 0, 0.26);
}

/* Sections that were inline-bg in index.php */
body.critical-above-fold .home-impact-areas,
body.critical-above-fold .home-certificates,
body.critical-above-fold .home-awards,
body.critical-above-fold .home-news {
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 43, 191, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 86% 22%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 255, 0.98) 100%) !important;
    color: rgba(11, 11, 16, 0.88);
}

body.critical-above-fold .home-impact-areas h2,
body.critical-above-fold .home-impact-areas h3,
body.critical-above-fold .home-impact-areas h4,
body.critical-above-fold .home-impact-areas p,
body.critical-above-fold .home-certificates h2,
body.critical-above-fold .home-awards h2,
body.critical-above-fold .home-news h2 {
    color: rgba(11, 11, 16, 0.96) !important;
}

body.critical-above-fold .home-impact-areas .modern-card,
body.critical-above-fold .home-news .news-card,
body.critical-above-fold .home-certificates .cert-image-card,
body.critical-above-fold .home-awards .cert-image-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(124, 58, 237, 0.16) !important;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.10) !important;
}

body.critical-above-fold .home-news .news-card .text-muted,
body.critical-above-fold .home-impact-areas .text-muted {
    color: rgba(11, 11, 16, 0.62) !important;
}

body.critical-above-fold .home-news .news-card h5,
body.critical-above-fold .home-impact-areas h4 {
    color: rgba(11, 11, 16, 0.92) !important;
}

.flip-back-title {
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(11, 11, 16, 0.96);
}

.flip-back-text {
    font-size: 0.95rem;
    color: rgba(11, 11, 16, 0.70);
    line-height: 1.35;
    margin-bottom: 14px;
}

.flip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    color: #001f3f;
    background: #faf8f5;
    border: 2px solid #faf8f5;
    box-shadow: 0 10px 22px rgba(250, 248, 245, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-link:hover {
    color: #faf8f5;
    background: transparent;
    border-color: #faf8f5;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .flip-card-inner {
        transition: none;
    }
}
