/*
Theme Name: Urdu Lite Pro
Theme URI: https://islamicurduhub.com
Author: Faheem Sardar
Author URI: https://islamicurduhub.com
Description: Urdu Lite Pro — Islamic Urdu Hub theme. Green & Gold, RTL-first, responsive, grid + sidebar layout, AdSense-ready.
Version: 5.6.0
License: GNU GPL v2 or later
Text Domain: urdu-lite
Tags: urdu, rtl-language-support, blog, custom-logo, seo-friendly, adsense, responsive
*/

/* === Root Variables === */
:root {
    --bg: #f7fbf8;
    --card: #fdfdf9;
    --accent: #0b6b3a;
    --gold: #c69b2e;
    --muted: #6b7280;
    --text: #0f1724;
}

/* === Base === */
body {
    margin: 0;
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
    font-size: 20px;
    line-height: 1.8;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* === Header === */
.site-header {
    background-color: var(--accent);
    padding: 0.7rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 20px;
}
.site-logo img {
    max-height: 70px;
}

/* === Search Bar === */
.search-bar form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 4px 12px;
    border: 1px solid #ccc;
}
.search-bar input {
    border: none;
    outline: none;
    padding: 7px 10px;
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
    font-size: 18px;
    border-radius: 25px;
    width: 200px;
}
.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--accent);
}
.search-bar button:hover {
    color: var(--gold);
}
.search-bar button .dashicons {
    font-size: 22px;
    color: var(--accent);
    vertical-align: middle;
}

.search-bar button:hover .dashicons {
    color: var(--gold);
}

/* === Navigation === */
.main-navigation {
    flex: 1;
    text-align: center;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: white;
    font-weight: 600;
    font-size: 20px;
}
.main-navigation a:hover {
    color: var(--gold);
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === Layout (Sidebar Right, Content Left but Urdu text RTL) === */
.home-layout,
.single-layout,
.page-layout,
.archive-layout {
    display: grid;
    grid-template-columns: 2.4fr 1fr; /* main content + sidebar */
    gap: 2rem;
    align-items: start;
    direction: ltr; /* keep grid direction normal */
}

/* Main content area (RTL for Urdu) */
.home-layout .post-grid,
.single-layout .single-post-content,
.page-layout .page-content,
.archive-layout .archive-content {
    order: 1;
    direction: rtl; /* Urdu text alignment */
    text-align: right;
}

/* Sidebar fixed on the right */
.home-layout .sidebar,
.single-layout .sidebar,
.page-layout .sidebar,
.archive-layout .sidebar {
    order: 2;
    direction: rtl; /* Urdu alignment inside sidebar */
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    height: fit-content;
}

/* === Home Post Grid (2 per row) === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    direction: rtl;
}

/* === Responsive === */
@media (max-width: 992px) {
    .home-layout,
    .single-layout,
    .page-layout,
    .archive-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
        margin-top: 1.5rem;
    }
}

/* === Posts Grid === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}
.post-card {
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.post-card h2 {
    font-size: 22px;
    color: var(--accent);
    margin: 10px 0;
}
.post-card p {
    color: var(--muted);
}
.read-more {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}
.read-more:hover {
    background: var(--gold);
    color: var(--accent);
}

/* === Sidebar === */
.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.sidebar-section {
    margin-bottom: 1.5rem;
}
.sidebar-section h3 {
    color: var(--accent);
    position: relative;
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.sidebar-section h3:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(198,155,46,0.6);
}
.prayer-times ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.prayer-times li {
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}
.ad-box {
    background: #fff8eb;
    text-align: center;
    padding: 1rem;
    border: 1px dashed var(--gold);
    border-radius: 8px;
}

/* === Single Post === */
.single-post-content article {
    background: var(--card);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.single-title {
    font-size: 28px;
    color: var(--accent);
    border-bottom: 2px solid var(--gold);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
}
.single-meta {
    color: var(--muted);
    margin-bottom: 1rem;
}
.single-thumbnail img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.single-content p {
    margin-bottom: 1.2rem;
    line-height: 2;
}
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.nav-previous a, .nav-next a {
    background: var(--accent);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.nav-previous a:hover, .nav-next a:hover {
    background: var(--gold);
    color: var(--accent);
}

/* === Pagination === */
.pagination {
    text-align: center;
    margin-top: 2rem;
}
.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 4px;
    background: var(--accent);
    color: white;
}
.pagination a:hover {
    background: var(--gold);
    color: var(--accent);
}

/* === Footer === */
/* =====================================
   FOOTER
===================================== */
.site-footer {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 3px solid var(--gold);
    font-family: "Jameel Noori Nastaleeq", serif;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}
.footer-links a {
    color: var(--gold);
    font-size: 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.footer-links a:hover {
    color: #fff;
    border-color: var(--gold);
    text-shadow: 0 0 8px rgba(198,155,46,0.6);
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 1rem;
}
.footer-social a {
    color: var(--gold);
    font-size: 22px;
    transition: all 0.3s;
}
.footer-social a:hover {
    color: #fff;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(198,155,46,0.8);
}
.footer-bottom p {
    margin: 0;
    font-size: 18px;
}

/* =====================================
   ANIMATIONS
===================================== */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.75; text-shadow: 0 0 10px #d4af37; }
    100% { opacity: 1; }
}

/* === Responsive === */
@media (max-width: 992px) {
    .home-layout,
    .single-layout,
    .page-layout,
    .archive-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
        margin-top: 1.5rem;
    }
}


/* === Post Card Hover Polish === */
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(198,155,46,0.2);
}


/* === Smooth Scroll === */
html {
    scroll-behavior: smooth;
}

/* === Back to Top Button === */
#backToTop {
    position: fixed;
    bottom: 25px;
    left: 25px; /* RTL alignment */
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none;
    z-index: 9999;
}
#backToTop:hover {
    background: var(--gold);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(198,155,46,0.4);
}

/* === Menu Hover Glow === */
.main-navigation a {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.main-navigation a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(198,155,46,0.6);
}

/* === Button Hover Glow === */
.read-more {
    transition: all 0.3s ease;
}
.read-more:hover {
    background: var(--gold);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(198,155,46,0.3);
}

/* === Post Card Hover Polish === */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(198,155,46,0.15);
}

/* === Footer Glow === */
.site-footer {
    border-top: 3px solid var(--gold);
    box-shadow: 0 -2px 10px rgba(198,155,46,0.1);
}
/* === Logo Subtle Hover Effect === */
.site-logo img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(198,155,46,0.3);
    border-radius: 8px;
}
/* === Header Transparency on Scroll === */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(11, 107, 58, 0.95); /* Slight transparency for modern look */
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Add subtle shadow when scrolled */
body.scrolled .site-header {
    background: rgba(11, 107, 58, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* === Logo Sizing and Hover Glow === */
.site-logo img {
    max-height: 65px;          /* reduced slightly for balance */
    max-width: 220px;          /* ensures width doesn’t stretch too wide */
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(198, 155, 46, 0.4);
    border-radius: 10px;
}
/* === Logo Perfect Square Fix === */
.site-logo {
    width: 80px;          /* square size for logo box */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;     /* prevents logo from overflowing the box */
    background: transparent;
    border-radius: 12px;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ensures full logo visible without distortion */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(198, 155, 46, 0.4);
    border-radius: 12px;
}
/* === Elegant Header Fade-In Animation === */

/* Keyframes */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to header elements */
.site-header {
    animation: fadeSlideIn 0.8s ease-out;
}

.site-logo,
.search-bar,
.main-navigation {
    opacity: 0;
    animation: fadeSlideIn 1s ease-out forwards;
}

.site-logo {
    animation-delay: 0.1s;
}

.search-bar {
    animation-delay: 0.3s;
}

.main-navigation {
    animation-delay: 0.5s;
}

/* Smooth transitions on hover remain */
.site-logo img,
.main-navigation a,
.search-bar button {
    transition: all 0.3s ease;
}

/* Responsive header animation */
@media (max-width: 992px) {
    .site-header {
        animation: fadeSlideIn 0.7s ease-out;
    }
}


/* Responsive Footer Icons */
@media (max-width: 600px) {
    .footer-social a {
        font-size: 22px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .footer-social a {
        font-size: 22px;
    }
}
/* === Footer Social Icons === */
.social-icons {
    margin-top: 1rem;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    color: white;
    background: var(--accent);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 45px;
    margin: 0 8px;
    font-size: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(198,155,46,0.3);
}

/* Optional glow for modern feel */
.social-icons i {
    transition: all 0.3s ease;
}
.social-icons a:hover i {
    text-shadow: 0 0 8px rgba(198,155,46,0.5);
}
/* === Footer Social Icons Animation === */

/* Initial hidden state */
.social-icons a {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

/* Fade + Slide-in animation when footer visible */
body.footer-visible .social-icons a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for each icon */
.social-icons a:nth-child(1) { transition-delay: 0.1s; }
.social-icons a:nth-child(2) { transition-delay: 0.2s; }
.social-icons a:nth-child(3) { transition-delay: 0.3s; }
.social-icons a:nth-child(4) { transition-delay: 0.4s; }

/* === Mobile Menu & Toggle (Final Clean Version) === */

/* Hide toggle on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

/* Hamburger bars */
.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Active toggle (X icon) */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay background */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu behavior */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--accent);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        transition: right 0.3s ease;
        z-index: 2002;
    }

    .main-navigation.open {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0;
        margin: 0;
    }

    .main-navigation a {
        color: white;
        font-size: 22px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .main-navigation a:hover {
        color: var(--gold);
        text-shadow: 0 0 8px rgba(198,155,46,0.6);
    }

    .search-bar {
        display: none;
    }
}
/* === Gold Underline Hover Animation === */
.main-navigation a {
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(198,155,46,0.6);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* === Mobile Close Button === */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2003;
    transition: color 0.3s ease;
}

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

/* Show only on mobile menu open */
@media (max-width: 992px) {
    .mobile-close-btn {
        display: block;
    }
}
/* === Sidebar Widget Styling (Recent Posts & Categories) === */

/* Widget Container */
.widget {
    background: #fff;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(198,155,46,0.15);
}

/* Widget Titles (like Recent Posts, Categories, etc.) */
.widget-title,
.widget h2,
.widget h3 {
    color: var(--accent);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 6px;
    transition: all 0.3s ease;
}

.widget-title:hover,
.widget h2:hover,
.widget h3:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(198,155,46,0.5);
}


/* === Prayer Widget Styling === */


.live-dot {
    width: 10px;
    height: 10px;
    background: #ff4747;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}



.current-time-box {
    background: #f4f8f5;
    border-radius: 8px;
    padding: 10px;
    font-size: 20px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    direction: ltr;
}

#prayerTimesList {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 16px
}
#prayerTimesList li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding: 5px 0;
    direction: ltr;
}
.next-prayer {
    color: var(--accent);
    font-weight: bold;
    margin-top: 12px;
    font-size: 18px;
}
/* === Prayer Widget Enhancements === */
#citySelect {
    font-family: "Jameel Noori Nastaleeq", serif;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
#citySelect:hover {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(198,155,46,0.2);
}

#citySelect:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(198,155,46,0.3);
}

/* Prayer names & fade animation */
.prayer-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 18px;
}

.prayer-name {
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 4px rgba(11,107,58,0.3);
}

.prayer-time {
    color: var(--gold);
    font-weight: 500;
}

/* Smooth fade effect */
.fade-in {
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

.fade-out {
    opacity: 0.2;
    transition: opacity 0.3s ease-out;
}
.page-content {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: "Jameel Noori Nastaleeq", serif;
    line-height: 2;
    color: #222;
}
.page-title {
    text-align: center;
    color: var(--accent, #1b5e20);
    font-size: 24px;
    margin-bottom: 20px;
}
.page-title i {
    color: var(--gold, #d4af37);
    margin-left: 8px;
}
.page-content ul {
    padding-right: 20px;
    list-style-type: none;
}
.page-content ul li {
    margin-bottom: 10px;
}
.page-content a {
    color: var(--accent, #1b5e20);
    text-decoration: none;
}
.page-content a:hover {
    color: var(--gold, #d4af37);
}
.contact-info li i {
    color: var(--gold, #d4af37);
    margin-left: 6px;
}
.contact-form {
    margin-top: 25px;
    text-align: right;
}
.contact-form label {
    display: block;
    color: var(--accent, #1b5e20);
    font-weight: 600;
    margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Jameel Noori Nastaleeq", serif;
    font-size: 16px;
    direction: rtl;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold, #d4af37);
    outline: none;
}
.contact-form button {
    background: var(--accent, #1b5e20);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-family: "Jameel Noori Nastaleeq", serif;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background: var(--gold, #d4af37);
    color: var(--accent, #1b5e20);
}
.success-message,
.error-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}
.success-message {
    background: #e6f9e6;
    color: #1b5e20;
}
.error-message {
    background: #fdeaea;
    color: #d32f2f;
}
.prayer-times-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 18px 20px;
    text-align: center;
    font-family: "Jameel Noori Nastaleeq", serif;
    transition: all 0.3s ease;
}

.prayer-times-card h3 {
    color: #155f2d;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.prayer-times-card .islamic-date {
    color: #155f2d;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.prayer-times-card .city-time-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.prayer-times-card select {
    font-family: "Jameel Noori Nastaleeq", serif;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f8fdf9;
    font-size: 16px;
    direction: rtl;
    color: #155f2d;
    cursor: pointer;
    transition: border 0.3s ease;
}
.prayer-times-card select:hover {
    border-color: #d4af37;
}
.prayer-times-card button {
    background: #155f2d;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.prayer-times-card button:hover {
    background: #d4af37;
    color: #155f2d;
}

.current-time-display {
    font-size: 18px;
    color: #d4af37;
    background: #f7f9f8;
    border-radius: 10px;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 15px;
}

.prayer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.prayer-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.prayer-list .prayer-name {
    color: #155f2d;
    font-weight: bold;
}
.prayer-list .prayer-time {
    color: #d4af37;
}

.next-prayer {
    margin-top: 10px;
    color: #155f2d;
    font-weight: 600;
}
.prayer-widget-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    font-family: "Jameel Noori Nastaleeq", serif;
}

.widget-title {
    color: #155f2d;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.islamic-date {
    color: #155f2d;
    font-size: 16px;
    margin-bottom: 10px;
}

.city-select select {
    font-family: "Jameel Noori Nastaleeq", serif;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f8fdf9;
    font-size: 16px;
    direction: rtl;
    color: #155f2d;
    cursor: pointer;
    transition: border 0.3s ease;
}
.city-select select:hover {
    border-color: #d4af37;
}

.current-time-box {
    font-size: 18px;
    color: #d4af37;
    background: #f7f9f8;
    border-radius: 10px;
    display: inline-block;
    padding: 6px 12px;
    margin: 12px 0;
}

#prayerTimesList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#prayerTimesList li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
}
#prayerTimesList .prayer-name {
    color: #155f2d;
    font-weight: bold;
}
#prayerTimesList .prayer-time {
    color: #d4af37;
}

.next-prayer {
    margin-top: 10px;
    color: #155f2d;
    font-weight: 600;
    font-size: 15px;
}

.prayer-widget-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    font-family: "Jameel Noori Nastaleeq", serif;
}

.widget-title {
    color: #155f2d;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 8px #28a745;
}

.islamic-date {
    color: #155f2d;
    font-size: 16px;
    margin-bottom: 10px;
}

.city-select select {
    font-family: "Jameel Noori Nastaleeq", serif;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f8fdf9;
    font-size: 16px;
    direction: rtl;
    color: #155f2d;
    cursor: pointer;
    transition: all 0.3s ease;
}
.city-select select:hover {
    border-color: #d4af37;
    background: #fffbea;
}

.current-time-box {
    font-size: 18px;
    color: #d4af37;
    background: #f7f9f8;
    border-radius: 10px;
    display: inline-block;
    padding: 6px 14px;
    margin: 12px 0;
}

#prayerTimesList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#prayerTimesList li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
}
#prayerTimesList .prayer-name {
    color: #155f2d;
    font-weight: bold;
}
#prayerTimesList .prayer-time {
    color: #d4af37;
    font-family: "Segoe UI", sans-serif;
}

.next-prayer {
    margin-top: 10px;
    color: #155f2d;
    font-weight: 600;
    font-size: 15px;
    animation: pulse 2s infinite;
}

.next-prayer .highlight {
    color: #d4af37;
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.75; text-shadow: 0 0 10px #d4af37; }
    100% { opacity: 1; }
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}
.fade-out {
    opacity: 0.3;
    transition: opacity 0.5s ease-out;
}
.fa-mosque {
    margin-left: 8px !important;   /* ensures visible space between icon & text */
    font-size: 22px !important;     /* keep it balanced */
    color: var(--accent) !important; /* keep your theme's greenish tone */
    vertical-align: middle !important;
}
.fa-kaaba {
    margin-left: 8px !important;

}
/* === Sidebar Widget List Styling (Recent Posts & Archives) === */
.widget ul {
  list-style: none !important; /* remove bullets */
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0; /* same as prayer widget divider */
  transition: all 0.3s ease;
  font-family: "Jameel Noori Nastaleeq", serif;
  direction: rtl;
  text-align: right;
}

/* Last item without border */
.widget ul li:last-child {
  border-bottom: none;
}

/* Link styles within widgets */
.widget ul li a {
  color: var(--accent);
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding-right: 4px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.widget ul li a:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(198,155,46,0.4);
  padding-right: 6px; /* gentle shift */
}
/* Scroll to Top Button - Upgraded */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0b6b3a;
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.28);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.6);
    transition: all 0.35s ease-in-out;
}

/* Show Button */
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Hover Glow Animation */
.scroll-top:hover {
    background: #c69b2e;
    box-shadow: 0 0 15px #0a3d62, 0 0 30px #0a3d62;
}
/* Fix breadcrumb alignment */
.breadcrumb-wrapper {
    background: transparent;
    width: 100%;
    margin-top: 5px;
}

.breadcrumb-inner {
    direction: rtl;
    text-align: right;
    padding-right: 10px; /* Adjust if you want more or less space */
}

/* Breadcrumb styling */
.breadcrumbs {
    display: inline-block;
    font-size: 16px;
    color: #0f4f45;
}

/* Links */
.breadcrumbs a {
    color: #0f4f45;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Separator */
.crumb-sep {
    margin: 0 4px;
    color: #27a08c;
}

/* Current page */
.breadcrumbs .current {
    font-weight: bold;
    color: #000;
}
/* Premium Footer Look */
.site-footer {
    border-top: 3px solid #d4b05d; /* golden line */
    padding: 25px 0 !important;
}

/* Social Icons – tighter spacing */
.footer-social-icons a {
    margin: 0 6px !important;
    font-size: 20px;
}

/* Scroll to top button refinement */
.scroll-top {
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
/* Fix lists for RTL Urdu - Align bullets on the right */
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
}

.entry-content ul li,
.entry-content ol li {
    direction: rtl !important;
    text-align: right !important;
}

