:root {
    /* Colors */
    --primary-color: #28a745;
    --primary-light: #42ba96;
    --primary-dark: #1c7c54;
    --secondary-color: #26b579;
    --accent-color: #ffc107;
    --white-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #666666;
    --light-color: #f8f9fa;
    --muted-color: #6c757d;
    --border-color: #dee2e6;
            --secondary-dark: #047857;
            --accent-light: #EF4444;
            --success-color: #10B981;
            --warning-color: #F59E0B;
            --info-color: #0EA5E9;

    /* Light Theme */
    --light-bg-primary: #ffffff;
    --light-bg-secondary: #f8f9fa;
    --light-text-primary: #333333;
    --light-text-secondary: #666666;
    --light-border-color: #dee2e6;

    /* Dark Theme */
    --dark-bg-primary: #1a1a1a;
    --dark-bg-secondary: #2d2d2d;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-border-color: #404040;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease;

    /* Default Theme (Light) */
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --border-color: var(--light-border-color);

    --border-radius: 12px;
            --border-radius-sm: 8px;
            --border-radius-lg: 16px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
       
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
.text-dark-color{
     color: var(--dark-color);
}
.text-primary{
     color:var(--primary-color)!important;
}
.bg-primary{
    background-color: var(--primary-color) !important;
}
.bg-white{
    background-color: var(--white-color) !important;
}
a:hover {
    color: var(--primary-dark);
}

/* Header Styles */
.top-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: var(--spacing-xs) 0;
}

.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bg-light-primary{
    background-color: var(--light-bg-primary);
}
.bg-light-secondary{
    background-color: var(--light-bg-secondary);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 50%;
    left: 25%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mosque" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23mosque)"/></svg>');
} */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.location-search {
    background: rgba(255,255,255,0.95);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}
h2{
    color: var(--primary-color) !important;
}
/* Feature Cards */
.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Quick Prayer Times */
.quick-prayer-times {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.prayer-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.prayer-time-item:last-child {
    border-bottom: none;
}

.prayer-name {
    font-weight: 500;
    color: var(--text-primary);
}

.prayer-time {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Islamic Quote */
.islamic-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.quote-text {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-translation {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Statistics Section */
.stats-section {
    background: var(--bg-primary);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
}

.footer-top {
    background-color: #222222;
    padding: 3rem 0;
}

.footer h4 {
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    text-decoration: none;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333333;
    border-radius: 50%;
    color: var(--white-color);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Theme Switcher */
.theme-switcher {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
}

.theme-switcher:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}
/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: var(--white-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
    z-index: 1000;
    display: none;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-color);
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-content a {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.special-day-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

.special-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.event-icon i {
    font-size: 2.5rem;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .location-search {
        padding: 1.5rem;
    }
}
.city-card-hover {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.city-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-card-detailed {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card-detailed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon-large {
    opacity: 0.9;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d5016;
}


@media (max-width: 768px) {
    .prayer-features-grid .col-6 {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #2C5530 0%, #28A745 100%);
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}



.prayer-times-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.prayer-time-row {
    transition: background-color 0.2s ease;
}

.prayer-time-row:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

.today-highlight {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-left: 4px solid #ffc107;
}

.prayer-calendar-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.nearby-location-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.qibla-degree {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.post-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow);
            border-left: 4px solid var(--primary-color);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .post-card:hover {
            transform: translateX(8px);
            box-shadow: var(--shadow-lg);
            border-left-color: var(--accent-color);
        }
        
        .post-title {
           
            color: var(--gray-color);
            text-decoration: none;
            font-weight: 600;
            font-size: 1.25rem;
            line-height: 1.4;
            transition: all 0.3s ease;
            display: block;
            margin-bottom: 0.75rem;
        }
        
        .post-title:hover {
            color: var(--primary-color);
        }
        
        .category-nav {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .category-nav .list-group-item {
            border: none;
            border-left: 4px solid transparent;
            transition: all 0.3s ease;
            padding: 1rem 1.5rem;
        }
        
        .category-nav .list-group-item:hover {
            border-left-color: var(--primary-color);
            background: var(--gray-50);
            transform: translateX(4px);
        }
        
        .category-nav .list-group-item a {
            color: var(--gray-700);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .category-nav .list-group-item:hover a {
            color: var(--primary-color);
        }
        
        .tag-link {
            display: inline-block;
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.375rem 0.75rem;
            border-radius: 20px;
            background: rgba(5, 150, 105, 0.1);
            margin: 0.125rem;
            transition: all 0.3s ease;
            border: 1px solid rgba(5, 150, 105, 0.2);
        }
        
        .tag-link:hover {
            background: var(--secondary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
.entry-content {
            font-size: 1.125rem;
            line-height: 1.8;
            color: var(--gray-color);
        }
        
        .entry-content h1, .entry-content h2, .entry-content h3 {
            color: var(--gray-color);
            margin-top: 2.5rem;
            margin-bottom: 1.5rem;
        }
.main-txt {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 600;
            line-height: 1.6;
            color: var(--primary-color);
            text-align: center;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(5, 150, 105, 0.05));
            border-radius: var(--border-radius);
            border: 2px solid rgba(37, 99, 235, 0.1);
            margin: 2rem 0;
        }
        
        .lang-description {
            background: var(--light-bg-secondary);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            border-left: 6px solid var(--secondary-color);
            margin: 2rem 0;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        .post-footer {
            border-top: 2px solid var(--gray-color);
            margin-top: 3rem;
            padding-top: 2rem;
        }
        
        .similar-posts .list-group-item {
            border: none;
            border-bottom: 1px solid var(--gray-color);
            padding: 0.5rem 1.25rem;
            transition: all 0.3s ease;
        }
        
        .similar-posts .list-group-item:hover {
            background: var(--gray-50);
            transform: translateX(4px);
        }
        
        .similar-posts .list-group-item:last-child {
            border-bottom: none;
        }
        
        .similar-posts .list-group-item a {
            color: var(--gray-color);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .similar-posts .list-group-item:hover a {
            color: var(--primary-color);
        }
        
        .alert {
            border: none;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            font-weight: 500;
        }
        
        .alert-info {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.05));
            color: var(--info-color);
            border-left: 4px solid var(--info-color);
        }
        
        .alert-warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
            color: var(--warning-color);
            border-left: 4px solid var(--warning-color);
        }
        .tag-link {
            display: inline-block;
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.375rem 0.75rem;
            border-radius: 20px;
            background: rgba(5, 150, 105, 0.1);
            margin: 0.125rem;
            transition: all 0.3s ease;
            border: 1px solid rgba(5, 150, 105, 0.2);
        }
        
        .tag-link:hover {
            background: var(--secondary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        .faq-icon {
            transition: transform 0.3s ease;
        }

        .faq-toggle[aria-expanded="true"] .faq-icon {
            transform: rotate(180deg);
        }
        
@media (max-width: 768px) {
    .prayer-times-header .display-5 {
        font-size: 2rem;
    }
    
    .location-info {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .prayer-clock-container {
        margin-bottom: 2rem;
    }
    
    .calendar-header .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .calendar-header .col-md-4:last-child {
        margin-bottom: 0;
    }
}
@media (max-width: 576px) {
        .calendar-card {
            border-radius: 0 !important;
        }

        .calendar-header h2,
        .calendar-header p {
            font-size: 1rem;
        }

        .small-table th,
        .small-table td {
            font-size: 0.55rem;
            padding: 0.15rem 0.04rem !important;
        }

        .calendar-footer small {
            font-size: 0.7rem;
        }

        .calendar-header .btn-sm {
            font-size: 0.75rem;
            padding: 0.3rem 0.6rem;
        }
    }

/* Dark Theme */
[data-bs-theme="dark"] {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border-color);
    --white-color: #343a40;
    --dark-color:#d6c7c7;
    --light-bg-primary: var(--dark-bg-primary);
    --light-bg-secondary: var(--dark-bg-secondary);
}
[data-bs-theme="dark"] .text-dark{
    color: var(--dark-color)!important;
}
[data-bs-theme="dark"] .navbar {
    background-color: var(--dark-bg-secondary);
}

[data-bs-theme="dark"] .feature-card {
    background-color: var(--dark-bg-secondary);
}

[data-bs-theme="dark"] .location-search {
    background: rgba(45, 45, 45, 0.95);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--dark-bg-primary);
    border-color: var(--dark-border-color);
    color: var(--dark-text-primary);
}