/* =============================================
   BASE
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =============================================
   MISSION SECTION
   Duplicate .mission-section and .mission-box
   rules merged — second declarations win,
   so we keep only the correct final values.
   ============================================= */

.mission-section {
    /* background: #F9F5EE; */
    display: flex;
    justify-content: center;
    margin-top: -80px;
    padding: 0 20px 100px;
    /* horizontal padding prevents edge bleed */
}

.mission-box {
    width: 100%;
    max-width: 1440px;
    height: auto;
    background: #0b336c;
    border-radius: 60px;
    border: 5px solid #FBBF00;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 80px 120px;
}

.mission-box h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #F9F5EE;
    margin-bottom: 20px;
}

.mission-box p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #F9F5EE;
}

/* =============================================
   PRACTITIONER SECTION
   ============================================= */

.practitioner-section {
    background: #F9F5EE;
    padding: 0 0 120px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 600;
    color: #FBBF00;
    text-align: center;
    margin-bottom: 80px;
}

.practitioner-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.practitioner-text {
    flex: 1 1 0;
    min-width: 0;
}

.practitioner-text p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #003060;
    margin-bottom: 30px;
}

.practitioner-image {
    flex-shrink: 0;
    width: 480px;
}

.practitioner-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* =============================================
   WHY INSIGHT SECTION
   ============================================= */

.why-insight {
    background: #F9F5EE;
    padding: 120px 0;
}

.why-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

/* IMAGE GROUP */
.why-images {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.why-images img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F9F5EE;
    position: relative;
    flex-shrink: 0;
}

.why-images img:not(:first-child) {
    margin-left: -25px;
}

.why-images img:nth-child(1) {
    z-index: 1;
}

.why-images img:nth-child(2) {
    z-index: 2;
}

.why-images img:nth-child(3) {
    z-index: 3;
}

.why-images img:nth-child(4) {
    z-index: 4;
}

.why-left {
    flex-shrink: 0;
}

.why-left h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 1.1;
    color: #FBBF00;
    margin-bottom: 40px;
}

.why-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 217px;
    height: 56px;
    background: #FBBF00;
    color: #003060;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    text-decoration: none;
    border-radius: 30px;
    white-space: nowrap;
}

.why-right {
    max-width: 633px;
    min-width: 0;
}

.why-right p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #003060;
    margin-bottom: 30px;
}

/* =============================================
   VISION SECTION
   ============================================= */

.vision-section {
    position: relative;
    width: 100%;
    height: 699px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vision-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 49, 103, 0.75);
}

.vision-content {
    position: relative;
    z-index: 2;
    max-width: 1241px;
    color: #F9F5EE;
    padding: 0 20px;
    /* prevents text from touching screen edges */
}

.vision-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 110%;
    max-width: 921px;
    margin: 0 auto 30px;
    color: #F9F5EE;
}

.vision-content p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    max-width: 1241px;
    margin: 0 auto;
    color: #F9F5EE;
}

/* =============================================
   WHY CHOOSE SECTION
   ============================================= */

.why-choose-section {
    background: #F9F5EE;
    padding: 120px 0;
}

.why-choose-container {
    max-width: 1326px;
    margin: 0 auto;
    padding: 0 20px;
    /* prevents overflow at container edges */
}

.why-choose-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 1.2;
    text-align: center;
    color: #003060;
    margin-bottom: 80px;
}

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.why-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 70px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* gap instead of relying on fixed widths */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.why-card-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 398px;
    /* fixed width only on desktop */
    min-width: 0;
}

.why-card-left img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.why-card-left h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 38px;
    color: #003060;
    margin: 0;
}

.why-card p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #003060;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

/* =============================================
   TRUSTED PARTNERS
   ============================================= */

.trusted-partners {
    width: 100%;
    background: transparent;
    margin: 0 auto 50px auto;
    padding: 60px 0;
    overflow: hidden;
}

.trusted-container {
    width: 100%;
    text-align: center;
}

.trusted-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 110%;
    color: #003060;
    margin-bottom: 70px;
}

/* Carousel wrapper */
.partners-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Fade edges */
.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f9f5ee, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f9f5ee, transparent);
}

/* Scrolling track */
.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partnersMarquee 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes partnersMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    flex-shrink: 0;
}

.partner-item img {
    height: 70px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

/* =============================================
   LEGACY RULES (kept, not used by new HTML)
   ============================================= */

.vision {
    position: relative;
    height: 450px;
    background: url('../assets/vision.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
}

.vision .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 48, 96, 0.75);
}

.vision h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.why-choose {
    padding: 100px 0;
}

.center {
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.partners {
    padding: 80px 0;
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.choose-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.desk-br {
    display: inline;
}

.mob-br {
    display: none;
}

/* =============================================
   RESPONSIVE — TABLET (max-width: 1023px)
   ============================================= */

@media screen and (max-width: 1023px) {
    .desk-br {
        display: none;
    }

    .mob-br {
        display: inline;
    }

    .mission-box {
        padding: 60px 60px;
        border-radius: 40px;
    }

    .mission-box p {
        font-size: 17px;
    }

    .section-title {
        font-size: 44px;
        margin-bottom: 50px;
    }

    .practitioner-section {
        padding-bottom: 60px;
    }

    .practitioner-grid {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .practitioner-text {
        width: 100%;
    }

    .practitioner-text p {
        font-size: 16px;
        text-align: center;
    }

    .practitioner-image {
        width: 100%;
    }

    .practitioner-image img {
        max-width: 100%;
        max-height: none;
        height: auto;
    }

    .why-wrapper {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }

    .why-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .why-left h2 {
        font-size: 44px;
    }

    .why-right {
        max-width: 100%;
    }

    .why-right p {
        font-size: 16px;
    }

    .vision-section {
        height: auto;
        padding: 80px 20px;
    }

    .vision-content h2 {
        font-size: 38px;
    }

    .vision-content p {
        font-size: 16px;
    }

    .why-choose-heading {
        font-size: 44px;
        margin-bottom: 50px;
    }

    .why-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 50px 40px;
    }

    .why-card-left {
        flex: none;
        width: 100%;
    }

    .why-card-left h3 {
        font-size: 30px;
    }

    .why-card p {
        font-size: 16px;
    }

    .trusted-heading {
        font-size: 44px;
        margin-bottom: 40px;
    }

    .trusted-partners {
        padding: 40px 0;
        margin-bottom: 80px;
    }

    .partner-item {
        padding: 0 35px;
    }

    .partner-item img {
        max-width: 120px;
        height: 58px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ============================================= */

@media screen and (max-width: 767px) {
    .mission-section {
        margin-top: -40px;
        padding: 0 16px 60px;
    }

    .mission-box {
        padding: 40px 30px;
        border-radius: 25px;
    }

    .mission-box h3 {
        font-size: 20px;
    }

    .mission-box p {
        font-size: 15px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .practitioner-text p {
        font-size: 15px;
    }

    .why-insight {
        padding: 60px 0;
    }

    .why-left h2 {
        font-size: 30px;
    }

    .why-right p {
        font-size: 15px;
    }

    .vision-content h2 {
        font-size: 26px;
    }

    .vision-content p {
        font-size: 15px;
    }

    .why-choose-section {
        padding: 60px 0;
    }

    .why-choose-heading {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .why-card {
        padding: 40px 25px;
        gap: 20px;
    }

    .why-card-left {
        gap: 20px;
    }

    .why-card-left img {
        width: 60px;
        height: 60px;
    }

    .why-card-left h3 {
        font-size: 24px;
    }

    .why-card p {
        font-size: 15px;
    }

    .trusted-partners {
        margin-bottom: 40px;
        padding: 24px 0;
    }

    .trusted-heading {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .partner-item {
        padding: 0 24px;
    }

    .partner-item img {
        max-width: 100px;
        height: 50px;
    }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max-width: 479px)
   ============================================= */

@media screen and (max-width: 479px) {
    .mission-box {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .why-images img {
        width: 60px;
        height: 60px;
    }

    .why-left h2 {
        font-size: 26px;
    }

    .why-btn {
        width: 100%;
    }

    .vision-content h2 {
        font-size: 22px;
    }

    .why-choose-heading {
        font-size: 26px;
    }

    .why-card {
        padding: 30px 20px;
    }

    .why-card-left h3 {
        font-size: 20px;
    }

    .trusted-heading {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .partners-carousel::before,
    .partners-carousel::after {
        width: 60px;
    }

    .partner-item {
        padding: 0 16px;
    }

    .partner-item img {
        max-width: 70px;
        height: 36px;
    }
}