﻿/* =============================================================================
   BDT Hot Water Heat Pump Product Pages - Unified CSS
   For AquaCore, Hydrobox, Case Studies, News, and related product pages
   ============================================================================= */

/* =============================================================================
   PRODUCT HERO SECTIONS
   ============================================================================= */

/* Base Product Hero Styles */
.product-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3498db 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

    .product-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='65' height='48' viewBox='0 0 65 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.1'%3E%3Crect x='25.5' y='4' width='14' height='14' transform='rotate(45 32.5 11)'/%3E%3Crect x='13.5' y='17' width='14' height='14' transform='rotate(45 20.5 24)'/%3E%3Crect x='37.5' y='17' width='14' height='14' transform='rotate(45 44.5 24)'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 70px 58px;
    }

/* Hero Navigation */
.product-nav {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .product-nav a {
        color: white;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.9rem;
        white-space: nowrap;
    }

        .product-nav a.active {
            background: var(--accent-color);
            color: var(--primary-dark);
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(208, 189, 54, 0.3);
        }

        .product-nav a:hover {
            background: rgba(255,255,255,0.2);
            text-decoration: none;
            transform: translateY(-1px);
        }

/* Hero Typography */
.product-hero .hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.product-hero .hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Logo Container */
.product-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

    .product-logos-container img {
        height: auto;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

/* Product Hero Logo Images */
.product-hero-logo {
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =============================================================================
   PRODUCT CONTENT SECTIONS
   ============================================================================= */

.content-description{
    font-size:1.1rem;
}
/* Modern Card Component */
.modern-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .modern-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .modern-card h2 {
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

        .modern-card h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 2px;
        }

    .modern-card p {
        line-height: 1.7;
        margin-bottom: 1.5rem;
        color: var(--text-muted);
    }

    .modern-card img {
        margin-bottom:1.2rem;
        height: auto;
        border-radius: var(--border-radius);
    }

/* =============================================================================
   IMAGE CAROUSEL COMPONENTS
   ============================================================================= */

.carousel-modern {
    margin: 3rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .carousel-modern .carousel-item img {
        border-radius: 0;
    }

/* =============================================================================
   EFFICIENCY & PERFORMANCE SECTIONS
   ============================================================================= */

.efficiency-chart {
    background: white;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
}

    .efficiency-chart h2 {
        color: var(--primary-color);
        margin-bottom: 2rem;
    }

    .efficiency-chart .lead {
        font-size: 1rem;
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .efficiency-chart img {
        max-width: 100%;
        height: auto;
        margin: 2rem 0;
    }

/* =============================================================================
   FEATURE HIGHLIGHT SECTIONS
   ============================================================================= */

/* WiFi/Smart Features Highlight */
.wifi-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
}

    .wifi-highlight::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
    }

    .wifi-highlight h2 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .wifi-highlight p {
        position: relative;
        z-index: 2;
        color: var(--text-muted);
        line-height: 1.7;
    }

    .wifi-highlight .caveat {
        color: #6c757d;
        background: var(--background-light);
        border-left: 4px solid var(--border-color);
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        font-size: 0.9rem;
        font-style: italic;
    }

.wifi-image {
    position: relative;
    z-index: 2;
}

/* Environmental Section */
.environmental-section {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    color: var(--text-dark);
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #d4e6d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
}

    .environmental-section::before {
        content: '';
        position: absolute;
        bottom: -30px;
        left: -30px;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(39, 174, 96, 0.08) 0%, transparent 70%);
    }

    .environmental-section h2 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .environmental-section p {
        color: var(--text-muted);
        line-height: 1.7;
        position: relative;
        z-index: 2;
    }

    .environmental-section .medium {
        color: #6c757d;
        background: var(--background-light);
        border-left: 4px solid var(--border-color);
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        font-size: 0.9rem;
        font-style: italic;
    }

/* =============================================================================
   CASE STUDIES COMPONENTS
   ============================================================================= */

/* Compact Case Study Link */
.case-studies-compact {
    max-width: 500px;
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

    .case-studies-compact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .case-studies-compact:hover::before {
        transform: scaleX(1);
    }

    .case-studies-compact:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        text-decoration: none;
        color: inherit;
    }

    .case-studies-compact .row {
        align-items: center;
    }

    .case-studies-compact .image-container {
        text-align: center;
    }

    .case-studies-compact .image {
        width: 80px;
        height: 80px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 auto;
        transition: transform 0.3s ease;
    }

    .case-studies-compact:hover .image {
        transform: scale(1.1);
    }

    .case-studies-compact h3 {
        color: var(--primary-color);
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .case-studies-compact .blurb {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
    }

/* Case Study Cards for Listing Pages */
.case-study-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
}

    .case-study-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .case-study-card a {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }

        .case-study-card a:hover {
            text-decoration: none;
            color: inherit;
        }

/* Case Study Image Left Layout */
.case-study-image-wrapper {
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.case-study-image-left {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.keylink-card:hover .case-study-image-left {
    filter: brightness(1.05);
}

.case-study-content-right {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    height: 100%;
}

.case-study-title-inline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.keylink-card:hover .case-study-title-inline {
    color: var(--primary-dark);
}

.case-study-location-inline {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.case-study-description-inline {
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
}

/* Case Study Detail Pages */
.case-study-detail {
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.case-study-hero {
    width: 100%;
    height: 40vw; /* scales with screen width */
    max-height: 400px; /* never taller than 368px */
    min-height: 180px; /* optional minimum */
    background-size: cover; /* fill the box */
    background-position: top; /* key line: lock the image to the top */
    background-repeat: no-repeat; /* prevent tiling */
}


@media (max-width: 768px) {
    .case-study-hero {
        height: 200px; /* shorter on tablets/phones */
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        height: 150px; /* even shorter on very small screens */
    }
}


.case-study-header {
    background: var(--background-light);
    padding: 2.5rem;
}

    .case-study-header h1 {
        font-size: 2rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1rem;
        line-height: 1.3;
    }

.case-study-body {
    padding: 2rem;
}

    .case-study-body h3 {
        display: inline-block; /* shrink to text width */
        font-size: 1.4rem;
        color: var(--primary-color);
        margin: 2rem 0 1rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }


    .case-study-body h4 {
        font-size: 1.2rem;
        color: var(--primary-color);
        margin: 1.6rem 0 1rem 0;
    }

    .case-study-body p {
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .case-study-body .col-md-5{
        margin-top:2rem;
    }

    .case-study-nav {
        background: var(--background-light);
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .case-study-nav a,
    .case-study-nav-btn {
        background: var(--primary-color);
        color: white;
        padding: 0.5rem 1.25rem;
        border-radius: var(--border-radius);
        text-decoration: none;
        transition: background 0.3s ease;
        font-weight: 500;
    }

        .case-study-nav a:hover,
        .case-study-nav-btn:hover {
            background: var(--primary-dark);
            color: white;
            text-decoration: none;
        }

.case-study-date {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* =============================================================================
   ARTICLE PAGES (NEWS)
   ============================================================================= */

.article-hero {
    text-align: center;
    margin: 3rem 0;
}

    .article-hero img {
        max-width: 100%;
        height: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border-radius: var(--border-radius);
        object-fit: cover;
    }

.article-section {
    margin: 3rem 0;
    padding: 0;
}

    .article-section h2 {
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

        .article-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 2px;
        }

    .article-section p {
        line-height: 1.7;
        margin-bottom: 1.5rem;
        color: var(--text-muted);
    }

    .article-section img {
        width: 100%;
        height: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
    }

.article-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* =============================================================================
   DOWNLOADS SECTION
   ============================================================================= */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.download-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .download-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .download-card .card-body {
        padding: 2rem;
    }

    .download-card h5 {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

    .download-card h6 {
        color: var(--primary-color);
        font-weight: 600;
        margin: 1.5rem 0 0.75rem 0;
        font-size: 1rem;
    }

/* =============================================================================
   PRODUCT NOTICES & CALLOUTS
   ============================================================================= */

.product-notice-callout {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #1565c0;
    position: relative;
}

    .product-notice-callout::after {
        content: '\f05a';
        font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 0.1rem;
        right: .5rem;
        color: #2196f3;
        font-size: 1.5rem;
    }

    .product-notice-callout p {
        margin: 0;
        font-weight: 500;
        padding-right: 2rem;
    }

    .product-notice-callout a {
        color: #0d47a1;
        font-weight: 600;
        text-decoration: underline;
    }

        .product-notice-callout a:hover {
            color: #1976d2;
            text-decoration: none;
        }


/* =============================================================================
   CTA SECTIONS
   ============================================================================= */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .cta-section h2 {
        color: white;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
    }

        .cta-section h2::after {
            background: var(--accent-color);
        }

    .cta-section p {
        position: relative;
        z-index: 2;
        opacity: 0.95;
        font-size: 1.1rem;
        line-height: 1.6;
    }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(208, 189, 54, 0.3);
}

    .cta-btn:hover {
        background: #f0d83f;
        color: var(--primary-dark);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(208, 189, 54, 0.4);
    }

    .cta-btn i {
        font-size: 1.1rem;
    }

/* =============================================================================
   FOOTNOTES & DISCLAIMERS
   ============================================================================= */

.footnotes {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

    .footnotes h6 {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 0.75rem;
        font-style: italic;
        font-weight: normal;
    }

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.center {
    text-align: center;
}

.col-md-6 .fullwidth{
    margin-bottom:1.2rem;
}

.fullwidth {
    max-width: 100%;
    height: auto;
}

.margin-top-0 {
    margin-top: 0 !important;
}

.margin-top-1 {
    margin-top: 1rem;
}

.margin-top-2 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 4rem;
}

.caveat{
    margin-top:.5rem;
}
.caveat,
.medium {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.w100 {
    width: 100px;
}

.pageright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    max-width: 300px;
}

.mob-hide {
    display: block;
}

.lead {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    /* Hero Sections */
    .product-hero {
        padding: 2rem 0;
        text-align: center;
    }

        .product-hero .hero-title {
            font-size: 2rem;
        }

        .product-hero .hero-subtitle {
            font-size: 1rem;
        }

    .product-nav {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.25rem;
    }

        .product-nav a {
            margin: 0.25rem 0;
            padding: 0.75rem 1rem;
        }

    /* Content Sections */
    .modern-card,
    .wifi-highlight,
    .environmental-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

        .modern-card h2,
        .article-section h2 {
            font-size: 1.4rem;
            margin-top: 1.4rem;
        }

    .text-center h2 {
        margin-top: 1.4rem;
    }

    .product-logos-container {
        gap: 1rem;
        margin-top: 2rem;
    }

    .case-studies-compact {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

        .case-studies-compact .row {
            text-align: center;
        }

        .case-studies-compact .image {
            margin-bottom: 1rem;
        }

    .pageright {
        float: none;
        margin: 1rem 0;
        text-align: center;
        max-width: 100%;
    }

    .mob-hide {
        display: none;
    }

    /* Article Pages */
    .article-intro {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .article-section {
        margin: 2rem 0;
    }

        .article-section h2 {
            margin-top: 1.2rem;
            font-size: 1.3rem;
        }

    /* Case Study Pages */
    .case-study-header {
        padding: 1.5rem;
    }

        .case-study-header h1 {
            font-size: 1.75rem;
        }

    .case-study-body {
        padding: 1.5rem;
    }

    .case-study-nav {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

        .case-study-nav a {
            width: 100%;
            text-align: center;
        }

    .case-study-content-right {
        padding: 1rem;
        gap: 0.5rem;
    }

    .case-study-title-inline {
        font-size: 1rem;
    }

    .case-study-description-inline {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .case-study-image-wrapper {
        min-height: 140px;
    }

    /* CTA Sections */
    .cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .footnotes {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Hero */
    .product-hero .hero-title {
        font-size: 1.8rem;
    }

    .product-hero .hero-subtitle {
        font-size: 1rem;
    }

    /* Content */
    .modern-card,
    .wifi-highlight,
    .environmental-section {
        padding: 1.5rem 1rem;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-studies-compact {
        margin: 2rem 0;
    }

    /* Stack case study cards vertically on very small screens */
    .keylink-card .row.g-0 {
        flex-direction: column;
    }

    .keylink-card .col-4,
    .keylink-card .col-8 {
        flex: 0 0 auto;
        width: 100%;
    }

    .case-study-image-wrapper {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        min-height: 180px;
    }

    .case-study-content-right {
        padding: 1rem;
    }

    /* Article Pages */
    .article-intro {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* CTA Sections */
    .cta-section {
        padding: 1.5rem 1rem;
    }

    .cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =============================================================================
   LEGACY COMPATIBILITY
   ============================================================================= */

/* Support for existing class names during transition */
.aquacore-hero,
.hydrobox-hero,
.bd-hero {
    @extend .product-hero;
}

.aquacore-nav,
.hydrobox-nav,
.bd-nav {
    @extend .product-nav;
}

.logos-container {
    @extend .product-logos-container;
}
