/* Related Articles Section Styles - Home Standardized */

.cs-articles-section {
    padding: 50px 40px;
    /* Standardize with 50px vertical gap rule */
    background-color: var(--color-black);
    color: var(--color-white);
}

.cs-articles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cs-articles-header {
    text-align: center;
    margin-bottom: 50px;
    /* Matching standard section rhythm */
}

.cs-articles-header .section-title {
    font-size: 42px;
    /* Standardized to match Home Page Section Titles */
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--color-white);
    line-height: 1.2;
}

.cs-articles-header .section-subtitle {
    font-size: 18px;
    /* Matching Home Page Section Descriptions */
    color: #eeeeee;
    font-family: var(--font-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Grid */
.cs-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Article Card */
.cs-article-card {
    background-color: #f3faf1;
    /* Softer Mint Green from Detail Page standards */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    height: 100%;
    transition: all 0.4s ease;
}

.cs-article-card:hover {
    transform: translateY(-10px);
}

.cs-article-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 3px solid var(--color-primary);
}

.cs-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cs-article-card:hover .cs-article-img img {
    transform: scale(1.1);
}

.cs-article-info {
    padding: 30px;
    /* Generous padding like home cards */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cs-article-title {
    font-size: 26px;
    /* User requested 26px for card title */
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    /* Poppins */
    line-height: 1.3;
}

.cs-article-desc {
    font-size: 18px;
    /* User requested 18px */
    line-height: 1.6;
    color: #000000;
    margin-bottom: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    /* Lexend Deca */
    flex-grow: 1;
}

/* Read More Button - Pill style matching mockup */
.cs-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
    align-self: flex-start;
    transition: all 0.3s ease;
}

.cs-article-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(84, 178, 72, 0.4);
}

/* Response Fixes */
@media (max-width: 1200px) {
    .cs-articles-header .section-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .cs-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cs-articles-header .section-title {
        font-size: 32px;
    }

    .cs-article-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .cs-articles-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .cs-article-title {
        font-size: 20px;
    }

    .cs-article-desc {
        font-size: 16px;
    }

    .cs-articles-header .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cs-article-info {
        padding: 20px;
    }

    .cs-article-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Professional Spacing Standardization - Fixed 50px Padding */
.casestudy-detail-page section,
.casestudy-detail-page .casestudy-hero,
.casestudy-detail-page .cs-address-section,
.casestudy-detail-page .cs2-content-section,
.casestudy-detail-page .cs-articles-section,
.casestudy-detail-page .contact-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Specific component overrides for Case Study Detail Page */
.casestudy-detail-page .casestudy-hero {
    margin-bottom: 0px;
    padding-top: 100px !important; /* Keep enough space for hero content top */
    padding-bottom: 50px !important;
    height: auto !important;
    min-height: 480px !important;
}