/* CSS Custom Properties for Oriental/Islamic Theme */
:root {
    /* Color Palette - Emerald Green & Rich Gold */
    --primary-color: #0d5c46;
    /* Deep Emerald */
    --primary-light: #158063;
    --primary-dark: #06402e;

    --accent-color: #d4af37;
    /* Rich Gold */
    --accent-light: #ebd68a;

    --bg-color: #fcf9f2;
    /* Warm Sand/Cream */
    --surface-color: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #f8fafc;

    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 40px -10px rgba(13, 92, 70, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(212, 175, 55, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* Islamic Geometric Pattern Background */
.pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #eed06b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(252, 249, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 0px var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    font-size: 1.1rem;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-color) 0%, #f0e6d2 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d5c46' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.25rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-element {
    position: relative;
    display: flex;
    justify-content: center;
}

.lantern-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 20px 20px 200px 200px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 8px solid var(--accent-light);
    animation: float 6s ease-in-out infinite;
}

.lantern-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: var(--transition);
}

.lantern-wrapper:hover img {
    transform: scale(1.1);
}

.glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.4), transparent);
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.separator {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Quran Section */
.quran-section {
    background-color: var(--surface-color);
    position: relative;
}

.quran-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Articles Section Styles --- */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--primary-dark);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(13, 92, 70, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.article-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: right;
    width: 100%;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(6, 64, 46, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5vh auto;
    padding: 3rem;
    border: 2px solid var(--accent-color);
    width: 90%;
    max-width: 800px;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    direction: ltr;
    /* Move scrollbar to right */
}

.modal-body {
    direction: rtl;
    /* Keep text RTL */
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--primary-dark);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10;
    background: var(--bg-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--surface-color);
    background-color: var(--accent-color);
    text-decoration: none;
}

/* Markdown Content Styling */
.markdown-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: right;
    line-height: 1.8;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}

.markdown-content h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    color: var(--primary-dark);
    word-wrap: break-word;
}

.markdown-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    word-wrap: break-word;
}

.markdown-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    word-wrap: break-word;
}

.markdown-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    word-wrap: break-word;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.quran-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(13, 92, 70, 0.1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quran-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.quran-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.quran-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.quran-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-light);
}

.quran-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.quran-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.quran-card:hover h3,
.quran-card:hover p {
    color: var(--surface-color);
}

.read-more {
    font-weight: 700;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.quran-card:hover .read-more {
    color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    position: relative;
    background: linear-gradient(rgba(13, 92, 70, 0.95), rgba(6, 64, 46, 0.98)), url("https://images.unsplash.com/photo-1542816417-0983c9c9ad53?q=80&w=2070&auto=format&fit=crop") center/cover fixed;
    color: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-info h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.info-item p {
    color: #94a3b8;
}

/* Form Styles */
.contact-form {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(21, 128, 99, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.form-status.success {
    color: var(--primary-light);
}

.form-status.error {
    color: #ef4444;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   About Section - نبيل حسن الحبال
   ========================================= */
.about-section {
    background: var(--bg-color);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.reverse-layout {
    grid-template-columns: 1.4fr 1fr;
}

.reverse-layout .about-image-col {
    order: 2;
}

.treatment-section {
    background: rgba(212, 175, 55, 0.03);
}

.about-image-col {
    position: relative;
}

.about-img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 6px solid var(--accent-light);
}

.about-img-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-img-frame:hover img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-para {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.about-quote {
    background: linear-gradient(135deg, rgba(13, 92, 70, 0.06), rgba(212, 175, 55, 0.08));
    border-right: 4px solid var(--accent-color);
    padding: 1.5rem 1.75rem;
    border-radius: 0.5rem;
    margin-top: 1.75rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
}

.about-quote .fa-quote-right {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-left: 0.75rem;
    vertical-align: middle;
}



/* Article Card Thumbnail - always visible */
.article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
    display: block;
    margin: -2rem -2rem 1.5rem -2rem;
    width: calc(100% + 4rem);
}

/* Tablet 992px */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-img-frame img {
        height: 360px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lantern-wrapper {
        max-width: 340px;
        margin: 0 auto;
    }
}

/* Mobile 768px */
@media (max-width: 768px) {

    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 2px solid rgba(212, 175, 55, 0.2);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 3rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .lantern-wrapper {
        max-width: 280px;
        border-width: 4px;
    }

    /* Sections */
    .section-padding {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-card {
        padding: 0 0 1.5rem 0;
        overflow: hidden;
    }

    .article-card h3 {
        padding: 0 1.5rem;
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .article-category {
        padding: 0 1.5rem;
    }

    .article-card .btn-secondary {
        margin: 0 1.5rem;
        width: calc(100% - 3rem);
    }

    .article-thumbnail {
        height: 180px;
        margin: 0 0 1.25rem 0;
        width: 100%;
        border-radius: 0.75rem 0.75rem 0 0;
    }

    /* Category filters */
    .category-filters {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Quran grid */
    .quran-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .quran-card {
        padding: 1.75rem;
    }

    /* Contact */
    .contact-wrapper {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .modal-content {
        margin: 2vh auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 95vh;
    }

    .close-modal {
        top: 0.75rem;
        left: 0.75rem;
    }

    /* Markdown content in modal */
    .markdown-content {
        font-size: 1rem;
    }

    .markdown-content h1 {
        font-size: 1.6rem;
    }

    .markdown-content img {
        width: 100%;
        height: auto;
    }
}

/* Small mobile 480px */
@media (max-width: 480px) {
    .logo {
        font-size: 1.75rem;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .article-thumbnail {
        height: 160px;
    }

    .nav-content {
        padding: 1rem;
    }

    .footer-logo h3 {
        font-size: 2rem;
    }
}

/* --- Prayer Times Section --- */
.prayer-section {
    background: linear-gradient(rgba(6, 64, 46, 0.85), rgba(6, 64, 46, 0.85)), url('images/prayer_times_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.prayer-section .section-header h2,
.prayer-section .section-header p {
    color: white;
}

.prayer-section .subtitle {
    color: var(--accent-light);
}

.prayer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.location-selector {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.location-selector .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.location-selector label {
    color: var(--accent-light);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-selector .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-dark);
    height: 48px;
    border-radius: 8px;
    padding: 0 1rem;
    width: 100%;
    font-weight: 600;
}

.prayer-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
}

.prayer-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 2rem 1rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: fadeInScale 0.5s ease forwards;
}

.prayer-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-light);
}

.prayer-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    font-family: var(--font-heading);
}

.prayer-time {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: 'Inter', sans-serif;
}

.prayer-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.prayer-placeholder i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--accent-light);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .location-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .location-selector .form-group {
        width: 100%;
    }
}