/* =====================================================
   Hujan As Salam Theme — main.css
   Complete component styles
===================================================== */

/* ── ANNOUNCEMENT BAR ─────────────────────────────── */
.has-announcement-bar {
    background: var(--has-forest);
    color: rgba(255,255,255,.92);
    font-size: .8rem;
    padding: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 1000;
}
.has-announcement-bar .has-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.has-ann-close {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: .9rem;
    line-height: 1;
    padding: .2rem .4rem;
}
.has-ann-close:hover { color: white; }

/* ── HEADER ───────────────────────────────────────── */
.has-header {
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(253,248,240,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--has-border);
    transition: box-shadow .3s;
}
.has-header.scrolled { box-shadow: var(--has-shadow-m); }
.has-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .75rem 0;
    min-height: 64px;
}

/* Logo */
.has-site-branding { flex-shrink: 0; }
.has-site-name-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--has-ink);
}
.has-logo-icon {
    width: 38px; height: 38px;
    background: var(--has-forest);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform .2s;
}
.has-site-name-link:hover .has-logo-icon { transform: rotate(-5deg) scale(1.05); }
.has-site-identity { line-height: 1.2; }
.has-site-name {
    display: block;
    font-family: var(--has-font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--has-ink);
}
.has-site-desc {
    display: block;
    font-size: .6rem;
    color: var(--has-ink-l);
    font-weight: 500;
}

/* Primary nav */
.has-primary-nav { flex: 1; display: flex; justify-content: center; }
.has-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: .15rem;
}
.has-nav-list li { position: relative; }
.has-nav-list > li > a {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--has-ink-m);
    padding: .5rem .9rem;
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}
.has-nav-list > li > a:hover,
.has-nav-list > li.current-menu-item > a,
.has-nav-list > li.current_page_item > a {
    color: var(--has-forest);
    background: var(--has-mint);
}

/* Dropdown */
.has-nav-list .sub-menu {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    min-width: 220px;
    background: white;
    border: 1px solid var(--has-border);
    border-radius: var(--has-r-md);
    box-shadow: var(--has-shadow-l);
    padding: .5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s;
    z-index: 500;
}
.has-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-nav-list .sub-menu a {
    display: block;
    font-size: .83rem;
    font-weight: 500;
    color: var(--has-ink-m);
    padding: .55rem .85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.has-nav-list .sub-menu a:hover { background: var(--has-mint); color: var(--has-forest); }

/* Header actions */
.has-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.has-search-toggle,
.has-darkmode-toggle {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1.5px solid var(--has-border);
    border-radius: 9px;
    color: var(--has-ink-m);
    cursor: pointer;
    transition: all .15s;
}
.has-search-toggle:hover,
.has-darkmode-toggle:hover {
    background: var(--has-mint);
    border-color: var(--has-forest-m);
    color: var(--has-forest);
}
.has-dm-icon-dark { display: none; }

/* Search bar */
.has-search-bar {
    border-top: 1px solid var(--has-border);
    padding: .85rem 0;
    background: var(--has-cream);
    animation: hasSlideDown .2s ease;
}
@keyframes hasSlideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.has-search-form {
    display: flex;
    gap: .65rem;
    align-items: center;
}
.has-search-input {
    flex: 1;
    padding: .7rem 1rem;
    border: 1.5px solid var(--has-border-m);
    border-radius: 99px;
    background: white;
    font-family: var(--has-font-body);
    font-size: .9rem;
    outline: none;
    transition: all .15s;
}
.has-search-input:focus { border-color: var(--has-forest-m); box-shadow: 0 0 0 3px rgba(45,122,86,.1); }
.has-search-submit {
    width: 40px; height: 40px;
    background: var(--has-forest);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.has-search-submit:hover { background: var(--has-forest-m); }
.has-search-form-full { margin: 1.25rem 0; }

/* Hamburger */
.has-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.has-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--has-ink);
    border-radius: 2px;
    transition: all .3s;
}
.has-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.has-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.has-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ──────────────────────────────────── */
.has-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 850;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    backdrop-filter: blur(2px);
}
.has-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.has-mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 90vw);
    background: white;
    z-index: 900;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.25,.1,.25,1);
    overflow-y: auto;
    box-shadow: -4px 0 40px rgba(0,0,0,.12);
}
.has-mobile-menu.is-open { transform: translateX(0); }
.has-mobile-menu-inner { padding: 0 0 2rem; }
.has-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--has-border);
    background: var(--has-forest);
    color: white;
}
.has-mobile-logo { font-family: var(--has-font-head); font-weight: 700; font-size: .95rem; }
.has-mobile-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.has-mobile-close:hover { background: rgba(255,255,255,.25); }
.has-mobile-search {
    display: flex;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--has-border);
}
.has-mobile-search input {
    flex: 1;
    padding: .55rem .9rem;
    border: 1.5px solid var(--has-border-m);
    border-radius: 8px;
    font-family: var(--has-font-body);
    font-size: .875rem;
    outline: none;
}
.has-mobile-search input:focus { border-color: var(--has-forest-m); }
.has-mobile-search button {
    background: var(--has-forest);
    color: white;
    border: none;
    border-radius: 8px;
    padding: .55rem .85rem;
    cursor: pointer;
    font-size: .875rem;
}
.has-mobile-nav-list {
    list-style: none;
    padding: .75rem 1.5rem;
    margin: 0;
}
.has-mobile-nav-list li a {
    display: block;
    padding: .72rem .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--has-ink-m);
    text-decoration: none;
    border-bottom: 1px solid var(--has-border);
    transition: color .15s;
}
.has-mobile-nav-list li a:hover { color: var(--has-forest); }
.has-mobile-section-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--has-ink-l);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .65rem;
}
.has-mobile-quick-links { padding: 1.25rem 1.5rem; border-top: 1px solid var(--has-border); }
.has-mobile-quick-btn {
    display: block;
    padding: .65rem .85rem;
    background: var(--has-cream);
    border: 1px solid var(--has-border);
    border-radius: 9px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--has-ink-m);
    margin-bottom: .5rem;
    text-decoration: none;
    transition: all .15s;
}
.has-mobile-quick-btn:hover { background: var(--has-mint); color: var(--has-forest); border-color: var(--has-forest-m); }
.has-mobile-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--has-border); }

/* ── MAIN LAYOUT ──────────────────────────────────── */
.has-main { flex: 1; }

/* ── POSTS GRID ───────────────────────────────────── */
.has-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.has-posts-grid-home { margin-top: 1.5rem; }
@media (max-width: 1100px) { .has-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .has-posts-grid { grid-template-columns: 1fr; } }

/* Post card */
.has-post-card {
    background: white;
    border-radius: var(--has-r-lg);
    border: 1px solid var(--has-border);
    overflow: hidden;
    transition: all .22s;
    display: flex;
    flex-direction: column;
}
.has-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--has-shadow-l);
    border-color: var(--has-mint);
}
.has-card-img-link { display: block; overflow: hidden; position: relative; aspect-ratio: 16/9; }
.has-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.has-post-card:hover .has-card-img { transform: scale(1.04); }
.has-card-cat-overlay {
    position: absolute;
    bottom: .65rem; left: .65rem;
    background: var(--has-forest);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 6px;
}
.has-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.has-card-badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }
.has-card-title {
    font-family: var(--has-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .6rem;
    line-height: 1.35;
}
.has-card-title a { color: var(--has-ink); text-decoration: none; transition: color .15s; }
.has-card-title a:hover { color: var(--has-forest-m); }
.has-card-excerpt { font-size: .855rem; color: var(--has-ink-m); line-height: 1.65; margin: 0 0 auto; flex: 1; }
.has-card-footer-meta {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--has-border);
    font-size: .75rem;
    color: var(--has-ink-l);
}

/* ── ARCHIVE HEADER ───────────────────────────────── */
.has-archive-header {
    padding: 2rem 0 1.75rem;
    border-bottom: 2px solid var(--has-border);
    margin-bottom: 2rem;
}
.has-archive-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 .5rem;
}
.has-archive-desc { color: var(--has-ink-m); max-width: 620px; font-size: .95rem; }

/* ── SINGLE POST ──────────────────────────────────── */
.has-single-post { max-width: 820px; }
.has-single-header { margin-bottom: 1.75rem; }
.has-single-meta-top { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.has-single-title {
    font-size: clamp(1.7rem, 3.8vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.has-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
    font-size: .8rem;
    color: var(--has-ink-l);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--has-border);
}
.has-meta-author {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--has-ink-m);
    font-weight: 600;
}
.has-meta-author a { color: var(--has-forest-m); text-decoration: none; }
.has-author-avatar { border-radius: 50%; }
.has-single-excerpt { margin-top: .85rem; }

.has-single-featured-img {
    margin: 1.5rem 0 2rem;
    border-radius: var(--has-r-lg);
    overflow: hidden;
    box-shadow: var(--has-shadow-m);
}
.has-thumb-img { width: 100%; height: auto; display: block; }

/* Share bar */
.has-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 1.1rem 1.25rem;
    background: var(--has-cream);
    border-radius: var(--has-r-md);
    margin: 1.75rem 0;
    border: 1px solid var(--has-border);
}
.has-share-label { font-size: .8rem; font-weight: 700; color: var(--has-ink-l); flex-shrink: 0; }
.has-share-btns { display: flex; gap: .45rem; flex-wrap: wrap; }
.has-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .42rem .9rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .15s;
    font-family: var(--has-font-body);
}
.has-share-wa { background: #25d366; color: white; }
.has-share-fb { background: #1877f2; color: white; }
.has-share-tw { background: #000; color: white; }
.has-share-tg { background: #0088cc; color: white; }
.has-share-copy { background: var(--has-mint); color: var(--has-forest); }
.has-share-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Post tags */
.has-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 1.5rem 0;
}
.has-tags-label { font-size: .8rem; font-weight: 700; color: var(--has-ink-l); }
.has-tag-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--has-forest-m);
    background: var(--has-mint);
    padding: .22rem .65rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
}
.has-tag-link:hover { background: var(--has-forest); color: white; }

/* Article doa */
.has-article-doa {
    background: linear-gradient(135deg, #064e3b, var(--has-forest-m));
    color: white;
    padding: 1.5rem;
    border-radius: var(--has-r-lg);
    text-align: center;
    margin: 2rem 0;
}
.has-article-doa .has-arabic { color: rgba(255,255,255,.9); font-size: 1.35rem; margin-bottom: .5rem; }
.has-doa-trans { font-size: .875rem; color: rgba(255,255,255,.78); margin: 0; }

/* AI promo box */
.has-ai-promo-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--has-gold-xl);
    border: 1.5px solid var(--has-gold-l);
    border-radius: var(--has-r-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    flex-wrap: wrap;
}
.has-ai-promo-icon { font-size: 2.25rem; flex-shrink: 0; }
.has-ai-promo-text { flex: 1; min-width: 200px; }
.has-ai-promo-text strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.has-ai-promo-text p { font-size: .845rem; color: var(--has-ink-m); margin: 0; }

/* Author box */
.has-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--has-cream);
    border: 1px solid var(--has-border);
    border-radius: var(--has-r-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}
.has-author-box-avatar { border-radius: 50%; flex-shrink: 0; }
.has-author-box-info { flex: 1; }
.has-author-box-name { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; }
.has-author-box-name a { color: var(--has-forest-m); text-decoration: none; }
.has-author-box-bio { font-size: .875rem; color: var(--has-ink-m); margin: 0 0 .85rem; line-height: 1.65; }

/* Related posts */
.has-related-posts { margin: 2.5rem 0; }
.has-related-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--has-border);
}
.has-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}
.has-related-card {
    background: white;
    border-radius: var(--has-r-md);
    border: 1px solid var(--has-border);
    overflow: hidden;
    text-decoration: none;
    color: var(--has-ink);
    transition: all .2s;
    display: block;
}
.has-related-card:hover { transform: translateY(-2px); box-shadow: var(--has-shadow-m); border-color: var(--has-mint); }
.has-related-img { width: 100%; height: 100px; object-fit: cover; }
.has-related-body { padding: .75rem; }
.has-related-body h4 { font-size: .845rem; font-weight: 700; margin: 0 0 .25rem; line-height: 1.4; }
.has-related-body span { font-size: .72rem; color: var(--has-ink-l); }

/* Post navigation */
.has-post-navigation { margin: 2rem 0; }
.has-post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .has-post-nav-grid { grid-template-columns: 1fr; } }
.has-post-nav-item {
    background: white;
    border: 1.5px solid var(--has-border);
    border-radius: var(--has-r-md);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.has-post-nav-item:hover { border-color: var(--has-forest-m); background: var(--has-mint-l); }
.has-post-nav-next { text-align: right; }
.has-nav-label { font-size: .72rem; font-weight: 700; color: var(--has-ink-l); text-transform: uppercase; letter-spacing: .06em; }
.has-nav-title { font-size: .875rem; font-weight: 700; color: var(--has-ink); line-height: 1.4; }

/* ── SIDEBAR ──────────────────────────────────────── */
.has-sidebar { position: sticky; top: 80px; }
.has-widget { background: white; border-radius: var(--has-r-lg); border: 1px solid var(--has-border); padding: 1.5rem; margin-bottom: 1.5rem; }
.widget-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--has-ink);
    margin: 0 0 1.1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--has-border);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.has-widget-about-body { text-align: center; }
.has-widget-about-icon { font-size: 3rem; margin-bottom: .75rem; }
.has-widget-about-body p { font-size: .85rem; color: var(--has-ink-m); line-height: 1.7; }

/* Sidebar posts */
.has-sidebar-posts { list-style: none; padding: 0; margin: 0; }
.has-sidebar-post-item { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--has-border); }
.has-sidebar-post-item:last-child { border: none; padding-bottom: 0; }
.has-sidebar-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--has-r-sm); overflow: hidden; }
.has-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.has-sidebar-post-info { flex: 1; min-width: 0; }
.has-sidebar-post-title { font-size: .83rem; font-weight: 600; color: var(--has-ink); text-decoration: none; line-height: 1.4; display: block; margin-bottom: .2rem; }
.has-sidebar-post-title:hover { color: var(--has-forest-m); }
.has-sidebar-post-meta { font-size: .72rem; color: var(--has-ink-l); }

/* Sidebar cats */
.has-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.has-sidebar-cats li { border-bottom: 1px solid var(--has-border); }
.has-sidebar-cats li:last-child { border: none; }
.has-sidebar-cats a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; font-size: .855rem; color: var(--has-ink-m); text-decoration: none; transition: color .15s; }
.has-sidebar-cats a:hover { color: var(--has-forest); }
.has-sidebar-cats .children { padding-left: 1rem; }

/* Verse widget */
.has-widget-verse { background: linear-gradient(135deg, #064e3b, var(--has-forest-m)); border-color: transparent; }
.has-widget-verse .widget-title { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.15); }
.has-widget-verse-body { text-align: center; }
.has-arabic-sm { font-size: 1rem; line-height: 1.85; }
.has-widget .has-arabic-sm { color: rgba(255,255,255,.88); }
.has-verse-ref { font-size: .75rem; color: rgba(255,255,255,.6); margin: .5rem 0 0; }

/* AI promo widget */
.has-ai-promo-widget { text-align: center; }
.has-ai-promo-widget .has-ai-promo-icon { font-size: 2.5rem; margin-bottom: .65rem; display: block; }
.has-ai-promo-widget h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.has-ai-promo-widget p { font-size: .83rem; color: var(--has-ink-m); margin-bottom: .85rem; }

/* Quick links widget */
.has-quick-links-widget { list-style: none; padding: 0; margin: 0; }
.has-quick-link-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .58rem .5rem;
    font-size: .855rem; font-weight: 600;
    color: var(--has-ink-m);
    text-decoration: none;
    border-bottom: 1px solid var(--has-border);
    transition: all .15s;
}
.has-quick-link-item:last-child { border: none; }
.has-quick-link-item:hover { color: var(--has-forest); padding-left: .85rem; }

/* Social widget */
.has-social-widget { display: flex; flex-wrap: wrap; gap: .5rem; }
.has-social-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .85rem;
    border-radius: 8px;
    font-size: .78rem; font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    background: var(--has-cream);
    color: var(--has-ink-m);
    border: 1px solid var(--has-border);
}
.has-social-btn:hover { background: var(--has-forest); color: white; border-color: var(--has-forest); }

/* Stats widget */
.has-stats-widget { display: flex; gap: .85rem; }
.has-stat-item { flex: 1; text-align: center; background: var(--has-cream); border-radius: var(--has-r-sm); padding: .85rem .5rem; border: 1px solid var(--has-border); }
.has-stat-item strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--has-forest); line-height: 1; }
.has-stat-item span { font-size: .68rem; color: var(--has-ink-l); margin-top: .2rem; display: block; }

/* ── HOMEPAGE ─────────────────────────────────────── */
.has-home-hero {
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #0c2b1d 0%, var(--has-forest) 50%, var(--has-forest-m) 100%);
    display: flex;
    align-items: center;
    padding: 5rem 0;
}
.has-home-hero-bg {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L53 27L80 40L53 53L40 80L27 53L0 40L27 27Z' fill='%23ffffff' fill-opacity='.03'/%3E%3C/svg%3E");
    background-size: 80px;
}
#has-rain { position: absolute; inset: 0; opacity: .38; pointer-events: none; }
.has-home-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
@media (max-width: 900px) { .has-home-hero-inner { grid-template-columns: 1fr; } .has-home-hero-visual { display: none; } }
.has-home-bismillah { font-family: var(--has-font-ara); font-size: 1.65rem; color: rgba(255,255,255,.52); text-align: right; margin-bottom: .4rem; direction: rtl; }
.has-home-hero-badge {
    margin-bottom: 1rem;
}
.has-home-hero-badge span {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.18);
    padding: .38rem .95rem; border-radius: 99px;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em;
    backdrop-filter: blur(6px);
}
.has-home-hero-title {
    font-family: var(--has-font-head);
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 900; color: white;
    line-height: 1.1; margin-bottom: 1.15rem;
}
.has-home-hero-title em { font-style: italic; color: #6ee7b7; }
.has-home-hero-sub { font-size: 1.02rem; color: rgba(255,255,255,.76); line-height: 1.78; margin-bottom: 1.85rem; max-width: 500px; }
.has-home-hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; }
.has-home-hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.has-hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: white; line-height: 1; }
.has-hero-stat span { font-size: .75rem; color: rgba(255,255,255,.62); margin-top: .12rem; display: block; }
.has-hero-card-float { display: flex; flex-direction: column; gap: .75rem; }
.has-hero-float-item {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
    padding: 1rem 1.25rem; color: white;
    animation: hasFloat 3s ease-in-out infinite;
}
.has-hero-float-item:nth-child(2) { animation-delay: .75s; margin-left: 1.5rem; }
.has-hero-float-item:nth-child(3) { animation-delay: 1.5s; }
.has-hero-float-item:nth-child(4) { animation-delay: 2.25s; margin-left: 1.5rem; }
.has-hero-float-item span { font-size: 1.75rem; flex-shrink: 0; }
.has-hero-float-item strong { display: block; font-size: .9rem; font-weight: 700; }
.has-hero-float-item small { font-size: .72rem; color: rgba(255,255,255,.65); }
@keyframes hasFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* Features strip */
.has-home-features { background: white; padding: 0; }
.has-home-features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 2px solid var(--has-border);
}
@media (max-width:1100px) { .has-home-features-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:640px)  { .has-home-features-grid { grid-template-columns: repeat(2,1fr); } }
.has-home-feature-card {
    display: flex; flex-direction: column; align-items: center;
    gap: .45rem; padding: 1.5rem 1rem;
    text-align: center; text-decoration: none;
    border-right: 1px solid var(--has-border);
    transition: all .2s; color: var(--has-ink);
}
.has-home-feature-card:last-child { border-right: none; }
.has-home-feature-card:hover { background: var(--has-mint-l); }
.has-home-feature-icon { font-size: 1.65rem; display: block; }
.has-home-feature-card strong { font-size: .82rem; font-weight: 700; color: var(--has-ink); }
.has-home-feature-card span { font-size: .72rem; color: var(--has-ink-l); }

/* Home articles section */
.has-home-articles { padding: 4rem 0; }
.has-home-section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
}
.has-section-heading { margin-bottom: 2rem; }

/* ── FOOTER ───────────────────────────────────────── */
.has-footer { background: #0c2418; margin-top: 0; }

/* CTA strip */
.has-footer-cta {
    background: linear-gradient(135deg, #1a4731, var(--has-forest-m));
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.has-footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.has-footer-cta-text h3 { font-size: 1.25rem; font-weight: 700; color: white; margin: 0 0 .35rem; }
.has-footer-cta-text p { color: rgba(255,255,255,.75); font-size: .875rem; margin: 0; }
.has-footer-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Footer widgets */
.has-footer-widgets { padding: 3rem 0 2rem; }
.has-footer-widgets-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .has-footer-widgets-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .has-footer-widgets-grid { grid-template-columns: 1fr; gap: 2rem; } }
.has-footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.has-footer-brand-icon { font-size: 1.35rem; }
.has-footer-brand-name { font-family: var(--has-font-head); font-size: 1rem; color: white; font-weight: 700; }
.has-footer-tagline { font-size: .845rem; color: rgba(255,255,255,.62); line-height: 1.7; max-width: 290px; margin: 0 0 1.1rem; }
.has-footer-quran { margin-top: .85rem; }
.has-footer-quran .has-arabic { font-size: 1rem; color: rgba(255,255,255,.52); line-height: 2; }
.has-footer-quran-trans { font-size: .72rem; color: rgba(255,255,255,.32); margin: .2rem 0 0; }
.has-footer-col-title { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.has-footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .42rem; }
.has-footer-menu a { font-size: .845rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.has-footer-menu a:hover { color: #6ee7b7; }

/* Footer bottom */
.has-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.25rem 0; }
.has-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.has-footer-copy { font-size: .78rem; color: rgba(255,255,255,.45); }
.has-footer-copy a { color: rgba(255,255,255,.6); text-decoration: none; }
.has-footer-copy a:hover { color: #6ee7b7; }
.has-footer-bottom-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.has-footer-bottom-menu a { font-size: .75rem; color: rgba(255,255,255,.4); text-decoration: none; }
.has-footer-bottom-menu a:hover { color: rgba(255,255,255,.75); }

/* ── BACK TO TOP ──────────────────────────────────── */
.has-back-to-top {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    width: 44px; height: 44px;
    background: var(--has-forest);
    color: white;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--has-shadow-m);
    transition: all .2s;
    z-index: 700;
    opacity: 0; transform: translateY(10px);
}
.has-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.has-back-to-top:hover { background: var(--has-forest-m); transform: translateY(-2px); }

/* ── TOAST ────────────────────────────────────────── */
.has-toast {
    position: fixed;
    bottom: 1.75rem; left: 50%; transform: translateX(-50%);
    background: var(--has-forest);
    color: white;
    padding: .72rem 1.5rem;
    border-radius: 99px;
    font-size: .845rem;
    font-weight: 700;
    z-index: 9999;
    box-shadow: var(--has-shadow-l);
    white-space: nowrap;
    animation: hasSlideDown .3s ease;
}

/* ── COMMENTS ─────────────────────────────────────── */
.has-comments-area { margin: 2.5rem 0; }
.has-comments-area .comment-list { list-style: none; padding: 0; margin: 0; }
.has-comments-area .comment { padding: 1.25rem; background: white; border-radius: var(--has-r-md); border: 1px solid var(--has-border); margin-bottom: 1rem; }
.has-comments-area .children { padding-left: 1.5rem; margin-top: 1rem; }
.has-comments-area .comment-author .fn { font-weight: 700; font-size: .9rem; }
.has-comments-area .comment-meta { font-size: .75rem; color: var(--has-ink-l); margin-bottom: .65rem; }
.has-comments-area .comment-content p { font-size: .9rem; line-height: 1.7; }
.has-comment-form label { display: block; font-size: .83rem; font-weight: 700; margin-bottom: .38rem; }
.has-comment-form input[type="text"],
.has-comment-form input[type="email"],
.has-comment-form input[type="url"] { width: 100%; padding: .68rem 1rem; border: 1.5px solid var(--has-border-m); border-radius: 9px; font-family: var(--has-font-body); font-size: .9rem; outline: none; margin-bottom: .85rem; }
.has-comment-form textarea { width: 100%; min-height: 130px; padding: .72rem 1rem; border: 1.5px solid var(--has-border-m); border-radius: 9px; font-family: var(--has-font-body); font-size: .9rem; outline: none; resize: vertical; }
.has-comment-form input:focus, .has-comment-form textarea:focus { border-color: var(--has-forest-m); }
.has-comment-form input[type="submit"] { background: var(--has-forest); color: white; border: none; padding: .78rem 2rem; border-radius: 99px; font-family: var(--has-font-body); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s; margin-top: .85rem; }
.has-comment-form input[type="submit"]:hover { background: var(--has-forest-m); }

/* ── PAGE TEMPLATES ───────────────────────────────── */
.has-single-page { max-width: 820px; }
.has-single-page .has-entry-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 900; margin-bottom: 1.5rem; }

/* ── 404 ──────────────────────────────────────────── */
.has-404-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 4rem 0; }
.has-404-inner { text-align: center; max-width: 520px; }
.has-404-emoji { font-size: 4rem; margin-bottom: .75rem; animation: hasFloat 3s ease-in-out infinite; }
.has-404-title { font-family: var(--has-font-head); font-size: 5rem; font-weight: 900; color: var(--has-forest); line-height: 1; margin-bottom: .5rem; }
.has-404-subtitle { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.has-404-desc { font-size: .95rem; color: var(--has-ink-m); line-height: 1.7; margin-bottom: 1.5rem; }
.has-404-verse { background: var(--has-mint-l); border-radius: var(--has-r-md); padding: 1.25rem; margin: 1.25rem 0 1.75rem; border: 1px solid var(--has-mint); }
.has-404-verse .has-arabic { font-size: 1.1rem; color: var(--has-forest); margin-bottom: .35rem; }
.has-404-verse small { font-size: .8rem; color: var(--has-ink-l); }
.has-404-actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.has-404-search { display: flex; gap: .65rem; max-width: 420px; margin: 0 auto; }
.has-404-search .has-input { flex: 1; border-radius: 99px; }

/* ── NO RESULTS ───────────────────────────────────── */
.has-no-results { text-align: center; padding: 4rem 2rem; }
.has-no-results-icon { font-size: 3.5rem; margin-bottom: .85rem; }
.has-no-results h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .65rem; }
.has-no-results p { color: var(--has-ink-m); margin-bottom: 1.5rem; }
.has-no-results .has-search-form { max-width: 400px; margin: 0 auto; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
    .has-primary-nav { display: none; }
    .has-hamburger { display: flex; }
    .has-nct .has-btn { display: none; }
    .has-home-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .has-footer-cta-inner { flex-direction: column; text-align: center; }
    .has-footer-cta-actions { justify-content: center; }
    .has-author-box { flex-direction: column; text-align: center; }
    .has-share-bar { flex-direction: column; align-items: flex-start; }
    .has-sidebar { position: static; margin-top: 2rem; }
}
@media (max-width: 480px) {
    .has-home-hero-btns { flex-direction: column; }
    .has-home-hero-btns .has-btn { justify-content: center; }
    .has-related-grid { grid-template-columns: 1fr 1fr; }
}

/* ── DARK MODE ────────────────────────────────────── */
body.has-dark-mode {
    --has-cream:   #111b14;
    --has-cream-d: #0d1610;
    --has-white:   #1a2e1e;
    --has-ink:     #e8f5ee;
    --has-ink-m:   #b8d4c1;
    --has-ink-l:   #6b9479;
    --has-border:  rgba(74,173,122,.15);
    --has-border-m:rgba(74,173,122,.25);
    background: var(--has-cream);
    color: var(--has-ink);
}
body.has-dark-mode .has-header { background: rgba(17,27,20,.97); border-color: rgba(74,173,122,.15); }
body.has-dark-mode .has-post-card,
body.has-dark-mode .has-card-body,
body.has-dark-mode .has-widget,
body.has-dark-mode .has-sidebar-cats a { background: var(--has-white); color: var(--has-ink-m); }
body.has-dark-mode .has-card-title a,
body.has-dark-mode .has-single-title { color: var(--has-ink); }
body.has-dark-mode .has-dm-icon-light { display: none; }
body.has-dark-mode .has-dm-icon-dark  { display: block; }
