/*
Theme Name: Modern News Theme
Theme URI: https://example.com/modern-news
Author: Gemini
Author URI: https://example.com
Description: A responsive news theme built with Bootstrap, designed for dynamic content management.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, responsive, bootstrap, blog, custom-menu, featured-images
Text Domain: modern-news
*/

/* General Body and Typography */
body {
    background-color: #f8f9fa; /* Light gray background */
    color: #343a40; /* Dark gray text */
}

h1, h2, h3, h4, h5, h6 {
    color: #212529; /* Even darker text for headings */
}

a {
    color: #007bff; /* Bootstrap primary blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation */
.top-bar {
    border-bottom: 1px solid #e9ecef;
    /* No background here, just the border */
    background-color: transparent !important; /* Ensure no background */
}

.social-icons a {
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff !important; /* Lighter blue on hover for social icons */
}

.site-title {
    color: #007bff; /* Primary blue for the site title */
}

.news-bar {
    background-color: transparent !important; /* Ensure no background */
}

.news-bar .navbar-nav .nav-link {
    font-weight: 600;
    margin-right: 15px;
    color: #343a40;
    transition: color 0.3s ease;
}

.news-bar .navbar-nav .nav-link:hover {
    color: #007bff;
}

.form-inline .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-inline .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Main Sections */
main {
    padding-top: 20px; /* Adjust based on fixed header height */
    padding-bottom: 50px;
}

.section-title {
    color: #007bff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Morning Note Section */
.morning-note-section {
    background-color: #fff;
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.morning-note-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: .3rem;
}

.morning-note-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.morning-note-paragraph {
    font-size: 0.9rem;
    line-height: 1.4;
}

.slider-arrow {
    transition: transform 0.2s ease-in-out;
}

.slider-arrow:hover {
    transform: translateX(5px);
}

/* Carousel Section */
.carousel-item img {
    border-radius: .5rem;
}

.carousel-img {
    width: 100%;
    height: 400px; /* Fixed height for carousel images */
    object-fit: cover; /* Ensures images cover the area */
}


/* Main Articles Section */
.news-card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.video-thumbnail {
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-link .embed-responsive {
    position: relative;
}

.james-report-title-polished {
    font-size: 0.8rem; /* Smaller, uppercase for distinction */
    letter-spacing: 1px;
}

.article-title {
    font-size: 1.8rem;
    line-height: 1.2;
}

.article-summary {
    font-size: 0.95rem;
}

.read-more-link {
    font-weight: 600;
}

/* Additional Articles Section */
.section-heading {
    color: #212529;
    font-weight: 700;
}

.article-block {
    background-color: #fff;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block; /* Ensure the entire block is clickable */
    position: relative; /* Make this a positioning context for the emoji */
}

.article-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.article-block .article-thumbnail {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
}

.article-title-sm {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.article-summary-sm {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Ensure article title links change color on hover */
.article-block h2 a {
    transition: color 0.3s ease;
}

.article-block:hover h2.article-title-sm {
    color: #007bff !important; /* Changes title color on hover */
}


/* Footer */
.site-footer {
    background-color: #212529 !important; /* Darker background for footer */
    color: #e9ecef;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #adb5bd; /* Lighter gray for footer links */
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.social-icons-footer a {
    color: #e9ecef !important; /* White icons in footer */
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: #007bff !important; /* Primary blue on hover */
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
/* About Page Specific Styles (Optional, for finer control) */
.about-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.about-heading {
    color: #007bff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text {
    line-height: 1.8;
}

.team-member-card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.team-member-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #007bff;
}

/* Single Post Specific Styles */
.single-post-container {
    background-color: #fff;
    padding: 3rem; /* More generous padding around content */
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    margin-top: 30px; /* Adds space below header if not fixed */
    margin-bottom: 30px;
}

.entry-title {
    font-size: 3rem; /* Larger title */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #212529;
    text-align: left; /* Ensure title is left-aligned in main content area */
}

.entry-meta {
    font-size: 0.9rem;
    color: #6c757d; /* Slightly darker muted text */
    margin-bottom: 2rem;
}

.entry-meta a {
    color: #6c757d;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #007bff;
    text-decoration: underline;
}

.entry-content {
    font-size: 1.1rem; /* Slightly larger body text */
    line-height: 1.7; /* Improved line height for readability */
    color: #343a40;
}

.entry-content p {
    margin-bottom: 1.5em; /* Space between paragraphs */
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2em; /* Space above internal headings */
    margin-bottom: 1em;
    color: #212529;
}

.post-thumbnail img {
    border-radius: .5rem;
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.page-links {
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.page-links a {
    color: #007bff;
    margin: 0 .5rem;
}

.page-links span {
    background-color: #007bff;
    color: #fff;
    padding: .25rem .75rem;
    border-radius: .25rem;
}

.comments-area {
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.comments-title {
    font-size: 2rem;
    color: #212529;
    margin-bottom: 1.5rem;
}

#reply-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Social share buttons */
.social-share-buttons {
    margin-top: 2rem;
    text-align: center;
}

.social-share-buttons a {
    font-size: 1.5rem;
    margin: 0 0.75rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.social-share-buttons a:hover {
    color: #007bff;
}

.social-share-buttons .bi-facebook:hover { color: #3b5998; }
.social-share-buttons .bi-twitter-x:hover { color: #000000; } /* Twitter new logo */
.social-share-buttons .bi-linkedin:hover { color: #0077b5; }
.social-share-buttons .bi-envelope-fill:hover { color: #d44638; } /* Gmail/Email like color */
.social-share-buttons .bi-whatsapp:hover { color: #25d366; }

/* New styles for the single post page sidebar */
.post-sidebar-meta {
    padding-right: 1rem; /* Adjust as needed for spacing */
    margin-bottom: 2rem; /* Space before main content on smaller screens */
}

.post-sidebar-meta .h6 {
    font-size: 0.9rem; /* Smaller font for meta info in sidebar */
    margin-bottom: 0.5rem;
}

.post-categories-tags p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem; /* Tighter spacing for categories/tags */
}

.post-categories-tags a {
    color: #007bff; /* Keep category/tag links blue */
}

/* Adjustments for responsive behavior */
@media (max-width: 767.98px) {
    .single-post-container {
        padding: 1.5rem; /* Reduce padding on smaller screens */
    }

    .entry-title {
        font-size: 2rem; /* Adjust title size for mobile */
    }

    .post-sidebar-meta {
        padding-right: 0;
        margin-bottom: 1.5rem; /* More space on mobile */
        text-align: center; /* Center align meta on mobile */
    }
}
.featured-image-caption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: left; /* Align caption with the image/content */
}
/* Style for embedded videos */
.post-video {
    margin-bottom: 1.5rem; /* Space below video, similar to image */
    background-color: #000; /* Black background for video player */
}
/* Style for video thumbnail with play button */
.post-video-thumbnail {
    position: relative;
    cursor: pointer;
    background-color: #000; /* Dark background behind the thumbnail */
    display: flex; /* To center the play button */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure rounded corners apply */
}

.post-video-thumbnail img {
    filter: brightness(70%); /* Slightly dim the image for play button visibility */
    transition: filter 0.3s ease;
}

.post-video-thumbnail:hover img {
    filter: brightness(100%); /* Brighten on hover */
}

.post-video-thumbnail .play-button {
    position: absolute; /* Changed to absolute for centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10; /* Ensure play button is above image */
}

.post-video-thumbnail:hover .play-button {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Hide/show fields for meta box on dashboard */
.modern-news-meta-group {
    display: none;
}
.modern-news-meta-group.active {
    display: block;
}
/* Original styles for video-only post layout (before hiding header) */
body.video-only-post .post-sidebar-meta,
body.video-only-post .social-share-buttons-row,
body.video-only-post .comments-area,
body.video-only-post .entry-footer {
    display: none;
}
body.video-only-post .entry-title {
    text-align: center; /* Center the title for video-only posts */
    font-size: 3.5rem; /* Make video title larger */
    margin-bottom: 2rem;
}
body.video-only-post .single-post-container {
    padding: 2rem; /* Adjust padding for video-only layout */
}
body.video-only-post .post-video-thumbnail,
body.video-only-post .post-video {
    margin-top: 0 !important; /* Remove top margin for better alignment */
    margin-bottom: 1.5rem !important; /* Keep some space below video */
}
/* No specific padding-top change for main.container here */

/* Styles for archive banner */
.archive-banner {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Ensure banner has a decent height */
}

.archive-banner .container {
    text-align: center;
}

.archive-banner .page-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* Ensure embedded videos are truly full-width and responsive */
.post-video iframe,
.post-video video,
.post-video object, /* For older Flash embeds, though less common now */
.post-video embed {  /* For older Flash embeds */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Removes default iframe border if present */
}