/*
Theme Name: Khabar (Lion Express Style)
Theme URI: https://lionexpress.in/
Author: Antigravity
Description: An exact replica of Lion Express (lionexpress.in) with responsive desktop/mobile design, location categories, AI-automated daily Rashifal, and customizable traditional Panchang with Astrologer contact info.
Version: 2.1.0
Text Domain: khabar
*/

:root {
    --brand-navy: #0F2B5B;
    --brand-navy-dark: #081936;
    --brand-navy-light: #183e7f;
    --brand-red: #e3000f;
    --brand-gold: #D4AF37;
    --brand-gold-light: #fef8e7;
    --brand-bg: #f5f7fa;
    --brand-text: #1a1a1a;
    --brand-muted: #555555;
    --brand-border: #e2e8f0;
    --brand-whatsapp: #25D366;
    --brand-facebook: #1877F2;
    --brand-instagram: #E1306C;
    --brand-youtube: #FF0000;
    --card-shadow: 0 2px 10px rgba(15, 43, 91, 0.06);
    --card-radius: 10px;
    --font-main: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *:before, *:after { 
    box-sizing: border-box; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* STRICTLY PREVENTS MOBILE HORIZONTAL OVERFLOW */
    font-family: var(--font-main);
    color: var(--brand-text);
    background-color: var(--brand-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.2s ease; 
}
a:hover { 
    color: var(--brand-red); 
}

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

/* ----------------------------------------------------
   TOP BAR & HEADER
---------------------------------------------------- */
.site-topbar {
    background: #081936;
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.topbar-links {
    display: flex;
    gap: 15px;
    align-items: center;
}
.topbar-links a {
    color: #cbd5e1;
}
.topbar-links a:hover {
    color: #fff;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-branding img {
    max-height: 46px;
    width: auto;
    object-fit: contain;
}
.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.site-title a {
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-title a span.accent {
    color: var(--brand-red);
}

/* Desktop Main Menu */
.header-desktop-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.header-desktop-menu a {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.header-desktop-menu a:hover,
.header-desktop-menu a.active {
    color: var(--brand-navy);
    background-color: #f1f5f9;
}
.header-desktop-menu a.nav-badge-pill {
    background: #fee2e2;
    color: var(--brand-red);
}
.header-desktop-menu a.nav-badge-pill:hover {
    background: var(--brand-red);
    color: #fff;
}

/* Header Social Icons */
.header-social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff !important;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.social-icon-circle:hover {
    transform: translateY(-2px);
}
.social-icon-circle.wa { background: var(--brand-whatsapp); }
.social-icon-circle.fb { background: var(--brand-facebook); }
.social-icon-circle.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-circle.yt { background: var(--brand-youtube); }

/* Mobile Location Category Chips Bar */
.mobile-cat-chips-bar {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}
.mobile-cat-chips-bar::-webkit-scrollbar { display: none; }
.mobile-cat-chips-list {
    display: flex;
    gap: 8px;
    padding: 0 15px;
    list-style: none;
    margin: 0;
}
.mobile-cat-chips-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}
.mobile-cat-chips-list a.active,
.mobile-cat-chips-list a:hover {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
}

/* ----------------------------------------------------
   TOP BANNER AD
---------------------------------------------------- */
.top-banner-container {
    margin: 16px auto;
}
.top-banner-wrapper {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid var(--brand-border);
}
.top-banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------
   TRENDS TICKER BAR
---------------------------------------------------- */
.trends-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    margin-bottom: 18px;
    width: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #f6d365 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}
.trends-label {
    color: #fff;
    background-color: var(--brand-navy);
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.trends-scroll {
    display: flex;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}
.trend-item {
    color: #081936 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-right: 25px;
    display: inline-block;
}
.trend-item:hover {
    color: var(--brand-red) !important;
    text-decoration: underline !important;
}

/* ----------------------------------------------------
   MAIN 3-COLUMN LAYOUT
---------------------------------------------------- */
.main-layout-container {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
    margin-bottom: 30px;
    width: 100%;
}

.left-sidebar, .right-sidebar {
    position: sticky;
    top: 75px;
}

.middle-content {
    min-width: 0;
    width: 100%;
}

/* ----------------------------------------------------
   LEFT SIDEBAR (CATEGORIES)
---------------------------------------------------- */
.left-sidebar-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 14px 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--brand-border);
}
.sidebar-heading {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-navy);
    border-bottom: 2px solid var(--brand-navy);
    padding-bottom: 8px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.left-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.left-menu-list a {
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.left-menu-list a:hover {
    background: #f1f5f9;
    color: var(--brand-navy);
    transform: translateX(3px);
}
.left-menu-list a.special-highlight {
    background: #fff8eb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ----------------------------------------------------
   HERO / MAIN FEATURED POST
---------------------------------------------------- */
.hero-post-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--brand-border);
    margin-bottom: 20px;
}
.hero-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-body {
    padding: 16px 18px;
}
.hero-headline {
    margin: 0 0 12px 0;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 800;
}
.hero-headline a {
    color: var(--brand-navy);
}
.hero-headline a:hover {
    color: var(--brand-red);
}
.post-meta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--brand-border);
    flex-wrap: wrap;
    gap: 8px;
}
.cat-pill {
    background: #e8effa;
    color: var(--brand-navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cat-pill:hover {
    background: var(--brand-navy);
    color: #fff;
}

/* ----------------------------------------------------
   SMALL NEWS LIST ITEMS
---------------------------------------------------- */
.small-post-list {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--brand-border);
    box-shadow: var(--card-shadow);
    padding: 12px 14px;
    margin-bottom: 12px;
}
.small-post-content {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.small-post-content h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    font-weight: 800;
    flex: 1;
}
.small-post-content h3 a {
    color: var(--brand-red);
}
.small-post-content h3 a:hover {
    color: var(--brand-navy);
}
.small-post-content img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.small-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--brand-border);
}

/* ----------------------------------------------------
   SOCIAL SHARE BUTTONS
---------------------------------------------------- */
.share-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-wa, .btn-fb, .btn-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
}
.btn-wa { background: var(--brand-whatsapp); }
.btn-fb { background: var(--brand-facebook); }
.btn-ig { background: var(--brand-instagram); }

.btn-wa-text, .btn-fb-text, .btn-ig-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.btn-wa-text { background: var(--brand-whatsapp); }
.btn-fb-text { background: var(--brand-facebook); }
.btn-ig-text { background: var(--brand-instagram); }

/* ----------------------------------------------------
   RIGHT SIDEBAR WIDGETS
---------------------------------------------------- */
.sidebar-box {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 14px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--card-shadow);
    margin-bottom: 18px;
}
.sidebar-ad-card {
    background: #fdfdfd;
    border-radius: var(--card-radius);
    padding: 14px;
    border: 1px dashed #cbd5e1;
    text-align: center;
    margin-bottom: 18px;
}

.widget-panchang-mini {
    background: linear-gradient(135deg, #0F2B5B 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: var(--card-radius);
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(15, 43, 91, 0.2);
    border: 1px solid #2563eb;
}
.widget-panchang-mini h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-panchang-mini p {
    margin: 3px 0;
    font-size: 13px;
    color: #e2e8f0;
}
.widget-panchang-mini .btn-panchang-view {
    display: block;
    margin-top: 10px;
    background: #D4AF37;
    color: #081936;
    text-align: center;
    padding: 7px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

/* ----------------------------------------------------
   DEDICATED RASHIFAL PAGE STYLING (/rashifal)
---------------------------------------------------- */
.rashifal-page-header {
    background: linear-gradient(135deg, #0F2B5B 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--card-radius);
    padding: 22px 18px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
    box-shadow: var(--card-shadow);
}
.rashifal-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.rashi-card {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--brand-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rashi-card-header {
    background: linear-gradient(90deg, #0F2B5B 0%, #1e3a8a 100%);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rashi-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rashi-symbol {
    font-size: 22px;
    color: var(--brand-gold);
}
.rashi-name {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}
.rashi-name-en {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 4px;
}
.rashi-meta-badges {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.rashi-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.rashi-badge.color-badge { background: #fef3c7; color: #92400e; }
.rashi-badge.num-badge { background: #dbeafe; color: #1e40af; }

.rashi-body {
    padding: 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    flex: 1;
}
.rashi-footer {
    padding: 8px 14px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* ----------------------------------------------------
   DEDICATED PANCHANG PAGE (/panchang)
---------------------------------------------------- */
.panchang-container-card {
    background: #fff;
    border: 2px solid var(--brand-gold);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    padding: 22px 20px;
    margin-bottom: 25px;
}
.panchang-header-om {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px dashed #D4AF37;
}
.panchang-om-sign {
    font-size: 26px;
    font-weight: 900;
    color: #b91c1c;
}
.panchang-main-title {
    font-size: 21px;
    color: var(--brand-navy);
    font-weight: 900;
    margin: 6px 0;
}
.panchang-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.panchang-row-item {
    background: #fdfaf3;
    border: 1px solid #f3e8d2;
    padding: 9px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.panchang-row-item.full-width {
    grid-column: 1 / -1;
}
.panchang-label {
    font-weight: 800;
    color: #78350f;
    min-width: 95px;
    font-size: 13.5px;
}
.panchang-value {
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    flex: 1;
}

.panchang-muhurat-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
}
.panchang-muhurat-box h4 {
    margin: 0 0 8px 0;
    color: #b45309;
    font-size: 16px;
    font-weight: 800;
}
.panchang-muhurat-box p {
    margin: 0;
    white-space: pre-line;
    color: #451a03;
    font-size: 13.5px;
    line-height: 1.6;
}

.astrologer-card {
    background: linear-gradient(135deg, #0F2B5B 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-top: 22px;
    text-align: center;
    border: 1px solid var(--brand-gold);
}
.astrologer-card .center-name {
    color: var(--brand-gold);
    font-size: 19px;
    font-weight: 900;
    margin: 0 0 4px 0;
}
.astrologer-card .astro-name {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px 0;
}
.astrologer-card .astro-title {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0 0 4px 0;
}
.astrologer-card .astro-address {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 14px 0;
}
.astrologer-contact-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-astro-call, .btn-astro-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
}
.btn-astro-call {
    background: var(--brand-gold);
    color: #081936 !important;
}
.btn-astro-wa {
    background: var(--brand-whatsapp);
    color: #fff !important;
}

/* ----------------------------------------------------
   FOOTER & MOBILE BOTTOM APP BAR
---------------------------------------------------- */
.site-footer {
    background: #081936;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 3px solid var(--brand-navy);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 7px 0 9px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
    flex: 1;
}
.mobile-bottom-nav a.active {
    color: var(--brand-navy);
}

/* ----------------------------------------------------
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATIONS)
---------------------------------------------------- */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    .mobile-cat-chips-bar { display: block; }
    
    .container {
        padding: 0 12px;
        width: 100%;
    }
    
    .main-layout-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .site-header { padding: 8px 0; }
    .site-branding img { max-height: 40px; }
    
    .hero-content-body { padding: 12px 14px; }
    .hero-headline { font-size: 18px; }
    .small-post-content h3 { font-size: 15px; }
    .small-post-content img { width: 95px; height: 68px; }
    
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .panchang-container-card {
        padding: 14px 12px;
    }
    .panchang-main-title {
        font-size: 17px;
    }
    .rashifal-page-header {
        padding: 18px 12px;
    }
    .rashifal-page-header h1 {
        font-size: 21px;
    }
}
