/*
Theme Name: Nasyiah Canvas
Theme URI: https://nasyiah.or.id
Author: Pimpinan Pusat Nasyiatul Aisyiyah
Author URI: https://nasyiah.or.id
Description: Tema resmi Pimpinan Pusat Nasyiatul Aisyiyah yang merekonstruksi secara presisi estetika dan tata letak asli portal nasyiah.or.id dengan teknologi responsif modern.
Version: 1.0.0
Text Domain: nasyiah
*/

:root {
    --primary: #177d99;
    --primary-dark: #0f596d;
    --primary-light: #e6f4f7;
    --accent: #f59e0b;
    --dark-bg: #192027;
    --dark-surface: #111822;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   TOP BAR
   ========================================================================== */
#top-bar {
    background-color: var(--dark-bg);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
}

.top-bar-left a:hover {
    background: var(--primary);
    color: #fff;
}

.top-social-links {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

.top-social-links a {
    color: #94a3b8;
    font-size: 14px;
}

.top-social-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   MAIN HEADER & NAV
   ========================================================================== */
#header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Offset for WordPress logged-in admin bar */
.admin-bar #header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    height: 80px;
    position: relative;
}

#logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#logo img {
    height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
}

/* Universal selectors for primary nav (handles wp_nav_menu, fallback, .menu, .primary-menu) */
.site-nav ul,
.primary-menu,
.site-nav .menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
}

.site-nav ul > li,
.primary-menu > li,
.site-nav .menu > li {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-nav ul > li > a,
.primary-menu > li > a,
.site-nav .menu > li > a {
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    display: inline-block;
    border-radius: 6px;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-nav ul > li > a:hover,
.site-nav ul > li.current-menu-item > a,
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.site-nav .menu > li > a:hover,
.site-nav .menu > li.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown */
.site-nav ul li ul,
.primary-menu li ul,
.site-nav .menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-width: 220px;
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.site-nav ul li:hover > ul,
.primary-menu li:hover > ul,
.site-nav .menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav ul li ul li a,
.primary-menu li ul li a,
.site-nav .menu li ul li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 0;
}

.site-nav ul li ul li a:hover,
.primary-menu li ul li a:hover,
.site-nav .menu li ul li a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 20px;
    color: #334155;
    cursor: pointer;
}

/* ==========================================================================
   HERO 2-COLUMN SECTION (CAROUSEL LEFT + QUICK HIGHLIGHTS RIGHT)
   ========================================================================== */
.hero-slider-section {
    background: linear-gradient(135deg, #0f596d 0%, #177d99 100%);
    color: #ffffff;
    padding: 35px 0 40px;
    margin-bottom: 40px;
}

.hero-slider-wrap {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: stretch;
}

.hero-slider-left {
    min-width: 0;
}

.hero-slider-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nasyiah-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    background: #000;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 390px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 35px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 65%, transparent 100%);
    z-index: 3;
    pointer-events: auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title a {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: block;
}

.hero-title a:hover {
    color: #fde047;
}

.hero-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    gap: 15px;
}

/* Navigation Arrow Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    border-radius: 50%;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev {
    left: 14px;
}

.carousel-nav-btn.next {
    right: 14px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 25px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.carousel-dots .dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 8px;
}

.carousel-dots .dot:hover:not(.active) {
    background: #ffffff;
}

/* Right Quick Highlights (Matching Screenshot) */
.hero-quick-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 390px;
    gap: 12px;
}

.hero-quick-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-quick-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(4px);
}

.hero-quick-item .item-tag {
    font-size: 11px;
    color: #fde047;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-quick-item h4 {
    margin: 5px 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-quick-item h4 a {
    color: #ffffff;
}

.hero-quick-item h4 a:hover {
    color: #fde047;
}

.hero-quick-item .item-date {
    font-size: 11px;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .hero-slider-wrap {
        grid-template-columns: 1fr;
    }
    .carousel-track {
        height: 340px;
    }
    .hero-quick-list {
        height: auto;
    }
}

@media (max-width: 767px) {
    .carousel-track {
        height: 280px;
    }
    .carousel-overlay-info {
        padding: 20px 16px;
    }
    .hero-title a {
        font-size: 16px;
    }
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .carousel-nav-btn.prev {
        left: 8px;
    }
    .carousel-nav-btn.next {
        right: 8px;
    }
    .carousel-dots {
        right: 15px;
        bottom: 10px;
    }
}

/* ==========================================================================
   TWO COLUMN LAYOUT (MAIN & SIDEBAR)
   ========================================================================== */
.site-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    margin-bottom: 50px;
}

.section-heading-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 25px;
    position: relative;
}

.section-heading-bar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--primary);
}

.section-heading-bar h2,
.section-heading-bar h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Post Cards */
.articles-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-category-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text-heading);
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
}

.article-readmore-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.article-readmore-btn:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

/* Pagination */
.nasyiah-pagination {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nasyiah-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

.nasyiah-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.nasyiah-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    color: var(--primary);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.widget-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Search widget */
.search-form-wrap form {
    display: flex;
    gap: 6px;
}

.search-form-wrap input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.search-form-wrap input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form-wrap button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.search-form-wrap button:hover {
    background: var(--primary-dark);
}

/* Recent news widget */
.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-post-thumb {
    flex: 0 0 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-post-info h5 a {
    color: var(--text-heading);
}

.sidebar-post-info h5 a:hover {
    color: var(--primary);
}

.sidebar-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Promo Banner Widget */
.promo-banner-widget {
    background: linear-gradient(135deg, #177d99 0%, #0d4a5b 100%);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}

.promo-banner-widget h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}

.promo-banner-widget p {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.promo-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--primary);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.promo-btn:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

/* ==========================================================================
   PROGRAM UNGGULAN SECTION (FRONT PAGE)
   ========================================================================== */
.programs-section {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 50px 0;
    margin-bottom: 50px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.program-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.program-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.program-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.program-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.program-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding-top: 55px;
    border-top: 3px solid var(--primary);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 13px;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.copyright-bar {
    background: var(--dark-surface);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: #64748b;
}

.copyright-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   SINGLE POST & PAGE LAYOUT
   ========================================================================== */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #64748b;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.single-article-header {
    margin-bottom: 25px;
}

.single-article-header h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.single-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.single-featured-wrap {
    margin: 25px 0 35px 0;
    text-align: center;
}

.single-featured-wrap img {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    max-height: 520px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.single-content-body {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 17px;
    line-height: 1.85;
    color: #27272a;
}

.single-content-body p {
    margin-bottom: 20px;
}

.single-content-body h2,
.single-content-body h3,
.single-content-body h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-heading);
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.single-content-body ul,
.single-content-body ol {
    margin: 15px 0 25px 25px;
    line-height: 1.8;
}

.single-content-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background: #f1f5f9;
    font-style: italic;
    color: #475569;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

.single-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.single-content-body th,
.single-content-body td {
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
}

.single-content-body th {
    background: #f1f5f9;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .hero-slider-wrap {
        grid-template-columns: 1fr;
    }
    .site-main-layout {
        grid-template-columns: 1fr;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .mobile-menu-btn {
        display: block;
    }
    .site-nav ul,
    .primary-menu,
    .site-nav .menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column !important;
        padding: 15px 20px !important;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-subtle);
        gap: 0 !important;
        z-index: 999;
    }
    .site-nav ul.active,
    .primary-menu.active,
    .site-nav .menu.active {
        display: flex !important;
    }
    .site-nav ul > li,
    .primary-menu > li,
    .site-nav .menu > li {
        width: 100%;
    }
    .site-nav ul > li > a,
    .primary-menu > li > a,
    .site-nav .menu > li > a {
        display: block;
        width: 100%;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-subtle);
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    #top-bar .container {
        justify-content: center;
        text-align: center;
    }
    .article-card {
        flex-direction: column;
    }
    .article-thumb {
        height: 200px;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .single-article-header h1 {
        font-size: 22px;
    }
}
