/* Blog Specific Styles */

/* Blog Page Specific Overrides for Navbar */
.blog-page .topbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    --header-h: 140px;
    --logo-size: 80px;
    transition: border-bottom 0.3s ease;
}

.blog-page .topbar.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-page .brand {
    color: #fff;
    transition: color 0.3s ease;
}

.blog-page .topbar.scrolled .brand {
    color: #2D2D2D;
}

.blog-page .auth-btn {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-page .topbar.scrolled .auth-btn {
    color: #2D2D2D;
}

.blog-page .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-page .topbar.scrolled .nav-link {
    color: #2D2D2D;
}

/* Blog Nav Page (Overview) - same styling as blog-page */
.blog-nav-page .topbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    --header-h: 140px;
    --logo-size: 80px;
    transition: border-bottom 0.3s ease;
}

.blog-nav-page .topbar.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-nav-page .brand {
    color: #2D2D2D;
}

.blog-nav-page .auth-btn {
    color: #2D2D2D;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-nav-page .nav-link {
    color: #2D2D2D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hamburger menu trigger for blog pages */
.blog-page .header-menu-trigger span,
.blog-nav-page .header-menu-trigger span {
    background-color: #2D2D2D;
    transition: background-color 0.3s ease;
}

.blog-page .header-menu-trigger span {
    background-color: #fff;
}

.blog-page .topbar.scrolled .header-menu-trigger span {
    background-color: #2D2D2D;
}

/* Typography */
.blog-container {
    font-family: 'Inter', sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.blog-hero {
    position: relative;
    height: 85vh;
    /* Taller hero */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    /* Remove bottom margin to allow overlap */
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    /* Lighter overlay */
}

.blog-hero-content {
    position: absolute;
    bottom: 10rem;
    /* Move text up slightly */
    left: 0;
    color: white;
    z-index: 2;
    padding-left: 15px;
}

.blog-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 5.5rem;
    /* Larger title */
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    max-width: 600px;
}

/* Sections */
.blog-section {
    margin-bottom: 10rem;
    /* More breathing room */
}

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Right column slightly wider */
    gap: 6rem;
    align-items: start;
    padding-top: 0;
    margin-top: -4rem;
    /* Reduced negative margin for less overlap */
    position: relative;
    z-index: 10;
    /* Ensure it sits on top of hero */
}

.intro-col-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 0;
    /* Remove padding to let it sit high */
}

.intro-col-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 15rem;
    /* Push right column down to maintain stagger */
}

.intro-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    /* Sharp edges */
}

/* Target the left image specifically to make it taller */
.intro-col-left .intro-image-container {
    aspect-ratio: 2/3;
    /* Taller, but not too long */
}

.intro-image-container.large {
    aspect-ratio: 4/5;
}

.intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.intro-image:hover {
    transform: scale(1.03);
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 100%;
    font-weight: 300;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .intro-col-left {
        padding-top: 0;
    }
}

/* Profile Section (Alvar Aalto) */
.profile-section-container {
    position: relative;
    overflow: hidden;
}

.profile-name-vertical {
    font-family: 'Bodoni Moda', serif;
    font-size: 8rem;
    /* Much larger */
    font-weight: 700;
    color: #000;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    position: absolute;
    left: -20px;
    bottom: 0;
    white-space: nowrap;
    line-height: 0.8;
    z-index: 10;
    pointer-events: none;
}

.profile-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    color: #333;
}

/* Materials Section */
.materials-list {
    margin-top: 4rem;
}

.material-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    line-height: 1.2;
}

.materials-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    color: #444;
    column-count: 1;
}

@media (min-width: 768px) {
    .materials-text {
        column-count: 2;
        column-gap: 4rem;
    }
}

/* Hygge Section */
.hygge-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 2rem;
}

.hygge-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #333;
}

.hygge-footer-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 4rem;
    column-count: 1;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hygge-footer-text {
        column-count: 2;
        column-gap: 4rem;
    }
}

/* Blog Page Background */
.blog-page {
    background: #F2EFE9;
    /* Solid base color */
    color: #2D2D2D;
}

/* Highlight Color (Terracotta) */
.blog-page ::selection {
    background: #C07A50;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .profile-name-vertical {
        position: static;
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 3.5rem;
        margin-bottom: 1rem;
        display: block;
        line-height: 1.1;
    }

    .blog-title {
        font-size: 3.5rem;
    }

    .blog-hero {
        height: 60vh;
    }
}