:root {
    --linen: #f5ebe0ff;
    --yale-blue: #274f71ff;
    --prussian-blue: #0b1428ff;
    --cherry-rose: #9e053dff;
    --grape-soda: #9d2f80ff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--prussian-blue);
    overflow-x: hidden;
}

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Left Navigation Panel */
.nav-panel {
    width: 280px;
    background-color: var(--prussian-blue);
    color: var(--linen);
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.nav-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(245, 235, 224, 0.2);
}

.nav-title {
    color: var(--linen);
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: center;
}

.nav-title em {
    font-size: 0.9rem;
    color: rgba(245, 235, 224, 0.8);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--linen);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(245, 235, 224, 0.1);
}

.nav-link.active {
    background-color: var(--cherry-rose);
}

.nav-link.disabled {
    color: rgba(245, 235, 224, 0.4);
    cursor: not-allowed;
    pointer-events: none;
}

/* Submenu */
.nav-submenu {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item:hover .nav-submenu {
    max-height: 500px;
}

.nav-submenu li {
    margin: 0;
}

.nav-sublink {
    display: block;
    padding: 8px 16px 8px 32px;
    color: rgba(245, 235, 224, 0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-sublink:hover {
    background-color: rgba(245, 235, 224, 0.1);
    color: var(--linen);
    padding-left: 36px;
}

/* Right Main Panel */
.main-panel {
    margin-left: 280px;
    flex: 1;
    background-color: var(--linen);
    border-radius: 30px 0 0 30px;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 6, 0, 0.55) 0%,
        rgba(10, 6, 0, 0.72) 60%,
        rgba(10, 6, 0, 0.9) 100%
    );
}

/* Content */
.content-origin {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.content-origin-title {
    margin-bottom: 20px;
    color: var(--prussian-blue);
}

.content-origin p {
    margin-bottom: 15px;
    line-height: 1.6;
}

h1, h2 {
    text-align: center;
}

p {
    color: var(--prussian-blue);
}

a {
    color: var(--cherry-rose);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--grape-soda);
}

.content-origin ul {
    margin-left: 40px;
    margin-bottom: 15px;
}

.content-origin li {
    list-style-type: square;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-panel {
        width: 100%;
        height: auto;
        position: relative;
        border-radius: 0;
    }

    .main-panel {
        margin-left: 0;
        border-radius: 0;
    }

    .layout-container {
        flex-direction: column;
    }

    .nav-submenu {
        max-height: 500px;
    }

    .content-origin {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-title {
        font-size: 1.1rem;
    }

    .content-origin {
        padding: 15px;
    }

    .hero {
        min-height: 300px;
    }
}