/* ==========================================================================
   Atyab Al Kuwaitiah Blog - Luxury Perfume Theme
   Brand: Gold #c19a59, Light Gold #e8c882, Dark #0a0a0a
   Fonts: Tajawal (Arabic), Playfair Display (English accents)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --gold: #c19a59;
    --gold-light: #e8c882;
    --gold-dark: #a07b3f;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --dark-5: #2a2a2a;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --white: #f5f5f5;
    --white-pure: #ffffff;
    --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
    --font-en: 'Playfair Display', Georgia, serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 20px rgba(193, 154, 89, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ar) !important;
    background: var(--dark) !important;
    color: var(--white) !important;
    direction: rtl !important;
    line-height: 1.7 !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.overlay-open,
body.menu-open {
    overflow: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

/* Override Astra defaults — AGGRESSIVE */
#page, .site-content, #content, .ast-container, .ast-separate-container,
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post,
.ast-plain-container .site-content .ast-container {
    background: transparent !important; max-width: 100% !important;
    padding: 0 !important; margin: 0 auto !important; width: 100% !important;
}
#primary, .content-area { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
#primary .entry-content, .page .entry-content { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
.entry-content, .page-content { background: transparent !important; }
.ast-separate-container .ast-article-single { background: transparent !important; padding: 0 !important; }
.ast-above-header, .ast-below-header, .entry-header, .ast-page-builder-template .entry-header { display: none !important; }
#secondary, aside.widget-area { display: none !important; }
.site-content > .ast-container { display: block !important; }
/* Force vertical stacking */
.categories-section, .articles-section, .newsletter-section,
.archive-section, .single-post, .related-posts {
    display: block !important; width: 100% !important; float: none !important; clear: both !important;
}
.hero-section { width: 100% !important; float: none !important; clear: both !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ar) !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white-pure);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header-spacer { height: var(--header-h); display: block !important; }
.atyab-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 154, 89, 0.08);
    transition: all var(--transition);
}

.atyab-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(193, 154, 89, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.15);
}

.header-nav { flex: 1; display: flex; justify-content: center; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--gray-light) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(193, 154, 89, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-btn {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn:hover {
    color: var(--gold);
    background: rgba(193, 154, 89, 0.1);
}

.header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all var(--transition);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
    color: var(--dark) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    left: 0;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition);
}

.search-close:hover { color: var(--gold); }

.search-title {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 24px;
    text-align: center;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius);
    padding: 16px 20px;
    gap: 12px;
    transition: border-color var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--gold);
}

.search-input-wrap i { color: var(--gold); font-size: 1.1rem; }

.search-input-overlay {
    flex: 1;
    background: none !important;
    border: none !important;
    color: var(--white) !important;
    font-family: var(--font-ar) !important;
    font-size: 1.1rem;
    outline: none;
}

.search-input-overlay::placeholder { color: var(--gray); }

.search-results-overlay {
    margin-top: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.search-loading { text-align: center; padding: 32px; color: var(--gold); font-size: 1.5rem; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    margin-bottom: 0 !important;
    padding: var(--header-h) 24px 50px;
}

/* Hero background image */
.hero-bg-picture { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 0 !important; display: block !important; }
.hero-bg-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-overlay--dark { background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.65) 100%); }

.hero-subtitle-gold {
    font-size: clamp(0.95rem, 2vw, 1.25rem) !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.9) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.9) !important;
    background: none !important;
    letter-spacing: 0.5px;
}

/* Gold gradient title - big header */
.hero-title--gold {
    background: linear-gradient(135deg, #e8c882, #c19a59, #e8c882) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
}

.hero-container { position: relative; z-index: 2; max-width: 750px; margin: 0 auto; width: 100%; text-align: center; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0a0a0a !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 24px;
    transition: all 0.3s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(193,154,89,0.4); color: #0a0a0a !important; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(193, 154, 89, 0.1);
    border: 1px solid rgba(193, 154, 89, 0.2);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    color: var(--gray-light) !important;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all var(--transition);
}

.hero-pill:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(193, 154, 89, 0.06);
}

.hero-pill i { color: var(--gold); font-size: 0.8rem; }

.hero-scroll {
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.5;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    padding: 80px 0;
    background: var(--dark-2);
}

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

.category-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(193, 154, 89, 0.2);
    box-shadow: var(--shadow-gold);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(193, 154, 89, 0.1);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.3rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-pure) !important;
}

.category-count {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ==========================================================================
   ARTICLES SECTION
   ========================================================================== */
.articles-section {
    padding: 30px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.section-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto;
    border-radius: 2px;
}

/* Toolbar */
.articles-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius);
    padding: 14px 20px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    transition: border-color var(--transition);
}

.search-bar:focus-within { border-color: var(--gold); }

.search-bar i { color: var(--gold); }

.search-bar input,
#articles-search {
    flex: 1;
    background: none !important;
    border: none !important;
    color: var(--white) !important;
    font-family: var(--font-ar) !important;
    font-size: 0.95rem;
    outline: none;
}

.search-bar input::placeholder { color: var(--gray); }

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-pill {
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    color: var(--gray-light);
    font-family: var(--font-ar);
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(193, 154, 89, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity var(--transition);
}

.articles-grid .article-card--featured {
    grid-column: span 2;
}

/* Article Card */
.article-card {
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.article-card[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(193, 154, 89, 0.3);
    box-shadow: 0 8px 32px rgba(193, 154, 89, 0.08);
}

.article-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.article-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--dark-4);
}

.article-card--featured .article-card-image {
    height: 280px;
}

.card-img,
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-img,
.article-card:hover .article-card-image img {
    transform: scale(1.06);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-4);
    color: var(--dark-5);
    font-size: 3rem;
}

.article-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--white-pure) !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card--featured .article-card-title {
    font-size: 1.3rem !important;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray);
}

.meta-item i { color: var(--gold); font-size: 0.75rem; }

/* Loading */
.articles-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: var(--gold);
    font-size: 1rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.no-results i { font-size: 3rem; color: var(--dark-5); margin-bottom: 16px; display: block; }
.no-results p { font-size: 1.1rem; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    color: var(--gold) !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all var(--transition);
}

.btn-back:hover {
    border-color: var(--gold);
    background: rgba(193, 154, 89, 0.06);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    padding: 80px 0;
    background: var(--dark-2);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(193, 154, 89, 0.1);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.5rem;
}

.newsletter-title { font-size: 1.4rem !important; margin-bottom: 8px !important; }
.newsletter-desc { color: var(--gray); font-size: 0.95rem; margin-bottom: 28px; }

.newsletter-input-wrap {
    display: flex;
    gap: 12px;
}

.newsletter-input-wrap input {
    flex: 1;
    background: var(--dark-4) !important;
    border: 1px solid var(--dark-5) !important;
    color: var(--white) !important;
    font-family: var(--font-ar) !important;
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-input-wrap input:focus {
    border-color: var(--gold) !important;
}

.newsletter-input-wrap button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-input-wrap button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.atyab-footer {
    background: var(--dark-2);
    border-top: 1px solid var(--dark-5);
    padding-top: 64px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.footer-logo img {
    height: 52px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(1.15);
}

.footer-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: 50%;
    color: var(--gray-light) !important;
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: rgba(193, 154, 89, 0.1);
    border-color: var(--gold);
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--white-pure) !important;
    margin-bottom: 20px !important;
}

.footer-heading i { color: var(--gold); font-size: 0.9rem; }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray) !important;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--gold) !important;
    padding-right: 4px;
}

.footer-links a i { font-size: 0.7rem; color: var(--gold); opacity: 0.5; }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-contact li i { color: var(--gold); font-size: 0.85rem; margin-top: 4px; }
.footer-contact a { color: var(--gray) !important; }
.footer-contact a:hover { color: var(--gold) !important; }

.footer-bottom {
    border-top: 1px solid var(--dark-5);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright,
.footer-tax {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.footer-copyright i,
.footer-tax i { color: var(--gold); font-size: 0.75rem; }

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
/* Force dark bg on all pages */
body, html { background: var(--dark) !important; }
body.single-post, body.page, body.archive, body.search, body.home { background: var(--dark) !important; color: var(--white) !important; }
.single-post { padding-top: calc(var(--header-h) + 40px); background: var(--dark) !important; }

.single-header { text-align: center; padding: 40px 0; }

.single-badge {
    display: inline-block;
    background: rgba(193, 154, 89, 0.1);
    border: 1px solid rgba(193, 154, 89, 0.2);
    color: var(--gold) !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.single-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    max-width: 800px;
    margin: 0 auto 16px !important;
    line-height: 1.4 !important;
}

.single-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.single-image { margin-bottom: 40px; }

.single-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.single-content { padding-bottom: 60px; }

.content-narrow { max-width: 780px; }

.single-content h2 {
    font-size: 1.6rem !important;
    color: var(--gold-light) !important;
    margin: 40px 0 16px !important;
}

.single-content h3 {
    font-size: 1.3rem !important;
    margin: 32px 0 12px !important;
}

.single-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.single-content ul,
.single-content ol {
    margin: 0 0 20px 0;
    padding-right: 24px;
    color: var(--gray-light);
}

.single-content li { margin-bottom: 8px; line-height: 1.8; }

.single-content blockquote {
    border-right: 4px solid var(--gold);
    background: var(--dark-3);
    padding: 20px 28px;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-light);
}

.single-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--dark-2);
}

.related-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem !important;
    margin-bottom: 32px !important;
}

.related-title i { color: var(--gold); }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==========================================================================
   ARCHIVE / SEARCH
   ========================================================================== */
.archive-section {
    padding: calc(var(--header-h) + 40px) 0 80px;
}

.archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.archive-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.archive-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.archive-desc {
    color: var(--gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: var(--radius-sm);
    color: var(--gray-light) !important;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: rgba(193, 154, 89, 0.1);
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid .article-card--featured { grid-column: span 2; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    /* Hide desktop nav on mobile */
    .header-nav--desktop { display: none !important; }

    .nav-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 0 24px;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    .mobile-toggle { display: flex; align-items: center; justify-content: center; }

    .header-cta span { display: none; }
    .header-cta { padding: 8px 12px; }

    .articles-grid { grid-template-columns: 1fr; }
    .articles-grid .article-card--featured { grid-column: span 1; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .related-grid { grid-template-columns: 1fr; }

    .newsletter-input-wrap { flex-direction: column; }

    .hero-pills { gap: 8px; }
    .hero-pill { font-size: 0.8rem; padding: 8px 16px; }

    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem !important; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.3rem !important; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .category-card { padding: 24px 16px; }
    .article-card-image { height: 180px; }
    .newsletter-box { padding: 32px 20px; }
    .single-title { font-size: 1.5rem !important; }
    .filter-pills { gap: 6px; }
    .filter-pill { font-size: 0.78rem; padding: 6px 14px; }
}

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
body.theme-light {
    --dark: #ffffff; --dark-2: #f8f8f8; --dark-3: #f0f0f0; --dark-4: #e5e5e5; --dark-5: #d8d8d8;
    --white: #1a1a1a; --white-pure: #0a0a0a;
    --gray: #666; --gray-light: #555;
}
body.theme-light { background: #fff !important; color: #1a1a1a !important; }
body.theme-light #page { background: #fff !important; }
body.theme-light .atyab-header { background: rgba(255,255,255,.92); border-bottom-color: #e5e5e5; }
body.theme-light .atyab-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
body.theme-light .nav-link { color: #555; }
body.theme-light .nav-link:hover, body.theme-light .nav-link.active { color: var(--gold); }
body.theme-light .header-search-btn { border-color: #ddd; color: #666; }
body.theme-light .header-search-btn:hover { border-color: var(--gold); color: var(--gold); }
/* hero bg image stays same in both themes */
body.theme-light .hero-title { -webkit-text-fill-color: transparent; background: linear-gradient(135deg, var(--gold-dark), var(--gold), #8a6a2f); -webkit-background-clip: text; background-clip: text; }
body.theme-light .hero-subtitle { color: #666; }
body.theme-light .hero-badge { background: rgba(193,154,89,.1); border-color: rgba(193,154,89,.2); }
body.theme-light .hero-pill { background: rgba(193,154,89,.06); border-color: rgba(193,154,89,.15); color: #555; }
body.theme-light .hero-pill:hover { background: rgba(193,154,89,.12); color: var(--gold-dark); }
body.theme-light .category-card { background: #fff; border-color: #e8e8e8; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
body.theme-light .category-card:hover { border-color: rgba(193,154,89,.3); box-shadow: 0 6px 24px rgba(193,154,89,.1); }
body.theme-light .category-name { color: #1a1a1a; }
body.theme-light .category-count { color: #888; }
body.theme-light .section-title { color: #1a1a1a; }
body.theme-light .section-tag { color: var(--gold-dark); }
body.theme-light .search-bar input { background: #fff; border-color: #ddd; color: #1a1a1a; }
body.theme-light .search-bar input::placeholder { color: #aaa; }
body.theme-light .filter-pill { background: #fff; border-color: #ddd; color: #555; }
body.theme-light .filter-pill:hover, body.theme-light .filter-pill.active { background: linear-gradient(135deg,var(--gold),var(--gold-light)); color: #fff; }
body.theme-light .article-card { background: #fff; border-color: #eee; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
body.theme-light .article-card:hover { border-color: rgba(193,154,89,.3); box-shadow: 0 8px 30px rgba(193,154,89,.1); }
body.theme-light .article-card-title { color: #1a1a1a; }
body.theme-light .article-card:hover .article-card-title { color: var(--gold-dark); }
body.theme-light .article-card-excerpt { color: #666; }
body.theme-light .article-card-meta { border-top-color: #eee; color: #999; }
body.theme-light .article-card-badge { background: rgba(255,255,255,.9); color: var(--gold-dark); border-color: rgba(193,154,89,.3); }
body.theme-light .card-img-placeholder { background: #f0ece4; color: #ccc; }
body.theme-light .newsletter-box { background: linear-gradient(135deg,rgba(193,154,89,.06),rgba(193,154,89,.02)); border-color: rgba(193,154,89,.2); }
body.theme-light .newsletter-title { color: #1a1a1a; }
body.theme-light .newsletter-desc { color: #666; }
body.theme-light .newsletter-input-wrap input { background: #fff; border-color: #ddd; color: #1a1a1a; }
body.theme-light .atyab-footer { background: #f8f6f2; border-top-color: #e8e4dc; }
body.theme-light .footer-desc { color: #666; }
body.theme-light .footer-social a { border-color: #ddd; color: #888; }
body.theme-light .footer-social a:hover { border-color: var(--gold); color: var(--gold); }
body.theme-light .footer-links a { color: #666; }
body.theme-light .footer-links a:hover { color: var(--gold-dark); }
body.theme-light .footer-contact li { color: #666; }
body.theme-light .footer-bottom { background: #f0ece4; border-top-color: #e0dcd4; }
body.theme-light .footer-bottom-inner { color: #888; }
body.theme-light .footer-copyright, body.theme-light .footer-tax { color: #888; }
body.theme-light .search-overlay { background: rgba(255,255,255,.96); }
body.theme-light .search-input-overlay { background: #f5f5f5; border-color: #ddd; color: #1a1a1a; }
body.theme-light .search-title { color: var(--gold-dark); }
body.theme-light .single-post-content p { color: #444; }
body.theme-light .single-post-content h2 { color: var(--gold-dark); }
body.theme-light .single-title { color: #1a1a1a; }
body.theme-light .single-meta { color: #999; }
body.theme-light blockquote { background: rgba(193,154,89,.05); border-right-color: var(--gold); }
body.theme-light blockquote p { color: #555 !important; }

/* Theme Toggle Button */
.theme-toggle{position:fixed;bottom:24px;left:24px;z-index:9999;width:46px;height:46px;border-radius:50%;border:1px solid var(--dark-5);background:var(--dark-2);color:var(--gold);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s;box-shadow:0 4px 15px rgba(0,0,0,.3)}
.theme-toggle:hover{transform:scale(1.08);border-color:var(--gold);box-shadow:0 4px 20px rgba(193,154,89,.2)}
body.theme-light .theme-toggle{background:#fff;border-color:#ddd;box-shadow:0 2px 12px rgba(0,0,0,.08)}

/* ================================
   Branded gold border + glow on article cards
   Brand: #c19a59
================================ */
.article-card,
body.theme-light .article-card {
    border: 2px solid rgba(193, 154, 89, 0.55);
    box-shadow:
        0 0 0 1px rgba(193, 154, 89, 0.10),
        0 4px 22px rgba(193, 154, 89, 0.22);
}
.article-card:hover,
body.theme-light .article-card:hover {
    border-color: rgba(193, 154, 89, 0.95);
    box-shadow:
        0 0 0 2px rgba(193, 154, 89, 0.18),
        0 10px 36px rgba(193, 154, 89, 0.40);
}
.article-card.article-card--featured {
    border-color: rgba(193, 154, 89, 0.85);
    box-shadow:
        0 0 0 2px rgba(193, 154, 89, 0.20),
        0 8px 30px rgba(193, 154, 89, 0.35);
}

/* ================================
   Desktop: 2 equal cards per row (no featured span)
================================ */
@media (min-width: 1025px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px;
    }
    .articles-grid .article-card--featured {
        grid-column: auto !important;
    }
    .article-card-image,
    .article-card--featured .article-card-image {
        height: 340px !important;
    }
}

/* ================================
   Mobile + tablet: show full 3:2 image (no crop)
================================ */
@media (max-width: 1024px) {
    .article-card-image,
    .article-card--featured .article-card-image {
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
    }
    .card-img,
    .article-card-image img {
        object-fit: cover;
    }
}
