/* ===== CSS Reset & Variables ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #FFFFFF;
    --bg-light: #f8f9fa;
    --border-color: #eee;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html.snap-scroll {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px 60px;
    gap: 60px;
    scroll-snap-align: start;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
    /* min-height moved to scoped block below */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

html.snap-scroll section {
    min-height: 100vh;
    scroll-snap-align: start;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===== About Section ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Featured Section ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.featured-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.featured-item:hover .featured-overlay {
    transform: translateY(0);
}

.featured-overlay h4 {
    font-size: 1.2rem;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 140px 20px 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.8;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

/* Filter Tabs */
/* Filter Container */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
}

.filter-tab {
    padding: 14px 35px;
    border: none;
    background: var(--bg-light);
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
}

.filter-tab:first-child {
    border-radius: 10px 0 0 0;
}

.filter-tab:last-child {
    border-radius: 0 10px 0 0;
}

.filter-tab:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.filter-tab.active {
    background: white;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.filter-tab.active::after {
    display: none;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 25px 20px;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
}

.filter-btn {
    padding: 10px 22px;
    border: none;
    background: var(--bg-light);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mosaic Grid Layout */
/* Mosaic Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    /* Fine-grained rows for masonry height */
    grid-gap: 15px;
    padding: 15px;
    grid-auto-flow: dense;
    /* Minimize gaps by backfilling */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    opacity: 0;
    grid-column: span 1;
    /* Default portrait/square width */
    align-self: start;
    box-shadow: var(--shadow);
}

/* Size Modifiers */
.gallery-item.wide {
    grid-column: span 2;
    /* Landscape width */
}

/* Image behavior for grid */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* Hover Effect - Zoom */
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 10px;
        /* Keep masonry */
        grid-gap: 10px;
    }

    /* Hide overlay on mobile - info available in modal */
    .gallery-overlay {
        display: none;
    }

    .filter-tabs {
        flex-wrap: nowrap;
    }

    .filter-tab {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .gallery-filter {
        gap: 8px;
        padding: 20px 15px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        /* Single column for mobile */
        grid-template-columns: 1fr;
        grid-auto-rows: 10px;
        /* Keep masonry */
        grid-gap: 5px;
        padding: 5px;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    /* On very small screens, wide items taking 2 cols = full width, which is good. */
}

/* ===== Image Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    margin-bottom: 10px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a:hover {
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--primary-color);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Blog Post ===== */
.post-header {
    background: var(--primary-color);
    color: white;
    padding: 140px 20px 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
}

.post-category {
    display: inline-block;
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    max-width: 800px;
}

.post-meta {
    display: flex;
    gap: 20px;
    opacity: 0.8;
}

.post-featured-image {
    margin-top: -40px;
    padding: 0 20px;
}

.post-featured-image img {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.post-content {
    padding: 60px 20px;
}

.post-content .lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content ol,
.post-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 15px;
    line-height: 1.7;
    list-style: decimal;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
}

.post-image {
    margin: 40px 0;
}

.post-image img {
    width: 100%;
    border-radius: 8px;
}

.post-image figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-color);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Related Posts ===== */
.related-posts {
    background: var(--bg-light);
    padding: 60px 0;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px;
    font-size: 1rem;
    line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

html.snap-scroll .footer {
    scroll-snap-align: start;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.7;
}

.footer h4 {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-contact p {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 30px 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Compact Section Padding */
    .hero {
        padding: 80px 20px 40px;
        min-height: 100vh;
        /* Keep 100vh for snap */
        justify-content: center;
        /* Center content vertically */
        gap: 30px;
    }

    section {
        padding: 40px 0;
        /* Reduced from 80px */
    }

    .page-header {
        padding: 100px 20px 40px;
    }

    /* Navbar Compact */
    .navbar {
        padding: 10px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Typography Compact */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Hero Image */
    .hero-image img {
        height: 250px;
        /* Reduced height */
    }

    /* About Section */
    .about-content {
        gap: 30px;
    }

    .about-image img {
        height: 250px;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .about-stats {
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Featured Grid */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .featured-item img {
        height: 200px;
        /* Smaller featured images */
    }

    /* Filter Tabs */
    .filter-tabs {
        gap: 0;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    .gallery-filter {
        padding: 15px 10px;
        gap: 6px;
        border-radius: 0 0 8px 8px;
    }

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

    .gallery-item img {
        height: auto;
        /* Allow full aspect ratio */
    }

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

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-featured-image img {
        height: 300px;
    }

    .post-content .lead {
        font-size: 1.1rem;
    }

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

    .modal-nav {
        padding: 10px 15px;
        font-size: 18px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-image img {
        height: 280px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .about-stats {
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .gallery-item img {
        height: auto;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .page-header {
        padding: 120px 15px 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Hide items initially for filter animation */
.gallery-item.hide {
    display: none;
}

/* ===== Load More Button ===== */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== Loading & Error States ===== */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-state p,
.empty-state p,
.error-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== Markdown Body Styles ===== */
.markdown-body {
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.markdown-body h1 {
    font-size: 2rem;
}

.markdown-body h2 {
    font-size: 1.6rem;
}

.markdown-body h3 {
    font-size: 1.3rem;
}

.markdown-body h4 {
    font-size: 1.1rem;
}

.markdown-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.markdown-body ul,
.markdown-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.markdown-body ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.markdown-body ol li {
    list-style: decimal;
    margin-bottom: 10px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    border-radius: 0 8px 8px 0;
}

.markdown-body blockquote p {
    margin-bottom: 0;
}

.markdown-body code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.markdown-body a:hover {
    color: var(--secondary-color);
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

.markdown-body strong {
    font-weight: 600;
    color: var(--text-color);
}