@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

:root {
    --bg-color: #F0E3D3;
    --text-color: #1E3C2B;
    --accent-color: #D3A474;
    --white: #ffffff;
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.navbar-nav a {
    color: var(--bg-color);
    font-weight: 600;
}

.navbar-nav a:hover {
    color: var(--accent-color);
}

.btn-daftar {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-daftar:hover {
    background-color: #c09060;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 60, 43, 0.7); /* Overlay hijau transparan */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #c09060;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 164, 116, 0.4);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: auto;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(211, 164, 116, 0.2);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Details Page */
.detail-header {
    margin-bottom: 30px;
}

.detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.detail-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .brand-logo {
        height: 35px;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Menu Dropdown Mobile */
    .navbar-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 20px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 99;
    }

    .navbar-nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
        padding-top: 15px;
        padding-bottom: 5px;
        text-align: center;
    }

    .navbar-nav a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .btn-daftar {
        display: inline-block;
        padding: 10px 25px;
        width: 100%;
        text-align: center;
        border-radius: 50px;
    }

    /* Animasi silang (X) pada tombol hamburger */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        min-height: 70vh;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-content {
        padding: 25px 15px;
    }

    .footer {
        padding: 30px 0 15px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
}
