/* BLOG HERO SECTION */
.blog-hero {
    background-color: var(--primary-color);
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    overflow: hidden;
    z-index: 1;
}

/* Aurora Effect */
.blog-hero::before, .blog-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.blog-hero::before {
    background: var(--secondary-color);
    top: -200px;
    left: -100px;
}

.blog-hero::after {
    background: var(--accent-color);
    bottom: -200px;
    right: -100px;
}

/* BLOG GRID LAYOUT */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* NEW CARD DESIGN */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: transparent;
}

.blog-card__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card__img-wrapper {
    position: relative;
    padding-top: 60%; /* 16:9 */
    overflow: hidden;
}

.blog-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.08);
}

.blog-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tag Styles */
.blog-card__tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: var(--light-text);
    transition: var(--transition);
}

.blog-card:hover .blog-tag {
    background-color: #e0f2fe;
    color: var(--secondary-color);
}

/* Text Styles */
.blog-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.blog-card:hover .blog-card__title {
    color: var(--secondary-color);
}

.blog-card__excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / Meta */
.blog-card__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--light-text);
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card:hover .read-more-link {
    color: var(--secondary-color);
}

/* =========================================
   ARTICLE DETAIL STYLES (NEW PREMIUM LOOK)
   ========================================= */

/* Main Container Limit for Reading */
.article-container {
    max-width: 1140px; /* Standard wide container */
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header Area */
.article-header {
    text-align: center;
    padding-bottom: 40px;
    margin-top: 40px;
    max-width: 800px; /* Limit title width for better look */
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.article-h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

/* Cinematic Image */
.article-hero-img-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-hero-img-container {
        height: 300px;
        border-radius: 12px;
    }
    .article-h1 {
        font-size: 2rem;
    }
}

/* Typography & Content */
.article-content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    font-family: 'Inter', sans-serif;
}

.article-content-body p {
    margin-bottom: 1.5em;
}

.article-content-body h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.article-content-body h3 {
    font-size: 1.4rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-color);
    font-weight: 700;
}

.article-content-body ul {
    list-style: none;
    margin-bottom: 2em;
    padding-left: 10px;
}

.article-content-body li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.article-content-body li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    top: 2px;
}

/* Highlight Box (W pigułce) */
.highlight-box {
    background-color: #f8fafc;
    border-left: 4px solid var(--secondary-color);
    padding: 30px;
    border-radius: 0 12px 12px 0;
    margin: 0 0 40px 0;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sticky CTA Sidebar (Desktop Only) */
.sticky-cta-wrapper {
    display: none; /* Mobile default */
}

@media (min-width: 992px) {
    .article-wrapper-flex {
        display: flex;
        align-items: flex-start;
        gap: 50px; /* Nice spacious gap */
        position: relative;
    }
    
    .article-main-col {
        flex: 1; /* Takes remaining space (approx 65-70%) */
        min-width: 0; /* Prevents overflow */
    }

    .sticky-cta-wrapper {
        display: block;
        width: 320px; /* Fixed robust width */
        flex-shrink: 0; /* Prevents shrinking */
        position: sticky;
        top: 120px;
    }

    .sticky-cta-card {
        background: white;
        padding: 30px;
        border-radius: 16px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        text-align: center;
    }
}
