/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== COLOR PALETTE: DULL BROWN THEME ===== */
:root {
    /* Primary Palette */
    --color-primary-dark: #6B5D57;
    /* Cool Taupe */
    --color-primary-medium: #7D6F69;
    /* Stone Gray */
    --color-accent-rich: #8A7C76;
    /* Warm Taupe */
    --color-accent-light: #A39590;
    /* Light Taupe */

    /* Backgrounds */
    --color-bg-main: #F0EDE8;
    /* Warm Stone */
    --color-bg-surface: #F8F6F3;
    /* Light Stone */
    --color-bg-surface-alt: #FAF8F5;
    /* Pale Stone */
    --color-bg-muted: #E8E4DF;
    /* Stone Beige */

    /* Text */
    --color-text-primary: #3D332E;
    /* Deep Taupe */
    --color-text-secondary: #5D524C;
    /* Medium Taupe */
    --color-text-tertiary: #8A7C76;
    /* Light Taupe */
    --color-text-disabled: #B3A89C;
    /* Pale Taupe */

    /* Semantic */
    --color-success: #4A674A;
    --color-warning: #D2691E;
    --color-error: #8B4513;
    --color-info: #5F6B73;

    /* Shadows (dull brown-tinted) */
    --shadow-sm: 0 2px 4px rgba(107, 93, 87, 0.08);
    --shadow-md: 0 4px 8px rgba(107, 93, 87, 0.12);
    --shadow-lg: 0 8px 24px rgba(107, 93, 87, 0.15);
    --shadow-xl: 0 20px 40px rgba(107, 93, 87, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-main);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><filter id="stone"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100" height="100" filter="url(%23stone)" opacity="0.02"/></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RESPONSIVE TOP NAVIGATION ===== */
.topnav {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-medium) 100%);
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(107, 93, 87, 0.15);
}

.topnav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="stone"><feTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="4"/><feColorMatrix values="0 0 0 0 0.42  0 0 0 0 0.36  0 0 0 0 0.33  0 0 0 0.03 0"/></filter><rect width="200" height="200" filter="url(%23stone)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
}

.topnav a:hover {
    background-color: var(--color-primary-medium);
    color: white;
    transform: translateY(-1px);
}

.topnav a.active {
    background-color: var(--color-accent-rich);
    color: white;
}

.topnav .icon {
    display: none;
}

.topnav .logo-section {
    float: left;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.topnav .nav-logo {
    height: 40px;
    width: auto;
}

.topnav .logo-section span {
    color: white;
    font-weight: bold;
}

/* RESPONSIVE MEDIA QUERIES FOR TOPNAV */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

/* CONTENT SPACING */
.main-topnav {
    margin-top: 60px;
}

/* Individual blog post styles - updated for new navbar system */
.post-main {
    /* margin-top will be set by specific classes for each navbar type */
    padding-top: 1rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-medium) 50%, var(--color-accent-light) 100%);
    color: white;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(240,237,232,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(240, 237, 232, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(240, 237, 232, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    z-index: -1;
}

.hero-profile-image {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.hero-profile-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, rgba(240, 237, 232, 0.95));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(250, 248, 245, 0.95);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--color-accent-rich), var(--color-primary-medium));
    color: white;
    box-shadow: 0 4px 15px rgba(138, 124, 118, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 124, 118, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Link Styles */
a {
    color: var(--color-accent-rich);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-medium);
}

/* Category Navigation */
.category-nav {
    background-color: var(--color-bg-surface-alt);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-bg-muted);
}

.category-items {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.category-item {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-item:hover,
.category-item.active {
    color: var(--color-primary-dark);
    background-color: var(--color-bg-surface-alt);
}

.category-item.active {
    font-weight: 600;
}

/* Modern Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.blog-card {
    background: var(--color-bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-bg-muted);
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="stone"><feTurbulence type="fractalNoise" baseFrequency="1.2" numOctaves="2"/><feColorMatrix values="0 0 0 0 0.97  0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0.01 0"/></filter><rect width="200" height="200" filter="url(%23stone)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
    border-radius: 12px;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card.featured {
    grid-row: 1 / 3;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured .card-image {
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* SVG and JPG images need special handling for proper display */
.card-image img[src$=".svg"],
.card-image img[src$=".jpg"] {
    object-fit: contain;
    background-color: transparent;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(93, 64, 55, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 1.5rem;
}

.featured .card-content {
    padding: 2rem;
}

.card-content h2,
.card-content h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
}

.card-meta .author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.card-link {
    color: var(--color-accent-rich);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--color-primary-medium);
}

/* Special Components */
blockquote {
    background-color: var(--color-bg-surface-alt);
    border-left: 4px solid var(--color-accent-rich);
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.info-box {
    background-color: var(--color-bg-surface-alt);
    border-left: 4px solid var(--color-accent-rich);
    padding: 1.5rem;
    border-radius: 4px;
}

.info-box-title {
    color: var(--color-primary-dark);
    font-weight: bold;
}

.download-link {
    background: var(--color-accent-rich);
    color: var(--color-bg-surface);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: var(--color-primary-medium);
    box-shadow: var(--shadow-md);
}

/* Blog section */
.blog-section {
    padding: 2rem 0;
    background-color: var(--color-bg-surface);
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
    font-size: 2.5rem;
}

.blog-post {
    background-color: var(--color-bg-surface-alt);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.post-meta {
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    color: var(--color-accent-rich);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--color-primary-medium);
}

/* About section */
.about-section {
    padding: 4rem 0;
    background-color: var(--color-bg-muted);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    font-size: 2.5rem;
}

.about-section p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-credentials {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}

.about-credentials h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-credentials ul {
    list-style: none;
    padding: 0;
}

.about-credentials li {
    background-color: var(--color-bg-surface);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.about-credentials li:before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Contact section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--color-bg-surface);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    font-size: 2.5rem;
}

.contact-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: var(--color-bg-surface-alt);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: var(--shadow-sm);
}

.contact-info p {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-info a {
    color: var(--color-accent-rich);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-primary-medium);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-profile-image {
        width: 380px;
        height: 380px;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .blog-card.featured {
        grid-column: 1 / -1;
    }

    .featured .card-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .logo-section {
        gap: 0.5rem;
    }

    .profile-image {
        width: 40px;
        height: 40px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 0;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-profile-image {
        width: 280px;
        height: 280px;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        justify-content: center;
        gap: 0.8rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .category-items {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .category-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        margin: 2rem auto 0;
        padding: 0 1rem;
    }

    .blog-card.featured {
        grid-row: auto;
    }

    .card-image,
    .featured .card-image {
        height: 200px;
    }

    .card-content,
    .featured .card-content {
        padding: 1.5rem;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Individual blog post styles - updated for new navbar system */
.post-main {
    /* margin-top will be set by specific classes for each navbar type */
    padding-top: 1rem;
}

/* Remove the alternative positioning - keep header fixed */
/* .blog-post-page header {
    position: relative;
    margin-bottom: 2rem;
} */

.header-spacer {
    display: none;
    /* Not needed with W3Schools approach */
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
    border-bottom: 2px solid var(--color-bg-muted);
    padding-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
}

.post-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="stone"><feTurbulence type="fractalNoise" baseFrequency="1.2" numOctaves="2"/><feColorMatrix values="0 0 0 0 0.97  0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0.01 0"/></filter><rect width="200" height="200" filter="url(%23stone)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-image {
    margin: 2rem 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.post-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    font-style: italic;
    text-align: center;
}

.external-link-notice {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background-color: var(--color-bg-surface-alt);
    border-left: 4px solid var(--color-accent-rich);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.external-link-notice a {
    color: var(--color-accent-rich);
    text-decoration: underline;
    font-weight: 500;
}

.external-link-notice a:hover {
    color: var(--color-primary-medium);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-muted);
}

.back-link {
    color: var(--color-accent-rich);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary-medium);
}

/* Responsive design for blog posts */
@media (max-width: 768px) {
    .post-main {
        margin-top: 80px;
        /* Slightly less for mobile */
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .blog-post-full {
        padding: 1rem;
    }

    .post-image img {
        width: 100%;
        max-width: 300px;
    }

    .external-link-notice {
        padding: 0.875rem 1rem;
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .image-caption {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-profile-image {
        width: 220px;
        height: 220px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .category-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Video styles */
.video-section {
    margin: 2rem 0;
}

.post-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    /* Limit height to 85% of viewport height */
    object-fit: contain;
    /* Maintain aspect ratio while fitting */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Default post body layout for regular blog posts */
.post-content .post-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Blog post layout with video sidebar - only for posts with specific class */
.post-content .post-body.with-video {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 100%;
}

.post-content .post-body.with-video .video-section {
    flex: 1;
    max-width: 33.333%;
    position: sticky;
    top: 100px;
    margin: 0;
}

.post-content .post-body.with-video .content-section {
    flex: 2;
    max-width: 66.666%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .post-content .post-body.with-video {
        flex-direction: column;
    }

    .post-content .post-body.with-video .video-section,
    .post-content .post-body.with-video .content-section {
        max-width: 100%;
        flex: none;
    }

    .post-content .post-body.with-video .video-section {
        position: static;
        margin: 1rem 0;
    }
}

/* Vote summary box */
.vote-summary {
    background-color: var(--color-bg-surface-alt);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-accent-rich);
}

.vote-summary h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.vote-summary ul {
    list-style: none;
    padding-left: 0;
}

.vote-summary li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.vote-summary li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* ===== BLOG CAROUSEL STYLES - CLEAN VERSION ===== */
.blog-carousel-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.carousel-header h3 {
    color: var(--color-text-primary);
    font-size: 1.8rem;
    margin: 0;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    background: var(--color-accent-rich);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-primary-medium);
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    background: var(--color-text-disabled);
    cursor: not-allowed;
    transform: none;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 200%;
    /* Exactly 2 slides */
}

.carousel-slide {
    width: 50%;
    /* Each slide takes half the track width */
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    grid-template-rows: 1fr 1fr;
    /* 2 rows */
    gap: 0.75rem;
    padding: 0;
    height: 500px;
}

/* Carousel-specific blog card styling (overrides general blog-card) */
.carousel-slide .blog-card {
    height: 240px !important;
    /* Force height for carousel cards */
    display: flex;
    flex-direction: column;
}

.carousel-slide .blog-card .card-image {
    height: 140px !important;
    /* Force image height */
    flex-shrink: 0;
}

.carousel-slide .blog-card .card-content {
    padding: 1rem;
    height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.carousel-slide .blog-card h3 {
    font-size: 1rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-slide .blog-card p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-slide .blog-card .card-meta {
    font-size: 0.75rem !important;
    margin-top: auto;
}

/* Placeholder cards in carousel */
.carousel-slide .blog-card.placeholder {
    opacity: 0.7;
    cursor: default;
}

.carousel-slide .blog-card.placeholder .card-image {
    opacity: 0.6;
}

.carousel-slide .blog-card.placeholder .placeholder-image {
    background: linear-gradient(135deg, var(--color-bg-muted), var(--color-bg-surface-alt));
    height: 140px !important;
    /* Match carousel image height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.carousel-slide .blog-card.placeholder .placeholder-emoji {
    color: var(--color-text-tertiary);
    font-size: 2rem;
}

.carousel-slide .blog-card.placeholder:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        grid-template-rows: repeat(4, auto);
        /* 4 rows */
        gap: 1rem;
        height: auto;
        padding: 0 0.5rem;
    }

    .carousel-slide .blog-card {
        height: auto !important;
    }

    .carousel-slide .blog-card .card-content {
        height: auto !important;
    }

    .carousel-slide .blog-card .card-image {
        height: 200px !important;
        /* Standard mobile height */
    }

    .carousel-slide .blog-card.placeholder .placeholder-image {
        height: 200px !important;
    }

    /* Mobile video adjustments */
    .post-video {
        max-height: 60vh !important;
        /* Reduce video height on mobile to prevent overlay */
    }
}

/* ===== LOAD MORE FUNCTIONALITY ===== */
.hidden-post {
    display: none;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--color-accent-rich) 0%, var(--color-primary-medium) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(141, 110, 99, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-medium) 0%, var(--color-primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 110, 99, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(141, 110, 99, 0.3);
}

.load-more-btn.hidden {
    display: none;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-medium));
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(93, 64, 55, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.cookie-consent-text p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: var(--color-accent-rich);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-medium);
}

.cookie-btn-decline {
    background: var(--color-text-secondary);
    color: white;
}

.cookie-btn-decline:hover {
    background: var(--color-text-primary);
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .topnav {
        box-shadow: 0 1px 4px rgba(93, 64, 55, 0.15);
    }

    .blog-card {
        box-shadow: var(--shadow-sm);
    }

    .blog-card:hover {
        box-shadow: var(--shadow-md);
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}