/* ====== Hero Section ====== */
section.section--hero-carousel {
    padding-top: 0;
}

.hero {
    padding: 3rem 1rem;
}

.hero__subtitle {
    font-family: 'Ms Madi', cursive;
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    color: #697D88;
    font-weight: normal;
    position: relative;
    left: -2rem;
    line-height: 65%;
    animation-delay: 0.3s;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-weight: 400;
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    line-height: 90%;
    color: #0a2d3e;
    margin-bottom: 1.5rem;
    animation-delay: 0.4s;
    animation-duration: 0.1s;
}

.hero__image {
    display: block;
    width: 100%;
    max-height: auto;
}

.hero__image img {
    width: 100%;
    max-height: 35rem;
    object-fit: cover;
    object-position: top;
}

.hero__text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    animation-delay: 0.6s;
}

.hero__actions {
    animation-delay: 0.7s;
}

.hero__link {
    font-weight: 500;
    color: #0a2d3e;
    text-decoration: none;
    display: inline-block;
    align-self: center;
    transition: color 0.3s;
    font-size: var(--font-size-medium);
}

.hero__link:hover {
    color: #444;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: unset;
}

.carousel-caption.carousel-caption-sub-page {
    align-items: flex-start;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    height: auto;
    inset: auto 0 0 0;
    background: rgb(11 11 11 / 37%);
    backdrop-filter: blur(21.5px);
    transform: unset;
}

.carousel-caption.carousel-caption-sub-page h3.hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.carousel-caption.carousel-caption-sub-page p.hero__text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #ffffff;
    margin-bottom: 0;
}

/* ====== About Intro Section ====== */
.about-intro__title {
    font-size: 1.8rem;
    font-weight: 700;
}

.heading .icon {
    position: absolute;
    right: -1.5rem;
    transform: translateY(-50%);
}

.about-intro__desc {
    margin: 1.5rem 0;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.about-intro__desc p {
    line-height: 150%;
}

.about-intro__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    background: #F1F7FF;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    width: max-content;
}

.about-intro__stat {
    border-right: 1px solid #C2D2E9;
    padding-right: 1.5rem;
}

.about-intro__stat:last-child {
    padding: 0;
    border: none;
}

.about-intro__stats h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: calc(1.375rem + 1vw);
}

.about-intro__stats small {
    font-size: 0.9rem;
    color: var(--color-text);
}

.about-intro__video-wrapper {
    position: relative;
    overflow: hidden;
}

.about-intro__video-thumbnail {
    border-radius: 0;
    object-fit: cover;
    width: 100%;
    display: block;
}

.about-intro__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../images/icons/icon-play-video.svg) no-repeat center center;
    background-size: cover;
    border: none;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-intro__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.about-intro__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-intro__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-jb-experience {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(255 255 255 / 70%) 16.5%, rgb(255 255 255 / 87%) 25%, #FFFFFF 100%), url(../images/gallery/about-us-image-bg.png) no-repeat, #012840;
}

.section-vision {
    margin-bottom: 3rem;
}

.about-team {
    background: #F4F4F4;
    margin-bottom: 4rem;
}

.about-team__slider {
    max-width: 900px;
    margin: 0 auto;
}

.about-team__card {
    text-align: center;
    padding: 1rem;
}

.about-team__img {
    width: 17.625rem;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

.about-team__name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.about-team__designation {
    color: #777;
    font-size: 0.95rem;
}

/* ====== Testimonial ====== */
.testimonial__container {
    margin: 0 auto;
    position: relative;
}

.testimonial__slider {
    display: flex;
    align-items: stretch;
}
/*
.testimonial__card {
    background: #F4F4F4;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 320px;
}

*/

.testimonial__slider .testimonial__card {
    margin: 0 0.75rem;
    /* Half of 1.5rem on each side = total 1.5rem gap */
}

.testimonial__slider .slick-list {
    margin: 0 -0.75rem;
    /* Negative half margin to balance */
}

.testimonial__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.testimonial__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0a2d3e;
    margin-bottom: 0.25rem;
}

.testimonial__date {
    font-size: 0.875rem;
    color: #7a7a7a;
    margin-bottom: 1rem;
}

.testimonial__text {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    min-height: 4rem;
}

.testimonial__link {
    display: inline-block;
    font-size: 0.95rem;
    color: #0a2d3e;
    text-decoration: underline;
    transition: color 0.3s;
}

.testimonial__link:hover {
    color: #06304e;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial__card {
        padding: 1.5rem 1rem;
    }
}

/* ====== Instagram Section ====== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery__item {
    overflow: hidden;
}

.gallery__item:nth-child(1) {
    grid-column: span 2 / span 2;
    grid-row: span 1 / span 1;
    aspect-ratio: 2 / 1;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery__image:hover {
    transform: scale(1.05);
}

.dashboard-card {
    background-color: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 0 rgb(0 0 0 / 8%);
}

.auto-height {
    field-sizing: content;
    resize: none;
}

.member__arrow {
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
}

.member__arrow--left {
    background: url(../images/icons/icon-arrow-left.svg) no-repeat center center;
    background-size: cover;
}

.member__arrow--right {
    background: url(../images/icons/icon-arrow-right.svg) no-repeat center center;
    background-size: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero__text {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery__item {
        aspect-ratio: 1/1;
        /* 🧠 Make all images square and same size in mobile */
    }

    .gallery__image {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .about-intro__stat {
        padding-right: 1rem;
    }

    .section-jb-experience {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255 255 255 / 70%) 16.5%, rgb(255 255 255 / 87%) 25%, #ffffffd4 100%), url(../images/gallery/about-us-image-bg.png) no-repeat, #012840;
        background-size: cover;
        margin-block: 2rem !important;
    }

    .heading .icon {
        display: none;
    }

    .section-vision {
        padding-block: 2rem !important;
    }

    .w-sm-100 {
        width: 100%;
        justify-content: center;
    }
}