/*
Theme Name: Loki Magazine
Theme URI: https://lokimagazine.com
Author: Loki Magazine
Author URI: https://instagram.com/lokimagazine__
Description: A lightweight, newspaper theme
Version: 2.6 (Minimalist Design)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fast-news
*/

/* --- Basic CSS Reset & Typography --- */
body {
	font-family: 'Lora', serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}
/* --- HEADING FONT STYLES --- */
.hero-title,
.page-title,
.entry-title,
.related-posts-title,
.section-title,
.post-title,
.post-card-title,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}
.section-title {
    letter-spacing: 0.5px;
}
.container {
    max-width: 1200px; /* Widen the main container to match footer */
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}


/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.search-overlay.is-open {
    opacity: 1;
}
.close-search {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}
.search-overlay .search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
}
.search-overlay .search-field {
    flex-grow: 1;
    font-size: 24px;
    padding: 15px;
    border: none;
    border-bottom: 2px solid #333;
    background: transparent;
}
.search-overlay .search-field:focus {
    outline: none;
}
.search-overlay .search-submit {
    font-size: 16px;
    padding: 15px 25px;
    border: 2px solid #333;
    background: #333;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- Post List Styling (Archive, Search, Index) --- */

.post:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}
.post .post-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 0;
}
.post .post-title a {
    color: #222;
    text-decoration: none;
}

/* --- Single Post & Page Styling --- */
.single .entry-title, .page .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}
.single .entry-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.single .entry-meta span {
    margin-right: 15px;
}
.post-thumbnail-single {
    margin: 0 0 25px 0;
}
.post-thumbnail-single img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.entry-content {
    font-size: 18px;
    line-height: 1.7;
}
.entry-content p, .entry-content h2, .entry-content h3 {
    margin-bottom: 25px;
}
.entry-content blockquote {
    margin: 0 0 25px 0;
    padding-left: 20px;
    border-left: 4px solid #0073aa;
    font-style: italic;
    color: #555;
}
.single .entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.single .entry-footer .cat-links, .single .entry-footer .tags-links {
    display: block;
    margin-bottom: 10px;
}
.single .entry-footer .cat-links a {
    background-color: #eee;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    color: #222;
}
.single .entry-footer .tags-links a {
    border: 1px solid #0073aa;
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    color: #0073aa;
}
.single .entry-footer .cat-links a:hover,
.single .entry-footer .tags-links a:hover {
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* --- Single Post Layout (Image First) --- */
.full-width-featured-image {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    margin-bottom: 20px;
}
.full-width-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.entry-header-below {
    padding: 0;
    margin-bottom: 25px;
}
.entry-header-below .entry-title {
    margin-bottom: 15px;
}
.entry-meta-below {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
.entry-meta-below .avatar {
    border-radius: 50%;
}
.entry-meta-below .author-name {
    font-weight: 600;
    color: #333;
}

/* --- Related Posts Section --- */
.related-posts-section {
    margin-top: 40px;
    border-top: 2px solid #eee;
}
/* Add this to make related posts smaller and left-aligned on desktop */
@media (min-width: 992px) {
    .related-posts-section {
        max-width: 680px; /* A bit smaller than the main content */
        margin-left: 0;
        margin-right: auto;
    }
}
.related-posts-title {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-post-item a {
    text-decoration: none;
}
.related-post-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
}
.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-post-title {
    font-size: 16px;
    padding-top: 5px;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}

/* --- Archive & Search Page Styling --- */
.page-header {
    padding: 0;
    margin-bottom: 40px;
    background-color: transparent;
    border: none;
}
.page-header .page-title {
    font-size: 36px;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}
.archive-description {
    font-size: 16px;
    color: #666;
}
.no-results-found {
    text-align: center;
    padding: 40px 20px;
}
.no-results-found .search-form {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* --- 404 Page Styling --- */
.error-404-content {
    text-align: center;
    padding: 40px 0;
}
.error-404-content .page-title {
    font-size: 48px;
    margin-bottom: 20px;
}
.error-404-content p {
    font-size: 18px;
    margin-bottom: 30px;
}
.error-404-content .search-form {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* --- Scroll To Top Button --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* --- General Responsive Styles (Non-Header) --- */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-width-featured-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        max-height: 200px;
    }
}
@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/*
==========================================================================
RESPONSIVE HEADER STYLES
==========================================================================
*/

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left, .header-right {
    flex-shrink: 0;
}

.site-branding img {
    max-height: 34px;
    width: auto;
    display: block;
}
.site-branding .site-title {
    margin: 0;
    font-size: 24px;
}

.menu-toggle, .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-navigation {
    display: none;
}
.menu-toggle {
    display: flex;
}

.site-navigation.toggled-on {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.site-navigation.toggled-on ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-navigation.toggled-on ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}
.site-navigation.toggled-on ul li:last-child a {
    border-bottom: none;
}

.site-content {
    padding-top: 5px;
    padding-bottom: 45px;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .header-left {
        justify-self: start;
    }

    .header-right {
        justify-self: end;
    }

    .site-navigation {
        display: block;
        position: static;
        width: auto;
        background: none;
        border: none;
        box-shadow: none;
        justify-self: center;
    }
    
    #primary-menu-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    #primary-menu-list li a {
        border-bottom: none;
        padding: 10px 15px;
        text-decoration: none;
        color: #444;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        transition: color 0.2s ease-in-out;
    }

    #primary-menu-list li a:hover,
    #primary-menu-list .current-menu-item > a {
        color: #0073aa;
    }
}

/*
==========================================================================
LOKI-STYLE FOOTER
==========================================================================
*/

.site-footer {
    background-color: #000000;
    color: #a9a9a9; /* A light gray for readability */
    font-size: 14px;
    line-height: 1.7;
    padding-top: 40px;
}

.site-footer .container {
    max-width: 1200px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
}

.footer-logo img {
    max-height: 25px; /* Adjust logo size as needed */
    width: auto;
    filter: brightness(0) invert(1); /* Makes a black logo white */
}
.footer-logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.footer-widgets {
    padding: 40px 0;
    border-bottom: 1px solid #222;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget-area .widget-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 25px;
    border: none; /* remove old border */
    padding: 0;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 12px;
}

.footer-widget-area ul li a {
    color: #a9a9a9;
}
.footer-widget-area ul li a:hover {
    color: #ffffff;
}

/* Style for the "Recent Posts" widget in the 4th column */
.footer-widget-area:nth-child(4) ul li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
}
.footer-widget-area:nth-child(4) ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.footer-widget-area:nth-child(4) ul li a {
    color: #fff;
    font-weight: bold;
}
.footer-widget-area:nth-child(4) ul li a:hover {
    color: #a9a9a9;
}
/* Hide post date from recent posts widget if it shows */
.footer-widget-area .post-date {
    display: none;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 13px;
}

.footer-copyright p {
    margin: 0;
    color: #666;
}

.footer-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu ul li a {
    color: #a9a9a9;
}
.footer-menu ul li a:hover {
    color: #6eb4ff;
}

/* Add separators for the footer menu */
.footer-menu ul li:not(:last-child)::after {
    content: '|';
    color: #444;
    margin-left: 20px;
}

/*
==========================================================================
RESPONSIVE FOOTER STYLES
==========================================================================
*/

@media (max-width: 991px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widget-area:nth-of-type(3),
    .footer-widget-area:nth-of-type(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/*
==========================================================================
SINGLE POST CONTENT WIDTH
==========================================================================
*/
@media (min-width: 992px) {
    .single .full-width-featured-image,
    .single .entry-header-below,
    .single .entry-content,
    .single .entry-footer {
        max-width: 720px; /* Optimal width for reading text */
        margin-left: 0; /* Reverted to left alignment */
        margin-right: auto;
    }
}

/*
==========================================================================
HOMEPAGE HERO SECTION
==========================================================================
*/
.hero-section {
    padding: 60px 0;
    border-bottom: 1px solid #ddd;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-title a {
    color: #222;
    text-decoration: none;
}
.hero-title a:hover {
    color: #0073aa;
}

.hero-excerpt {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}
.hero-excerpt p {
    margin: 0;
}

.hero-button {
    display: inline-block;
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}
.hero-button:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 0; /* REMOVED: The top padding is now gone */
        padding-bottom: 10px; /* Added some bottom space for balance */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-image {
        order: -1;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-excerpt {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* The 'text-align: center' rule was removed, so text will now default to left-aligned. */

}

/*
==========================================================================
HOMEPAGE POSTS GRID
==========================================================================
*/
.main-content-area {
    padding-top: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns */
    gap: 40px; /* Increased gap for better spacing */
}

.post-card {
    /* This class is now only a container, no visual styles */
}

.post-card-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden; /* Hides any part of the image that doesn't fit */
    background-color: #f0f0f0; /* Adds a placeholder color for posts without images */
}
.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit, rather than squishing it */
}

.post-card-content {
    padding: 0;
}
.post-card-title {
    padding-top: 10px;
    font-size: 20px;
    margin: 0 0 10px 0; /* Add margin-bottom */
    line-height: 1.3;
}
.post-card-title a {
    color: #333;
    text-decoration: none;
}
.post-card-title a:hover {
    color: #0073aa;
}
/* NEW: Styles for the meta info in the card */
.post-card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
.post-card-meta a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.post-card-meta a:hover {
    color: #0073aa;
}
/* NEW: Styles for the excerpt in the card */
.post-card-excerpt p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
/* Responsive Posts Grid */
@media (max-width: 991px) {
    /* This rule is no longer needed as the default is 2 columns */
}
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-card-excerpt {
        display: none;
    }
}
/*
==========================================================================
HOMEPAGE SECONDARY POSTS GRID
==========================================================================
*/

.secondary-posts-section {
    padding-top: 20px;
    margin-top: 20px;
}

.secondary-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 25px;
}

.secondary-post-card a {
    text-decoration: none;
}

.secondary-post-thumbnail {
    aspect-ratio: 4 / 3; /* Enforces a uniform image shape */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.secondary-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-post-card:hover .secondary-post-thumbnail img {
    transform: scale(1.05); /* Adds a subtle zoom effect on hover */
}

.secondary-post-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.secondary-post-title a {
    color: #222;
}

.secondary-post-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 0px;
    line-height: 1.6;
}

.secondary-post-excerpt p {
    margin: 0;
}

.secondary-post-meta {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.secondary-post-meta .post-category {
    margin-left: 10px;
    color: #777;
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

/* --- Responsive Styles for Secondary Grid --- */
@media (max-width: 991px) {
    .secondary-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .secondary-posts-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
/*
==========================================================================
HOMEPAGE TERTIARY POSTS GRID
==========================================================================
*/

.tertiary-posts-section,
.quaternary-posts-section {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

.section-header .section-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 2px;
    border-bottom: 2px solid #222;
    display: inline-block; /* Ensures border only spans the text width */
}

.tertiary-posts-grid,
.quaternary-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tertiary-post-card a,
.quaternary-post-card a {
    text-decoration: none;
}

.tertiary-post-thumbnail,
.quaternary-post-thumbnail {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.tertiary-post-thumbnail img,
.quaternary-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tertiary-post-card:hover .tertiary-post-thumbnail img,
.quaternary-post-card:hover .quaternary-post-thumbnail img {
    transform: scale(1.05);
}

.tertiary-post-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0; /* Removed bottom margin */
}

.quaternary-post-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 12px 0; /* Kept bottom margin */
}

.tertiary-post-title a,
.quaternary-post-title a {
    color: #222;
}

.tertiary-post-meta,
.quaternary-post-meta {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.tertiary-post-meta .post-category,
.quaternary-post-meta .post-category {
    margin-left: 10px;
    color: #777;
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

/* --- Responsive Styles for Tertiary Grid --- */
@media (max-width: 991px) {
    .tertiary-posts-grid,
    .quaternary-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tertiary-posts-grid,
    .quaternary-posts-grid {
        grid-template-columns: 1fr;
    }
}
/*
==========================================================================
HOMEPAGE MOST READ SECTION
==========================================================================
*/

.most-read-section {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

/* We use a CSS counter to generate the numbers automatically */
.most-read-list {
    list-style: none;
    padding-left: 0;
    counter-reset: most-read-counter; /* Initialize the counter */
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
    gap: 30px;
}

.most-read-item {
    display: flex;
    align-items: flex-start; /* Align number and text to the top */
    gap: 15px;
}

/* This styles the auto-generated number */
.most-read-item::before {
    counter-increment: most-read-counter; /* Increment the counter for each item */
    content: counter(most-read-counter); /* Display the counter's value */
    font-size: 36px;
    font-weight: 700;
    color: #0073aa; /* A blue color, adjust as needed */
    line-height: 1;
}

.most-read-item a {
    text-decoration: none;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding-top: 5px; /* Align text with top of number */
}

.most-read-item a:hover {
    text-decoration: underline;
}

/* --- Responsive Styles for Most Read Section --- */
@media (max-width: 1024px) {
    .most-read-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller desktops */
    }
}

@media (max-width: 768px) {
    .most-read-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .most-read-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
/* Make section titles that are links look like headings */
.section-header .section-title a {
    color: inherit;
    text-decoration: none;
}
/*
==========================================================================
HOMEPAGE SPLIT FEATURE SECTION
==========================================================================
*/
.split-feature-section {
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

.split-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.split-feature-title {
    font-size: 36px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.split-feature-title a {
    color: #222;
    text-decoration: none;
}

.split-feature-title a:hover {
    color: #0073aa;
}

.split-feature-excerpt {
    font-size: 16px;
    color: #555;
}

.split-feature-excerpt p {
    margin: 0;
}

/* --- Responsive Styles for Split Feature Section --- */
@media (max-width: 768px) {
    .split-feature-content {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .split-feature-title {
        font-size: 28px;
    }
}
/*
==========================================================================
NAVIGATION SUB-MENU (DROPDOWN) STYLES
==========================================================================
*/

/* --- Desktop Styles Only --- */
@media (min-width: 992px) {
    
    /* Position the parent menu item so the dropdown appears relative to it */
    .site-navigation ul li.menu-item-has-children {
        position: relative;
    }

    /* Style the dropdown menu container */
    .site-navigation ul .sub-menu {
        display: none; /* Hide the dropdown by default */
        position: absolute;
        top: 100%; /* Position it right below the parent */
        left: 0;
        background-color: #ffffff;
        min-width: 220px;
        z-index: 100;
        list-style: none;
        padding: 10px 0;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    /* Show the dropdown on hover */
    .site-navigation ul li.menu-item-has-children:hover > .sub-menu {
        display: block;
    }
    
    /* Style the individual links within the dropdown */
    .site-navigation ul .sub-menu li a {
        padding: 12px 20px;
        font-size: 14px;
        text-transform: none; /* Sub-menu items shouldn't be uppercase */
        font-weight: 400;
        color: #333;
        white-space: nowrap; /* Prevent long links from wrapping */
    }

    /* Add a hover effect for dropdown links */
    .site-navigation ul .sub-menu li a:hover {
        background-color: #f5f5f5;
        color: #0073aa;
    }
}
/* Add a separator line below the header on single posts */
.single .entry-header-below {
    border-bottom: 1px solid #eee; /* This is the separator line */
    padding-bottom: 25px; /* This adds space between the meta info and the line */
}
/*
==========================================================================
FIX: Responsive Images in Post Content to Prevent CLS
==========================================================================
*/

/* This is the main rule that makes all images responsive. */
.entry-content img {
    max-width: 100%; /* Ensures the image is never wider than its container. */
    height: auto;    /* Maintains the image's aspect ratio so it doesn't look stretched. */
    display: block;  /* Gives the image predictable spacing. */
    margin: 25px auto; /* Adds space above/below and centers the image by default. */
}

/* These rules handle the alignment classes from the WordPress editor. */
.entry-content .alignleft {
    float: left;
    margin-right: 25px;
    margin-bottom: 25px;
}

.entry-content .alignright {
    float: right;
    margin-left: 25px;
    margin-bottom: 25px;
}

/* This makes sure images with captions are also responsive. */
.entry-content .wp-caption {
    max-width: 100%;
}
/*
==========================================================================
FIX: Prevent CLS from Video Player
==========================================================================
*/
.embla {
    /* Sets a 16:9 aspect ratio. Change if your video is different (e.g., 4 / 3). */
    aspect-ratio: 16 / 9;
    /* A dark background to fill the space before the video loads. */
    background-color: #000;
    /* Ensures the video player itself fills the container. */
    width: 100%;
}