/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

.site-title,
.ast-site-name-wrap .site-title {
    display: none !important;
}

.site-description {
    display: none !important;
}

.site-description,
.ast-site-name-wrap .site-description,
p.site-description,
.tagline {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Fix mobile menu */
.ast-mobile-header-wrap,
.ast-button-wrap,
#ast-mobile-header {
    display: block !important;
}

/* Remove Astra footer branding */
.ast-footer-copyright,
#colophon .ast-row,
.footer-widget-area,
.site-below-footer-wrap {
    display: none !important;
}

/* Hide old Astra footer */
.ast-small-footer,
.ast-small-footer-wrap,
.ast-small-footer-section,
.ast-small-footer-section-1,
.ast-small-footer-section-2,
#colophon {
    display: none !important;
}

/* ── Magazine Layout ─────────────────────────────── */

/* Orange top bar */
body::before {
    content: '';
    display: block;
    height: 4px;
    background: #FF5500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Header styling */
.site-header,
#masthead {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Hide Astra built-in nav menu on all screens */
.ast-builder-menu-mobile,
.ast-builder-menu-mobile .main-header-bar-navigation,
#masthead .ast-builder-menu-1,
#masthead .main-header-bar-navigation,
#ast-mobile-header .ast-builder-menu-1,
#ast-mobile-header .main-header-bar-navigation,
.ast-mobile-popup-drawer,
.ast-mobile-header-content,
.ast-desktop-header-content,
#ast-desktop-header .ast-desktop-header-content,
.ast-builder-menu-mobile,
#ast-mobile-site-navigation-desktop {
    display: none !important;
}

/* Hide entire mobile header on desktop only */
@media (min-width: 922px) {
    #ast-mobile-header {
        display: none !important;
    }
}

/* ── Two-Row Desktop Nav ─────────────────────────── */
#if-nav {
    width: 100%;
    position: sticky;
    top: 4px;
    z-index: 9990;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Row 1 - Orange */
#if-nav .if-row1 {
    background: #FF5500;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 12px;
}
#if-nav .if-row1::-webkit-scrollbar { display: none; }
#if-nav .if-row1 a {
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: inline-block;
}
#if-nav .if-row1 a:hover,
#if-nav .if-row1 a.if-active {
    border-bottom: 3px solid #fff;
    background: rgba(0,0,0,0.12);
}

/* Row 2 - Dark */
#if-nav .if-row2 {
    background: #1a1a1a;
    display: flex;
    overflow: visible;
    scrollbar-width: none;
    padding: 0 12px;
    border-top: 1px solid #333;
    position: relative;
}
#if-nav .if-row2::-webkit-scrollbar { display: none; }
#if-nav .if-row2 a {
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 600 !important;
    color: #ccc !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
#if-nav .if-row2 a:hover,
#if-nav .if-row2 a.if-active {
    color: #FF5500 !important;
    border-bottom: 2px solid #FF5500;
}

/* City dropdown */
#if-nav .if-drop {
    position: relative;
    display: inline-block;
}
#if-nav .if-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #FF5500;
    min-width: 160px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
}
#if-nav .if-drop:hover .if-drop-menu,
#if-nav .if-drop.if-open .if-drop-menu {
    display: block;
}
#if-nav .if-drop-menu a {
    display: block !important;
    padding: 9px 16px !important;
    font-size: 12px !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-transform: capitalize !important;
    font-weight: 500 !important;
    white-space: nowrap;
}
#if-nav .if-drop-menu a:hover {
    background: #fff5f0;
    color: #FF5500 !important;
}

/* Hide desktop nav on mobile */
@media (max-width: 921px) {
    #if-nav { display: none !important; }
}

/* ── Mobile Nav Drawer ───────────────────────────── */
#if-mob {
    display: none;
    background: #1a1a1a;
    width: 100%;
}
#if-mob.if-open {
    display: block;
}
#if-mob a {
    display: block;
    padding: 13px 20px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}
#if-mob a:active { background: #FF5500; }
#if-clist {
    display: none;
    background: #111;
}
#if-clist.if-open { display: block; }
#if-clist a {
    padding: 11px 20px 11px 36px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    color: #aaa !important;
    border-bottom: 1px solid #1a1a1a !important;
}

/* Mobile toggle button injected by JS */
#if-mbtn {
    background: #FF5500;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
    display: block;
}

/* Show mobile nav only on mobile */
@media (min-width: 922px) {
    #if-mob { display: none !important; }
    #if-mbtn { display: none !important; }
}

/* Article cards - magazine style */
.ast-article-post,
.ast-article-inner,
article.post {
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    margin-bottom: 24px !important;
}
.ast-article-post:hover,
article.post:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13) !important;
    transform: translateY(-2px) !important;
}

/* Featured image fill */
.ast-article-post img,
article.post img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Category label - orange pill */
.ast-article-post .cat-links a,
article.post .cat-links a,
.entry-meta .cat-links a {
    background: #FF5500 !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
}

/* Post title */
.ast-article-post .entry-title a,
article.post .entry-title a {
    color: #111 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
.ast-article-post .entry-title a:hover,
article.post .entry-title a:hover {
    color: #FF5500 !important;
}

/* Post meta */
.entry-meta,
.ast-article-post .entry-meta {
    font-size: 12px !important;
    color: #888 !important;
}

/* Post excerpt */
.ast-article-post .entry-summary,
article.post .entry-summary {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

/* Single article styling */
.single .entry-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #111 !important;
}
.single .entry-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}
.single .entry-content h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    border-left: 4px solid #FF5500 !important;
    padding-left: 12px !important;
    margin: 28px 0 12px !important;
}

/* Pagination */
.page-numbers {
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}
.page-numbers.current {
    background: #FF5500 !important;
    color: #fff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ast-article-post img,
    article.post img {
        height: 180px !important;
    }
    .single .entry-title {
        font-size: 22px !important;
    }
}

/* FORCE HIDE ALL ASTRA NAV — maximum specificity */
body #ast-mobile-header .ast-builder-menu-mobile,
body #ast-mobile-header .main-header-bar-navigation,
body #ast-mobile-header .site-navigation,
body #ast-mobile-header .main-navigation,
body #masthead .ast-builder-menu-1,
body #masthead .main-header-bar-navigation,
body #masthead .site-navigation,
body .ast-builder-menu-mobile,
body #ast-mobile-site-navigation-desktop,
body #primary-site-navigation-desktop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide Astra mobile hamburger button */
@media (max-width: 921px) {
    .ast-mobile-menu-buttons,
    .menu-toggle,
    .ast-button-wrap,
    button.menu-toggle,
    .ast-mobile-header-wrap .ast-button-wrap {
        display: none !important;
    }
}

/* Mobile logo position */
@media (max-width: 921px) {
    #ast-mobile-header .site-branding,
    #ast-mobile-header .ast-site-identity {
        margin-right: 60px;
    }
}

/* Desktop logo size - smaller */
@media (min-width: 922px) {
    .site-logo img,
    .custom-logo,
    img.custom-logo {
        max-width: 180px !important;
        height: auto !important;
    }
}

/* Desktop logo size - adjust */
@media (min-width: 922px) {
    .site-logo img,
    .custom-logo,
    img.custom-logo {
        max-width: 280px !important;
        height: auto !important;
    }
}

/* Desktop logo size - larger */
@media (min-width: 922px) {
    .site-logo img,
    .custom-logo,
    img.custom-logo {
        max-width: 340px !important;
        height: auto !important;
    }
}

/* Desktop logo size */
@media (min-width: 922px) {
    .site-logo img,
    .custom-logo,
    img.custom-logo {
        max-width: 400px !important;
        height: auto !important;
    }
}

/* Hide category description on frontend — keeps SEO value */
.tax-category .ast-archive-description,
.tax-category .archive-description,
.category-current-affairs .ast-archive-description {
    display: none !important;
}
