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

html {
    scroll-behavior: smooth;
}

body {
    background: #fffaf5;
    color: #3d3d3d;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 220px;
    background: #264653;
    color: #fffaf5;
    padding: 2rem 1rem;
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e07a5f;
    margin-bottom: 0.75rem;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #fffaf5;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    padding-left: calc(0.75rem - 3px);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #e07a5f;
    border-left-color: #e07a5f;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #ffe8d6 0%, #fffaf5 100%);
    padding: 3rem 2rem;
    margin: 0 -2rem 2rem -2rem;
    border-bottom: 1px solid #e8dfd5;
}

.site-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #264653;
    margin-bottom: 0.5rem;
}

.site-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #2a6f97;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-headline {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #264653;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.05rem;
    color: #3d3d3d;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e8dfd5;
}

.content-section:last-of-type {
    border-bottom: none;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #3d3d3d;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #2a6f97;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #e8dfd5;
}

.breadcrumb-current {
    color: #e07a5f;
    font-weight: 600;
}

.print-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #2a6f97;
    color: #2a6f97;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-btn:hover {
    background: #2a6f97;
    color: #fffaf5;
}

/* Section Title with Icon */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #264653;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    font-size: 2rem;
    display: inline-block;
}

.section-intro {
    font-size: 1.05rem;
    color: #3d3d3d;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: #f9f3ee;
    border: 1px solid #e8dfd5;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #e07a5f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.1);
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #264653;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.95rem;
    color: #3d3d3d;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #2a6f97;
    margin-top: 1rem;
}

.card-meta code {
    background: #fffaf5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Callout Box */
.callout-box {
    background: #ffe8d6;
    border-left: 4px solid #e07a5f;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.callout-box p {
    color: #264653;
    font-size: 1rem;
}

/* Steps Container */
.steps-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8dfd5;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #264653;
    color: #fffaf5;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #264653;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #3d3d3d;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e8dfd5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #264653;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.faq-question:hover {
    color: #e07a5f;
}

.faq-item p {
    color: #3d3d3d;
    line-height: 1.7;
}

/* Glossary */
.glossary-list {
    display: grid;
    gap: 1.5rem;
}

.glossary-item {
    padding: 1rem;
    background: #f9f3ee;
    border-left: 3px solid #e07a5f;
    border-radius: 4px;
}

.glossary-term {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #264653;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.glossary-def {
    color: #3d3d3d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Box */
.contact-box {
    background: #f9f3ee;
    border: 1px solid #e8dfd5;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-box p {
    margin-bottom: 1rem;
    color: #3d3d3d;
}

.contact-box a {
    color: #2a6f97;
    text-decoration: none;
    font-weight: 600;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e8dfd5;
    margin-top: 3rem;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #264653;
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.9rem;
    color: #2a6f97;
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }

    .page-wrapper {
        display: block;
    }

    .main-content {
        max-width: 100%;
        padding: 0;
    }

    .print-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }

    .site-header {
        background: white;
        border: 1px solid #ccc;
    }

    .info-card,
    .callout-box,
    .contact-box {
        background: white;
        border: 1px solid #ccc;
    }

    .hero-section {
        page-break-after: avoid;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 1.5rem;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 0 1.5rem;
    }
}

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

    .step {
        grid-template-columns: 1fr;
    }

    .step-number {
        order: -1;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .site-header {
        padding: 2rem 1rem;
        margin: 0 -1.5rem 1.5rem -1.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .print-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 1rem;
    }

    .site-header {
        padding: 1.5rem;
        margin: 0 -1rem 1rem -1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card-grid {
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .callout-box {
        padding: 1rem;
    }
}

/* Light animations */
.info-card,
.step {
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
}

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