/*
Theme Name:   Dua360 Child
Theme URI:    https://dua360.org
Description:  Child theme for Dua360 - Islamic Supplication Library
Author:       Dua360
Template:     astra
Version:      1.0.0
Text Domain:  dua360-child
*/

/* ============================================
   LAYOUT & STRUCTURE
   ============================================ */

/* --- Reset & Base --- */
body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #222;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* --- Site Container --- */
.dua360-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Islamic Date Bar --- */
.dua360-islamicbar {
    background: #1a3a35;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 5px 16px;
    font-family: Georgia, serif;
    letter-spacing: 0.04em;
}

.dua360-islamicbar .dua360-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Site Header --- */
.dua360-header {
    background: #1a5c52;
    color: #fff;
    padding: 16px 0;
    border-bottom: 4px solid #c9a96e;
}

.dua360-header .dua360-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.dua360-site-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.dua360-site-title span {
    font-size: 14px;
    display: block;
    color: #a8d5cc;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.04em;
}

/* --- Navigation --- */
.dua360-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dua360-nav a {
    color: #d4ede6;
    text-decoration: none;
    font-size: 14px;
}

.dua360-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Search Bar --- */
.dua360-search {
    display: flex;
    gap: 6px;
}

.dua360-search input {
    padding: 6px 12px;
    border: 1px solid #9FE1CB;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    width: 200px;
}

.dua360-search button {
    padding: 6px 14px;
    background: #c9a96e;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

/* --- Breadcrumb --- */
.dua360-breadcrumb {
    background: #e8e8e8;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.dua360-breadcrumb a {
    color: #1a5c52;
    text-decoration: none;
}

.dua360-breadcrumb a:hover {
    text-decoration: underline;
}

/* --- Main Layout --- */
.dua360-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 24px 0;
    align-items: start;
}

@media (max-width: 768px) {
    .dua360-main {
        grid-template-columns: 1fr;
    }
}

/* --- Content Area --- */
.dua360-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 28px 32px;
}

/* --- Sidebar --- */
.dua360-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dua360-sidebar-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
}

.dua360-sidebar-box h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a5c52;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dua360-sidebar-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dua360-sidebar-box ul li {
    border-bottom: 1px solid #f0f0f0;
}

.dua360-sidebar-box ul li:last-child {
    border-bottom: none;
}

.dua360-sidebar-box ul li a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    color: #1a5c52;
    text-decoration: none;
}

.dua360-sidebar-box ul li a:hover {
    color: #6b2020;
    padding-left: 4px;
}

/* Nested subcategories */
.dua360-sidebar-box ul ul {
    padding-left: 12px;
}

.dua360-sidebar-box ul ul li a {
    font-size: 12px;
    color: #888;
    padding: 4px 0;
}

/* --- Footer --- */
.dua360-footer {
    background: #1a3a35;
    color: #8bbdb6;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
    border-top: 3px solid #c9a96e;
}

.dua360-footer a {
    color: #9FE1CB;
    text-decoration: none;
}

/* ============================================
   ARCHIVE PAGE — Dua List
   ============================================ */

.dua360-archive-title {
    font-size: 22px;
    color: #1a3a35;
    margin: 0 0 6px;
}

.dua360-archive-count {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px;
}

/* Category Filter Tabs */
.dua360-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.dua360-cat-filter a {
    padding: 5px 14px;
    border: 1px solid #1a5c52;
    border-radius: 20px;
    font-size: 13px;
    color: #1a5c52;
    text-decoration: none;
    transition: all 0.15s;
}

.dua360-cat-filter a:hover,
.dua360-cat-filter a.active {
    background: #1a5c52;
    color: #fff;
}

/* Dua List Items */
.dua360-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dua360-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.dua360-list-item:last-child {
    border-bottom: none;
}

.dua360-list-item:hover {
    padding-left: 6px;
}

.dua360-list-item-left {
    flex: 1;
}

.dua360-list-item-num {
    font-size: 11px;
    color: #1a5c52;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 2px;
}

.dua360-list-item-title {
    font-size: 16px;
    color: #1a3a35;
    font-weight: 600;
    margin: 0 0 3px;
}

.dua360-list-item:hover .dua360-list-item-title {
    color: #6b2020;
}

/* Arabic font size fix — bumped from 15px to 22px */
.dua360-list-item-arabic {
    font-size: 22px;
    color: #666;
    direction: rtl;
    font-family: 'Amiri', 'Traditional Arabic', 'Arabic Typesetting', Georgia, serif;
    margin: 0;
    line-height: 1.8;
}

.dua360-list-item-cat {
    font-size: 11px;
    color: #999;
    margin: 3px 0 0;
}

.dua360-list-item-arrow {
    color: #c9a96e;
    font-size: 18px;
    margin-left: 16px;
}

/* ============================================
   SINGLE DUA PAGE
   ============================================ */

.dua360-single-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.dua360-single-cat {
    font-size: 11px;
    color: #1a5c52;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
}

.dua360-single-cat a {
    color: #1a5c52;
    text-decoration: none;
}

.dua360-single-title {
    font-size: 26px;
    color: #1a3a35;
    margin: 0 0 4px;
    line-height: 1.2;
}

.dua360-single-title-ar {
    font-size: 22px;
    color: #888;
    direction: rtl;
    font-family: 'Amiri', 'Traditional Arabic', 'Arabic Typesetting', Georgia, serif;
    margin: 0;
    line-height: 1.8;
}

/* Arabic Text Block */
.dua360-arabic-block {
    background: #f0faf6;
    border: 1px solid #b4d4cc;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.dua360-arabic-text {
    font-size: 28px;
    line-height: 2.2;
    color: #1a3a35;
    direction: rtl;
    font-family: 'Amiri', 'Traditional Arabic', 'Arabic Typesetting', Georgia, serif;
    margin: 0 0 12px;
}

.dua360-transliteration {
    font-size: 14px;
    color: #1a5c52;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* Field Sections */
.dua360-field {
    margin-bottom: 20px;
}

.dua360-field-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin: 0 0 6px;
    font-family: Georgia, serif;
}

.dua360-field-value {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

.dua360-field-value.occasion {
    background: #faf8f3;
    border-left: 3px solid #c9a96e;
    padding: 10px 14px;
    font-style: italic;
    color: #555;
    font-size: 14px;
}

.dua360-field-value.reference {
    color: #1a5c52;
    font-size: 14px;
    font-style: italic;
}

/* Action Bar — Share & Bookmark */
.dua360-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin: 20px 0 0;
    border-top: 1px solid #eee;
}

.dua360-actions-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
}

.dua360-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.15s;
    font-family: Georgia, serif;
}

.dua360-btn-bookmark {
    background: #fff;
    border-color: #c9a96e;
    color: #8a6a30;
}

.dua360-btn-bookmark:hover,
.dua360-btn-bookmark.bookmarked {
    background: #c9a96e;
    color: #fff;
}

.dua360-btn-share-wa { background: #fff; border-color: #25d366; color: #25d366; }
.dua360-btn-share-wa:hover { background: #25d366; color: #fff; }

.dua360-btn-share-x { background: #fff; border-color: #333; color: #333; }
.dua360-btn-share-x:hover { background: #333; color: #fff; }

.dua360-btn-share-tg { background: #fff; border-color: #0088cc; color: #0088cc; }
.dua360-btn-share-tg:hover { background: #0088cc; color: #fff; }

.dua360-btn-copy { background: #fff; border-color: #ddd; color: #666; }
.dua360-btn-copy:hover { background: #f5f5f5; }

/* Navigation between duas */
.dua360-dua-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.dua360-dua-nav a {
    font-size: 14px;
    color: #1a5c52;
    text-decoration: none;
    padding: 6px 0;
}

.dua360-dua-nav a:hover { color: #6b2020; }

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.dua360-search-results-form { margin-bottom: 20px; }

.dua360-search-wrap {
    display: flex;
    gap: 8px;
}

.dua360-search-input-lg {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    font-family: Georgia, serif;
    color: #333;
    background: #fafafa;
}

.dua360-search-input-lg:focus {
    outline: none;
    border-color: #1a5c52;
    background: #fff;
}

.dua360-search-btn-lg {
    padding: 10px 20px;
    background: #1a5c52;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    font-family: Georgia, serif;
}

.dua360-search-btn-lg:hover { background: #0f3d35; }

.dua360-results-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.dua360-results-count { font-size: 14px; color: #666; margin: 0; font-family: Georgia, serif; }
.dua360-results-none { color: #c00; }
.dua360-search-excerpt { font-size: 13px; color: #888; margin: 3px 0 0; font-style: italic; font-family: Georgia, serif; line-height: 1.5; }

.dua360-pagination { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; display: flex; gap: 8px; flex-wrap: wrap; }
.dua360-pagination .page-numbers { padding: 6px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: #1a5c52; text-decoration: none; }
.dua360-pagination .page-numbers.current { background: #1a5c52; color: #fff; border-color: #1a5c52; }

.dua360-no-results { padding: 24px 0; }
.dua360-no-results-tip { font-size: 15px; color: #555; margin: 0 0 12px; }
.dua360-no-results-suggestions { list-style: none; padding: 0; margin: 0; }
.dua360-no-results-suggestions li { padding: 6px 0; font-size: 14px; color: #666; font-family: Georgia, serif; border-bottom: 1px solid #f5f5f5; }
.dua360-no-results-suggestions a { color: #1a5c52; font-weight: 600; }

/* ============================================
   HOMEPAGE
   ============================================ */
.dua360-hero {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
}

.dua360-hero-inner {
    text-align: center;
    padding: 32px 20px 28px;
}

.dua360-hero-ar {
    font-family: 'Amiri', Georgia, serif;
    font-size: 18px;
    color: #999;
    direction: rtl;
    margin-bottom: 4px;
}

.dua360-hero-title {
    font-family: Georgia, serif;
    font-size: 40px;
    color: #1a3a35;
    font-weight: 700;
    margin-bottom: 6px;
}

.dua360-hero-tagline {
    font-size: 15px;
    color: #666;
    font-family: Georgia, serif;
    margin-bottom: 6px;
}

.dua360-hero-count {
    font-size: 13px;
    color: #1a5c52;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.dua360-hero-search {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dua360-hero-search input {
    flex: 1;
    padding: 11px 20px;
    border: none;
    font-size: 14px;
    font-family: Georgia, serif;
    color: #333;
    background: #fff;
    outline: none;
}

.dua360-hero-search button {
    padding: 11px 22px;
    background: #1a5c52;
    color: #fff;
    border: none;
    font-size: 14px;
    font-family: Georgia, serif;
    cursor: pointer;
    white-space: nowrap;
}

.dua360-hero-search button:hover { background: #0f3d35; }

/* Homepage 2-column grid */
.dua360-home-grid {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 32px;
    align-items: start;
    padding: 24px 0 36px;
}

.dua360-home-main  { min-width: 0; }
.dua360-home-sidebar { min-width: 0; }

.dua360-home-section { margin-bottom: 32px; }

.dua360-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a5c52;
}

.dua360-section-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #1a3a35;
    font-weight: 700;
    margin: 0;
}

.dua360-section-link {
    font-size: 12px;
    color: #1a5c52;
    font-family: Georgia, serif;
    text-decoration: none;
}

.dua360-section-link:hover { text-decoration: underline; }
.dua360-section-meta { font-size: 12px; color: #888; font-family: Georgia, serif; }

/* Category cards */
.dua360-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.dua360-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.dua360-cat-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
    border-color: #1a5c52;
    text-decoration: none;
}

.dua360-cat-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
    display: block;
}

.dua360-cat-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a3a35;
    font-family: Georgia, serif;
    margin: 0 0 4px;
    line-height: 1.3;
}

.dua360-cat-card-count {
    font-size: 12px;
    color: #1a5c52;
    font-family: Georgia, serif;
    margin: 0;
}

.dua360-cat-card-sub {
    font-size: 11px;
    color: #aaa;
    font-family: Georgia, serif;
    margin: 2px 0 0;
}

/* Dua of the Day */
.dua360-dotd {
    background: #fff;
    border: 1px solid #ddd;
   /* border-top: 3px solid #1a5c52; */
    border-radius: 4px;
    padding: 20px 24px;
}

.dua360-dotd-title {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a3a35;
    margin: 0 0 12px;
}

.dua360-dotd-arabic {
    font-family: 'Amiri', Georgia, serif;
    font-size: 24px;
    direction: rtl;
    text-align: right;
    color: #1a3a35;
    line-height: 2;
    margin-bottom: 12px;
}

.dua360-dotd-translit {
    font-size: 13px;
    color: #1a5c52;
    font-style: italic;
    font-family: Georgia, serif;
    line-height: 1.6;
    margin-bottom: 10px;
}

.dua360-dotd-english {
    font-size: 14px;
    color: #555;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 14px;
}

.dua360-dotd-link {
    display: inline-block;
    font-size: 12px;
    color: #1a5c52;
    font-family: Georgia, serif;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid #1a5c52;
    border-radius: 20px;
}

.dua360-dotd-link:hover { background: #1a5c52; color: #fff; text-decoration: none; }

.dua360-sidebar-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #1a5c52;
    font-family: Georgia, serif;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 860px) {
    .dua360-home-grid { grid-template-columns: 1fr; gap: 24px; }
    .dua360-cat-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dua360-cat-grid { gap: 8px; }
    .dua360-cat-card { padding: 12px 8px; }
    .dua360-cat-card-icon { font-size: 22px; }
    .dua360-hero-title { font-size: 30px; }
}
/* ============================================================
   ASTRA OVERRIDES — paste at BOTTOM of style.css
   Fixes: pinkish background, purple title, purple hover color
   ============================================================ */

/* Fix body/page background — override Astra's pink/lavender */
body,
#page,
.ast-page-builder-template,
.hfeed {
    background-color: #f5f5f5 !important;
}

/* Fix Dua360 title in header — should be white, not purple */
.dua360-site-title,
.dua360-site-title:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Fix nav link hover — should be white, not purple */
.dua360-nav a:hover {
    color: #fff !important;
}

/* Fix all general link hover colors — teal, not purple */
a:hover {
    color: #1a5c52;
}

/* Fix breadcrumb links */
.dua360-breadcrumb a:hover {
    color: #1a5c52 !important;
    text-decoration: underline;
}

/* Fix sidebar link hover */
.dua360-sidebar-box ul li a:hover {
    color: #6b2020 !important;
}

/* Fix content area background — should be white */
.dua360-content {
    background: #fff !important;
}

/* Fix sidebar box background */
.dua360-sidebar-box {
    background: #fff !important;
}

/* Remove any Astra content padding that causes layout shift */
.ast-container,
.entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}


/* ============================================================
   DOTD — Arabic block styled like single dua page
   ============================================================ */
.dua360-dotd-block {
    background: #f0faf6;
    border: 1px solid #b4d4cc;
    border-radius: 4px;
    padding: 20px 20px 14px;
    margin-bottom: 14px;
    text-align: center;
}

.dua360-dotd-arabic {
    margin: 0 0 10px;
}

.dua360-dotd-translit {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #b4d4cc;
}

/* ============================================================
   Homepage fixes — paste at BOTTOM of style.css
   ============================================================ */

/* MARK 1 — Section headers use gold accent, not teal */
.dua360-section-header {
    border-bottom: 2px solid #c9a96e !important;
}

.dua360-section-title {
    color: #1a3a35;
}

/* Dua of the Day card — gold top border */
.dua360-dotd {
   /* border-top: 3px solid #c9a96e !important; */
}

/* MARK 2 — Sidebar: no gaps, seamless single panel */
.dua360-home-sidebar .dua360-sidebar {
    gap: 3 !important;
    display: block !important;
}

.dua360-home-sidebar .dua360-sidebar-box {
    border-radius: 0 !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    margin: 0 !important;
}

.dua360-home-sidebar .dua360-sidebar-box:first-child {
    border-top: 1px solid #ddd !important;
    border-radius: 4px 4px 0 0 !important;
}

.dua360-home-sidebar .dua360-sidebar-box:last-child {
    border-radius: 0 0 4px 4px !important;
}

