* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {color: white;
    overflow-x: hidden;
    height: 100vh;
}

/* Header with logo */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-start;
    background-color: transparent;
}

.logo {
    height: 50px;
    width: auto;
    z-index: 101;
}

/* Main content with background image */
.main-content {
    position: relative;
    width: 100%;
    height: 100vh;
}

.background-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease;
    opacity: 0;
}

.background-image.active {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(73, 49, 49, 0.2);
    z-index: 1;
}

/* Text content */
.content-container {
position: absolute;
top: 73%; /* Change this value to move it up or down */
left: 50%;
 transform: translate(-50%, -50%); /* Keep this to maintain horizontal centering */
 width: 80%;
max-width: 900px;
text-align: center;
z-index: 2;
 padding: 0.5rem;
}   

.hero-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1.5px #e2a330;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Removed year-display styling as element is removed */
/* .year-display {
    margin-bottom: 1rem;
}

.current-year {
    font-size: 3rem;
    font-weight: bold;
    color: #e2a330;
} */

/* Wrapper for individual slides */
.slides-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: 170px; /* Fixed height to prevent content jump, adjust as needed */
    overflow: hidden; /* Hide slides that are not active */
}

/* Individual heritage slide item */
.heritage-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left; /* Align text left within each item */
    overflow-y: auto; /* Enable scrolling for individual slide content if too long */
    max-height: 170px; /* Max height for content within a slide */
    display: flex; /* Use flex for internal content alignment if needed */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}

.heritage-slide.active {
    opacity: 1;
}

.heritage-slide .slide-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #e2a330;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center; /* Center the title within the slide */
}

.heritage-slide .banner-para {
    font-size: 0.90rem;
    line-height: 1.2;
    color: white;
    text-align: center; /* Center the paragraph within the slide */
}

.heritage-slide .featured-person {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-size: 0.85rem;
    text-align: center; /* Center the featured person text */
}

/* Slide navigation arrows (within a year) */
.slide-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px; /* Padding for arrows from the sides */
    z-index: 3; /* Above slides, below overlay */
    pointer-events: none; /* Allows clicks to pass through to main content */
}

.slide-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto; /* Make arrows clickable */
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #e2a330;
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}

/* Progress bar */
.progress-container {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #e2a330;
    transition: width linear;
}

/* Year navigation */
.year-navigation {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1rem 0;
    z-index: 100;
}

.timeline-container {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
}

.year-container {
    display: flex;
    width: calc(100% - 100px);
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

.year-container::-webkit-scrollbar {
    display: none;
}

.year-button {
    background: none;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.year-button::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.year-button:hover {
    color: #e2a330;
}

.year-button:hover::before {
    background-color: #e2a330;
    transform: scale(1.3);
}

.year-button.active {
    color: #e2a330;
    font-weight: bold;
    transform: scale(1.1);
}

.year-button.active::before {
    background-color: #e2a330;
    transform: scale(1.3);
    box-shadow: 0 0 10px #e2a330;
}

.year-controls {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.year-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    margin: 0 10px;
    z-index: 10;
    align-self: center;
}

.year-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #e2a330;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 1.6rem;
    }

    /* .current-year {
        font-size: 2.5rem;
    } */

    .heritage-slide .slide-title {
        font-size: 1.3rem;
    }

    .heritage-slide .banner-para {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 1.6rem;
        -webkit-text-stroke: 1.5px #e2a330;
    }

    /* .current-year {
        font-size: 2rem;
    } */

    .content-container {
        width: 90%;
        top: 70%;
        padding: 0.3rem;
    }

    .slides-wrapper {
        height: 150px; /* Adjust height for smaller screens */
    }

    .heritage-slide {
        max-height: 150px; /* Adjust height for smaller screens */
    }

    .heritage-slide .slide-title {
        font-size: 1.2rem;
    }

    .heritage-slide .banner-para {
        font-size: 0.95rem;
    }

    .year-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.6rem;
        -webkit-text-stroke: 1px #e2a330;
        margin-bottom: 0.5rem;
    }

    /* .current-year {
        font-size: 1.5rem;
    } */

    .slides-wrapper {
        height: 180px; /* Adjust height for smaller screens */
    }

    .heritage-slide {
        max-height: 180px; /* Adjust height for smaller screens */
    }

    .heritage-slide .slide-title {
        font-size: 1rem;
    }

    .heritage-slide .banner-para {
        font-size: 0.75rem;
        line-height: 1.1;

    }

    .year-button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .year-button::before {
        width: 10px;
        height: 10px;
    }

    .header {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 40px;
    }
}
