:root {
    --primary-color: #ff6f61;
    --secondary-color: #6a89cc;
    --accent-color: #f7b731;
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.95rem;
    color: #636e72;
    margin-bottom: 1.5rem;
}

.btn-open {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-open:hover {
    background-color: #4a69bd;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 30px;
    width: 80%;
    max-width: 800px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    color: #b2bec3;
}

.close:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 5%;
    background: #2d3436;
    color: #dfe6e9;
}

/* Detail Styling */
.detail-header {
    margin-bottom: 2rem;
    text-align: center;
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #eee;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--secondary-color);
}

ul.materials {
    list-style: none;
}

ul.materials li::before {
    content: "📍";
    margin-right: 10px;
}