.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(35, 64, 142, 0.92), rgba(237, 27, 36, 0.88));
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(18, 29, 67, 0.32) 0%, rgba(18, 29, 67, 0.48) 30%, rgba(237, 27, 36, 0.82) 100%),
        linear-gradient(135deg, rgba(35, 64, 142, 0.70), rgba(237, 27, 36, 0.38));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92vh;
    padding: 140px 0 90px;
    color: #ffffff;
}

.eyebrow,
.section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.96rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffffff;
    color: #ed1b24;
    box-shadow: 0 16px 40px rgba(35, 64, 142, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 52px;
}

.hero-stat-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero-stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.home-section {
    padding: 96px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-tag {
    margin-bottom: 16px;
    color: #ed1b24;
    background: rgba(237, 27, 36, 0.08);
}

.section-tag.light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.section-head h2,
.about-copy h2,
.impact-copy h2,
.final-cta-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    color: #23408e;
}

.section-head p,
.about-copy p,
.impact-copy p,
.final-cta-copy p {
    margin: 18px 0 0;
    color: #667085;
}

.intro-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fe 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.intro-card,
.about-panel,
.service-card,
.impact-card,
.certificate-card {
    background: #ffffff;
    border: 1px solid rgba(35, 64, 142, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(35, 64, 142, 0.08);
}

.intro-card {
    padding: 34px 28px;
}

.intro-card.featured {
    background: linear-gradient(180deg, rgba(35, 64, 142, 0.05), rgba(237, 27, 36, 0.06));
}

.card-number {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #23408e, #385399);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 18px;
}

.intro-card h3,
.about-panel h3,
.service-card h3,
.impact-card h3,
.certificate-card h3 {
    margin: 0 0 12px;
    font-size: 1.24rem;
    line-height: 1.3;
    color: #23408e;
}

.intro-card p,
.about-panel p,
.about-panel li,
.service-card p,
.impact-card p,
.certificate-card p {
    margin: 0;
    color: #667085;
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: start;
}

.about-panels {
    display: grid;
    gap: 22px;
}

.about-panel {
    padding: 28px;
}

.about-panel ul {
    margin: 18px 0 0;
    padding-left: 18px;
}

.about-panel li + li {
    margin-top: 10px;
}

.about-panel.accent {
    background: linear-gradient(180deg, rgba(237, 27, 36, 0.06), rgba(56, 83, 153, 0.08));
}

.text-link {
    display: inline-flex;
    margin-top: 24px;
    color: #ed1b24;
    font-weight: 700;
}

.services-section {
    background: #f7f9ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    padding: 30px 26px;
}

.impact-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #23408e 0%, #2d4eaa 35%, #ed1b24 100%);
}

.impact-band::before,
.impact-band::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.impact-band::before {
    width: 340px;
    height: 340px;
    top: -80px;
    left: -70px;
}

.impact-band::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -90px;
}

.impact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.impact-copy h2,
.impact-copy p,
.final-cta-copy h2,
.final-cta-copy p {
    color: #ffffff;
}

.impact-cards {
    display: grid;
    gap: 22px;
}

.impact-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.impact-card h3,
.impact-card p {
    color: #ffffff;
}

.impact-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.certificates-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fe 100%);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.certificate-card {
    padding: 24px;
}

.certificate-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(35, 64, 142, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f0f4ff);
    margin-bottom: 20px;
    font-weight: 700;
    color: #385399;
}

.final-cta {
    background: linear-gradient(135deg, #ed1b24, #ff4b6d);
}

.final-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 1100px) {
    .hero-stats,
    .intro-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-preview-grid,
    .impact-grid,
    .final-cta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 120px 0 72px;
    }

    .hero-stats,
    .intro-grid,
    .services-grid,
    .certificate-grid,
    .impact-grid,
    .final-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-section {
        padding: 72px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p,
    .section-head p,
    .about-copy p,
    .impact-copy p,
    .final-cta-copy p {
        font-size: 0.98rem;
    }

    .hero-actions,
    .final-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-stat-card,
    .intro-card,
    .about-panel,
    .service-card,
    .impact-card,
    .certificate-card {
        padding: 22px;
    }

    .certificate-placeholder {
        min-height: 240px;
    }
}

/* ==========================================================================
   Media Showcase Section (YouTube Videos Layout)
   ========================================================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 28, 73, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 16:9 Fluid Aspect Ratio Video Engine */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Preserves 16:9 Aspect Ratio perfectly across devices */
    background: #000000;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-card-content h3 {
    font-size: 20px;
    color: var(--dark);
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

.media-card-content p {
    font-size: 15px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.6;
}

/* Mobile responsive adapter breakpoint */
@media (max-width: 860px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .media-card-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Media Showcase Section (Horizontal Side-by-Side YouTube Layout)
   ========================================================================== */
.media-showcase-section .container {
    max-width: 1200px; /* Expands container width to allow larger layout space */
    width: 100%;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Holds elements side-by-side horizontally */
    gap: 40px; /* Increased padding gap between horizontal cards */
    margin-top: 48px;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius-md, 20px); /* Rounded outer card borders */
    border: 1px solid rgba(15, 28, 73, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Fluid Responsive Video Screen with Rounded Corners */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Keeps a crisp 16:9 cinematic display dimension */
    background: #000000;
    border-top-left-radius: var(--radius-md, 20px);  /* Matches the card's round curves */
    border-top-right-radius: var(--radius-md, 20px); /* Matches the card's round curves */
    overflow: hidden; /* Masking layer to force iframe edges to accept rounded shape */
    isolation: isolate; /* Safety layering override for older WebKit viewports */
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-card-content {
    padding: 28px; /* Roomier content block padding to balance bigger video width */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-card-content h3 {
    font-size: 22px; /* Increased font scale to balance bigger sizes */
    color: var(--dark);
    margin: 0 0 14px 0;
    font-weight: 700;
    line-height: 1.4;
}

.media-card-content p {
    font-size: 15px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.6;
}

/* Responsive breakpoint handling for mobile viewports */
@media (max-width: 860px) {
    .media-grid {
        grid-template-columns: 1fr; /* Responsively wraps to one column on smaller screens */
        gap: 32px;
    }
    
    .media-card-content {
        padding: 24px;
    }
}