
/* Mission section – same overlay as news (Theme 1 overlay at 5% opacity) */
.mission-section {
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/theme%201%20-%20overlay.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.mission-section .container {
    position: relative;
    z-index: 1;
}

/* History section */
.history-section {
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/theme%201%20-%20overlay.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.history-section .container {
    position: relative;
    z-index: 1;
}

/* About Page Specific Styles – match other inner pages (Associates, UserBenefits, etc.) */
.about-hero {
    background: linear-gradient(135deg, #2c3e1f 0%, #4a5d3a 50%, #6b7f55 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* Horizontal Scrolling Timeline Styles */
.timeline-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
/*    scrollbar-width: thin;*/
    scrollbar-color: #CCA83A #f0f0f0;
    padding: 30px 0 50px;
/*    cursor: grab;*/
}

    .timeline-scroll-container:active {
        cursor: grabbing;
    }

    .timeline-scroll-container::-webkit-scrollbar {
        height: 60px;
    }

    .timeline-scroll-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
        margin: 0 20px;
    }

    .timeline-scroll-container::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #CCA83A 0%, #86A452 100%);
        border-radius: 10px;
        border: 2px solid #f0f0f0;
    }

    .timeline-scroll-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #b8962e 0%, #6f8a42 100%);
    }

.timeline-scroll-content {
    display: flex;
    gap: 25px;
    padding: 0 20px;
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}


.timeline-logo-inner {
    width: 250px;
    height: 250px;
    background: #F9F9F9;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.10);
    border-radius: 60px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    border: 2px solid transparent;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        filter: brightness(1);
    }

    50% {
        background-position: 100% 50%;
        filter: brightness(1.08);
    }

    100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
}


@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


.timeline-logo-card:hover .timeline-logo-inner {
    transform: translateY(-15px) scale(1.02) rotate(-2deg);
    box-shadow: 0px 20px 40px rgba(134, 164, 82, 0.35), 0px 0px 0px 3px rgba(204, 168, 58, 0.2);
    border-color: #CCA83A;
    background: linear-gradient( 135deg, #657B40 0%, #933330 50%, #E1B940 100% );
/*    background-size: 300% 300%;*/
    animation: gradientFlow 1s ease-in-out infinite, slowRotate 1s ease-in-out infinite;
}


.timeline-logo-img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.4s ease;
    border-radius: 30px;
   
}

.timeline-logo-card:hover .timeline-logo-img {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(204, 168, 58, 0.5));
    transform: scale(1.05);
}

/* Timeline Scroll Cards Container */
.timeline-scroll-card {
    flex-shrink: 0;
    width: 384px;
    height: 375px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    
    /* Flying in animation */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-scroll-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-logo-card {
    flex-shrink: 0;
    width: 384px;
    height: 375px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    
    /* Flying in animation */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-logo-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* The actual content card */
.timeline-card-content {
    background: #F9F9F9;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.10);
    border-radius: 60px;
    padding: 35px;
    width: 100%;
    height: 250px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    border: 2px solid transparent;
}

.timeline-scroll-card:hover .timeline-card-content {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0px 20px 40px rgba(204, 168, 58, 0.25), 0px 0px 0px 3px rgba(204, 168, 58, 0.1);
    border-color: #CCA83A;
}

.timeline-scroll-card:hover .timeline-scroll-title {
    color: #CCA83A;
}

/* Connector line from card to timeline */
.timeline-connector {
    width: 3px;
    height: 100px;
    bottom: 40px;
    background: linear-gradient(180deg, #333E1F 0%, #862E2C 100%);
    margin-top: 0;
    position: relative;
    z-index: 2;
    transform-origin: top;
    transition: all 0.4s ease;
}

.timeline-scroll-card:hover .timeline-connector,
.timeline-logo-card:hover .timeline-connector {
    background: linear-gradient(180deg, #CCA83A 0%, #862E2C 100%);
    transform: scaleY(1.1);
}

    /* Dot at the end of connector */
    .timeline-connector::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        background: #862E2C;
        border-radius: 50%;
        border: 3px solid #F9F9F9;
        z-index: 3;
/*        transition: all 0.3s ease;*/
    }

.timeline-connector::before {
    z-index: 1;
}

    .timeline-scroll-card:hover .timeline-connector::after,
    .timeline-logo-card:hover .timeline-connector::after {
        background: #CCA83A;
        box-shadow: 0 0 15px rgba(204, 168, 58, 0.6);
        transform: translateX(-50%) scale(1.3);
    }

/* Pulse animation for connector dots when in view */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(204, 168, 58, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(204, 168, 58, 0);
    }
}

.timeline-scroll-card.in-view .timeline-connector::after,
.timeline-logo-card.in-view .timeline-connector::after {
    animation: pulse 2s ease-in-out infinite;
}

/* Horizontal timeline line */
.timeline-horizontal-line {
    position: absolute;
    bottom: 145px;
    left: 0%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(134, 46, 44, 0.3) 0%, 
        #862E2C 10%,
        #604B33 30%, 
        #CCA83A 50%,
        #604B33 70%, 
        #862E2C 90%,
        rgba(134, 46, 44, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(204, 168, 58, 0.15);
}

.timeline-scroll-date {
    display: inline-block;
    background: linear-gradient(135deg, #CCA83A 0%, #b8962e 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.84px;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(204, 168, 58, 0.25);
    transition: all 0.3s ease;
}

.timeline-scroll-card:hover .timeline-scroll-date {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(204, 168, 58, 0.4);
}

.timeline-scroll-title {
    color: #862E2C;
    font-size: 20px;
    font-weight: 700;
    line-height: 29px;
    margin-bottom: 7px;
    transition: all 0.3s ease;
}

.timeline-scroll-description {
    color: #6E6E6E;
    font-size: 17px;
    line-height: 26px;
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-scroll-card:hover .timeline-scroll-description {
    color: #4a4a4a;
}


    .timeline-logo-img {
        max-width: 150px;
        max-height: 150px;
    }

    .timeline-scroll-date {
        font-size: 12px;
    }

    .timeline-scroll-title {
        font-size: 18px;
        line-height: 26px;
    }

    .timeline-scroll-description {
        font-size: 15px;
        line-height: 22px;
    }




