/*
Theme Name: Khabar
Theme URI: https://lionexpress.in/
Author: Antigravity
Description: A custom WordPress theme for news websites (Lion Express exact replica).
Version: 1.1.12
Text Domain: khabar
*/

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #000;
    background-color: #fff;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hide classes */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Header */
.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    background: #fff;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center;
}
.site-branding img { max-width: 160px; height: auto; }

/* Desktop Menu */
.header-desktop-menu { display: flex; gap: 20px; align-items: center; }
.header-desktop-menu a {
    color: #000; text-decoration: none; font-size: 15px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.header-desktop-menu a:hover { color: #0F2B5B; }
.dropdown-menu-item { position: relative; display: flex; align-items: center; height: 100%; padding: 10px 0; }
.dropdown-content {
    display: none; position: absolute; background-color: #fff; min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); z-index: 999; border-radius: 5px; top: 100%; left: 0;
    border: 1px solid #eaeaea; overflow: hidden;
}
.dropdown-content a {
    color: #000; padding: 12px 16px; text-decoration: none; display: block; border-bottom: 1px solid #eee; font-size: 14px;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f9f9f9; color: #0F2B5B; }
.dropdown-menu-item:hover .dropdown-content { display: block; }

/* Mobile Menu Icons */
.header-mobile-icons { display: flex; gap: 15px; align-items: center; }
.header-mobile-icons i { font-size: 20px; color: #000; }

/* Top Banner */
.top-banner-container { margin-top: 20px; margin-bottom: 20px; }

/* Layout */
.main-layout-container {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 300px;
    gap: 30px;
}

/* Ensure content images and embeds don't break layout */
img, iframe, video, figure { max-width: 100%; height: auto; }
.entry-content { word-wrap: break-word; overflow-wrap: break-word; }
.middle-content { min-width: 0; overflow: hidden; /* Strictly prevents flex/grid blowouts */ }

/* Left Sidebar Menu */
.left-sidebar { padding-top: 5px; }
.left-menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.left-menu-list a { color: #000; font-weight: 600; text-decoration: none; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.left-menu-list a:hover { color: #0F2B5B; }

/* Trends Bar */
.trends-bar {
    display: flex; align-items: center; gap: 15px;
    padding: 8px 15px; margin-bottom: 20px; width: 100%;
    background-color: #D4AF37;
    border-radius: 5px;
    overflow: hidden;
}
.trends-label { 
    color: #fff; background-color: #0F2B5B; 
    font-weight: bold; font-size: 14px; flex-shrink: 0; 
    padding: 4px 10px; border-radius: 4px;
    z-index: 2;
}
.trends-scroll {
    overflow: hidden; position: relative; flex-grow: 1; white-space: nowrap;
}
.trends-scroll-inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}
.trends-scroll-inner:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.trend-item:hover { text-decoration: underline !important; }

/* Hero Post */
.hero-headline { margin: 0 0 15px 0; font-size: 24px; line-height: 1.4; font-weight: bold; }
.hero-headline a { color: #0F2B5B; text-decoration: none; }
.hero-image img, .hero-placeholder { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.hero-placeholder { background: #ddd; height: 300px; }
.post-meta-actions { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eaeaea; }
.cat-pill { background: #e8effa; color: #0F2B5B; padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; text-decoration: none; }

/* SVG Share Buttons */
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-wa, .btn-fb, .btn-ig { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 5px; color: #fff; text-decoration: none; }
.btn-wa { background: #25D366; } .btn-fb { background: #1877F2; } .btn-ig { background: #E1306C; }
.btn-wa svg, .btn-fb svg, .btn-ig svg { fill: #fff; width: 16px; height: 16px; }

.btn-wa-text, .btn-fb-text, .btn-ig-text { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 14px; }
.btn-wa-text { background: #25D366; } .btn-fb-text { background: #1877F2; } .btn-ig-text { background: #E1306C; }

/* Mobile Sidebar Blocks */
.mobile-sidebar-blocks { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 20px; }

/* Small Posts List */
.small-post-list { border-bottom: 1px solid #eaeaea; padding: 20px 0 15px 0; }
.small-post-content { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.small-post-content h3 { font-size: 18px; margin: 0; line-height: 1.4; font-weight: bold; }
.small-post-content h3 a { color: #333; text-decoration: none; }
.small-post-content img { width: 130px; height: 85px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.small-post-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed #eaeaea; }
.red-arrow { color: #0F2B5B; font-size: 14px; }

/* Right Sidebar */
.right-sidebar { padding-top: 5px; }

@media (min-width: 993px) {
    .main-layout-container { align-items: start; }
    .left-sidebar, .right-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Bottom Navs (Mobile) */
.mobile-bottom-nav { display: none; }

/* Mobile View Overrides */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
    
    .site-header { padding: 10px 0; }
    .main-layout-container { display: flex; flex-direction: column; gap: 0; }
    
    /* Move Left Sidebar to Top horizontally */
    .left-sidebar { 
        order: -1; width: 100%; overflow-x: auto; white-space: nowrap; 
        border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; 
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .left-sidebar::-webkit-scrollbar { display: none; }
    .left-menu-list { flex-direction: row; gap: 20px; align-items: center; }
    
    /* Typography tweaks for mobile */
    .hero-headline { font-size: 20px; }
    .small-post-content h3 { font-size: 16px; }
    
    /* Mobile App-like Nav */
    .mobile-bottom-nav {
        display: flex; justify-content: space-around; align-items: center;
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; border-top: 1px solid #ddd; padding: 8px 0 10px 0; z-index: 9999;
    }
    .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; color: #555; text-decoration: none; font-size: 11px; font-weight: 600; gap: 5px; }
    .mobile-bottom-nav a.active { color: #0F2B5B; }
    .mobile-bottom-nav i { font-size: 20px; }
    
    
    .site-footer { padding-bottom: 90px; }
}
