/* Base Styles */
:root {
    --background: #f8f7f4;
    --text: #333333;
    --text-light: #666666;
    --accent: #c8a87d;
    --accent-dark: #a88a65;
    --accent-light: #e6d7c3;
    --border: #e0ddd7;
    --shadow: rgba(0, 0, 0, 0.05);
    --container-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    font-size: 16px;
    font-weight: 400;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Header Styles */
.main-header {
    background-color: var(--background);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Article Header */
.article-header {
    padding: 3rem 0 4rem;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.home-link {
    font-weight: 500;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--background);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.primary {
    background-color: var(--accent);
    color: white;
}

.primary:hover {
    background-color: var(--accent-dark);
    color: white;
}

.secondary {
    background-color: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.secondary:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.cta-buttons {
    margin-top: 2rem;
}

/* Overview Section */
.overview {
    padding: 5rem 0;
    background-color: white;
}

.overview .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    flex: 1 1 350px;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--background);
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow);
}

.text-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

/* Approach Section */
.approach {
    padding: 5rem 0;
    background-color: var(--background);
}

.approach h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.approach > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    flex: 1 1 300px;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

/* Call to Action */
.call-to-action {
    padding: 5rem 0;
    text-align: center;
    background-color: white;
}

.call-to-action h2 {
    margin-bottom: 1rem;
}

.call-to-action p {
    max-width: 700px;
    margin: 0 auto;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 0 0 3rem;
}

.content-section {
    padding: 3rem 0;
}

.content-section:nth-child(odd) {
    background-color: white;
}

.content-section:nth-child(even) {
    background-color: var(--background);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Expandable Modules */
.expandable-module {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px var(--shadow);
}

.content-section:nth-child(odd) .expandable-module {
    background-color: var(--background);
}

.expandable-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.expand-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.expand-btn:hover {
    background-color: var(--accent-dark);
}

/* Table of Contents */
.table-of-contents {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    padding: 1rem;
    z-index: 90;
    max-width: 250px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.table-of-contents.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 50px));
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.toc-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.toc-icon, .toc-icon:before, .toc-icon:after {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.toc-icon {
    top: 14px;
    left: 5px;
}

.toc-icon:before, .toc-icon:after {
    content: '';
    left: 0;
}

.toc-icon:before {
    top: -6px;
}

.toc-icon:after {
    top: 6px;
}

.collapsed .toc-icon {
    background-color: transparent;
}

.collapsed .toc-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.collapsed .toc-icon:after {
    transform: rotate(-45deg);
    top: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.collapsed .toc-list {
    display: none;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--accent);
}

/* Conclusion Section */
.conclusion {
    background-color: white;
    padding: 3rem 0;
}

.conclusion .container {
    max-width: 800px;
    text-align: center;
}

.conclusion h2 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--background);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table-of-contents {
        right: 10px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .table-of-contents {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        max-width: 50px;
        overflow: hidden;
    }
    
    .table-of-contents.expanded {
        max-width: 250px;
    }
    
    .toc-header h3 {
        display: none;
    }
    
    .toc-toggle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .main-header .container {
        flex-direction: column;
    }
    
    .main-header h1 {
        margin-bottom: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .top-nav ul {
        margin-top: 1rem;
    }
    
    .overview .container,
    .features {
        flex-direction: column;
    }
    
    .expandable-module {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
    }
    
    .article-header {
        padding: 2rem 0 3rem;
    }
}