/* --- News Article Editorial Layout --- */

/* 1. Immersive Hero Header */
.article-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px 5%;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkening gradient overlay toward the bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

/* Vertical Floating Social Bar */
.floating-social-bar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.floating-social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-social-bar a:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    border-color: var(--primary-red);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.btn-back {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.tag-category {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-gold);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    color: #ffffff;
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    font-family: Helvetica, Arial, sans-serif;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #E9ECEF;
    font-size: 1.05rem;
    font-weight: 500;
}

.meta-divider {
    color: rgba(255, 255, 255, 0.4);
}

/* 2. Article Body & Typography */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 5%;
    background-color: #ffffff;
    color: #555555; /* Soft grey text to reduce eye strain, while maintaining readability */
    font-family: Helvetica, Arial, sans-serif;
}

.article-body p {
    font-size: 1.15rem;
    line-height: 1.85; /* Increased leading for long-form readability */
    margin: 0 0 32px 0;
}

/* Drop Cap */
.drop-cap::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 8px;
    padding-right: 16px;
    padding-left: 0;
    color: var(--primary-red); /* Maroon drop cap */
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Subheadings */
.article-body h2 {
    color: var(--primary-navy);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 60px 0 24px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* 3. Inline Media Component */
.inline-media {
    margin: 60px 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.inline-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
}

.inline-media figcaption {
    background-color: #F8F9FA;
    color: #6C757D;
    text-align: center;
    font-size: 0.95rem;
    padding: 20px 24px;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive Design Adjustments */
@media (min-width: 1400px) {
    .floating-social-bar {
        left: calc(50% - 650px);
    }
}

@media (max-width: 1024px) {
    .floating-social-bar {
        display: none; /* Hide floating bar on tablet/mobile views for reading focus */
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 3rem;
    }

    .article-hero {
        padding: 60px 5% 40px;
        height: auto;
        min-height: 400px;
    }
    
    .article-body {
        padding: 50px 5%;
    }
    
    .article-body p {
        font-size: 1.05rem;
    }
    
    .article-body h2 {
        font-size: 1.75rem;
        margin: 40px 0 20px 0;
    }
    
    .drop-cap::first-letter {
        font-size: 4rem;
        padding-top: 4px;
        padding-right: 12px;
    }
    
    .inline-media {
        margin: 40px 0;
    }
}