/* DIRI layout and visual refinement layer. Loaded after the compiled app CSS. */
html,
body {
    max-width: 100%;
    overflow-x: clip !important;
}

/* Remove Elementor's default 10px column padding only where DIRI is mounted. */
.elementor-widget-wrap.elementor-element-populated:has(#root),
body.page-id-22195 .elementor-element-2a7a117 > .elementor-widget-wrap {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#root {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: clip !important;
    color: #303943;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#root h1,
#root h2,
#root h3,
#root h4,
#root h5,
#root h6 {
    font-family: "Merriweather", Georgia, serif;
    letter-spacing: -0.018em;
}

#root .container {
    width: min(100%, 1180px);
    padding-right: clamp(20px, 4vw, 36px);
    padding-left: clamp(20px, 4vw, 36px);
}

#root .hero {
    height: calc(100vh - 114px) !important;
    height: calc(100svh - 114px) !important;
    min-height: 560px !important;
    max-height: 760px;
}

.admin-bar #root .hero {
    height: calc(100vh - 146px) !important;
    height: calc(100svh - 146px) !important;
}

#root .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 28, 40, 0.9) 0%, rgba(18, 28, 40, 0.58) 52%, rgba(18, 28, 40, 0.25) 100%);
}

#root .hero-content {
    max-width: 920px;
    margin-top: 0;
}

#root .hero-title {
    max-width: 780px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 5vw, 4.65rem);
    line-height: 1.12;
}

#root .hero-subtitle {
    max-width: 760px;
    margin-bottom: 2.1rem;
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}

#root .hero-motto {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76em;
    letter-spacing: 2.2px;
}

#root .hero-actions {
    gap: 1rem;
}

#root .btn {
    min-height: 46px;
    border-radius: 6px;
    padding: 0.72rem 1.45rem;
    letter-spacing: 0.7px;
    font-size: 0.88rem;
    font-weight: 600;
}

#root .section {
    padding-top: clamp(4.25rem, 6vw, 5.25rem);
    padding-bottom: clamp(4.25rem, 6vw, 5.25rem);
}

#root .section-bg-cream {
    background: #f8f5ef;
}

#root .stats-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: #162536;
}

#root .stat-value {
    font-size: clamp(2.25rem, 4vw, 2.8rem);
}

#root .stat-label {
    font-size: 0.88rem;
    letter-spacing: 1.5px;
}

#root .section-title {
    margin-bottom: 1.25rem;
}

#root .section-subtitle {
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.7;
}

#root .home-programs-heading,
#root .home-education-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

#root .home-programs-heading {
    margin-bottom: 42px;
}

#root .home-programs-heading .section-subtitle {
    max-width: 650px;
    margin-right: 0;
    margin-left: 0;
}

#root .home-section-kicker {
    margin: 0 0 10px;
    color: #a65335;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

#root .home-program-number {
    display: block;
    margin-bottom: 24px;
    color: #a65335;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

#root .programs-grid .program-card {
    min-height: 360px;
}

#root .home-education-programs {
    margin-top: 58px;
    padding-top: 50px;
    border-top: 1px solid rgba(27, 43, 60, 0.13);
}

#root .home-education-heading {
    margin-bottom: 30px;
}

#root .home-education-heading h3 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

#root .home-education-heading > a {
    color: #a65335;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

#root .home-education-programs .education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

#root .home-education-programs .education-card {
    min-height: 230px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(27, 43, 60, 0.08);
    border-radius: 9px;
}

#root .home-education-programs .education-card h4 {
    margin: 0 0 12px;
    color: #1b2b3c;
    font-size: 1.12rem;
}

#root .home-education-programs .education-card p {
    margin: 0;
    color: #646c74;
    line-height: 1.7;
}

#root .pillar-card,
#root .program-card,
#root .publication-card,
#root .mission-vision-box {
    border-color: rgba(27, 43, 60, 0.09);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(18, 28, 40, 0.06);
}

#root .pillar-card:hover,
#root .program-card:hover,
#root .publication-card:hover {
    box-shadow: 0 14px 34px rgba(18, 28, 40, 0.1);
    transform: translateY(-3px);
}

#root .pillar-card,
#root .program-content {
    padding: 2.2rem 1.8rem;
}

#root .about-text,
#root .people-content p,
#root .program-content p,
#root .pillar-desc {
    line-height: 1.75;
}

#root .partner-card {
    border: 1px solid rgba(27, 43, 60, 0.08);
    box-shadow: 0 6px 20px rgba(18, 28, 40, 0.05);
}

@media (max-width: 768px) {
    #root .hero {
        height: calc(100svh - 104px) !important;
        min-height: 520px !important;
        max-height: 680px;
    }

    .admin-bar #root .hero {
        height: calc(100svh - 150px) !important;
    }

    #root .hero-overlay {
        background: rgba(18, 28, 40, 0.7);
    }

    #root .hero-title {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    #root .hero-subtitle {
        margin-bottom: 1.65rem;
    }

    #root .hero-actions {
        width: auto;
        padding: 0;
    }

    #root .testimonials-section {
        background-attachment: scroll;
    }

    #root .home-programs-heading,
    #root .home-education-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #root .home-education-programs .education-grid {
        grid-template-columns: 1fr;
    }

    #root .programs-grid .program-card,
    #root .home-education-programs .education-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    #root .hero-actions {
        width: 100%;
    }

    #root .hero-actions .btn {
        width: 100%;
    }

    #root .hero-switcher {
        bottom: 22px;
    }
}
