/* ****HISTORY**** */
#history p {
    text-align: justify;
    font-size: 14px;
    text-indent: 4em;
    color: var( --color-text-pri);
}

#history h4 {
    color: var(--color-text-sec);
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}

#history img {
    max-width: 250px;
    text-align: center;
    align-items: center;
}

.menu-links {
    list-style: none;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    padding: 10px 10px;
    /* background-color: var(--color-bg-pri); */
}

.menu-links li {
    display: flex;
    align-items: center;
}

.menu-links li:not(:last-child)::after {
    content: "/";
    margin-left: 0.75rem;
    color: var( --color-text-pri);
    /* different color for slash */
    font-weight: bold;
    /* make it stand out */
}

.menu-links a {
    text-decoration: none;
    color: var(--color-text-sec)
}

.menu-links a:hover {
    color: var( --color-text-pri);
}

/* ****END OF HISTORY**** */
/* ----- POPUP STYLES ----- */
.popup-box {
    background-color: var(--color-light);
    padding: 25px 40px;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-box h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: center;
}

.popup-box ul {
    list-style: none;
    padding: 0;
}

.popup-box ul li {
    margin: 6px 0;
    color: var(--color-dark);
}

.close-btn {
    display: block;
    margin: 20px auto 0;
    background-color: var(--color-text-sec);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 15px;
}

.close-btn:hover {
    background-color: var(--color-header);
    color: var(--color-white);
}
/* 
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.timelinepopup-box {
    background: var(--color-bg-pri);
    color: var(--color-text-pri);
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-bg-sec) var(--color-bg-pri);
}

.timelinepopup-box::-webkit-scrollbar {
    width: 8px;
}

.timelinepopup-box::-webkit-scrollbar-thumb {
    background-color: var(--color-bg-sec);
    border-radius: 4px;
}

.timelinepopup-box::-webkit-scrollbar-track {
    background-color: var(--color-bg-pri);
}

.timelinepopup-box h2 {
    text-align: center;
    color: var(--color-text-sec);
    margin-bottom: 25px;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 10px 0;
    max-width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-bg-sec);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--color-bg-sec);
    color: var(--color-text-sec);
    padding: 15px 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-content h3 {
    margin: 0;
    color: var(--color-text-sec);
}

.timeline-content p {
    color: var(--color-white) !important;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background-color: var(--color-header);
    border: 3px solid var(--color-text-sec);
    top: 25px;
    border-radius: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 20px;
        left: 0 !important;
        margin-bottom: 30px;
    }

    .timeline-item::after {
        left: 0;
        right: auto;
    }

    .timeline-content {
        font-size: 16px;
        padding: 15px;
    }

    .timeline-content p {
        font-size: 12px;
        word-wrap: break-word;
    }
} */
/* Timeline POPUP with Glass Effect */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.432);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.timelinepopup-box {
    background: rgba(224, 220, 220, 0.178);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    color: var(--color-text-pri);
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.timelinepopup-box::-webkit-scrollbar {
    width: 8px;
}

.timelinepopup-box::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.timelinepopup-box::-webkit-scrollbar-track {
    background: transparent;
}

.timelinepopup-box h2 {
    text-align: center;
    color: var(--color-text-sec);
    margin-bottom: 25px;
}

/* Timeline Style */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 10px 0;
    max-width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    color: var(--color-white);
    padding: 15px 20px;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-content h3 {
    margin: 0;
    color: var(--color-text-sec);
}

.timeline-content p {
    color: var(--color-white) !important;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    top: 25px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

/* ✅ Responsive for Mobile Screens */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 20px;
        left: 0 !important;
        margin-bottom: 30px;
    }

    .timeline-item::after {
        left: 0;
        right: auto;
    }

    .timeline-content {
        font-size: 16px;
        padding: 15px;
    }

    .timeline-content p {
        font-size: 12px;
        word-wrap: break-word;
    }
}
/* .timeline {
    position: relative;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-bg-sec);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--color-bg-sec);
    color: var(--color-text-sec);
    padding: 15px 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    margin: 0;
    color: var(--color-text-sec);
}
.timeline-content p{
    color: var(--color-white) !important;
    font-size: 18px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background-color: var(--color-header);
    border: 3px solid var(--color-text-sec);
    top: 25px;
    border-radius: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
} */

.readMore {
    align-items: center;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.readMore a {
    color: var(--color-text-pri);
    background-color: var(--color-bg-sec);
    padding: 10px;
    border-radius: 20px;
}

.readMore a:hover {
    color: var(--color-text-sec);
}

/* ****For mobile view**** */
@media (max-width: 767px) {
    #historymenu {
        display: none;
    }
}