/* Root Variables & Setup - Light Mode (Default) */
:root {
    --bg-base: #FBF9F6; /* Cream background from image */
    --bg-surface: #FFFFFF;
    --bg-surface-strong: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(115, 142, 106, 0.15);
    
    --text-heading: #937A61; /* Earthy Brown */
    --text-main: #4A423B; /* Darker brown for contrast */
    --text-muted: #738E6A; /* Sage Green */
    
    /* Vibrant Gradients for natural mode */
    --accent-sage: #738E6A;
    --accent-brown: #937A61;
    --accent-moss: #5A7052;
    --accent-sand: #D5C2AA;
    --accent-clay: #C28B75;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-sage), var(--accent-moss));
    --gradient-glow: linear-gradient(135deg, var(--accent-brown), var(--accent-clay));
    
    --shadow-soft: 0 10px 40px rgba(147, 122, 97, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode - Boreal Forest Theme */
html[data-theme="dark"] {
    --bg-base: #111412; /* Deep pine shadow */
    --bg-surface: #1B241E; /* Dark forest green/grey */
    --bg-surface-strong: rgba(27, 36, 30, 0.95);
    --border-glass: rgba(149, 179, 138, 0.1);
    
    --text-heading: #D8CAB8; /* Light sand */
    --text-main: #E2E0D9; /* Off white */
    --text-muted: #95B38A; /* Light sage */
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Background Blobs (Organic Natural Shapes) */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 25s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-sage) 0%, rgba(0,0,0,0) 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-sand) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-clay) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(60px, 40px) scale(1.1) rotate(5deg); }
}

/* Typography & General */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.section {
    padding: 100px 0;
    position: relative;
}

/* Glassmorphism/Organic Cards */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-card-strong {
    background: var(--bg-surface-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white; /* Always white text on primary button */
    box-shadow: 0 4px 15px rgba(115, 142, 106, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 142, 106, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(115, 142, 106, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background: var(--bg-surface-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    background: rgba(115, 142, 106, 0.1);
}

.theme-toggle-btn:hover {
    background: rgba(115, 142, 106, 0.2);
    transform: rotate(15deg);
}

html[data-theme="dark"] .moon-icon { display: block; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: block; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-heading);
}

.logo-text .accent {
    color: var(--accent-sage);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--text-heading);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(115, 142, 106, 0.1);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 4px;
    margin-top: 6px;
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Overview Section */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-text p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.overview-card {
    position: relative;
    border-top: 4px solid var(--accent-sage);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(115, 142, 106, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sage);
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-citation {
    color: var(--text-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Themes Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--text-main);
    font-size: 1.1rem;
}

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

.theme-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
    border-bottom: 3px solid transparent;
}

.theme-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-sage);
}

.theme-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(147, 122, 97, 0.08);
}

.theme-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.theme-icon svg {
    width: 28px;
    height: 28px;
}

.theme-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.theme-card p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* CTA Filters */
.cta-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(115, 142, 106, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-heading);
    padding: 8px 14px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

@media (max-width: 640px) {
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .cta-filters {
        gap: 8px;
    }
}

.filter-btn:hover {
    background: rgba(115, 142, 106, 0.15);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(115, 142, 106, 0.3);
}

/* Calls to Action Section */
.ctas-section {
    overflow: hidden;
}

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

.cta-theme-card {
    padding: 32px;
    border-bottom: 3px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.cta-theme-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-sage);
}

.cta-theme-card h3 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 0;
    line-height: 1.4;
}

.cta-theme-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.cta-theme-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-theme-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
}

.cta-list li:last-child {
    margin-bottom: 0;
}

.cta-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cta-theme-card[hidden] {
    display: none;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.quote-card {
    padding: 48px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
    font-size: 5rem;
    color: rgba(115, 142, 106, 0.1);
    line-height: 1;
}

.quote-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    color: var(--text-muted);
}

.quote-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-main);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.carousel-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-heading);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
    background: var(--accent-sage);
    color: white;
    border-color: transparent;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: var(--accent-sage);
    transform: scale(1.2);
}

/* CTA Section */
.cta-section {
    padding-bottom: 120px;
}

.cta-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 24px;
    line-height: 1.3;
}

.cta-card p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    background: rgba(115, 142, 106, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-copyright:hover {
    color: var(--text-heading);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Gallery Section */
.gallery-section {
    overflow: hidden;
}

.gallery-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
@media (min-width: 600px) {
    .gallery-slide {
        flex: 0 0 50%;
    }
}
@media (min-width: 900px) {
    .gallery-slide {
        flex: 0 0 33.3333%;
    }
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-slide:hover .gallery-img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 20, 18, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-sage);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-sage);
}

.lightbox-btn.prev {
    left: 24px;
}

.lightbox-btn.next {
    right: 24px;
}

/* Accordion Section */
.resources-section {
    padding-bottom: 80px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background: rgba(147, 122, 97, 0.05);
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    color: var(--accent-sage);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid var(--border-glass);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-inner {
    padding: 24px 32px;
    color: var(--text-main);
}

.resource-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resource-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    gap: 8px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface-strong);
    border: 1px solid var(--border-glass);
    color: var(--text-heading);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) scale(1.05);
    border-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-right {
        gap: 16px;
    }
    
    .quote-card {
        padding: 32px 24px;
    }

    .hub-accordion-title {
        flex-wrap: wrap;
    }

    .hub-accordion-name {
        font-size: 1rem;
    }
}

/* Navigation helpers */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-links a.nav-active,
.nav-links a.active {
    color: var(--accent-sage);
    font-weight: 600;
}

/* Resource Hub */
.hub-hero {
    min-height: 70vh;
    padding-top: calc(88px + 2rem);
    padding-bottom: 3rem;
    box-sizing: border-box;
}

.hub-hero .hero-content {
    margin-bottom: 0;
}

.hub-section-wrap {
    padding-bottom: 100px;
}

.hub-filters {
    margin-bottom: 40px;
}

.hub-loading,
.hub-error {
    text-align: center;
    color: var(--text-main);
    padding: 48px 24px;
}

.hub-error {
    color: #c45c5c;
}

.hub-accordion {
    max-width: 960px;
}

.hub-theme-panel {
    border-left: 4px solid var(--accent-sage);
}

.hub-accordion-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.hub-accordion-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-accordion-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hub-accordion-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hub-accordion-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.35;
}

.hub-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-sage);
    background: rgba(115, 142, 106, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

.hub-accordion-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hub-block-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-sage);
    margin: 0 0 12px;
}

.hub-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-meta-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
}

.hub-meta-list li:last-child {
    margin-bottom: 0;
}

.hub-meta-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-sage);
}

.hub-initiatives {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-initiative {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: rgba(147, 122, 97, 0.06);
    border: 1px solid var(--border-glass);
}

.hub-initiative h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 8px;
    line-height: 1.4;
}

.hub-initiative p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-main);
}

.hub-source-links {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hub-source-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hub-doc-pending {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-muted, var(--text-main));
    opacity: 0.75;
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-sm);
}

.hub-theme-panel[hidden] {
    display: none;
}

.hub-promo {
    margin-top: 32px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: rgba(115, 142, 106, 0.08);
    text-align: center;
}

.hub-promo p {
    margin: 0 0 16px;
    color: var(--text-main);
    line-height: 1.6;
}

.hub-stat-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hub-stat-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    background: rgba(115, 142, 106, 0.1);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 999px;
}

.hub-entity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-cta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-cta-chip {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-sage);
    background: rgba(115, 142, 106, 0.1);
    border: 1px solid rgba(115, 142, 106, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hub-cta-chip:hover {
    background: rgba(115, 142, 106, 0.2);
    border-color: var(--accent-sage);
}

.hub-doc-pending + .hub-doc-pending,
.hub-source-btn + .hub-doc-pending,
.hub-doc-pending + .hub-source-btn {
    margin-top: 0;
}

/* Resource Hub Framework Page */
.hub-hero .hero-content {
    max-width: 900px;
}

.hub-hero .hero-cta,
.hub-closing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hub-orientation-section {
    padding-top: 40px;
}

.hub-orientation {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 40px;
    align-items: center;
}

.hub-kicker {
    margin: 0 0 12px;
    color: var(--accent-sage);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-orientation h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 18px;
}

.hub-orientation p {
    color: var(--text-main);
}

.hub-stats-grid {
    display: grid;
    gap: 14px;
}

.hub-stat-card {
    padding: 20px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(115, 142, 106, 0.08);
}

.hub-stat-number {
    display: block;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.hub-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-pillar-nav {
    position: sticky;
    top: 86px;
    z-index: 20;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
    padding: 16px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-strong);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hub-pillar-nav a {
    padding: 8px 14px;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    color: var(--text-heading);
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(115, 142, 106, 0.05);
}

.hub-pillar-nav a:hover {
    background: rgba(115, 142, 106, 0.15);
    transform: translateY(-2px);
}

.hub-pillars-grid {
    display: grid;
    gap: 32px;
}

.hub-pillar-card {
    scroll-margin-top: 150px;
    border-left: 5px solid var(--accent-sage);
}

.hub-pillar-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.hub-pillar-number {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--accent-sage);
    background: rgba(115, 142, 106, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-pillar-header h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.hub-pillar-header p {
    color: var(--text-main);
    font-size: 1rem;
    max-width: 820px;
}

.hub-pillar-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hub-info-block {
    padding: 20px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .hub-info-block {
    background: rgba(255, 255, 255, 0.03);
}

.hub-info-block.hub-full {
    grid-column: 1 / -1;
}

.hub-info-block h4 {
    margin-bottom: 14px;
    color: var(--accent-sage);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-entity-badges span,
.hub-source-list span,
.hub-source-list a,
.hub-document-pillars span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
    background: rgba(115, 142, 106, 0.08);
    color: var(--text-heading);
    font-size: 0.84rem;
    font-weight: 700;
}

.hub-source-list {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.hub-source-list a:hover {
    background: rgba(115, 142, 106, 0.18);
    border-color: rgba(115, 142, 106, 0.35);
}

.hub-crosswalk-section,
.hub-documents-section {
    background: rgba(115, 142, 106, 0.04);
}

.hub-crosswalk-grid,
.hub-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hub-crosswalk-card,
.hub-document-card {
    border-top: 4px solid var(--accent-sage);
}

.hub-crosswalk-card h3,
.hub-document-card h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.hub-crosswalk-card p,
.hub-document-card p {
    color: var(--text-main);
    margin-bottom: 18px;
}

.hub-document-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hub-document-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 22px;
}

@media (max-width: 900px) {
    .hub-orientation,
    .hub-pillar-body {
        grid-template-columns: 1fr;
    }

    .hub-pillar-nav {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    .hub-hero .hero-cta,
    .hub-closing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-pillar-card {
        padding: 24px;
    }

    .hub-info-block {
        padding: 16px;
    }
}

/* Day-Based Document Hub */
.document-hub-hero {
    min-height: 72vh;
}

.document-hub-intro-section {
    padding-top: 40px;
    padding-bottom: 70px;
}

.document-hub-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 36px;
    align-items: center;
}

.document-hub-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.document-hub-intro p {
    color: var(--text-main);
}

.document-hub-stats {
    display: grid;
    gap: 12px;
}

.document-hub-stats div {
    padding: 18px 16px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(115, 142, 106, 0.08);
}

.document-hub-stats strong {
    display: block;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    margin-bottom: 8px;
}

.document-hub-stats span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.document-day-section {
    padding-top: 70px;
}

.document-day-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.document-day-header .section-title {
    margin-bottom: 16px;
}

.document-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.document-resource-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 4px solid var(--accent-sage);
}

.document-resource-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.document-type {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--accent-sage);
    background: rgba(115, 142, 106, 0.12);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.document-resource-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.document-resource-card p {
    color: var(--text-main);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.document-resource-card .resource-btn {
    margin-top: auto;
}

@media (max-width: 900px) {
    .document-hub-intro {
        grid-template-columns: 1fr;
    }
}

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

    .document-resource-card {
        padding: 24px;
    }
}
