/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #a34700;
    --gold: #E6B325;
    --ivory: #EFEAD8;
    --text-dark: #2C2C2C;
    --text-gray: #666666;
    --bg-light: #FAF8F5;
    --shadow-sm: 0 2px 8px rgba(59, 30, 8, 0.08);
    --shadow-md: 0 4px 16px rgba(59, 30, 8, 0.12);
    --shadow-lg: 0 8px 32px rgba(59, 30, 8, 0.16);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    color: var(--primary-brown);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-brown);
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-brown);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ivory) 0%, #E8DCC8 100%);
    margin-top: 80px;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(59, 30, 8, 0.02) 35px, rgba(59, 30, 8, 0.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(230, 179, 37, 0.02) 35px, rgba(230, 179, 37, 0.02) 70px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
    animation: fadeUp 1s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-brown);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-size: 16px;
    background: white;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 24px rgba(230, 179, 37, 0.2);
    border-color: var(--primary-brown);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.search-btn:hover {
    background: var(--primary-brown);
    transform: translateY(-50%) scale(1.05);
}

.cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--gold);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    background: var(--primary-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   STATS COUNTER
   =========================== */
.stats {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ivory) 0%, white 100%);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===========================
   QUOTE SECTION
   =========================== */
.quote-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-brown) 0%, #5A3618 100%);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 179, 37, 0.1) 0%, transparent 70%);
}

.quote-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 120px;
    color: var(--gold);
    opacity: 0.3;
    line-height: 0.5;
    margin-bottom: 24px;
    font-family: Georgia, serif;
}

.quote-text {
    font-size: 28px;
    font-style: italic;
    color: white;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    line-height: 1.5;
}

.quote-author {
    font-size: 18px;
    color: var(--gold);
    font-weight: 600;
}

/* ===========================
   FEATURED COLLECTIONS
   =========================== */
.featured {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-brown);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--gold);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--gold);
}

.carousel-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.collection-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 24px;
}

.card-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ivory);
    color: var(--primary-brown);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-brown);
}

.card-desc {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-brown);
    transform: translateX(4px);
}

/* ===========================
   CATEGORIES GRID
   =========================== */
.categories {
    padding: 100px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    background: white;
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--ivory) 0%, #E8DCC8 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 179, 37, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 22px;
    color: var(--text-gray);
    margin-bottom: 32px;
    font-style: italic;
}

.cta-btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: white;
    color: var(--primary-brown);
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.cta-btn-secondary:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--primary-brown);
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-logo-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.footer-logo-subtitle {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   BREADCRUMB
   =========================== */
.breadcrumb {
    padding: 24px 0;
    background: white;
    margin-top: 80px;
    border-bottom: 1px solid rgba(59, 30, 8, 0.1);
}

.breadcrumb a {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--text-gray);
    margin: 0 8px;
}

.breadcrumb span:last-child {
    color: var(--primary-brown);
    font-weight: 600;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--ivory) 0%, white 100%);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   FILTER SECTION
   =========================== */
.filter-section {
    padding: 32px 0;
    background: white;
}

.filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.filter-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid var(--ivory);
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-search svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-dropdown {
    position: relative;
}

.filter-select {
    padding: 14px 40px 14px 20px;
    border: 2px solid var(--ivory);
    border-radius: 50px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===========================
   COLLECTIONS GRID
   =========================== */
.collections-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.load-more {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: var(--primary-brown);
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gold);
    color: white;
}

/* ===========================
   CULTURE PAGE STYLES
   =========================== */
.culture-header {
    background: linear-gradient(135deg, #3B1E08 0%, #5A3618 100%);
    color: white;
}

.culture-header .page-title {
    color: white;
}

.culture-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.map-placeholder {
    background: var(--ivory);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-point {
    cursor: pointer;
    transition: var(--transition);
}

.map-point:hover {
    fill: var(--primary-brown);
    transform: scale(1.2);
}

.map-info {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    border: 2px solid var(--gold);
}

.map-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.map-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    animation: fadeUp 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -68px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--gold);
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Manuscript Section */
.manuscript-section {
    padding: 100px 0;
    background: white;
}

.manuscript-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.manuscript-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.manuscript-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.manuscript-image {
    height: 200px;
}

.manuscript-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manuscript-info {
    padding: 24px;
}

.manuscript-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gold);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manuscript-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.manuscript-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.manuscript-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-gray);
}

/* ===========================
   ARTICLES PAGE
   =========================== */
.featured-article {
    padding: 64px 0;
    background: white;
}

.article-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.article-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gold);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-hero-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

.article-author {
    font-weight: 600;
    color: var(--primary-brown);
}

.articles-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.articles-sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.articles-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--ivory);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.articles-list {
    display: grid;
    gap: 32px;
}

.article-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card-image {
    height: 100%;
    min-height: 160px;
}

.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-content {
    padding: 24px 24px 24px 0;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ivory);
    color: var(--primary-brown);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 12px;
}

.article-card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.article-card-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.article-meta-small {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-gray);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-btn,
.pagination-num {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--ivory);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled),
.pagination-num:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-num.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Sidebar */
.articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ivory);
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    display: flex;
    gap: 16px;
    align-items: start;
    transition: var(--transition);
}

.popular-item:hover {
    transform: translateX(4px);
}

.popular-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.popular-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--primary-brown);
}

.popular-item span {
    font-size: 12px;
    color: var(--text-gray);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    padding: 8px 16px;
    background: var(--ivory);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--gold);
    color: white;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-brown) 0%, #5A3618 100%);
    color: white;
}

.sidebar-cta h3 {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.newsletter-form button {
    width: 100%;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.contact-form-wrapper {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-form-wrapper > p {
    color: var(--text-gray);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-brown);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--ivory);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 56px;
    height: 56px;
    background: var(--ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.info-card a {
    color: var(--gold);
    font-weight: 500;
}

.info-card a:hover {
    color: var(--primary-brown);
}

.info-note {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
    margin-top: 8px;
}

.location-map {
    padding: 80px 0;
    background: white;
}

.map-embed {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder-contact {
    background: var(--ivory);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-brown);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 32px 24px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .carousel {
        padding: 0 40px;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .article-hero {
        grid-template-columns: 1fr;
    }

    .articles-sidebar-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        left: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .quote-text {
        font-size: 22px;
    }

    .carousel {
        padding: 0 20px;
    }

    .carousel-track {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-title {
        font-size: 32px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-search {
        width: 100%;
        min-width: 0;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

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

    .timeline {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -30px;
    }

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

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card-image {
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .stat-number {
        font-size: 36px;
    }

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

    .cta-title {
        font-size: 32px;
    }
}
