
.about-page-video-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; 
    min-height: 100vh;
    min-width: 177.77vh; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

.video-overlay-content .container {
    position: relative;
    z-index: 2;
}

.video-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.video-text {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.who-we-are-section,
.history-section,
.about-products-section,
.fifty-fifty-section,
.two-linked-images-section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 2rem;
}

.section-subtitle {
    font-size: 16px;
    color: #404040;
    max-width: 600px;
    margin: 0 auto 40px;
}

.who-we-are-section .section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    text-align: center;
    display: block;
}

.who-we-are-section .section-subtitle p {
    text-align: center;
    margin: 0;
}


.who-we-are-items {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.who-we-are-item {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    flex-basis: calc(25% - 20px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.who-we-are-icon {
    height: 50px;
    margin-bottom: 2px;
}

.who-we-are-title {
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: 0;
}

.who-we-are-subtitle {
    font-size: 16px;
    color: #333;
}



.timeline-text {
    color: #555;
    line-height: 1.7;
}

.timeline-text img {
    max-width: 100%;
    height: auto;

    margin-top: 15px;
    margin-bottom: 15px;
}

.timeline-text .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.timeline-text .col-sm-6,
.timeline-text .col-md-4,
.timeline-text .col-md-6,
.timeline-text .col-md-8,
.timeline-text .col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
}

.clearfix {
    clear: both;
}

.m-t-40 { margin-top: 40px; }
.m-b-30 { margin-bottom: 30px; }
.p-b-100 { padding-bottom: 100px; }


@media (max-width: 767px) {

.section-title {
    font-size:1.85rem;
}

}



.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-card {
    position: relative;
    overflow: hidden;

}

.product-card img {
    width: 100%;
    display: block;
}

.product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.product-card-content h3 {
    margin-top: 0;
}

.product-card-content .btn {
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}


.fifty-fifty-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.fifty-fifty-image img {
    width: 100%;

}


.two-linked-images-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.linked-image-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.linked-image-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.linked-image-card:hover img {
    transform: scale(1.05);
}

.linked-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color:white;
}

.linked-image-content h3 {
    margin: 0;
}

.linked-image-content .btn {
    background-color:transaprent;
    color: #fff;
    border:1px solid #fff;
    padding: 10px 20px;
    border-radius: 90px;
    white-space: nowrap;
}

.linked-image-content .btn:hover {
    background-color:#fff;
    color: #212121;
}


@media (max-width: 767px) {
    .who-we-are-item {
        flex-basis: calc(50% - 20px);
    }
    .products-grid,
    .fifty-fifty-container,
    .two-linked-images-container {
        grid-template-columns: 1fr;
    }

    .about-page-video-section {
        height: auto;
        max-height: 500px;
        min-height: 500px;
    }

    .video-overlay-content {
        justify-content: flex-end;
        padding-bottom: 20px;
    }

    .video-title {
        font-size: 1.8rem;
        line-height: 1.9rem;
    }
}

/* ========================================
   History Timeline Section
   ======================================== */

.history-timeline-section {
    padding: 80px 0;
    background: #fff;
}

.history-timeline-section .section-heading {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #212121;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timeline Navigation Points */
.timeline-pagination-custom {
    list-style: none;
    padding: 0;
    margin: 0 0 60px;
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: flex-end;
}

.timeline-pagination-custom::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

/* Progress fill overlay line (controlled by --timeline-progress-ratio 0..1) */
.timeline-pagination-custom::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #003366;
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(var(--timeline-progress-ratio, 0));
    transition: transform 300ms ease;
}

.timeline-pagination-switch {
    position: relative;
    cursor: pointer;
    text-align: center;
    flex: 1;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 15px 10px;
}

.switch-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.switch-circle {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 10px; /* align to baseline */
    transform: translate(-50%, 50%); /* keep center on baseline */
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
    z-index: 2;
}

.timeline-pagination-switch.active .switch-title {
    color: #003366;
    font-size: 18px;
}

.timeline-pagination-switch.active .switch-circle {
    width: 20px;
    height: 20px;
    background: #003366;
    border-color: #003366;
    box-shadow: 0 0 0 6px rgba(0, 51, 102, 0.15);
    box-sizing: border-box;
}

.timeline-pagination-switch:hover .switch-circle {
    /* keep circle aligned to baseline; no scale */
    transform: translate(-50%, 50%);
    border-color: #003366;
}


/* Timeline Cards */
.timeline-swiper {
    margin-top: 40px;
    overflow: hidden; /* prevent horizontal overflow */
}

.timeline-swiper .swiper-slide {
    height: auto;
}

.timeline-swiper .swiper-wrapper {
    align-items: stretch;
}

.timeline-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0,0,0,0.12);
}

.timeline-card__image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.timeline-card__video {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000; /* black bars for contain */
    flex-shrink: 0;
}

.timeline-card__video iframe,
.timeline-card__video embed,
.timeline-card__video video {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.timeline-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top; /* align visual to left */
    transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-card__image img { transform: none; }

.timeline-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #EAEAEA;
    border-radius: 0px 0px 8px 8px;
    border-top:none;
}

/* Title + Year pill row */
.timeline-card__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 12px;
    margin-bottom: 10px;
}

.timeline-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 12px;
    line-height: 1.3;
}

.timeline-card__year {
    align-self: start;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 90px;
    white-space: nowrap;
}

.timeline-card__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7; /* clamp to ~7 lines on desktop */
    overflow: hidden;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-card__image {
        height: 180px;
    }
    .timeline-card__video {
        height: 180px;
    }

    .timeline-card__content {
        padding: 20px;
    }

    .timeline-card__title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .history-timeline-section {
        padding: 60px 0;
    }

    .who-we-are-section,
.history-section,
.about-products-section,
.fifty-fifty-section,
.two-linked-images-section {
    padding:30px 0px;
}

    .history-timeline-section .section-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .timeline-pagination-custom {
        margin-bottom: 40px;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 32px;
        padding-bottom: 6px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;     /* Firefox */
    }
    .timeline-pagination-custom::-webkit-scrollbar { display: none; }
    .timeline-pagination-switch { flex: 0 0 auto; }

    .switch-title {
        font-size: 14px;
    }

    .timeline-pagination-switch.active .switch-title {
        font-size: 15px;
    }

    .timeline-card__image {
        height: 160px;
    }
    .timeline-card__video {
        height: 160px;
    }

    .timeline-card__content {
        padding: 20px;
    }

    .timeline-card__title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .timeline-card__description {
        font-size: 14px;
        -webkit-line-clamp: 6;
    }
}

@media (max-width: 767px) {

.who-we-are-title {
    font-size:1.3rem;
}

.who-we-are-item {
    padding:10px;
}

.who-we-are-subtitle {
    font-size:14px;
}

.who-we-are-icon {
    height: 30px;
}

}


@media (max-width: 480px) {
    .timeline-pagination-custom {
        margin-bottom: 30px;
    }

    .switch-circle {
        bottom:5px;
    }

    .switch-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .timeline-pagination-switch.active .switch-title {
        font-size: 15px;
    }

    .switch-circle {
        width: 14px;
        height: 14px;
        border-width: 2px;
        box-sizing: border-box;
    }

    .timeline-pagination-switch.active .switch-circle {
        width: 18px;
        height: 18px;
        box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15);
        box-sizing: border-box;
    }

    .timeline-card__image {
        height: 150px;
    }
    .timeline-card__video {
        height: 150px;
    }

    .timeline-card__content {
        padding: 16px;
    }

    .timeline-card__title {
        font-size: 16px;
    }

    .timeline-card__description {
        font-size: 13px;
        -webkit-line-clamp: 5;
    }
}
