html {
    background-color: #f0f0f0;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0px;
    background-color: #f0f0f0;
}

.logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A3C34;
    padding: 0px;
    z-index: 1;
    height: 70px;
}

.header {
    padding: 30px 1px 1px; /* Increased padding-top for more green space */
    text-align: center;
    background: #1A3C34;
    color: white;
    position: relative;
    min-height: 115px; /* Increased to accommodate logo and padding */
    z-index: 10;
}

.header h1 {
    font-size: 50px;
    margin: 0;
    padding-top: 60px;
    position: relative;
}

.navbar {
    overflow: visible;
    background-color: #f0f0f0;
    border: 2px solid #f0f0f0;
    position: relative;
    z-index: 20;
}

.navbar a {
    float: left;
    display: block;
    color: #1A3C34;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a.right {
    float: right;
}

.navbar a:hover {
    background-color: rgba(12, 135, 111, 0.967);
    color: white;
}

.row {
    display: flex;
    flex-wrap: nowrap;
}

.side {
    flex: 20%;
    background-color: rgb(5, 9, 77);
    padding: 20px;
    color: white;
}

.main {
    flex: 80%;
    background-color: transparent;
    padding: 20px;
}

@media screen and (max-width: 500px) {
    .row {
        flex-direction: column;
    }
}

@media screen and (max-width: 400px) {
    .navbar a {
        float: none;
        width: 100%;
    }
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 600px;
    overflow: hidden;
    z-index: 5;
    background-color: #f0f0f0;
}

.slideshow-container {
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: 600px;
    margin: auto;
    background-color: #f0f0f0;
}

/*.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
} */


.slide img {
    position: absolute;
    width: 100vw;
    height: 600px;
    object-fit: cover;
    object-position: bottom;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/*.slide.active {
    display: block;
    opacity: 1;
    z-index: 5; /* Or 1, but choose one 
}  */

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    pointer-events: none; /* Optional: prevent interaction on hidden slides */
}

.slide.active {
    pointer-events: auto; /* Enable interaction on active slide */
    opacity:1;
    z-index:2; 
}


.overlay-box {
    position: absolute;
    bottom: 0;
    left: 48%;
    transform: translateX(-48%);
    background-color: rgba(0, 51, 34, 0.45);
    color: white;
    padding: 30px 60px;
    border-radius: 0px;
    text-align: center;
    font-family: 'Times New Roman', serif;
    z-index: 6;
    width: 90%;
    max-width: 1014px;
    min-height: 160px;
}

.overlay-box h2 {
    font-size: 2.5em;
    font-style: italic;
    margin: 0 0 10px 0;
    line-height: 1.2;
    margin-bottom: 10px;
}

.divider {
    width: 25%;
    height: 1px;
    background-color: white;
    margin: 10px auto;
}

.overlay-box p {
    font-size: 1.3em;
    margin: 0;
}

.about-us {
    background-color: transparent;
    padding: 20px;
    text-align: center;
    max-width: 1115px;
    margin: 0 auto;
    font-family: 'Times New Roman', serif;
    padding: 30px 10px;
}

.about-us h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: rgb(0, 0, 0);
}

.about-us p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgb(57, 55, 55);
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
}

.team-member {
    text-align: center;
    border: #246f5e 2px solid;
    border-radius: 5px;
}

.team-member img {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    margin-bottom: 10px;
    
}

.member-name {
    font-size: 1em;
    margin-top: 10px;
    font-weight: bold;
    color: #1A3C34;
}

@media screen and (max-width: 800px) {
    .team-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.preview-box {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f0f0;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.9em;
    display: none;
    cursor: pointer;
}

.article-card:hover .preview-box {
    display: block;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
    float: left;
}

.dropbtn {
    color: #1A3C34;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropbtn:hover {
    background-color: rgba(12, 135, 111, 0.967);
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f0f0f0;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 30;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 0;
}

.dropdown-content a {
    color: #1A3C34;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-content a:hover {
    background-color: rgba(12, 135, 111, 0.967);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Modern Sleek Timeline Section Styles */
.timeline-section {
    background: transparent;
    padding: 50px 20px;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 0; /* Define stacking context for the section */
}

.timeline-section h2 {
    font-size: 3em;
    color: #1A3C34;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
    font-family: 'Times New Roman', serif;
    border-bottom: 2px solid #1A3C34;
    display: inline-block;
    padding-bottom: 5px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    z-index: 0; /* Ensure timeline is below year items */
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #246f5e, #2A5C52);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    box-shadow: 0 0 5px rgba(26, 60, 52, 0.3);
    z-index: 0;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

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

.timeline-item:nth-child(odd) {
    left: -76px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item.year {
    width: 100%;
    left: 0;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    z-index: 10; /* Place year items above the timeline line */
}

.timeline-item.year .timeline-content {
    background: linear-gradient(135deg, #39f0c5, #f4fdfd);
    border: none;
    box-shadow: 0 3px 10px rgba(26, 60, 52, 0.3);
    color: #ffffff;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    font-size: 2em;
    min-height: 40px;
    line-height: 1.3;
    z-index: 10; /* Ensure content is also above the line */
}

.timeline-content {
    padding: 25px;
    background: white;
    border: 1px solid #1A3C34;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-family: 'Times New Roman', serif;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content h3 {
    font-size: 2.2em;
    color: #2A5C52;
    margin-bottom: 5px;
    font-weight: bold;
}

.timeline-content h4 {
    font-size: 1.8em;
    color: #1A3C34;
    margin-bottom: 10px;
    font-weight: bold;
}

.timeline-content h5 {
    font-size: 1.4em;
    color: #1A3C34;
    margin-bottom: 10px;
    font-weight: bold;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.timeline-content ul li {
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #1A3C34;
    border: 2px solid #ffffff;
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: 0 0 5px rgba(26, 60, 52, 0.5);
}

.timeline-item:nth-child(odd)::after {
    left: 516px;
}

.timeline-item:nth-child(even)::after {
    left: -7px;
}

.timeline-item.year::after {
    display: none;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(12, 135, 111, 0.967);
}

@media screen and (max-width: 1200px) {
    .timeline-item.year .timeline-content {
        max-width: 100%;
        padding: 8px;
        min-height: 40px;
        z-index: 10;
    }
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 90%;
        padding-left: 60px;
        padding-right: 20px;
        left: 0 !important;
        transform: none;
    }

    .timeline-item::after {
        left: 23px;
    }

    .timeline-item .timeline-content {
        text-align: left;
    }

    .timeline-item.year {
        margin-left: 0;
        margin-right: 0;
        padding: 10px 20px;
        z-index: 10;
    }
    .timeline-item.year .timeline-content {
        max-width: 100%;
        font-size: 1.6em;
        min-height: 40px;
        padding: 8px;
        z-index: 10;
    }
}