/*
Theme Name: Modern News
Description: A custom magazine theme based on the Modern News / Soledad Modern News Magazine design.
Author: Your Name
Version: 1.1
*/

:root {
    --navy: #001f3f;
    --navy-dark: #00152b;
    --red: #D32F2F;
    --text-dark: #222;
    --text-muted: #666;
    --light-gray: #f7f7f7;
    --border: #e5e5e5;
}

/* =========================================
   1. GLOBAL & TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.65;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER (Exact Modern News match)
   ========================================= */
.top-bar {
    background-color: var(--navy) !important;
    color: white !important;
}

.header-full-width {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 80px !important;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.site-logo { flex-shrink: 0; z-index: 5; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }

/* Centered Menu */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.main-nav li { position: relative; }

.main-nav a {
    color: #fff !important;
    font-weight: 500;
    font-size: 15px !important;
    text-transform: none;
    height: 80px;
    display: flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.main-nav a:hover { color: var(--red) !important; }

/* Red "3 DEMOS" badge */
.main-nav li:first-child a::before {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 0.4px;
}

/* Dropdown arrow */
.main-nav li.menu-item-has-children > a::after,
.main-nav li:first-child > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
}

/* Right side */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    z-index: 5;
}

.vertical-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.35);
}

.search-icon {
    color: #fff;
    font-size: 17px;
}
.search-icon:hover { color: var(--red); }

/* =========================================
   3. CATEGORY / ARCHIVE HEADER
   ========================================= */
.archive-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.archive-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.archive-description {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 700px;
}

/* =========================================
   4. MAIN LAYOUT (matches demo category pages)
   ========================================= */
.content-area {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 50px !important;
    padding: 40px 0 60px;
    align-items: start;
}

/* Section Titles (demo style) */
.section-title,
.widget-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy) !important;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--navy);
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Post Grid - 2 columns like demo */
.post-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 35px 30px !important;
}

/* Single post card */
.post-card {
    margin-bottom: 10px;
}

.post-card .post-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 2px;
}

.post-card .post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.04);
}

.post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red) !important;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.post-title a {
    color: var(--navy) !important;
}
.post-title a:hover {
    color: var(--red) !important;
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-meta span { margin-right: 12px; }
.post-meta i { margin-right: 4px; font-size: 11px; }

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

/* =========================================
   5. SIDEBAR (demo style)
   ========================================= */
.sidebar { width: 100%; }

.widget {
    margin-bottom: 40px;
    background: #fff;
}

.widget ul li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--navy);
    line-height: 1.4;
}
.widget ul li a:hover { color: var(--red); }

/* Social buttons */
.social-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    color: #fff !important;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
}
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #1DA1F2; }
.social-btn.yt { background: #FF0000; }
.social-btn.ig { background: linear-gradient(45deg, #405DE6, #833AB4, #C13584); }

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
    background: var(--navy) !important;
    color: #fff;
    padding: 60px 0 25px;
    margin-top: 40px;
}

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

.footer-col h3 {
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.footer-col p,
.footer-col ul li a {
    color: #c5c5c5 !important;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: #fff !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #aaa;
}

.footer-socials a {
    color: #fff;
    margin-left: 14px;
    font-size: 16px;
}
.footer-socials a:hover { color: var(--red); }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 18px 0;
        gap: 16px;
    }
    .main-nav {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
    }
    .main-nav a { height: auto; padding: 6px 0; }
    .main-nav li:first-child a::before { display: none; }
}

@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .post-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr !important;
    }
    .archive-title { font-size: 26px; }
}/* =========================================
   SINGLE POST STYLES (Modern News match)
   ========================================= */
.single-post-layout {
    padding-top: 40px;
}

.single-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
    margin: 12px 0 18px;
    letter-spacing: -0.5px;
}

.single-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.single-meta i {
    margin-right: 5px;
    color: #999;
}

.single-featured-image {
    margin-bottom: 35px;
    border-radius: 3px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #333;
}

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

.single-content h2,
.single-content h3 {
    color: var(--navy);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.single-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.tags-label {
    font-weight: 700;
    color: var(--navy);
    margin-right: 8px;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 4px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--navy);
}

.author-bio {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .single-title {
        font-size: 26px;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}/* =========================================
   SINGLE POST - 3 COLUMN FULL WIDTH
   ========================================= */
.single-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.single-3col-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 30px 60px;
}

/* LEFT COLUMN */
.single-left-col .left-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.left-post-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
}
.left-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
}
.left-post-content h4 a { color: var(--navy); }
.left-post-content h4 a:hover { color: var(--red); }
.left-post-date {
    font-size: 12px;
    color: #888;
}

/* MIDDLE COLUMN */
.single-middle-col {
    max-width: 100%;
}
.breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumbs a { color: #555; }
.breadcrumbs .current { color: #333; }

.single-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 10px 0 15px;
}

.single-meta {
    font-size: 13.5px;
    color: #777;
    margin-bottom: 25px;
}

.single-featured-image {
    margin-bottom: 30px;
}
.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.single-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #333;
}

/* RIGHT COLUMN */
.follow-us-widget .social-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
}
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #000; }
.social-btn.yt { background: #FF0000; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.recent-thumb img {
    width: 75px;
    height: 60px;
    object-fit: cover;
}
.recent-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
}
.recent-content h4 a { color: var(--navy); }
.recent-content span {
    font-size: 12px;
    color: #888;
}

/* TOP POSTS BAR */
.top-posts-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}
.top-posts-inner {
    display: flex;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 30px;
    gap: 15px;
}
.top-posts-label {
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}
.top-posts-slider {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.top-posts-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.subscribe-btn {
    background: var(--red);
    color: #fff !important;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .single-3col-layout {
        grid-template-columns: 240px 1fr 260px;
        gap: 30px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .single-3col-layout {
        grid-template-columns: 1fr;
    }
    .single-left-col,
    .single-right-col {
        display: none; /* or show them stacked if you prefer */
    }
}/* Categories List */
.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.categories-list li a {
    color: var(--navy);
    font-weight: 500;
}
.categories-list li a:hover {
    color: var(--red);
}
.categories-list .count {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.newsletter-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    width: 100%;
}
.newsletter-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: #b71c1c;
}/* =========================================
   YOU MAY ALSO LIKE - 3 Column Grid
   ========================================= */
.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    clear: both;
}

.related-title {
    font-size: 18px;
    font-weight: 800;
    color: #001f3f;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 30px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #fff;
}

.related-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 14px;
    display: block;
    transition: transform 0.3s ease;
}

.related-post-card:hover img {
    transform: scale(1.03);
}

.related-post-card h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.related-post-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-card h4 a:hover {
    color: #D32F2F;
}

.related-date {
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}/* =========================================
   LEAVE A COMMENT - Clean Style
   ========================================= */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.comments-section .comment-reply-title,
.comments-section .comments-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 30px 0;
}

/* Comment Form */
.comment-form {
    max-width: 100%;
}

.comment-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 20px;
    background: #fff;
    box-sizing: border-box;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    width: 32%;
    display: inline-block;
    margin-right: 1.5%;
    margin-bottom: 20px;
}

.comment-form .comment-form-url {
    margin-right: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-form .comment-form-cookies-consent {
    margin: 10px 0 25px;
    font-size: 14px;
    color: #555;
}

.comment-form .form-submit {
    text-align: center;
}

.comment-form .form-submit input[type="submit"] {
    background: #001f3f;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #D32F2F;
}

/* Already existing comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email,
    .comment-form .comment-form-url {
        width: 100%;
        margin-right: 0;
        display: block;
    }
}/* =========================================
   Comment Form - 3 fields in 1 row
   ========================================= */

.comment-form {
    display: block;
}

/* Make the three fields sit side by side */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    float: left !important;
    width: 32% !important;
    margin-right: 2% !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.comment-form .comment-form-url {
    margin-right: 0 !important;
}

/* Inputs inside the fields */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* Clear the float after the three fields */
.comment-form-cookies-consent {
    clear: both !important;
    padding-top: 10px;
}

/* Submit button centered */
.form-submit {
    clear: both !important;
    text-align: center !important;
    margin-top: 10px;
}/* Previous / Next Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

.nav-previous {
    text-align: left;
    width: 48%;
}

.nav-next {
    text-align: right;
    width: 48%;
}

.post-navigation span {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: lowercase;
    margin-bottom: 6px;
    font-weight: 500;
}

.post-navigation a {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}

.post-navigation a:hover {
    color: #D32F2F;
}/* Highlight in Business - Two Columns */
.highlight-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 15px !important;
}

.highlight-item {
    margin-bottom: 0;
}

.highlight-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 10px;
    display: block;
}

.highlight-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px 0;
}

.highlight-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.highlight-title a:hover {
    color: #D32F2F;
}

.highlight-date {
    font-size: 12px;
    color: #888;
}/* =========================================
   COUNTIES MEGA DROPDOWN
   ========================================= */
.main-nav ul li.menu-item-has-children {
    position: relative;
}

.main-nav ul li.menu-item-has-children > ul.sub-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 920px;
    max-width: 95vw;
    padding: 25px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 6px;
    z-index: 9999;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 20px;
}

/* Show on hover */
.main-nav ul li.menu-item-has-children:hover > ul.sub-menu {
    display: grid !important;
}

/* Style the county links */
.main-nav ul li.menu-item-has-children > ul.sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li.menu-item-has-children > ul.sub-menu li a {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 10px !important;
    height: auto !important;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav ul li.menu-item-has-children > ul.sub-menu li a:hover {
    background: #f0f4f8;
    color: #D32F2F !important;
}

/* Arrow for Counties */
.main-nav ul li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
}/* =========================================
   COLLAPSIBLE CATEGORIES (CSS Driven)
   ========================================= */

.custom-cat-list { list-style: none; padding: 0; margin: 0; }
.custom-cat-list > li { border-bottom: 1px solid #eee; }

.cat-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 700;
    color: #002B5B;
    text-transform: uppercase;
    font-size: 14px;
}
.cat-toggle:hover { color: #D32F2F; }

.cat-icon i { 
    font-size: 12px; 
    transition: transform 0.3s ease; 
    color: #888; 
}

/* 1. Hide the children by default */
.cat-children {
    display: none; 
    list-style: none;
    padding: 0 0 10px 15px;
    margin: 0;
    border-left: 2px solid #f4f4f4;
    margin-left: 5px;
}

/* 2. If the parent is active, SHOW the children */
.has-children.active .cat-children {
    display: block !important; /* This forces them open */
}

/* 3. Rotate the arrow when active */
.has-children.active .cat-icon i { 
    transform: rotate(180deg); 
    color: #D32F2F; 
}

/* Normal link style */
.normal-cat-link {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: #002B5B;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

.cat-children li { padding: 8px 0; }
.cat-children a { color: #555; text-decoration: none; font-size: 13px; font-weight: 500; }
.cat-children a:hover { color: #D32F2F; }/* =========================================
   RECENT POSTS WITH THUMBNAILS
   ========================================= */

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex; /* Puts image and text side-by-side */
    align-items: center; /* Centers them vertically */
    gap: 12px; /* Space between image and text */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* If you want to remove the border on the very last item */
.recent-post-item:last-child {
    border-bottom: none;
}

/* Thumbnail Image Styling */
.recent-thumb {
    flex-shrink: 0; /* Prevents the image from squishing */
}

.recent-thumb .rp-img {
    width: 75px;
    height: 75px;
    object-fit: cover; /* Ensures the image fills the square without stretching */
    border-radius: 4px;
}

/* Text Styling */
.recent-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-title {
    font-size: 14px;
    font-weight: 700;
    color: #002B5B; /* Dark blue */
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits title to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-title:hover {
    color: #D32F2F; /* Red on hover */
}

.rp-date {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
}/* =========================================
   COLLAPSIBLE NATIVE CATEGORIES (FIXED)
   ========================================= */

/* 1. Main List Reset */
.collapsible-wp-cats {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Top Level Items (Parents) */
.collapsible-wp-cats > li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 15px;
}

/* 3. Links and Counts */
.collapsible-wp-cats li a {
    color: #002B5B !important;
    text-decoration: none;
    cursor: pointer;
}

.collapsible-wp-cats li a:hover {
    color: #D32F2F !important;
}

.collapsible-wp-cats li .count {
    color: #555 !important;
    font-weight: 500;
    font-size: 14px;
    float: right; /* Pushes the count to the right side */
}

/* 4. The Children List (HIDDEN BY DEFAULT) */
.collapsible-wp-cats .children {
    display: none; /* This hides them initially */
    list-style: none;
    padding: 10px 0 10px 15px;
    margin: 10px 0 0 0;
    border-left: 2px solid #D32F2F; /* Red left border for styling */
}

/* 5. Show children when parent has 'cat-open' class */
.collapsible-wp-cats li.cat-open > .children {
    display: block; /* Shows them when clicked */
}

/* 6. Rotate arrow when open */
.collapsible-wp-cats li.cat-open > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* Child Item Styling */
.collapsible-wp-cats .children li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    font-weight: 500;
}

.collapsible-wp-cats .children li:last-child {
    border-bottom: none;
}

.collapsible-wp-cats .children li a {
    color: #555 !important;
}

.collapsible-wp-cats .children li a:hover {
    color: #D32F2F !important;
}/* =========================================
   HOMEPAGE ALIGNMENT (Sidebar vs Title)
   ========================================= */

/* Align the sidebar widget with the top of the "Latest News" title */
.home .sidebar .widget:first-child,
.blog .sidebar .widget:first-child {
    margin-top: 28px !important; /* This pushes it down to match the H1 title */
    padding-top: 0 !important;
}

/* Just in case the H1 title has too much margin, we can standardize it */
.home .archive-title,
.blog .archive-title {
    margin-top: 28px !important; 
    margin-bottom: 20px !important;
    font-size: 26px;
    font-weight: 800;
    color: #002B5B;
}

/* Also, make sure the sidebar itself has no conflicting top padding */
.sidebar {
    padding-top: 0 !important;
}/* =========================================
   PERFECT HOMEPAGE ALIGNMENT
   ========================================= */

/* 1. Main Grid Layout */
.content-area {
    display: grid !important;
    grid-template-columns: 70% 30% !important;
    gap: 40px !important;
    align-items: start !important; /* Forces both columns to start at the top */
    padding: 40px 0;
}

/* 2. "Latest News" Title Styling */
.archive-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: #002B5B;
    border-bottom: 3px solid #002B5B;
    display: inline-block;
    padding-bottom: 10px;
    margin-top: 0 !important; /* Forces it to the top */
    margin-bottom: 30px !important;
}

/* 3. "Follow Us" Widget Styling (Forced to Top) */
.sidebar .widget:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sidebar .widget:first-child h3 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 20px;
    font-weight: 800;
    color: #002B5B;
    text-transform: uppercase;
    border-bottom: 2px solid #002B5B;
    padding-bottom: 10px;
    margin-bottom: 20px;
}/* =========================================
   MOBILE HEADER & HAMBURGER MENU
   ========================================= */

/* Hide the hamburger button on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 900px) {
    
    /* 1. Header layout: Put Logo and Burger on same line */
    .header-inner {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        height: auto !important;
    }

    /* Show the hamburger icon */
    .mobile-menu-toggle {
        display: block;
        order: 3; /* Puts it on the right side */
    }

    /* Move search icon next to hamburger */
    .header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    /* 2. Hide the menu by default on mobile */
    .main-nav {
        display: none; /* Hidden until burger is clicked */
        width: 100%;
        order: 4; /* Drops below the logo line */
        position: relative !important;
        left: auto !important;
        transform: none !important;
        background: #002B5B;
        padding: 10px 0;
    }

    /* This class is added by JavaScript to show the menu */
    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 0 15px !important;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a {
        padding: 12px 0 !important;
        font-size: 16px !important;
        width: 100%;
    }

    /* Dropdown arrows for submenus */
    .main-nav li.menu-item-has-children > a::after {
        float: right;
    }
}

/* =========================================
   MOBILE SOCIAL BUTTON FIX
   ========================================= */
@media (max-width: 900px) {
    /* Make sidebar social buttons stack and fit */
    .social-btn {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    /* Hide the "Like", "Follow", "Subscribe" text to save space */
    .social-btn span:last-child {
        display: none !important;
    }
    
    /* Ensure the Follow Us widget fits nicely */
    .follow-us-widget {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .follow-us-widget h3 {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .follow-us-widget .social-btn {
        flex: 1 1 45%; /* Makes two buttons per row */
        justify-content: center; /* Centers icon */
        margin-bottom: 0;
    }
}/* Hide the Top Posts bar completely on mobile */
@media (max-width: 900px) {
    .top-posts-bar {
        display: none !important;
    }
}/* =========================================
   MOBILE STACKING FIX (Forces Sidebar Below)
   ========================================= */
@media (max-width: 900px) {

    /* 1. Force the grid to become a single vertical column */
    .content-area {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 30px !important;
    }

    /* 2. Force Main Content to take full width */
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    /* 3. Force Sidebar to take full width and drop below */
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: none !important; /* Removes any vertical line divider */
    }

    /* 4. Make sure the post grid is a single column */
    .post-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* 5. Adjust the "Follow Us" buttons to look nice on mobile */
    .sidebar .social-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 12px 15px !important;
        margin-bottom: 10px !important;
    }
    
    /* Remove the forced 45% width we added previously */
    .follow-us-widget .social-btn {
        flex: none !important; 
    }
}/* =========================================
   REMOVE CARET FROM FIRST MENU ITEM (HOME)
   ========================================= */
.main-nav ul > li:first-child > a::after {
    display: none !important; /* Hides the dropdown arrow */
}