/*
Theme Name: Nthanda Times
Theme URI: https://nthandatimesmw.com
Author: Sosten Mpinganjira
Description: Custom WordPress news magazine theme for Nthanda Times.
Version: 1.4
*/

/* Layout & Resets */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Banner */
.header-top-banner {
    background-color: #eaeaea;
    padding: 10px 0;
    text-align: center;
}
.ad-placeholder {
    height: 90px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    max-width: 728px;
    margin: 0 auto;
}

/* Main Header Bar Flex */
.main-header-bar {
    border-bottom: 1px solid #eaeaea;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.site-branding img {
    max-height: 40px;
    width: auto;
}
.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: #111;
    text-transform: uppercase;
}

/* Primary Menu */
.desktop-menu .nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.desktop-menu .nav-list a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.live-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
}
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #e50914;
    border-radius: 50%;
}
.search-toggle-btn, .mobile-user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.signup-btn {
    background-color: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sub Navigation Bar (Clean & Scrollable) */
.sub-header-bar {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.sub-header-bar::-webkit-scrollbar {
    display: none;
}
.sub-nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 12px 0;
    justify-content: flex-start;
}
.sub-nav-list li {
    position: relative;
}
.sub-nav-list a {
    text-decoration: none;
    color: #444;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.sub-nav-list a:hover {
    color: #0066cc;
}
.sub-nav-list .current-menu-item a {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
}

/* Sub-menu Dropdowns */
.sub-nav-list ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 100;
}
.sub-nav-list li:hover > ul.sub-menu {
    display: block;
}
.sub-nav-list ul.sub-menu li {
    padding: 6px 16px;
}
.sub-nav-list ul.sub-menu a {
    text-transform: none;
    font-weight: 500;
    font-size: 0.85rem;
    color: #333;
}

/* Mobile Off-Canvas Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.mobile-menu-drawer.active {
    right: 0;
}
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    background-color: #f9f9f9;
}
.drawer-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}
.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    color: #111;
}
.mobile-drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-list li {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.mobile-nav-list a {
    text-decoration: none;
    color: #111;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section Grid Layout */
.home-hero-main {
    padding: 30px 0 50px;
}
.hero-grid-section {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.1fr;
    gap: 30px;
    align-items: start;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 40px;
}

/* Common Card Typography */
.hero-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 14px;
}
.hero-left-col .hero-thumb img {
    height: 220px;
}
.hero-center-col .hero-thumb-large img {
    height: 380px;
}
.meta-row {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.separator {
    color: #ccc;
}
.category-badge {
    text-decoration: none;
    font-weight: 600;
    color: #0066cc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.outline-badge {
    border: 1px solid #999;
    padding: 2px 8px;
    border-radius: 4px;
    color: #222;
}
.pink-badge {
    color: #d81b60;
}
.card-title a, .main-lead-title a, .trending-title a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}
.card-title a:hover, .main-lead-title a:hover, .trending-title a:hover {
    color: #0066cc;
}
.secondary-card .card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 10px;
}
.main-lead-card .main-lead-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
}
.card-excerpt {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Trending Now Sidebar */
.trending-sidebar {
    border-left: 1px solid #eaeaea;
    padding-left: 24px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.trending-dot {
    width: 8px;
    height: 8px;
    background-color: #e50914;
    border-radius: 50%;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}
.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.trending-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
}
.trending-snippet {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.trending-meta {
    font-size: 0.78rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 2px;
    flex-shrink: 0;
}
.bookmark-btn:hover {
    color: #111;
}

/* Main Content Layout & Feed Stream */
.main-content-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.news-feed-stream {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.feed-article-item {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 35px;
}
.feed-thumb img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    margin-bottom: 16px;
}
.feed-title {
    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 10px 0;
}
.feed-title a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}
.feed-title a:hover {
    color: #0066cc;
}
.feed-excerpt {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.55;
    margin: 0;
}

/* Footer Styling */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Visibility Helpers */
.mobile-only { display: none; }

@media screen and (max-width: 1024px) {
    .desktop-menu, .desktop-only {
        display: none;
    }
    .mobile-only {
        display: flex;
    }
    .menu-toggle {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #000;
    }
    .hero-grid-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .trending-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eaeaea;
        padding-top: 30px;
    }
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    .feed-thumb img {
        height: 250px;
    }
}