body#home .pages-section {
    margin-bottom: 0px;
}
.container-fluid{
    background-color: #f3f0ec;
}
body#home #menu-section{
    background-color: #f3f0ec;
}
.timeline-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.timeline-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./../../img/bgabout.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* make sure it stays behind */
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
  }

.timeline-container {
    margin: 0 auto;
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Dark overlay for background */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    font-size: 39px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Tab Navigation Styles */
.timeline-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    background: transparent;
    border-radius: 50px;
    padding: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #fff;
}

.timeline-tab {
    flex: 1;
    padding: 15px 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    backdrop-filter: blur(30px);
}

.timeline-tab:first-child {
    border-top-left-radius: 48px;
    border-bottom-left-radius: 48px;
}

.timeline-tab:last-child {
    border-top-right-radius: 48px;
    border-bottom-right-radius: 48px;
}

.timeline-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background: #fff;
}

.timeline-tab.active {
    background: #4a7c59;
    color: white;
}

.timeline-tab:hover:not(.active) {
    background: #4a7c59;
}

/* Timeline Content Styles */
.timeline-content-section {
    position: relative;
    min-height: 400px;
    padding-left: 10%;
    padding-right: 10%;
}

.timeline-content-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.timeline-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #fff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 40px 30px 30px 30px;
    background: #fff;
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

/* Connecting lines from dots to content */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    width: 100px;
    height: 1px;
    background: #fff;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    width: 100px;
    height: 1px;
    background: #fff;
    transform: translateY(-50%);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 30px;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-year {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    background: #ff1493;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    position: absolute;
    top: -15px;
    left: 20px;
    box-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.timeline-description {
    color: #555;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
}

@media (max-width: 768px) {
   
    .timeline-section {
        padding: 40px 0;
    }
    
    .timeline-container {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .timeline-header h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .timeline-tabs {
        max-width: 300px;
        margin: 0 auto 40px auto;
        flex-direction: column;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        gap: 10px;
    }
    
    .timeline-tab {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(30px);
        border: 1px solid #fff;
        margin: 0;
    }
    
    .timeline-tab:first-child {
        border-radius: 50px;
    }
    
    .timeline-tab:last-child {
        border-radius: 50px;
    }
    
    .timeline-tab:not(:last-child)::after {
        display: none;
    }
    
    .timeline-tab.active {
        background: #4a7c59;
        border: 1px solid #fff;
    }
    
    .timeline-content-section {
        padding-left: 0%;
        padding-right: 0%;
    }
    
    .timeline {
        position: relative;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 40px;
        position: relative;
        width: 100%;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin: 0 0 0 60px !important;
        padding: 35px 20px 25px 20px;
        box-sizing: border-box;
    }
    
    /* Mobile connecting lines */
    .timeline-item .timeline-content::before {
        content: '';
        position: absolute;
        left: -35px;
        top: 50%;
        width: 35px;
        height: 1px;
        background: #fff;
        transform: translateY(-50%);
    }
    
    .timeline-item .timeline-content::after {
        display: none;
    }
    
    .timeline-dot {
        left: 0;
        width: 30px;
        height: 30px;
        background: #444;
    }
    
    .timeline-dot::before {
        width: 12px;
        height: 12px;
        background: #fff;
    }
    
    .timeline-year {
        font-size: 18px;
        padding: 6px 12px;
        top: -12px;
        left: 15px;
    }
    
    .timeline-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .timeline-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 30px 0;
    }
    
    .timeline-container {
        padding: 15px 10px;
    }
    
    .timeline-header h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    /*.timeline-tabs {
        margin: 0 10px 30px 10px;
    }*/
    
    .timeline-tab {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .timeline-content-section {
        padding-left: 0%;
        padding-right: 0%;
    }
    
    .timeline {
        margin-left: 25px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        padding: 30px 15px 20px 15px;
        margin: 0 0 0 50px !important;
        box-sizing: border-box;
    }
    
    .timeline-item .timeline-content::before {
        left: -30px;
        width: 30px;
    }
    
    .timeline-dot {
        left: 0;
        width: 25px;
        height: 25px;
    }
    
    .timeline-dot::before {
        width: 10px;
        height: 10px;
    }
    
    .timeline-year {
        font-size: 16px;
        padding: 5px 10px;
        top: -10px;
        left: 10px;
    }
    
    .timeline-title {
        font-size: 16px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-container {
        /*max-width: 90%;*/
        padding: 20px;
    }
    
    .timeline-header h2 {
        font-size: 32px;
    }
    
    .timeline-tabs {
        max-width: 620px;
    }
    
    .timeline-tab {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .timeline-content-section {
        padding-left: 8%;
        padding-right: 8%;
    }
    
    .timeline-content {
        padding: 35px 25px 25px 25px;
    }
    
    .timeline-year {
        font-size: 18px;
        padding: 7px 13px;
    }
}