/* ==========================================================================
   FROM THE SOUND UP — GLOBAL STYLESHEET
   Applies to: index.html, blog/index.html, blog/post.html (and any future pages)
   ========================================================================== */


/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* PRIMARY SECTION SPACING CONTROL - Adjust this to change spacing between all sections */
    --section-spacing: 35px;  /* MAIN SPACING VARIABLE - Increase/decrease to adjust gaps between sections */
    
    /* Primary Color Palette */
    --color-primary: #1a1a1a;              /* Dark charcoal */
    --color-footer: #303030;              /* Dark blue text */
    --color-bg-light: #f5f5f5;             /* Light gray background */
    --color-bg-accent: #e6eef5;            /* Light blue background */
    --color-accent: #3a6ea5;               /* Accent blue */
    --color-white: #ffffff;
    --color-caption: #696969;              /* Gray caption text */
    --color-border: #ddd;                  /* Light border */
    
    /* Interactive Element Colors */
    --color-btn-bg: #292929;               /* Dark button background */
    --color-btn-text: #e3e3e3;             /* Light button text */
    --color-btn-hover: #404040;            /* Button hover state */
    --color-hover-bg: #f9fafc;             /* Light hover background */
    
    /* Overlay & Shadow Colors */
    --overlay-light: rgba(230, 238, 245, 0.6);
    --overlay-medium: rgba(230, 238, 245, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    
    /* Typography System */
    --font-primary: Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Font Size Scale */
    --font-size-h1: 3.2rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.8rem;
    --font-size-h4: 1.1rem;
    --font-size-base: 1rem;
    --font-size-small: 0.9rem;
    --font-size-caption: 0.7rem;
    --font-size-logo: 1.5rem;
    --font-size-featured: 1.7rem;
    
    /* Spacing Scale */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;
    --spacing-3xl: 60px;
    --spacing-header: 70px;
    
    /* Border Radius Scale */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 50%;
    
    /* Animation & Transition System */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth dropdown animation */
    --transition-medium: 0.6s ease-in-out;
    --transform-hover: translateY(-7px);
    --transform-service-hover: translateY(-10px);
    
    /* Shadow System */
    --shadow-header: 0 2px 15px var(--shadow-light);
    --shadow-card: 0 5px 15px var(--shadow-light);
    
    /* Layout Constraints */
    --container-width: 90%;
    --container-nav-width: 100%;
    --container-max-width: 1200px;
    --intro-container-max-width: 1000px;
    --portfolio-container-max-width: 800px;
}


/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html { 
    scroll-padding-top: var(--spacing-header); 
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-primary);
}


/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-medium);
    text-align: left;
}

/* Paragraph & Text Styles */
p {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

/* Reduce line spacing of paragraph text in mobile mode */
@media (max-width: 768px) {
    p {
        line-height: 1.5;
    }
}

p.caption {
    font-size: var(--font-size-caption);
    color: var(--color-caption);
}

/* Link Styles */
a {
    color: black;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

a:hover {
    color: rgba(0, 0, 0, 0.8);
}

a:visited {
    color: rgba(0, 0, 0, 0.7);
}


/* ==========================================================================
   LAYOUT & CONTAINER SYSTEM
   ========================================================================== */

.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 0px;
    padding-bottom: 0px;
    position: relative;
    z-index: 2;
}

.banner-container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

/* Make banner container shorter in mobile mode */
@media (max-width: 768px) {
    .banner-container {
        padding: var(--spacing-lg) 0;
    }
}

.intro-container {
    width: var(--container-width);
    max-width: var(--intro-container-max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

/* Make intro container have more top margin in mobile mode */
@media (max-width: 768px) {
    .intro-container {
        padding-top: 70px;
    }
}


/* ==========================================================================
   HEADER & NAVIGATION SYSTEM
   ========================================================================== */

header {
    background-color: var(--color-bg-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-header);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    font-size: var(--font-size-logo);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo .lighttext {
    font-weight: var(--font-weight-normal);
}

/* Make separator in logo go away in mobile mode */
@media (max-width: 768px) {
    .separator {
        display: none;
    }
    .logo .lighttext {
        display: inline-block;
        margin-left: 0;
    }
}

/* Mobile Navigation Elements */
.mobile-only {
    display: none;
}

.nav-menu {
    display: none;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--spacing-header);
    right: 0;
    background-color: var(--color-bg-light);
    width: 300px;
    align-items: center;
    padding: var(--spacing-xl) 0;
    animation: slideDown var(--transition-smooth);
}

@media (max-width: 768px) {
    .nav-menu.active {
        position: fixed; /* Instead of absolute */
        width: 100vw;    /* Full viewport width */
    }
}

.nav-menu li {
    padding: var(--spacing-sm) 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    text-decoration: underline;
}

/* Hamburger Menu Animation */
.hamburger {
    display: block;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-xs);
    transition: all var(--transition-fast);
}

/* Mobile menu slide animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn {
    display: inline-block;
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text) !important;
    padding: 12px var(--spacing-xl);
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

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


/* ==========================================================================
   SECTION LAYOUTS WITH UNIFORM SPACING
   ========================================================================== */

/* Default section spacing */
section {
    padding: var(--section-spacing) 0;
}

/* Specific section adjustments for visual uniformity */
#services {
    background-color: var(--color-bg-light);
    padding-bottom: calc(var(--section-spacing) * 0.6); /* Reduced bottom padding */
}

#about {
    background-color: var(--color-bg-light);
    padding-top: calc(var(--section-spacing) * 0.6); /* Reduced top padding */
}

#testimonials {
    background-color: var(--color-bg-light);
    text-align: left;
    padding-bottom: calc(var(--section-spacing) * 0.6); /* Reduced bottom padding */
}

#get-started {
    background-color: var(--color-bg-light);
    padding-top: calc(var(--section-spacing) * 0.6); /* Reduced top padding */
}

#portfolio {
    background-color: var(--color-bg-light);
    padding: calc(var(--section-spacing) * 1.2) 0; /* Increased padding */
}


/* Hero/Intro Section */
#intro {
    background: url('LaMusique_RThibodeau-01.webp') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.section-spacer {
    height: 20px;
    background: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-light);
    z-index: 1;
}


/* Services Section */
.services-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-lg);
}

.service-box {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-xl);
    width: calc(33.33% - var(--spacing-lg));
    margin-bottom: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-box:hover {
    transform: var(--transform-service-hover);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.service-box h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}


/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.about-img {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.about-img:hover {
    transform: scale(1.02);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-img figcaption {
    font-size: 0.8rem;
    text-align: left;
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    background-color: #f0f4f8;
}

.about-text {
    flex: 1;
}


/* Featured Quote & Project Sections */
#featured-project,
#featured-quote {
    position: relative;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

#featured-project {
    background: url('tfctest.jpg') no-repeat center center/cover;
}

#featured-quote {
    background: url('filmfest_talk.jpeg') no-repeat center center/cover;
}

#featured-project::before,
#featured-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-medium);
    z-index: 1;
}

.featured-project-inner,
.featured-quote-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 80%;
    margin: 0 auto;
}

.featured-project-inner p,
.featured-quote-inner p {
    font-size: var(--font-size-featured);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.3;
    text-align: left;
}

.featured-project-inner p2,
.featured-quote-inner p2 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
    line-height: 1.3;
    text-align: left;
}


/* ==========================================================================
   ACCORDION COMPONENT SYSTEM (Portfolio & Testimonials)
   ========================================================================== */

.portfolio-container,
.testimonial-container {
    max-width: var(--portfolio-container-max-width);
    margin: 0 auto;
}

/* Note: portfolio-container background is set at the section level (#portfolio),
   not here, so blog posts using this class don't inherit a gray background. */

/* Accordion Item Styling - Hover only when NOT expanded */
.portfolio-item,
.testimonial-item {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.portfolio-item:not(.expanded):hover,
.testimonial-item:not(.expanded):hover {
    transform: var(--transform-hover);
}

/* Accordion Header Styling */
.portfolio-header,
.testimonial-header {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    font-weight: var(--font-weight-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
    user-select: none; /* Prevent text selection on click */
}

.portfolio-header:hover,
.testimonial-header:hover {
    background-color: var(--color-hover-bg);
}

/* Arrow Animation */
.portfolio-header .arrow,
.testimonial-header .arrow {
    transition: transform var(--transition-smooth);
}

.portfolio-header.active .arrow,
.testimonial-header.active .arrow {
    transform: rotate(180deg);
}

/* Smooth Accordion Content Animation */
.portfolio-content,
.testimonial-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.portfolio-content-inner,
.testimonial-content-inner {
    padding: var(--spacing-md);
}

/* Testimonial-specific Styling */
.testimonial-name {
    font-weight: var(--font-weight-light);
    color: black;
    text-align: right;
}


/* ==========================================================================
   IMAGE CAROUSEL COMPONENT
   ========================================================================== */

.image-carousel {
    margin-bottom: var(--spacing-lg);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-medium);
    display: block;
    left: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Carousel Navigation Buttons (no hover effects) */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--shadow-medium);
    color: var(--color-white);
    border: none;
    font-size: 18px;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    border-radius: var(--radius-full);
    outline: none;
    z-index: 10;
}

.carousel-button.prev {
    left: var(--spacing-sm);
}

.carousel-button.next {
    right: var(--spacing-sm);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: var(--spacing-sm);
    height: var(--spacing-sm);
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--color-white);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: var(--color-footer);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-lg) 0;
    font-size: var(--font-size-small);
}


/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Section Spacing Mobile Adjustments */
    section {
        padding: calc(var(--section-spacing) * 0.6) 0;
    }

    #services {
        padding-bottom: calc(var(--section-spacing) * 0.4);
    }

    #about {
        padding-top: calc(var(--section-spacing) * 0.4);
    }

    #testimonials {
        padding-bottom: calc(var(--section-spacing) * 0.4);
    }

    #get-started {
        padding-top: calc(var(--section-spacing) * 0.4);
    }

    #portfolio {
        padding: calc(var(--section-spacing) * 0.8) 0;
    }

    /* Navigation Adjustments */
    .mobile-only {
        display: inline;
    }

    .logo {
        font-size: 1.2rem;
        line-height: 1.2;
        max-width: 200px;
    }

    /* Service Box Mobile Layout */
    .service-box {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    /* About Section Mobile Layout */
    .about-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    /* Typography Mobile Adjustments */
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Featured Section Mobile Adjustments */
    .featured-project-inner p,
    .featured-quote-inner p {
        font-size: 1.8rem;
    }

    /* Carousel Mobile Optimizations */
    .carousel-container {
        height: 300px;
    }

    .carousel-button {
        padding: 8px 12px;
        font-size: 16px;
    }
}

/* Tablet Responsive Adjustments */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .carousel-container {
        height: 400px;
    }
}

/* Single breakpoint where service boxes and insight cards jump from
   3-column directly to stacked — skipping the awkward 2+1 intermediate state.
   Adjust this value if you want the stacking to kick in earlier or later. */
@media screen and (max-width: 900px) {
    .service-box {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    .insight-card {
        width: 100%;
    }
}


/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus States for Keyboard Navigation */
.btn:focus-visible,
.nav-menu a:focus-visible,
.portfolio-header:focus-visible,
.testimonial-header:focus-visible,
.carousel-button:focus-visible,
.indicator:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   HOMEPAGE INSIGHTS SECTION
   ========================================================================== */

#insights {
    background-color: var(--color-bg-light);
}

/* Three-column flex layout — mirrors .services-container */
.insights-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-lg);
}

/* Individual insight card — mirrors .service-box */
.insight-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    width: calc(33.33% - var(--spacing-lg));
    overflow: hidden;
}

/* Card image */
.insight-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Gray placeholder when no image in front matter */
.insight-card-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--color-bg-accent);
}

/* Card text area */
.insight-card-body {
    padding: var(--spacing-lg);
}

.insight-card-body h3 {
    font-size: 1.05rem;
    font-weight: var(--font-weight-bold);
    text-align: left;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* "Read more insights here" line below the cards */
.insights-footer {
    margin-top: var(--spacing-xl);
    font-size: var(--font-size-base);
}

/* Mobile — stack cards like service boxes */
@media screen and (max-width: 768px) {
    .insight-card {
        width: 100%;
    }
}


/* ==========================================================================
   BLOG POST STYLES
   ========================================================================== */

/* Post page top-level section — adds clearance for fixed header.
   To adjust space between the nav bar and the date/title:
   change the multiplier on --section-spacing (currently 2.5x = ~87px of breathing room).
   --spacing-header (70px) is fixed — it equals the height of the nav bar itself. */
.post {
    padding-top: calc(var(--spacing-header) + (var(--section-spacing) * 2.5));
    padding-bottom: var(--section-spacing);
    background-color: var(--color-white);
}

/* Post date — small, muted, above the title */
.post-date {
    font-size: var(--font-size-small);
    color: var(--color-caption);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
}

/* Post title — matches section headers (About, Testimonials, etc.) */
/* Uses existing h2 styles, no override needed */

/* Post content wrapper — 800px centered column, matches portfolio container.
   Padding matches .portfolio-content-inner on the main page. */
.post-content {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background-color: var(--color-white);
}

/* Post subtitles — bold, smaller than featured quotes (1.7rem), larger than body */
.post-content h3 {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

/* Post body text — inherits global p styles, no override needed */

/* Bullet and numbered lists in post content —
   browser defaults were stripped by the global * reset,
   so we restore sensible indentation and spacing here. */
.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin-bottom: var(--spacing-lg);
}

.post-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.post-content li:last-child {
    margin-bottom: 0;
}

/* Post images — full width of content column, light rounding */
.post-content img {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
}

/* Image caption if used (wrap in <p class="caption"> in markdown) */
.post-content p.caption {
    margin-top: calc(var(--spacing-md) * -0.5);
    margin-bottom: var(--spacing-xl);
}

/* CTA button row at bottom of post */
.post-cta {
    text-align: center;
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

/* Mobile adjustments for post */
@media screen and (max-width: 768px) {
    /* On mobile the logo wraps to two lines, making the header ~90px tall instead of 70px.
       Increase the px value if you need more space below the header, decrease for less.
       The multiplier on --section-spacing controls additional breathing room below the header. */
    .post {
        padding-top: calc(90px + var(--section-spacing));
    }

    /* Tighten the gap between the h2 title and the start of body text on mobile */
    .post-content {
        margin-top: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }
}


/* ==========================================================================
   BLOG LANDING PAGE STYLES
   ========================================================================== */

/* Landing page section — same top clearance logic as .post */
.blog-landing {
    padding-top: calc(var(--spacing-header) + (var(--section-spacing) * 2.5));
    padding-bottom: var(--spacing-3xl);
    background-color: var(--color-white);
}

/* Stacked list of post cards */
.blog-post-list {
    margin-top: var(--spacing-xl);
    max-width: var(--portfolio-container-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Individual post card */
.blog-card {
    margin-bottom: var(--spacing-xxl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
}

/* Card image — fixed height, covers the area */
.blog-card-image-link {
    display: block;
    text-decoration: none;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Gray placeholder when no image is provided */
.blog-card-placeholder {
    width: 100%;
    height: 220px;
    background-color: var(--color-bg-light);
}

/* Card text content area */
.blog-card-body {
    padding: var(--spacing-lg) var(--spacing-xl);
}

/* Card title — linked, no underline by default */
.blog-card-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: var(--color-primary);
}

.blog-card-title a:hover {
    text-decoration: underline;
}

.blog-card-title a:visited {
    color: var(--color-primary);
}

/* Excerpt text */
.blog-card-excerpt {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

/* Read more link */
.blog-read-more {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    text-decoration: none;
}

.blog-read-more:hover {
    text-decoration: underline;
}

.blog-read-more:visited {
    color: var(--color-accent);
}

/* Mobile adjustments for blog landing */
@media screen and (max-width: 768px) {
    .blog-landing {
        padding-top: calc(90px + var(--section-spacing));
    }

    .blog-card-img,
    .blog-card-placeholder {
        height: 180px;
    }

    .blog-card-body {
        padding: var(--spacing-md);
    }
}
