:root {
    --primary-gold: #D4AF37;
    --primary-red: #C41E3A;
    --primary-green: #006B3C;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f0;
    --text-dark: #2c2c2c;
    --text-light: #f5f5f0;
    --accent-blue: #1e3a5f;
    --border-color: #d4af37;
}

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

body {
    font-family: 'Merriweather', 'Georgia', serif;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-blue) 100%);
    color: var(--text-light);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, padding 0.3s ease-in-out;
    transform: translateY(0);
}

header.hidden {
    transform: translateY(-100%);
}

header.compact {
    padding: 1rem 0;
}

header.compact .header-content {
    margin-bottom: 1rem;
}

header.compact .site-title {
    font-size: 2rem;
}

header.compact .site-subtitle {
    font-size: 1.5rem;
}

.header-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--primary-gold);
    letter-spacing: 0.5px;
}

.site-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: var(--primary-gold);
    color: var(--text-dark);
    font-weight: 600;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    margin-top: 180px; /* Space for fixed header */
    transition: margin-top 0.3s ease-in-out;
}

.container.header-hidden {
    margin-top: 0px; /* No space when header is hidden */
}

.hero-section {
    text-align: center;
}

.hero-content h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.content-section h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.pdf-container {
    width: 100%;
}

.pdf-viewer {
    width: 100%;
    height: 800px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-links {
    margin-top: 3rem;
}

.quick-links h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-card h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Audio Page Styles */
.audio-container {
    text-align: center;
    padding: 2rem;
}

.audio-player {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

audio {
    width: 100%;
    margin-top: 1rem;
}

/* Flash Cards Styles */
.flashcards-container {
    max-width: 900px;
    margin: 0 auto;
}

.flashcard {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flashcard:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flashcard-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.flashcard-answer {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    display: none;
}

.flashcard-answer.show {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-gold);
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

#cardCounter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    min-width: 120px;
    text-align: center;
}

.btn {
    padding: 0.75rem 2rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Merriweather', 'Georgia', serif;
}

.btn:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--primary-red);
}

/* Image Styles */
.image-container {
    text-align: center;
    padding: 2rem;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

/* Mind Map Styles */
.mindmap-main-container {
    text-align: center;
    margin: 2rem 0;
}

.mindmap-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    cursor: crosshair;
    transition: all 0.3s ease;
    max-height: 800px;
    width: auto;
    object-fit: contain;
    user-select: none;
}

.mindmap-main-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

map area {
    cursor: pointer;
    outline: none;
}

.mindmap-main-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
}

.mindmap-detail-container {
    text-align: center;
}

.mindmap-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    max-height: 800px;
    width: auto;
    object-fit: contain;
}

.mindmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mindmap-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mindmap-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mindmap-item img {
    width: 100%;
    height: auto;
    display: block;
}

.mindmap-item-title {
    padding: 1rem;
    text-align: center;
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    margin-top: 50px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Video Styles */
.video-container {
    text-align: center;
    padding: 2rem;
}

video {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

/* Footer */
footer {
    background: var(--accent-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-text {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-subtitle {
        font-size: 1.3rem;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 200px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .pdf-viewer {
        height: 600px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin-top: 180px;
    }
    
    .container.header-hidden {
        margin-top: 60px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--accent-blue);
}

/* Article Content Styles */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2.2rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 1rem;
}

.article-section {
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.article-section h5 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.6rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.article-section h6 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.article-section p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: justify;
}

.article-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-section li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-section li strong {
    color: var(--accent-blue);
}

.article-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
    margin: 3rem 0;
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-red);
    text-align: center;
    padding: 1rem 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-section h5 {
        font-size: 1.4rem;
    }
    
    .article-section h6 {
        font-size: 1.2rem;
    }
    
    .article-section p {
        font-size: 1rem;
        text-align: left;
    }
}

