/* --- Variable Definitions --- */
:root {
    --primary-color: #004E64; /* Deeper Blue/Teal */
    --secondary-color: #1A8FE3; /* Brighter Blue */
    --accent-color: #E85D04; /* Warm accent for urgency text */
    --text-color: #343A40; /* Dark Gray */
    --meta-text-color: #6C757D; /* Medium Gray */
    --light-gray-bg: #F8F9FA;
    --white-bg: #FFFFFF;
    --border-color: #DEE2E6;
    --link-color: var(--secondary-color); /* Bright Blue for links */

    /* --- CORRECTED CTA Colors --- */
    --cta-green-bg: #34A853;     /* Flat Green from example */
    --cta-green-bg-hover: #2C8E45; /* Slightly Darker Flat Green */
    --cta-text-color: #FFFFFF;    /* <<<< WHITE text/icon >>>> */
}

/* --- Base Styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-gray-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
    background-color: var(--white-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area .fake-logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.7em;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}
.logo-area .tagline {
    font-size: 0.8em;
    color: var(--meta-text-color);
    margin: 0;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
    padding: 5px 0;
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Main Layout --- */
.main-layout {
    display: flex;
    gap: 30px;
    background-color: var(--white-bg);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* Removed class for single column layout */
/* .main-layout.single-column {
    flex-direction: column;
} */

.article-column {
    flex: 3; /* Restore original flex value */
    min-width: 0;
    /* Removed max-width and margin */
}
.sidebar-column {
    /* Restore original sidebar styles */
    flex: 1;
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

/* --- Article Header --- */
.article-header {
    margin-bottom: 25px;
}
.category-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
h1.article-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.3;
}
.article-meta {
    font-size: 0.9em;
    color: var(--meta-text-color);
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.author-date {
    margin-bottom: 8px;
    line-height: 1.4;
}
.author-name {
    font-weight: 600;
    color: var(--text-color);
}
.social-share a {
    color: var(--meta-text-color);
    margin-left: 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.2s ease;
}
.social-share a:hover {
    color: var(--primary-color);
}

/* --- Hero Image --- */
.hero-figure {
    margin: 0 0 30px 0;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
}
figcaption {
    font-size: 0.88em;
    color: var(--meta-text-color);
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
}

/* --- Main Content Styling --- */
.main-content {
    font-size: 1.05em;
    color: var(--text-color);
}
.main-content p {
    margin-bottom: 1.6em;
}
/* Ensure strong looks good and standard */
.main-content strong {
    font-weight: 700;
    color: #000; /* Standard strong color */
}
.main-content a {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}
.main-content a:hover {
    color: var(--primary-color);
}

/* Subheadings */
.main-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.7em;
    margin-top: 35px;
    margin-bottom: 18px;
    color: var(--primary-color);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    line-height: 1.3;
}
.main-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.35em;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #495057;
    line-height: 1.4;
}

/* Compact Bulleted List */
.main-content ul {
    margin-left: 18px;
    margin-bottom: 1.6em;
    padding-left: 18px;
    list-style: disc;
}
.main-content li {
    margin-bottom: 0.4em;
    padding-left: 5px;
    line-height: 1.5;
}

/* Inline Citations */
.citation {
    font-size: 0.7em;
    vertical-align: super;
    color: var(--secondary-color);
    font-weight: 600;
    padding-left: 2px;
    user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
}

/* Content Figures */
.content-figure {
    margin: 35px auto;
    max-width: 580px;
}
.content-figure img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}
.content-figure figcaption {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.85em;
}

/* Revised Key Discovery Box - Side-by-Side Layout */
.key-discovery-box.side-by-side {
    background-color: #EFFFF5; /* Restore background color */
    padding: 20px 25px; /* Restore padding */
    margin: 30px 0;
    border: 1px solid #AAE0C3;
    border-left: 4px solid var(--cta-green-bg); /* Restore left border */
    border-radius: 4px;
    display: flex; /* Use flexbox */
    align-items: center; /* Vertically center items */
    gap: 25px; /* Adjust gap */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* Remove background image properties */
    /* position: relative; */
    /* background-image: url('images/discovery-icon.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* min-height: 190px; */
    /* overflow: hidden; */
}

/* Container for the image */
.key-discovery-box .discovery-image-container {
    flex: 0 0 35%; /* Don't grow, don't shrink, base width 35% */
    max-width: 200px; /* Optional: set a max pixel width */
}

.key-discovery-box .discovery-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

/* Container for the text */
.key-discovery-box .discovery-text-content {
    flex: 1; /* Take remaining space */
}

/* Text styling */
.key-discovery-box .discovery-text-content p {
    margin-bottom: 0;
    font-size: 1.05em;
    color: #1E562A; /* Restore original text color */
    line-height: 1.6;
    font-weight: 600;
}

.key-discovery-box .discovery-text-content strong {
     color: #1E562A; /* Restore original strong color */
     font-weight: 700;
}

/* Removed styles for .text-overlay */
/* .key-discovery-box .text-overlay { ... } */
/* .key-discovery-box .text-overlay p { ... } */
/* .key-discovery-box .text-overlay strong { ... } */

/* Pre-CTA Image/Video Promo */
.video-promo-section {
    margin: 40px 0 30px 0;
    text-align: center;
}
.video-promo-section > p { /* Style the urgency text */
     font-weight: bold;
     color: var(--accent-color); /* Use warm accent color */
     margin-bottom: 15px;
     font-size: 1.05em;
 }
.video-promo-image {
    position: relative;
    display: inline-block;
    cursor: pointer;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    line-height: 0;
}
.video-promo-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.video-promo-image:hover img {
     transform: scale(1.03);
}
.video-promo-image .play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
}
.video-promo-image:hover .play-button-overlay {
    background-color: rgba(0, 78, 100, 0.5);
}
.video-promo-image .play-icon {
    font-size: 5em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
 .video-promo-image:hover .play-icon {
    transform: scale(1.1);
}

/* CTA Section */
.cta-conclusion {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.cta-conclusion h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-align: center;
}
.cta-conclusion p {
    text-align: center;
    font-size: 1.05em;
    margin-bottom: 20px;
}
.cta-button-wrapper {
    text-align: center;
    margin-bottom: 18px;
}
/* CTA Button - CORRECTED COLORS */
.cta-button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.2em;
    font-weight: 600; /* Regular bold */
    font-family: 'Open Sans', sans-serif;
    color: var(--cta-text-color); /* === WHITE TEXT === */
    background-color: var(--cta-green-bg); /* FLAT GREEN BG */
    border: none;
    border-radius: 6px; /* Slightly more rounded */
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(52, 168, 83, 0.25); /* Softer green shadow */
    text-align: center;
    line-height: normal;
}
.cta-button:hover {
    background-color: var(--cta-green-bg-hover); /* Darker flat green */
    box-shadow: 0 4px 8px rgba(44, 142, 69, 0.3); /* Slightly stronger shadow on hover */
    transform: translateY(-1px); /* Subtle lift */
}
.cta-button i { /* Play icon */
    margin-right: 8px;
    font-size: 0.95em; /* Adjust icon size if needed */
    color: var(--cta-text-color); /* === WHITE ICON === */
    vertical-align: middle;
}
.cta-button span { /* Text inside button */
    text-decoration: none !important;
    vertical-align: middle;
    color: var(--cta-text-color); /* === WHITE TEXT === */
}


.cta-subtext {
    text-align: center;
    font-size: 0.88em;
    color: var(--meta-text-color);
}
/* Urgency Link Styling */
.cta-subtext a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s ease;
}
.cta-subtext a:hover {
    color: #C04A03;
}

/* --- Author Box --- */
.author-box {
    margin-top: 35px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--light-gray-bg);
    display: flex;
    align-items: center;
    gap: 18px;
}
.author-photo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--white-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.author-info h4 {
    margin: 0 0 4px 0;
    font-family: 'Merriweather', serif;
    font-size: 1.15em;
    color: var(--primary-color);
}
.author-info p {
    font-size: 0.88em;
    color: var(--meta-text-color);
    margin: 0;
    line-height: 1.5;
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}
.comments-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4em;
    margin-bottom: 20px;
}
.comment {
    display: flex;
    gap: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 18px;
}
.comment:last-child { border-bottom: none; }
.comment-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 3px;
}
.comment-content { flex-grow: 1; }
.comment-author {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 0.92em;
}
.comment-meta {
    font-size: 0.78em;
    color: var(--meta-text-color);
    margin-bottom: 6px;
}
.comment-body {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- Comment Reply Styling --- */
.comment.reply {
    margin-left: 40px; /* Indent replies */
    margin-top: 15px;
    padding-top: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
    background-color: #fdfdfd; /* Slightly different background */
    border-radius: 0 4px 4px 0; /* Optional: round corners */
}

.comment.reply .comment-avatar img {
    width: 40px; /* Make reply avatar slightly smaller */
    height: 40px;
}

.comment.reply .comment-author {
    font-size: 0.9em;
}

.comment.reply .comment-meta {
    font-size: 0.8em;
}

.comment.reply .comment-body {
    font-size: 0.92em;
}

.reply-indicator {
    font-weight: normal;
    font-size: 0.9em;
    color: var(--meta-text-color);
    margin-left: 5px;
}
/* --- End Comment Reply Styling --- */

/* --- Sidebar Styling --- */
.sidebar-widget {
    margin-bottom: 30px;
}
.sidebar-widget h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.15em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}
.related-article {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}
.related-article img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.related-article-info a {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92em;
    display: block;
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}
.related-article-info a:hover {
    color: var(--link-color);
}
.related-article-info span {
    color: var(--meta-text-color);
}
.related-article-info .related-category {
    font-size: 0.78em;
    display: block;
    margin-bottom: 2px;
}
.related-article-info .related-date {
    font-size: 0.75em;
    display: block;
}
.sidebar-widget .ad-placeholder a img {
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: block;
    max-width: 100%;
    height: auto;
}


/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 35px;
    padding: 25px;
    background-color: #343A40;
    color: #adb5bd;
    font-size: 0.85em;
}
footer nav a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}
footer nav a:hover {
    color: var(--white-bg);
    text-decoration: underline;
}
footer .disclaimer {
    margin-top: 18px;
    font-size: 0.88em;
    line-height: 1.5;
    color: #6c757d;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fff;
    margin: 7% auto;
    padding: 30px 40px;
    border: none;
    width: 90%;
    max-width: 720px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeInModal 0.3s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-content h2 {
    font-family: 'Merriweather', serif;
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.modal-content p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1em;
    margin-bottom: 1em;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}
.close-button:hover, .close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Optional: Prevent body scroll when modal is open */
/*
body.modal-open {
    overflow: hidden;
}
*/


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    /* Restore original responsive stacking */
    .main-layout { flex-direction: column; gap: 25px; }
    .sidebar-column { padding-left: 0; border-left: none; border-top: 1px solid var(--border-color); padding-top: 20px; }
    .container { max-width: 95%; }
    .main-nav { display: none; } /* Keep hiding nav on smaller screens */
    .header-content { justify-content: center; }
    .logo-area { text-align: center; }
}

@media (max-width: 768px) {
    h1.article-title { font-size: 1.9em; }
    .main-content { font-size: 0.95em; }
    .article-meta { flex-direction: column; align-items: flex-start; }
    .social-share { margin-top: 10px; margin-left: 0; }
    .cta-button { font-size: 1.1em; padding: 12px 25px; }
    .author-box { flex-direction: column; text-align: center; gap: 15px; }
    /* Adjust Key Discovery Box for mobile */
    .key-discovery-box.side-by-side {
        flex-direction: column; /* Stack image and text */
        text-align: center; /* Center text below image */
        gap: 15px;
    }
    .key-discovery-box .discovery-image-container {
        flex-basis: auto; /* Reset flex-basis */
        width: 60%; /* Control image width when stacked */
        max-width: 220px; /* Limit max width when stacked */
        margin: 0 auto; /* Center image */
    }
    /* Remove rules related to overlay */
    /* .key-discovery-box.with-background-image { ... } */
    /* .key-discovery-box .text-overlay { ... } */

    /* Removed redundant rule */
    /* .key-discovery-box p { text-align: center; } */

    .video-promo-image .play-icon { font-size: 4em;}
    .comment { flex-direction: column; gap: 8px; align-items: flex-start;}
    .comment-avatar { align-self: flex-start; }
    .comment-avatar img { width: 35px; height: 35px;}
    .modal-content { width: 95%; margin: 10% auto;}
}

@media (max-width: 480px) {
     h1.article-title { font-size: 1.6em; }
     .main-content h2 { font-size: 1.4em; }
     .main-content h3 { font-size: 1.2em; }
     .logo-area .fake-logo { font-size: 1.4em; }
     .video-promo-image .play-icon { font-size: 3em;}
     .cta-button { width: 100%; box-sizing: border-box; }
     .modal-content { padding: 20px; }
     .modal-content h2 { font-size: 1.5em; }
}

/* Added styling for new Advertorial/Date line */
.advertorial-date-line {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}