/* Home page: hero, news carousel, vision layout and CEO message. */

/* News carousel */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Base and utilities */
@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* News carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.news-carousel-caption-wrap {
    position: static;
    margin-top: 0.75rem;
}

.news-carousel-caption {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to top, #001f48b0, #8b7a7af7, #00000096);
    border-radius: 10px;
}

.news-carousel-title {
    font-size: 1.1rem;
    line-height: 1.35;
    place-self: center;
}

.news-carousel-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    margin-right: 41%;
    background-color: #263449ab !important;
    border-color: #bfbfbf !important;
}

/* Base and utilities */
@media (min-width: 768px) {
    .news-carousel-btn {
        font-size: 1rem;
        padding: 0.6rem 1.1rem;
    }

    .news-carousel-title {
        font-size: 1.6rem;
    }

    .carousel-item {
        position: relative;
    }

    .news-carousel-caption-wrap {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0;
    }

    .news-carousel-caption {
        margin: 0 auto;
    }
}

/* Hero */
.bg-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(36rem, 100svh, 52rem);
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center 26%;
    background-size: cover;
}

.hero-video {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Base and utilities */
@media (max-width: 575.98px) {
    .hero-video {
        object-position: 70% center;
    }
}

/* Hero */
.bg-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    padding-top: clamp(9rem, 19vh, 13rem);
    padding-right: 50%;
    padding-bottom: 4rem;
    padding-left: clamp(2rem, 1vw, 8rem);
}

.hero-copy {
    max-width: 620px;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background-color: #0000003d;
}

.hero-title {
    margin: 0 0 14rem;
    text-align: center;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: -20px 14px 11px rgb(78 78 78 / 70%);
}

.hero-sub {
    max-width: 590px;
    text-align: justify;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    line-height: 1.9;
}

/* Base and utilities */
@media (max-width: 991.98px) {
    .bg-hero {
        min-height: clamp(34rem, 82svh, 46rem);
        background-position: 58% center;
    }

    .hero-content {
        padding-top: clamp(8rem, 16vh, 10rem);
        padding-right: 45%;
        padding-left: 3rem;
    }

    .hero-copy {
        max-width: 560px;
        padding: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .hero-sub {
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .bg-hero {
        min-height: 39rem;
        /* Moves the actual image slightly LEFT */
        background-position: 70% center;
    }

    .hero-content {

        box-sizing: border-box;
    }

    .hero-copy {

        text-align: center;
    }

    .hero-title {
        margin-bottom: 1rem;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.3;
    }

    .hero-sub {
        margin: 0;
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Hero */
html[dir='rtl'] .hero-content {
    padding-right: 59%;
}

html[dir='rtl'] .hero-copy {
    text-align: right;
}

.bg-hero,
.hero-content,
.hero-copy {
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: none;
}

/* Base and utilities */
@media (max-width: 575.98px) {
    .hero-content {
        display: block;
        width: 100%;
        max-width: none;
        min-height: 39rem;
        /* Override any desktop left/right 50% padding */
        padding: 7rem 1rem 2rem !important;
    }

    .hero-copy {
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 1rem 0.75rem;
        box-sizing: border-box;
    }

    .hero-title,
    .hero-sub {
        width: 100%;
        max-width: none;
    }
}

/* Vision and mission */
.feature-layout {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 520px) minmax(
        180px,
        1fr
        );
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    column-gap: 42px;
    row-gap: 70px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-image {
    grid-column: 2;
    grid-row: 1 / 4;
    height: 100%;
    min-height: 560px;
}

.feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.feature-point {
    max-width: 300px;
}

.feature-top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.feature-top-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.feature-bottom-left {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
}

.feature-bottom-right {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
}

.feature-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.feature-heading h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1.2vw + 0.5rem, 1.5rem);
}

.feature-heading i {
    flex: 0 0 auto;
    font-size: 2rem;
    color: var(--primary);
}

.feature-point h5 {
    margin: 0;
    line-height: 1.8;
    text-align: start;
}

.feature-top-left h5 {
    text-align: end !important;
}

.feature-bottom-left h5 {
    text-align: end !important;
}

html[dir='rtl'] .feature-heading {
    flex-direction: row;
}

.feature-top-left,
.feature-bottom-left {
    text-align: right;
}

.feature-top-left .feature-heading,
.feature-bottom-left .feature-heading {
    justify-content: flex-end;
}

.feature-top-right,
.feature-bottom-right {
    text-align: left;
}

.feature-top-right .feature-heading,
.feature-bottom-right .feature-heading {
    justify-content: flex-start;
}

.right-icon {
    display: none;
}

.left-icon {
    display: flex;
}

/* Base and utilities */
@media (max-width: 900px) {
    .feature-layout {
        grid-template-columns: minmax(150px, 1fr) minmax(280px, 400px) minmax(
            150px,
            1fr
            );
        column-gap: 25px;
        row-gap: 50px;
        padding: 0 18px;
    }

    .feature-image {
        min-height: 500px;
    }

    .feature-point {
        max-width: 260px;
    }

    .feature-heading {
        gap: 10px;
        margin-bottom: 12px;
    }

    .feature-heading h2 {
        font-size: 1.25rem;
    }

    .feature-heading i {
        font-size: 1.7rem;
    }

    .feature-point h5 {
        line-height: 1.7;
    }
}

@media (max-width: 767px) {
    .feature-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        'image image'
        'vision vision'
        'mission goal'
        'message message';
        gap: 28px 14px;
        width: 100%;
        max-width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
    }

    .right-icon {
        display: flex;
    }

    .left-icon {
        display: none;
    }

    .feature-image {
        grid-area: image;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 8px;
    }

    .feature-image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 10px;
    }

    .feature-top-left {
        grid-area: vision;
    }

    .feature-top-right {
        grid-area: mission;
    }

    .feature-bottom-left {
        grid-area: message;
    }

    .feature-bottom-right {
        grid-area: goal;
    }

    .feature-point {
        width: 100%;
        max-width: none;
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        box-sizing: border-box;
        /*
        * IMPORTANT:
        * Alignment follows the page language.
        */
        text-align: start !important;
    }

    .feature-heading,
    .feature-top-left .feature-heading,
    .feature-bottom-left .feature-heading,
    .feature-top-right .feature-heading,
    .feature-bottom-right .feature-heading {
        display: flex;
        align-items: center;
        /*
        * start = left in LTR
        * start = right in RTL
        */
        justify-content: flex-start !important;
        gap: 10px;
        margin-bottom: 9px;
    }

    .feature-heading h2 {
        margin: 0;
        font-size: 1.15rem;
        line-height: 1.25;
        font-weight: 600;
    }

    .feature-heading i {
        flex: 0 0 auto;
        font-size: 1.35rem;
        color: var(--primary);
    }

    .feature-point h5 {
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.65;
        /*
        * Follows document direction.
        */
        text-align: start !important;
        font-weight: 400;
    }

    .feature-top-right,
    .feature-bottom-right {
        padding-inline-start: 18px;
        /*
        * Automatically:
        * LTR → padding on left
        * RTL → padding on right
        */
        border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
    }

    html[dir='rtl'] .feature-point {
        text-align: right !important;
    }
}

@media (max-width: 480px) {
    .feature-layout {
        padding: 0 15px;
        gap: 25px 12px;
    }

    .feature-image img {
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    .feature-heading h2 {
        font-size: 1.05rem;
    }

    .feature-heading i {
        font-size: 1.25rem;
    }

    .feature-point h5 {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .feature-top-right {
        padding-right: 6px;
    }

    .feature-bottom-right {
        padding-left: 6px;
    }
}

/* CEO message */
.ceo-word-section {
    overflow: hidden;
}

.ceo-image-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}

.ceo-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.ceo-word-content {
    max-width: 720px;
}

.ceo-message {
    position: relative;
    padding-inline-start: 2.5rem;
    font-size: clamp(1rem, 0.4vw + 0.9rem, 1.18rem);
    line-height: 2;
}

.ceo-quote-icon {
    position: absolute;
    top: 0.25rem;
    inset-inline-start: 0;
    font-size: 1.75rem;
}

.ceo-signature {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 3rem;
}

.ceo-signature strong {
    font-size: 1.05rem;
}

.ceo-signature span {
    font-size: 0.9rem;
}

html[dir='rtl'] .ceo-quote-icon {
    transform: scaleX(-1);
}

/* Base and utilities */
@media (max-width: 991.98px) {
    .ceo-word-content {
        max-width: none;
    }

    .ceo-image-wrap {
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .ceo-message {
        padding-inline-start: 2rem;
        line-height: 1.9;
    }

    .ceo-quote-icon {
        font-size: 1.4rem;
    }
}
