:root {
    --primary-color: #4A8072;
    --secondary-color: #E68A6E;
    --bg-color: #FAFAF9;
    --text-color: #334155;
    --header-bg: #FFFFFF;
    --footer-bg: #F1F5F9;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

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

html, body {
    overflow-x: hidden;
}

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

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

/* Header */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

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

.nav-links li a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--header-bg);
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: height 0.3s ease-in-out;
    }

    .nav-links.active {
        height: 300px; /* Adjust based on number of items */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
}

/* Main Content Padding */
main {
    padding: 40px 0;
}

/* Common Typography */
h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

/* Share Button */
.share-fab {
    position: fixed;
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    z-index: 9999;
    transition: transform 0.2s, background-color 0.2s;
}

.share-fab:hover {
    transform: scale(1.05);
    background-color: #3d6b5f; /* Slightly darker primary */
}

.share-fab:active {
    transform: scale(0.95);
}

.share-fab .material-icons {
    font-size: 24px;
}
