﻿body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header Styles */
.header-background {
    width: 100%;
    background-color: #E1E8F6;
    padding: 60px 0;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
}

/* Article Details */
.article-details {
    flex: 1;
    max-width: 650px;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #000;
}

.publish-date {
    font-size: 18px;
    color: #666;
    margin: 0 0 24px 0;
}

.author-details {
    margin-bottom: 24px;
}

.author-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #000;
}

.author-bio {
    font-size: 18px;
    font-style: italic;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Cover Image */
.cover-image {
    flex: 0 0 400px;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .cover-image::before {
        content: "";
        display: block;
        padding-top: 75%; 
    }

    .cover-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Social Share Buttons */
.a2a_kit {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.a2a_button_facebook,
.a2a_button_email,
.a2a_button_whatsapp,
.a2a_button_linkedin {
    border-radius: 4px;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
}



/* Article Content */
.blog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.article-content {
    max-width: 818px;
    font-size: 20px;
    font-weight: 400;
    line-height: 140%;
    gap: 40px;
    padding: 40px 0px;

}

/* Related Articles Section */
.related-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.related-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #000;
}

/* Slider Container */
.articles-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Slider Navigation */
.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #666;
    opacity: 1;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

    .slider-arrow:hover {
        background: #f5f5f5;
        color: #000;
    }

    .slider-arrow svg {
        width: 24px;
        height: 24px;
    }

/* Slider */
.articles-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 8px 0;
}

    .articles-slider::-webkit-scrollbar {
        display: none;
    }

/* Article Cards */
.article-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

    .article-card:hover {
        transform: translateY(-4px);
    }

    .article-card a {
        text-decoration: none;
        color: inherit;
    }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

    .card-content h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 12px 0;
        color: #000;
        line-height: 1.4;
    }

.card-meta {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {

    .article-details {
        max-width: 100%;
    }

    .cover-image {
        flex: none;
        width: 100%;
        max-width: 300px;
    }

    .article-title {
        font-size: 36px;
    }
}

@media (max-width: 560px) {
    .article-header {
        flex-direction: column-reverse;
    }
}


@media (max-width: 480px) {
    .header-background {
        padding: 40px 0;
    }

    .article-title {
        font-size: 32px;
    }

    .publish-date,
    .author-name,
    .author-bio {
        font-size: 16px;
    }

    .cover-image {

        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .related-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .articles-slider {
        grid-auto-columns: 260px;
    }

    .card-image {
        height: 180px;
    }

    .cover-image {
        max-width: 300px;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .articles-slider {
        grid-auto-columns: 240px;
    }

    .card-content {
        padding: 16px;
    }

        .card-content h3 {
            font-size: 16px;
            margin-bottom: 8px;
        }
}