/* 
   Islamic Premium Design System
   Colors: Emerald Green, Deep Teal, Warm Gold, Cream
   Fonts: Outfit (UI), Amiri (Arabic & Display Titles)
*/

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-h: 162;
    --primary-s: 85%;
    --primary-l: 15%;
    
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));          /* #064e3b Deep Emerald */
    --primary-light: hsl(174, 85%, 35%);    /* Teal Accent */
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 8%);     /* Very Dark Green */
    --gold: #d97706;             /* Warm Gold */
    --gold-light: #f59e0b;       /* Bright Gold */
    --gold-dark: #b45309;        /* Rich Bronze */
    --cream: #fdfdfc;            /* Clean Ivory White */
    --cream-dark: #faf7f2;       /* Rich Cream */
    --text-main: #1e293b;        /* Slate 800 */
    --text-muted: #64748b;       /* Slate 500 */
    --glass-bg: rgba(253, 253, 252, 0.85);
    --glass-border: rgba(6, 78, 59, 0.08);
    --card-shadow: 0 10px 30px -10px rgba(6, 78, 59, 0.08);
    --hover-shadow: 0 20px 40px -15px rgba(217, 119, 6, 0.18);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 20px;
    --gold-glow: 0 0 15px rgba(217, 119, 6, 0.45);
    --emerald-glow: 0 0 15px rgba(6, 78, 59, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--cream);
    color: var(--text-main);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(6, 78, 59, 0.04) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Base Headings */
h1, h2, h3, h4, h5, h6, .font-arabic {
    font-family: 'Amiri', serif;
}

/* Header & Glassmorphic Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
    opacity: 0.8;
    pointer-events: none;
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.05);
    background: rgba(251, 251, 250, 0.95);
}

/* Elegant Centered Islamic Ornament at Header Bottom */
.header-ornament {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 20px;
    padding: 2px 14px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.06);
    z-index: 1001;
    pointer-events: none;
    line-height: 1;
}

.header-ornament i {
    text-shadow: 0 0 2px rgba(217, 119, 6, 0.2);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Premium Logo Wrapper and Dome-Arch Frame */
.logo-wrapper {
    position: relative;
    border-radius: 24px 24px 8px 8px;
    border: 2px solid var(--gold);
    padding: 6px 10px;
    background: white;
    box-shadow: 0 3px 12px rgba(6, 78, 59, 0.08);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tiny golden crescent ornament sitting on top of the dome logo frame */
.logo-wrapper::before {
    content: '☪';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    background: white;
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.logo-img {
    height: 38px; /* Slightly adjusted to fit inside padding cleanly */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover .logo-wrapper {
    border-color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.15);
}

.logo:hover .logo-wrapper::before {
    transform: translateX(-50%) rotate(360deg);
    border-color: var(--gold-light);
    background: var(--gold);
    color: white;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

/* Dynamic Active Indicators with Diamond Stars */
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

/* Centered gold diamond star appearing above active / hover links */
.nav-links a::before {
    content: '✦';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    color: var(--gold-light);
    font-size: 0.65rem;
    text-shadow: 0 0 3px rgba(217, 119, 6, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: translateX(-50%) scale(1);
    color: var(--gold);
}

.nav-links a.active {
    color: var(--primary-dark);
}

/* Rich Date Widget with Sweeping Glare Animation */
.date-widget {
    background: linear-gradient(135deg, var(--primary-dark), #032b21);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.2);
    border: 1.5px solid var(--gold);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: var(--transition);
}

.date-widget:hover {
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.3);
    border-color: var(--gold-light);
}

.date-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: 0.7s;
    opacity: 0;
}

.date-widget:hover::before {
    left: 130%;
    opacity: 1;
    transition: 0.7s;
}

.date-widget i {
    color: var(--gold-light);
    font-size: 0.95rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* SECTION 1: HERO EVENT SLIDER */
.hero-slider-section {
    position: relative;
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 44, 34, 0.95) 0%, rgba(6, 78, 59, 0.7) 50%, rgba(2, 44, 34, 0.4) 100%);
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding: 4rem;
    color: white;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transform: translateY(25px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s, opacity 0.6s ease 0.3s;
}

.slide.active .badge {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.4s, opacity 0.5s ease 0.4s;
}

.slide.active .slide-title {
    transform: translateY(0);
    opacity: 1;
}

.slide-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.6s, opacity 0.5s ease 0.6s;
}

.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
}

.slide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.7s, opacity 0.5s ease 0.7s;
}

.slide.active .slide-meta {
    transform: translateY(0);
    opacity: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item i {
    color: var(--gold);
}

.slide-actions {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.8s, opacity 0.5s ease 0.8s;
}

.slide.active .slide-actions {
    transform: translateY(0);
    opacity: 1;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* SLIDER NAVIGATION BUTTONS */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(6, 78, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-nav:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 5px;
}

/* SECTION CONTAINER GENERAL */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-subtitle {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 1.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 0.5rem;
    color: var(--gold);
    font-size: 1.1rem;
}

.section-header-ornament::before {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, var(--gold), transparent);
}

.section-header-ornament::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* SECTION 2: OUR BOOKS */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.book-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 78, 59, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(217, 119, 6, 0.2);
}

.book-card:hover::before {
    height: 6px;
}

.book-cover-container {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.book-cover {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 4px 12px 12px 4px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15),
                inset 1px 0 0 rgba(255,255,255,0.2),
                inset -3px 0 10px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    color: white;
    border: 1px solid rgba(217, 119, 6, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.15) 100%);
    border-radius: 4px 12px 12px 4px;
    pointer-events: none;
    z-index: 5;
    transition: var(--transition);
}

.book-card:hover .book-cover {
    transform: rotateY(-20deg) rotateX(6deg) scale(1.04);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.25),
                inset 1px 0 0 rgba(255,255,255,0.3),
                inset -3px 0 10px rgba(0,0,0,0.4);
}

.book-card:hover .book-cover::after {
    background: linear-gradient(105deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.1) 100%);
}

.book-spine-effect {
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: rgba(0,0,0,0.15);
    box-shadow: 1px 0 3px rgba(255,255,255,0.1);
}

.book-cover-pattern {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 2px 8px 8px 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.book-cover-logo {
    font-size: 2rem;
    color: var(--gold-light);
}

.book-cover.hadis {
    background: linear-gradient(135deg, #78350f, #92400e); /* Amber / Brown tones */
}

.book-cover.quran {
    background: linear-gradient(135deg, #022c22, #047857); /* Rich Emerald Green */
}

.book-cover.history {
    background: linear-gradient(135deg, #1e3a8a, #2563eb); /* Indigo Blue */
}

.book-cover.adab {
    background: linear-gradient(135deg, #311042, #581c87); /* Deep Purple */
}

.book-arabic-title {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--gold-light);
}

.book-english-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.book-title {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.book-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.book-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.see-more-container {
    text-align: center;
    margin-top: 3.5rem;
}

.library-search-container input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.2) !important;
    background: white !important;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* SECTION 3: IMPORTANT MUSLIM SECTION */
.important-section {
    background: var(--cream-dark);
    position: relative;
    overflow: hidden;
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 78, 59, 0.03);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.08);
}

.card-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(6, 78, 59, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.info-card:hover .card-icon-container {
    background: var(--primary);
    color: white;
}

.card-title-main {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--cream-dark);
    padding-bottom: 0.5rem;
}

/* Widget 1: Prayer Times */
.prayer-times-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 2rem 2rem;
}

.prayer-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: var(--cream);
    border-radius: 10px;
    border-left: 3px solid rgba(6, 78, 59, 0.15);
    transition: var(--transition);
}

.prayer-time-item.active {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.06), transparent);
    border-left: 3px solid var(--gold);
    font-weight: 600;
}

.prayer-name {
    font-size: 0.92rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-name i {
    color: var(--primary-light);
}

.prayer-time {
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.prayer-time-item.active .prayer-name {
    color: var(--primary-dark);
}

.prayer-time-item.active .prayer-name i {
    color: var(--gold);
}

.prayer-time-item.active .prayer-time {
    color: var(--gold-dark);
}

/* Prayer card — white premium */
.prayer-card {
    background: white !important;
    border: 1.5px solid rgba(217, 119, 6, 0.15) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(6, 78, 59, 0.07) !important;
    position: relative !important;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    z-index: 2;
}

.prayer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.prayer-card > * {
    position: relative;
    z-index: 1;
}

.prayer-card .prayer-countdown-container {
    margin: 0 2rem 1.2rem;
    border-radius: 14px;
}

/* Widget 2: Tasbih Counter */

.tasbih-widget {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff, var(--cream-dark));
    box-shadow: inset 0 4px 12px rgba(6, 78, 59, 0.05), 0 8px 24px rgba(6, 78, 59, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    position: relative;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle-bg {
    transition: var(--transition);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 3px rgba(217, 119, 6, 0.3));
}

.counter-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.counter-circle:hover {
    transform: scale(1.05);
    box-shadow: inset 0 4px 12px rgba(6, 78, 59, 0.02), 0 12px 30px rgba(217, 119, 6, 0.12);
}

.counter-circle:active {
    transform: scale(0.96);
}

.counter-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.tasbih-phrase {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tasbih-translation {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    height: 20px;
}

.tasbih-controls {
    display: flex;
    gap: 10px;
}

.btn-counter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-counter:hover {
    background: var(--primary-light);
}

.btn-reset {
    background: rgba(217, 119, 6, 0.1);
    color: var(--gold-dark);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.btn-reset:hover {
    background: var(--gold);
    color: white;
}

.btn-refresh {
    background: rgba(217, 119, 6, 0.08);
    color: var(--gold-dark);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
}

.btn-refresh:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}

.btn-refresh i {
    transition: transform 0.6s ease;
}

.btn-refresh:hover i {
    transform: rotate(180deg);
}

/* Widget 1: Prayer Countdown Container */
.prayer-countdown-container {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(217, 119, 6, 0.25);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(6, 78, 59, 0.15);
    position: relative;
    overflow: hidden;
}

.prayer-countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.countdown-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.countdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.countdown-name {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.countdown-timer {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.countdown-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 8px var(--gold-light);
}

/* Widget 3: Daily Inspiration */
.inspiration-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
}

.inspiration-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
}

.inspiration-content.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.arabic-verse {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.arabic-verse::before, .arabic-verse::after {
    color: rgba(217, 119, 6, 0.3);
    font-size: 1.5rem;
}

.arabic-verse::before {
    content: '« ';
}

.arabic-verse::after {
    content: ' »';
}

.english-verse {
    font-size: 0.95rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.verse-reference {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(217, 119, 6, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

/* =============================================
   PREMIUM INSPIRATION OF THE DAY WIDGET
   ============================================= */
.inspiration-card {
    background: white !important;
    border: 1.5px solid rgba(217, 119, 6, 0.15) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(6, 78, 59, 0.07) !important;
    position: relative !important;
}

/* Geometric Islamic background pattern */
.inspiration-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.inspiration-card > * {
    position: relative;
    z-index: 1;
}

/* Top gold border accent */
.inspiration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    z-index: 2;
}

/* ----- HEADER ----- */
.insp-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.6rem 2rem 1.2rem;
    border-bottom: 1px solid rgba(6, 78, 59, 0.07);
}

.insp-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.insp-subtitle {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2px;
}

.insp-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}

/* ----- GOLD ORNAMENT DIVIDER ----- */
.insp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
}

.insp-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), transparent);
}

.insp-divider-icon {
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.8;
}

/* ----- VERSE CONTENT ----- */
.inspiration-card .inspiration-content {
    padding: 0 2rem;
    text-align: center;
}

.inspiration-card .arabic-verse {
    font-family: 'Amiri', 'Traditional Arabic', serif !important;
    font-size: 2.3rem !important;
    line-height: 1.8 !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 1.5rem 1.2rem !important;
    text-shadow: none !important;
    background: rgba(6, 78, 59, 0.03) !important;
    border: 1px solid rgba(6, 78, 59, 0.1) !important;
    border-radius: 14px !important;
    direction: rtl !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.4s ease !important;
}

.inspiration-card .arabic-verse::before {
    content: '' !important;
}
.inspiration-card .arabic-verse::after {
    content: '' !important;
}

.inspiration-card .english-verse {
    font-size: 0.95rem !important;
    color: var(--text-main) !important;
    font-style: italic !important;
    line-height: 1.7 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
}

/* ----- REFERENCE BADGE ----- */
.insp-reference-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
}

.insp-ref-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
    display: inline-block;
}

.inspiration-card .verse-reference {
    display: inline-block !important;
    width: auto !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    background: rgba(217, 119, 6, 0.08) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    padding: 0.4rem 1.3rem !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.inspiration-card .verse-reference:hover {
    background: rgba(217, 119, 6, 0.15) !important;
    transform: none !important;
}

/* ----- ACTION BUTTONS ----- */
.insp-actions {
    display: flex;
    gap: 10px;
    padding: 1.5rem 2rem 2rem;
}

.insp-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.insp-btn-secondary {
    background: var(--cream);
    color: var(--primary-dark);
    border: 1.5px solid rgba(6, 78, 59, 0.15) !important;
}

.insp-btn-secondary:hover {
    background: var(--cream-dark);
    color: var(--primary);
    transform: translateY(-1px);
}

.insp-btn-primary {
    background: linear-gradient(135deg, var(--gold), #b45309);
    color: white;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.insp-btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45);
    color: white;
}

/* Fade transition for JS switching */
.inspiration-card .inspiration-content.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}


/* FOOTER styling */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #011c16);
    color: white;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 4px solid var(--gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-3px);
    border-color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold);
    text-shadow: 0 0 5px rgba(217, 119, 6, 0.4);
}

/* SMALL ISLAMIC FOOTER */
.small-footer {
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    background-color: var(--primary-dark);
    border-top: 3px solid var(--gold);
    position: relative;
}

.footer-ornament {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-ornament::before,
.footer-ornament::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.footer-ornament::after {
    background: linear-gradient(to left, transparent, var(--gold));
}

.footer-contact-info {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    color: var(--gold);
}

.small-footer .social-links {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.small-footer .footer-bottom {
    margin-top: 0;
    padding-top: 1.2rem;
    width: 100%;
}

/* SECTION 4: NEARBY MOSQUES MAP SECTION */
.mosques-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 78, 59, 0.05);
    height: 500px;
}

.mosques-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--cream-dark);
    border-right: 1px solid rgba(6, 78, 59, 0.08);
    overflow: hidden;
}

.location-status {
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border-bottom: 2px solid var(--gold);
}

.location-status i {
    color: var(--gold-light);
}

.mosques-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for sidebar list */
.mosques-list::-webkit-scrollbar {
    width: 6px;
}
.mosques-list::-webkit-scrollbar-track {
    background: transparent;
}
.mosques-list::-webkit-scrollbar-thumb {
    background: rgba(6, 78, 59, 0.15);
    border-radius: 3px;
}
.mosques-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.mosque-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(6, 78, 59, 0.05);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mosque-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(6, 78, 59, 0.06);
    border-color: rgba(217, 119, 6, 0.3);
}

.mosque-item.active {
    border-left: 4px solid var(--gold);
    background: rgba(217, 119, 6, 0.02);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
}

.mosque-item h4 {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.mosque-item .mosque-dist {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.25rem;
}

.mosque-item .mosque-addr {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#mosque-map {
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Custom styles to color-coordinate Leaflet popups */
.leaflet-popup-content-wrapper {
    background: var(--primary-dark) !important;
    color: white !important;
    border-radius: 12px !important;
    border: 1px solid var(--gold) !important;
    font-family: 'Outfit', sans-serif !important;
}

.leaflet-popup-tip {
    background: var(--primary-dark) !important;
    border: 1px solid var(--gold) !important;
}

.leaflet-popup-content h3 {
    font-family: 'Amiri', serif !important;
    font-size: 1.4rem !important;
    color: var(--gold-light) !important;
    margin-bottom: 2px !important;
}

.leaflet-popup-content p {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.8) !important;
    margin: 0 !important;
}

/* SECTION 5: MUSLIM HOLIDAYS LIST */
.holidays-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 78, 59, 0.04);
}

.holidays-tabs {
    display: flex;
    gap: 10px;
}

.holiday-tab {
    background: transparent;
    border: 1px solid rgba(6, 78, 59, 0.1);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.holiday-tab:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(217, 119, 6, 0.03);
}

.holiday-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(6,78,59,0.15);
}

.year-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.year-select {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 78, 59, 0.15);
    background: var(--cream);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.year-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.holiday-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 78, 59, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.holiday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: var(--transition);
}

.holiday-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(217, 119, 6, 0.2);
}

.holiday-card:hover::before {
    height: 6px;
}

/* Featured / Next holiday card highlight */
.holiday-card.featured {
    border: 2px solid var(--gold);
    box-shadow: var(--hover-shadow);
    background: radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.02) 0%, transparent 50%), white;
}

.holiday-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.holiday-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 78, 59, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.4rem;
    border: 1px solid rgba(6, 78, 59, 0.08);
}

.holiday-card.featured .holiday-icon-box {
    background: rgba(217, 119, 6, 0.1);
    color: var(--gold-dark);
    border-color: rgba(217, 119, 6, 0.15);
}

/* Holiday status badges */
.holiday-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.holiday-badge.passed {
    background: #f1f5f9;
    color: #64748b;
}

.holiday-badge.upcoming {
    background: rgba(6, 78, 59, 0.08);
    color: var(--primary);
}

.holiday-badge.next-up {
    background: var(--gold);
    color: white;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
    animation: gold-pulse 2s infinite alternate;
}

@keyframes gold-pulse {
    0% {
        box-shadow: 0 0 5px rgba(217, 119, 6, 0.3);
    }
    100% {
        box-shadow: 0 0 12px rgba(217, 119, 6, 0.6);
    }
}

.holiday-card h3 {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.holiday-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.holiday-card-meta {
    border-top: 1px dashed rgba(6, 78, 59, 0.08);
    padding-top: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.holiday-meta-item {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.holiday-meta-item i {
    color: var(--gold);
    width: 14px;
    text-align: center;
}

.holiday-card.featured .holiday-meta-item i {
    color: var(--gold-dark);
}

.holiday-meta-item.hijri {
    font-weight: 600;
    color: var(--primary);
}

.holiday-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: auto;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem;
    }
    .slider-container {
        height: 600px;
    }
    .slide-content {
        padding: 2.5rem;
        width: 100%;
    }
    .slide-title {
        font-size: 2.4rem;
        word-wrap: break-word;
    }
    .slide-desc {
        font-size: 1rem;
    }
    .slider-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--cream-dark);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .date-widget {
        display: none; /* Hide date on mobile navigation bar to avoid crowding */
    }
    .hero-slider-section {
        padding: 1rem 1rem 2rem 1rem;
    }
    .slider-container {
        height: 600px;
    }
    .slide {
        align-items: center;
    }
    .slide-content {
        padding: 2rem 1.5rem 3rem 1.5rem;
        width: 100%;
    }
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    .slide-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .slider-nav {
        display: none; /* Hide arrows on mobile to save space */
    }
    .slider-dots {
        bottom: 15px;
    }
    .badge {
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .mosques-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 300px;
        height: auto;
    }
    .mosques-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    }
    .holidays-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .holidays-tabs {
        flex-wrap: wrap;
    }
    .holiday-tab {
        flex-grow: 1;
        text-align: center;
    }
}
