/* Code & Coffee Color Variables */
:root {
    /* Original Code & Coffee Colors */
    --background: #E9E3DC;
    --gridlines: #7E7E73;
    --serious-text: #121212;
    --whimsy-text: #3B2521;
    --contrast-text: #FEFEFE;
    --accent: #59969B;
    --button: #3B2521;
    --up: #B4A79C;
    --down: #D1C9C2;
    --charm: #272140;
    --strange: #212121;
    --top: #D9D9D9;
    --bottom: #214026;
    --selection: lightblue;
    --link: #278a93;
    --hero-border: #7E7E7E;
    
    /* Modern adaptations using original colors */
    --primary-color: #59969B;
    --secondary-color: #278a93;
    --accent-color: #e83b3b;
    --text-primary: #3B2521;
    --text-secondary: #121212;
    --text-muted: #7E7E73;
    --background-secondary: #D1C9C2;
    --background-tertiary: #B4A79C;
    --border-color: #7E7E73;
    --border-hover: #59969B;
    --shadow: 0 2px 8px rgba(59, 37, 33, 0.1);
    --shadow-lg: 0 8px 24px rgba(59, 37, 33, 0.15);
    --radius: 5px;
    --radius-lg: 10px;
    --font-sans: 'Vollkorn', serif;
    --font-display: 'Gloria Hallelujah', cursive;
    --font-mono: 'Space Mono', monospace;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    margin: 0;
    padding: 0;
}

/* Add original grid pattern to main content */
.main-content::before {
    --size: 45px;
    --line: color-mix(in lch, var(--gridlines), transparent 80%);
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: 
        linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)) 50% 50% / var(--size) var(--size),
        linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% / var(--size) var(--size);
    mask: linear-gradient(20deg, transparent 50%, white);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(233, 227, 220, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1.2rem;
}

.logo img {
    width: 40px;
    height: auto;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-main {
    font-family: 'Vollkorn', serif;
    font-weight: 600;
}

.logo-location {
    font-family: 'Gloria Hallelujah', cursive;
    color: var(--accent);
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Ensure desktop nav shows by default */
@media (min-width: 1301px) {
    .nav-desktop {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

.nav-link {
    font-family: var(--font-display);
    color: var(--text-primary);
    text-decoration: none;
    padding: 5px 10px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: 10px;
    font-weight: normal;
}

.nav-link:hover {
    background-color: var(--accent);
    color: white;
}

.nav-link.donate {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.nav-link.donate:hover {
    background-color: #c52e2e;
    border-color: #c52e2e;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--accent);
    color: white;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 37, 33, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-nav-content {
    background: var(--background);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    width: 90%;
    border: 2px solid var(--accent);
    position: relative;
    z-index: 10000;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav .nav-link {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: block;
    margin: 0;
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--accent);
}

.mobile-nav .nav-link:hover {
    background: var(--accent);
    color: white;
}

.mobile-nav .nav-link {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: normal;
    transition: all 0.2s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.btn:hover {
    background: var(--button);
    border-color: var(--button);
    transform: translateY(-1px);
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    background: white;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(89, 150, 155, 0.1);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23BB8D5F' fill-opacity='0.02'%3E%3Cpath d='M30 30c0-8.3-6.7-15-15-15s-15 6.7-15 15 6.7 15 15 15 15-6.7 15-15zm15 0c0-8.3-6.7-15-15-15s-15 6.7-15 15 6.7 15 15 15 15-6.7 15-15z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}

.hero-coffee-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.coffee-cup {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 8px rgba(89, 150, 155, 0.2);
    transition: all 0.3s ease;
}

.coffee-cup::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: -2px;
    background: linear-gradient(135deg, #3B2521, #2C1810);
    border-radius: 0 0 50% 50%;
    opacity: 0.8;
}

.coffee-cup-1 {
    top: 15%;
    left: 20%;
    animation: slowBounce 4s ease-in-out infinite;
}

.coffee-cup-2 {
    top: 20%;
    right: 20%;
    animation: slowBounce 5s ease-in-out infinite 1s;
}

/* Hide coffee cups on mobile devices */
@media (max-width: 768px) {
    .coffee-cup-1,
    .coffee-cup-2 {
        display: none;
    }
}

.coffee-steam {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    font-weight: bold;
    color: var(--accent);
    line-height: 1;
    text-align: center;
    animation: binaryStream 2s ease-in-out infinite;
}

.coffee-steam::before {
    content: "1\A 0\A 1";
    white-space: pre;
    display: block;
    opacity: 0.8;
}

.steam-2 {
    left: 35%;
    animation-delay: 0.3s;
}

.steam-2::before {
    content: "0\A 1\A 0";
}

.steam-3 {
    left: 65%;
    animation-delay: 0.6s;
}

.steam-3::before {
    content: "1\A 1\A 0";
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title-container {
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Vollkorn', serif;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
}

.title-line-1 {
    display: inline;
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.title-line-2 {
    display: inline-flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.title-accent {
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    color: var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    transform: rotate(-1deg);
    margin-left: 0.3rem;
}

.hero-subtitle {
    margin-bottom: 1.5rem;
}

.community-name {
    color: var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 600;
}

.hero-community-name {
    color: var(--text-primary);
    font-family: 'Vollkorn', serif;
    font-weight: 600;
}

.hero-location {
    color: var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 600;
}

.subtitle-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.highlight-word {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
}

.hero-btn.primary {
    background: var(--accent);
    color: white;
}

.hero-btn.primary:hover {
    background: var(--button);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(89, 150, 155, 0.3);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--text-primary);
}

.hero-btn.secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}



/* Animations */
@keyframes slowBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes binaryStream {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0px) scale(0.8);
    }
    20% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(-5px) scale(1);
    }
    80% { 
        opacity: 0.8; 
        transform: translateX(-50%) translateY(-25px) scale(1.1);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-35px) scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.08); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem 1rem;
        min-height: 150px;
    }
    
    .title-line-1 {
        font-size: 1.4rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .title-accent {
        font-size: 1.6rem;
    }
    

    
    .subtitle-description {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        max-width: 140px;
        justify-content: center;
    }
    

    
    .coffee-cup {
        width: 25px;
        height: 25px;
    }
    
    .coffee-steam {
        width: 6px;
        height: 15px;
        top: -8px;
        font-size: 6px;
    }
    

}

/* Article Info Sidebar */
.article-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.topic-value {
    color: var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 600;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.toc {
    font-size: 0.9rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.toc li {
    margin: 0.25rem 0;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.toc a:hover {
    color: var(--accent);
    background: var(--background-secondary);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.twitter-share:hover {
    background: #1DA1F2;
}

.linkedin-share:hover {
    background: #0077B5;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Removed hazy overlay per user request */

.slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1rem;
    pointer-events: none;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Gloria Hallelujah', cursive;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
}

.slide-content .event-date {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-family: 'Vollkorn', serif;
    color: white;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    font-family: 'Gloria Hallelujah', cursive;
}

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

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
        min-height: 400px;
        margin: 1rem auto;
        border-radius: var(--radius);
        max-width: calc(100% - 2rem);
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .slide-content .event-date {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
}

/* Blog Specific Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.blog-content {
    min-width: 0;
}

/* Full-width Blog Layout */
.blog-layout-full {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.blog-content-full {
    min-width: 0;
}

/* Blog Header Box */
.blog-header-box {
    background: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(89, 150, 155, 0.1);
}

.blog-main-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Vollkorn', serif;
    text-align: center;
}

.blog-main-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Single blog post layout */
.blog-layout .blog-post {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Blog Post Header Styling */
.blog-post-header {
    position: relative;
    margin-bottom: 2rem;
}

.blog-hero-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-hero-image:hover img {
    transform: scale(1.02);
}

.blog-header-content {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,249,249,0.9) 100%);
    border-bottom: 1px solid var(--border-color);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.featured-badge:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.topic-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.topic-badge:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Vollkorn', serif;
}

.blog-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(249, 249, 249, 0.8);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-icon {
    font-size: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.blog-tag {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Blog Content Body */
.blog-content-body {
    padding: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.blog-content-body h2,
.blog-content-body h3,
.blog-content-body h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content-body h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-content-body h3 {
    font-size: 1.5rem;
}

.blog-content-body p {
    margin-bottom: 1.5rem;
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content-body li {
    margin-bottom: 0.5rem;
}

.blog-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-content-body code {
    background: var(--background-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.blog-content-body pre {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content-body pre code {
    background: none;
    padding: 0;
}

/* Responsive header styling */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-description {
        font-size: 1.125rem;
    }
    
    .blog-hero-image {
        height: 250px;
    }
    
    .blog-header-content {
        padding: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-content-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Related Posts Styling */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Vollkorn', serif;
}

.related-posts-grid {
    display: grid;
    gap: 1.5rem;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.related-post-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-post-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.related-post-link:hover {
    color: var(--primary-color);
}

.related-post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.related-post-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.related-post-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.blog-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.blog-post-sidebar {
    background: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(89, 150, 155, 0.1);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    height: fit-content;
}

.blog-post:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-post-sidebar .sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

/* Article Meta */
.article-details-widget {
    border: 2px solid var(--accent);
    background: white;
    border-radius: var(--radius-lg);
}

.article-meta-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(89, 150, 155, 0.08);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-item:first-child {
    padding-top: 0;
}

.meta-icon {
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.topic-badge-sidebar {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: 'Gloria Hallelujah', cursive;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(89, 150, 155, 0.3);
}

.featured-badge-sidebar {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: 'Gloria Hallelujah', cursive;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: white;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(89, 150, 155, 0.1);
}

.article-tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s ease;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.share-btn span {
    font-size: 1.1rem;
}

/* Table of Contents */
.table-of-contents {
    max-height: 300px;
    overflow-y: auto;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: #f8f9fa;
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.toc-link.active {
    background: var(--accent);
    color: white;
    border-left-color: var(--accent);
}

.toc-h2 {
    padding-left: 0.75rem;
}

.toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.toc-h4 {
    padding-left: 2.25rem;
    font-size: 0.8rem;
}

.toc-h5, .toc-h6 {
    padding-left: 3rem;
    font-size: 0.75rem;
}

.recent-post {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.recent-post-title:hover {
    color: var(--primary-color);
}

.recent-post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Compact Tag Display */
.compact-tag-display {
    background: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(89, 150, 155, 0.08);
}

.tag-cloud-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.compact-tag-item {
    display: inline-flex;
    align-items: center;
    background: var(--background);
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.compact-tag-item:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.compact-tag-item.active {
    background: var(--accent);
    color: white;
}

.tag-hidden {
    display: none;
}

.tag-expand-controls {
    display: flex;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.tag-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.tag-expand-button:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.tag-expand-button .expand-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.tag-expand-button.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Legacy tag cloud styles */
.tag-cloud-item {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-cloud-item:hover,
.tag-cloud-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Community Links */
.community-link {
    display: block;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.community-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.community-link strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.community-link span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Search Input Styling */
#search-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(89, 150, 155, 0.1);
}

/* Links Page Styling */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-item {
    background: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(89, 150, 155, 0.1);
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(89, 150, 155, 0.15);
    border-color: var(--primary-color);
}

.link-item h3 {
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.link-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .links-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-item {
        padding: 1.5rem;
    }
}

/* No results styling */
#no-results {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

/* Clear button styling */
.btn-secondary {
    background: var(--background);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

/* Footer */
footer {
    background: rgba(177, 164, 156, 0.3);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }
}

@media (max-width: 1024px) {
    .blog-layout-full {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
}

/* Mobile Navigation Breakpoint */
@media (max-width: 1300px) {
    .nav-desktop {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
}

/* General Mobile Styles */
@media (max-width: 768px) {
    .blog-layout,
    .blog-layout-full {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post {
        padding: 1.25rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Stack filters vertically on mobile */
    .blog-content-full > div {
        margin-bottom: 1rem !important;
    }
    
    /* Adjust tag cloud for mobile */
    .tag-cloud {
        gap: 0.5rem;
    }
    
    .tag-cloud-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet and smaller laptop breakpoints */
@media (max-width: 1300px) {
    .nav-desktop {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
}