/* ===================== Variables ===================== */
:root {
    --bg1-color: #013365;
    /* Dark Blue (main text / nav) */
    --bg3-color: #ffffff;
    /* Section background */
    --button-color: #e9292f;
    /* Bright Red (highlights / buttons) */
    --text-color: #6B7280;
    /* Primary text for sections */
    --sub-text: #000000;
}


/* Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    background: var(--light-color);

}

.slider-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.slide {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .slide {
        width: 250px;
        height: 250px;
    }

    .team-highlight {
        flex-direction: column;
        background: transparent !important;
        box-shadow: none !important;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        padding: 30px !important;
    }

    /* .timeline-content {
        width: 270px;
    } */

    .team-highlight .member-photo {
        border-radius: 15px;
    }

    .head-manager {
        padding: 0 !important;
        text-align: center;
    }

}




/* Main About Content */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    padding-bottom: 100px;
}

.about-section .section-title svg {
    margin-bottom: 5px;
}

.about-section .section-title {
    text-align: center;
    color: var(--bg1-color);
    position: relative;
    /* display: flex; */
    justify-content: center;
    width: 100%;
    align-items: center;
    margin-bottom: 0 !important;
}

.section-title-hlp {
    color: var(--button-color) !important;
}

/* .section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
} */

.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-text {
    flex: 1;
}

.story-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.story-image {
    flex: 1;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-image img,
.story-image video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.story-image:hover img {
    transform: scale(1.05);
}



.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    grid-template-rows: auto auto auto;
    /* 3 rows */
    gap: 15px;
    margin: auto;
    margin-top: 50px;
    max-width: 1000px;
    /* optional */
}

/* Common item styling */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    height: 200px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.small-top-left img {
    scale: 1.8;
    height: 100%;
    object-fit: contain;
}

.grid-item img:hover {
    transform: scale(1.05);
}

/* Main image full width row */
.main-image {
    grid-column: 1 / span 2;
    /* spans both columns */
}







/* ===================== Journey Section ===================== */
.journey-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg1-color);
    text-align: center;
}

.journey-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-titlep {
    width: 80%;
    margin: 0 auto 40px auto;
    color: var(--bg3-color);
}

.timeline-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: auto;
    height: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    background: white;
    color: var(--bg1-color);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 2px solid rgba(221, 168, 61, 0.3);
    transition: all 0.3s ease;
}

.timeline-card:hover .timeline-date {
    color: var(--bg1-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.timeline-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: auto;
}

.timeline-content .main-timeline-icon {
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-timeline-icon img {
    width: 180px;
    margin: auto;
    transition: color 0.3s ease;
}

.timeline-card:hover .main-timeline-icon {
    color: var(--primary-color);
}

.timeline-text {
    color: var(--sub-text);
    line-height: 1.6;
    font-size: 14px;
    letter-spacing: 1px;
}

.timeline-swiper .timeline-icon {
    width: 20%;
    height: 100%;
    margin: auto;
    display: flex;
    height: 100px;
    position: relative;
}

.timeline-icon .swiper-button {
    position: absolute;
    color: var(--sub-text) !important;
    padding: 25px 25px;
    border-radius: 50px;
    background-color: var(--bg3-color);
    font-size: 18px;
}

.timeline-icon .swiper-button:after {
    font-size: 24px;
    font-weight: 700;
}

.swiper-button-prev,
.swiper-button-next {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.journey-section-pagination-hlp {
    position: relative;
    margin: 20px 0;

}

.journey-section .journey-section-pagination {
    width: 100%;
    background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
    height: 10px;
    position: absolute;
    overflow: hidden;
    left: 0;
    bottom: -6%;
}

.journey-section .journey-section-pagination .journey-section-pagination-fill {
    background-color: var(--bg3-color);
    display: flex;
    width: 20%;
    height: 100%;
    border-radius: 50px;
    transition: transform 0.4s ease, width 0.4s ease;
}

.section-titlep {
    margin-bottom: 24px !important;
}

.timeline-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.timeline-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-swiper .swiper-wrapper {
    gap: 40px;
}


.timeline-nav-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.timeline-swiper .swiper-slide {
    margin-right: 0 !important;
}

.journey-section .swiper {
    overflow: visible;
}

@media (min-width: 1200px) {
    .timeline-card {
        flex: 0 0 calc((100% - 3 * 20px) / 4);
    }
}

/* 992–1199px → 3 cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .timeline-card {
        flex: 0 0 calc((100% - 2 * 20px) / 3);
    }
}

/* 768–991px → 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .timeline-card {
        flex: 0 0 calc((100% - 1 * 20px) / 2);
    }
}

/* 576–767px → 2 cards */
@media (min-width: 576px) and (max-width: 767px) {
    .timeline-card {
        flex: 0 0 calc((100% - 1 * 20px) / 2);
    }
}

/* <576px → 1 card */
@media (max-width: 575px) {
    .timeline-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .timeline-icon {
        width: 50% !important;
    }

    .story-content p {
        text-align: center;
        text-align-last: center;
    }

    .story-content {
        flex-direction: column;
    }
}


@media (min-width: 767px) and (max-width: 992px) {
    .timeline-icon {
        width: 30% !important;
    }
}





/* ------------------our life---------------- */
.section5 {
    padding: 100px 0;
    background-color: #e2e8f0;
}

.section5 .container {
    max-width: 100% !important;
}

.section5 .row h1 {
    color: var(--bg1-color);
    font: 45px;
    text-align: center;
}

.section5 .row h2 {
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
}

.section5 .row p {
    color: var(--sub-text);
    font-size: 16px;
    width: 90%;
    padding: 0;
    text-align: center;
    margin: auto;
    line-height: 1.8;
    text-align-last: center;
    /* hyphens: auto; */
}

.section5-image {
    display: flex;
    gap: 30px;
    margin-top: 20px !important;
    flex-wrap: wrap;
}

.section5-image-box {
    border-radius: 40px;
    flex: 1 1 calc(50% - 15px);
    min-width: 200px;
}

.section5-image-box img {
    border-radius: 12px;
    object-fit: cover;
}