/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-top: 0; /* Removed padding since navbar is not fixed */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.text-left {
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

section {
    padding: 80px 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    color: #000;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Round Button */
.round-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ccc;
    color: #000;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.round-button:hover {
    transform: scale(1.05);
}

.round-button.yellow {
    background-color: #ffdd00;
}

/* Header & Navbar */
header {
    background-color: #000;
    color: #fff;
    position: static; /* Changed from fixed to static */
    width: 100%;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
}

.desktop-nav ul li {
    margin-left: 20px;
}

.desktop-nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
    color: #f0f0f0;
}

.desktop-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.search-icon {
    font-size: 1.2rem;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-nav {
    display: none;
    background-color: #000;
    padding: 20px 0;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul li {
    padding: 10px 20px;
}

.mobile-nav ul li a {
    display: block;
    font-weight: 500;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://pagaralampos.disway.id/upload/de497bb9e8acecf77bd32348adec00fc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment:fixed ;
    color: #fff;
    display: flex;
    align-items: flex-end; /* Align to bottom */
    position: relative;
}

.hero-box {
    background-color: #fff;
    color: #000;
    max-width: 350px; /* Smaller box */
    padding: 30px;
    margin-left: 7%; /* Position at bottom */
    margin-bottom: 5%;
    position: relative;
}

.hero-box h2 {
    font-size: 1.8rem; /* Smaller text */
    margin-bottom: 15px;
}

.hero-box p {
    font-size: 0.95rem; /* Smaller text */
    margin-bottom: 20px;
    color: #333;
}

.kumpulanimage {
    transform: scale(1.3);
    margin-left: 18%;
    margin-bottom:6% ;
    opacity: 0.7;
}

/* About Section */
.about {
    background-color: #fff;
}

/* Legenda Section - Horizontal Style like British Museum */
.legenda {
    background-color: #000;
    color: #fff;
    padding: 60px 0;
}

.legenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.legenda-header h2 {
    font-size: 2.8rem;
    color: #fff;
}

.view-more {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(5px);
}

.legenda-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.legenda-card {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    background-color: #1a1a1a;
    overflow: hidden;
}

.legenda-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.legenda-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.legenda-content .subtitle {
    color: #ffdd00;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.legenda-content .description {
    color: #ccc;
    margin-bottom: 20px;
}

.legenda-image {
    flex: 1;
    overflow: hidden;
}

.legenda-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Styles */
.slider-outer-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 60x;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

/* Napak Tilas Slider */
#napak .slide {
    min-width: calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    color: #333;
}

#napak .slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

#napak .slide h3 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

#napak .slide p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Peninggalan Slider */
#peninggalan-slider .slide {
    min-width: calc(33.33% - 15px);
    flex: 0 0 calc(33.33% - 15px);
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    color: #333;
}

#peninggalan-slider .slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

#peninggalan-slider .slide h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    
}

#peninggalan-slider .slide p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.slider-btn {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Napak Tilas Section */
.napak-tilas {
    background-color: #fff;
}

/* Biografi CTA Section */
.biografi-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://pagaralampos.disway.id/upload/de497bb9e8acecf77bd32348adec00fc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: left;
    padding: 100px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Peninggalan Section */
.peninggalan {
    background-color: #f9f9f9;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: #555;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    #napak .slide {
        min-width: calc(33.33% - 15px);
        flex: 0 0 calc(33.33% - 15px);
    }
    
    #peninggalan-slider .slide {
        min-width: calc(50% - 15px);
        flex: 0 0 calc(50% - 15px);
    }
    
    .slider-container {
        margin: 0 50px;
    }
    
    .hero-box {
        max-width: 320px;
    }
    
    .legenda-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        background-size: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        
    }
    .hero-box {
        max-width: 300px;
        margin-left: 5%;
        margin-bottom: 5%;
        padding: 20x;
        
        
    }
    .kumpulanimage {
        transform: scale(0.2);
        margin-left: 100%;
        
    }
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-box h2 {
        font-size: 1.6rem;
    }
    
    .hero-box {
        max-width: 400px;
        padding: 25px;
    }
    
    .legenda-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-more {
        margin-top: 15px;
    }
    
    #napak .slide {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    #peninggalan-slider .slide {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .slider-container {
        margin: 0 40px;
    }
    
    .legenda-content {
        padding: 30px;
    }
    
    .legenda-content h3 {
        font-size: 1.8rem;
    }
    
    .legenda-card {
        flex-direction: column;
    }
    
    .legenda-content, 
    .legenda-image {
        width: 100%;
    }
    
    .legenda-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-box {
        max-width: 300px;
        margin-left: 5%;
        margin-bottom: 5%;
        padding: 20px;
        margin-top: 100px;
        
    }
    
    .hero-box h2 {
        font-size: 1.4rem;
    }
    
    .hero-box p {
        font-size: 0.9rem;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact,
    .footer-social {
        flex: 100%;
    }
    
    .slider-container {
        margin: 0 30px;
    }
    
    .round-button {
        width: 60px;
        height: 60px;
    }
}
