/* Fonts */
@font-face {
    font-family: 'Bangabandhu';
    src: url('../fonts/Bangabandhu-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Kalpurush';
    src: url('../fonts/Kalpurush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --default-font: 'Kalpurush';
    --heading-font: 'Bangabandhu';
    --nav-font: 'Bangabandhu';

    /* Theme Variables - Light (Defaults) */
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.05);
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light-gray: #f8fafc;
    --navbar-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0,0,0,0.05);
    --primary-emerald: #064e3b;
    --primary-emarald-light: #10b981;
    --accent-gold: #d4af37;
    --soft-gold: #fcf6ba;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #f1f5f9;

    --card-bg: #1e293b;
    --card-border: rgba(255,255,255,0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-light-gray: #334155;
    --navbar-bg: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --border-color: rgba(255,255,255,0.1);
    --primary-emerald: #10b981; /* Slightly lighter for dark mode */
}

/* Fix logo visibility in dark mode */
[data-bs-theme="dark"] .navbar-brand img {
    filter: drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 1px #fff);
    opacity: 1;
}

body, p, div, a {
    font-family: var(--default-font);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
    line-height: 1.8;
}

section {
    scroll-margin-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.navbar-brand-premium,
code {
    font-family: var(--heading-font);
}

/* Custom styles for code blocks */
.code-block-container {
    position: relative;
    margin: 1rem 0;
    background-color: #282c34; /* A nice dark background for code */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /*max-height: 500px; !* Enable vertical scrolling for long code blocks *!*/
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #21252b;
    color: #abb2bf;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    position: sticky; /* Make the header stick to the top on scroll */
    top: 80px;
    z-index: 1; /* Ensure it stays above the code */
}

.code-block-header .language {
    text-transform: uppercase;
    font-weight: bold;
}

.code-block-header .copy-btn {
    background: none;
    border: 1px solid #61afef;
    color: #61afef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
}

.code-block-header .copy-btn:hover {
    background-color: #61afef;
    color: #282c34;
}

.code-block-header .copy-btn.copied {
    background-color: #98c379;
    color: #282c34;
    border-color: #98c379;
}

.code-block-container pre {
    margin: 0;
    padding: 1rem;
    /* overflow-x is now handled by the container */
    background-color: transparent; /* The container has the background */
    color: #abb2bf;
}

.code-block-container pre code {
    font-family: var(--heading-font);
    font-size: 0.95rem;
    line-height: 1.5;
    background: none;
    padding: 0;
}

.main-content {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: box-shadow 0.3s ease;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    transition: transform 0.3s ease;
}

/* Perfect Center Menu (Desktop Only) */
@media (min-width: 992px) {
    .navbar-collapse {
        position: relative;
    }
    .main-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .main-menu {
        padding: 1rem 0;
        text-align: center;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        align-items: center !important;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.header-actions {
    margin-left: auto;
    flex-wrap: wrap;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse.show, .navbar-collapse.collapsing {
        background-color: var(--bs-body-bg);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .lead {
    color: #adb5bd;
}

[data-bs-theme="dark"] .text-primary {
    color: #0d6efd !important;
}

[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #f8f9fa;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-color: #212529;
}

.theme-switcher {
    cursor: pointer;
}

/* ... existing styles ... */

.theme-icon, .theme-icon-active {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em; /* Align with text */
    fill: currentcolor;
}

#gotoTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    visibility: hidden;
    background-color: var(--primary-emerald);
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

.rounded-circle {
    border-radius: 24% !important;
}

#gotoTop.show {
    opacity: 1;
    visibility: visible;
}

.footer {
    transition: background-color 0.3s ease;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.admin-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 1px solid white;
}

[data-bs-theme="dark"] .admin-badge {
    border-color: var(--bs-gray-800);
}

/* Islamic Pro Styles from index.php */
:root {
    --primary-emerald: #064e3b;
    --accent-gold: #d4af37;
    --soft-gold: #fcf6ba;
    --glass-white: rgba(255, 255, 255, 0.9);
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.islamic-body {
    font-family: var(--default-font);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    overflow-x: hidden;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .border {
    border-color: var(--card-border) !important;
}

.home-page {
    padding-bottom: 140px;
}

h1, h2, h3, .navbar-brand-premium {
    font-family: var(--heading-font);
}

/* Premium Content Styles */
.luxury-card.premium-item {
    border: 1px solid var(--accent-gold) !important;
}

.premium-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-gold);
    z-index: 99;
    background: var(--card-bg);
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.premium-lock i {
    line-height: 1 !important;
    display: inline-block !important;
    font-style: normal;
}

[data-bs-theme="dark"] .premium-lock {
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.luxury-card:hover .premium-lock {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-emerald);
    color: white !important;
}

/* Premium Navbar */
.navbar-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    z-index: 1100;
}

.navbar-brand-premium {
    font-size: 1.6rem;
    background: linear-gradient(to right, var(--primary-emerald), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Hero Section with Islamic Pattern */
.hero-premium {
    background: var(--primary-emerald);
    background-image: linear-gradient(rgba(6, 78, 59, 0.85), rgba(6, 78, 59, 0.85)), url('https://www.transparenttextures.com/patterns/islamic-art.png');
    background-position: center;
    color: white;
    padding: 60px 0 100px;
    border-radius: 0 0 50px 50px;
    position: relative;
    margin-bottom: -50px;
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Specific Month Hero Banners */
.hero-ramadan { background-image: linear-gradient(rgba(6, 78, 59, 0.75), rgba(6, 78, 59, 0.15)), url('/assets/img/ramadan.jpg'); background-size: cover; }
.hero-muharram { background-image: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.85)), url('https://images.unsplash.com/photo-1542856391-010fb87dcfed?auto=format&fit=crop&w=1920&q=80'); }
.hero-rabi-ul-awwal { background-image: linear-gradient(rgba(5, 150, 105, 0.75), rgba(5, 150, 105, 0.85)), url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?auto=format&fit=crop&w=1920&q=80'); }
.hero-rajab { background-image: linear-gradient(rgba(79, 70, 229, 0.75), rgba(79, 70, 229, 0.85)), url('https://images.unsplash.com/photo-1519810755548-39cd217da494?auto=format&fit=crop&w=1920&q=80'); }
.hero-shaban { background-image: linear-gradient(rgba(219, 39, 119, 0.75), rgba(219, 39, 119, 0.85)), url('https://images.unsplash.com/photo-1510250681024-5d5138122d19?auto=format&fit=crop&w=1920&q=80'); }
.hero-shawwal, .hero-dhu-al-qidah, .hero-dhu-al-hijjah { background-image: linear-gradient(rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.15)), url('/assets/img/hajj-monthss.jpg'); background-size: cover; }
.hero-safar, .hero-rabi-us-sani, .hero-jumada-al-ula, .hero-jumada-al-akhira { background-image: linear-gradient(rgba(16, 185, 129, 0.75), rgba(16, 185, 129, 0.85)), url('https://www.transparenttextures.com/patterns/islamic-art.png'); }

/* Gold Gradient Card */
.featured-card {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    padding: 2px;
    border-radius: 24px;
    margin-top: -20px;
    box-shadow: 0 15px 35px rgba(170, 119, 28, 0.25);
    position: relative;
    z-index: 10;
}

.featured-inner {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.featured-item {
    text-align: center;
    flex: 1;
}

.featured-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.featured-item span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Category Headers */
.category-header {
    margin-top: 50px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header h2 {
    font-size: 1.4rem;
    margin: 0;
    white-space: nowrap;
}

.category-line {
    height: 2px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
    width: 100%;
}

/* Gorgeous Subcategory Cards */
.luxury-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.luxury-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-emerald), #10b981);
    opacity: 0;
    z-index: -1;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.18);
}

.luxury-card:hover::before { opacity: 1; }

.luxury-card:hover .icon-wrapper {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.luxury-card:hover .luxury-label { 
    color: #fff !important;
    transform: scale(1.05);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-light-gray);
    color: var(--primary-emerald);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.04);
}

.luxury-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

[data-bs-theme="dark"] .luxury-card {
    border-color: rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] .icon-wrapper {
    background: #1e293b;
}

/* Responsive Grid System */
.premium-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 1200px) {
    .premium-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .premium-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (max-width: 576px) {
    .premium-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-premium { padding: 40px 0 80px; }
    .luxury-card { padding: 25px 10px; }
    .icon-wrapper { width: 60px; height: 60px; font-size: 1.6rem; }
}

/* Glass Player */
.glass-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1050;
    max-width: 1100px;
    margin: 0 auto;
}

.player-info { display: flex; align-items: center; gap: 15px; }
.player-img { 
    width: 45px; height: 45px; 
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-gold));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: white;
    font-size: 1.2rem;
}

.track-name { font-weight: 700; margin: 0; font-size: 0.85rem; }
.track-artist { font-size: 0.7rem; color: #64748b; margin: 0; }

.player-btns { display: flex; align-items: center; gap: 20px; color: var(--primary-emerald); }
.player-btns i { cursor: pointer; font-size: 1.4rem; }
.play-main { font-size: 2.6rem !important; color: var(--accent-gold); }

/* Floating Sahri Info */
.sahri-float {
    position: fixed;
    bottom: 105px;
    right: 30px;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-left: 5px solid var(--accent-gold);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .sahri-float { bottom: 100px; left: 20px; right: 20px; padding: 10px 15px; }
}

.btn-gold {
    background: linear-gradient(135deg, #bf953f, #aa771c);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-gold:hover { box-shadow: 0 5px 15px rgba(170, 119, 28, 0.3); transform: translateY(-2px); color: white; }

/* Main Header Custom Styles */
.main-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    background-color: #ffffff !important;
    padding: 0.5rem 0;
}

.main-menu .nav-link {
    font-family: var(--nav-font);
    font-size: 1.05rem;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-menu .nav-link:hover, .main-menu .nav-link.active {
    color: #064e3b !important;
    font-weight: 700 !important;
}

/* Dropdown Hover Effect */
@media (min-width: 992px) {
    .main-menu .nav-item.dropdown:hover .dropdown-menu,
    .header-actions .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-menu .dropdown-menu,
    .header-actions .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 15px;
        padding: 10px;
    }

    /* Bridge to prevent closing when moving mouse from link to menu */
    .main-menu .nav-item.dropdown,
    .header-actions .dropdown {
        padding-bottom: 10px;
        margin-bottom: -10px;
    }
}

.header-actions .btn {
    font-family: var(--nav-font);
    font-size: 0.95rem;
}

.btn-outline-donation {
    border: 1px solid #dee2e6;
    color: #333;
    background: var(--card-bg);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-outline-donation:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #000;
}

.btn-download {
    background-color: #064e3b;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-download:hover {
    background-color: #053c2d;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-download {
    background: transparent;
    color: #064e3b;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid #064e3b;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.btn-outline-download:hover {
    background-color: #064e3b;
    color: #fff;
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .btn-outline-download {
    color: #10b981;
    border-color: #10b981;
}

[data-bs-theme="dark"] .btn-outline-download:hover {
    background-color: #10b981;
    color: #0f172a;
}

.header-actions .bi-bell, .header-actions .bi-person-circle {
    color: var(--text-main);
    transition: color 0.2s;
}

.header-actions .bi-bell:hover, .header-actions .bi-person-circle:hover {
    color: #064e3b;
}

.no-caret::after {
    display: none;
}
.allah-icon {
    font-size: 28px;
    font-weight: bold;
    color: #053c2d !important; /* or your theme color */
}
.icon-wrapper svg {
    width: 28px;
    height: 28px;
    fill: #053c2d;
    transition: 0.3s ease;
}

/* Hadith & UI Utilities */
.bg-emerald {
    background-color: #064e3b !important;
    color: #ffffff !important;
}

.bg-emerald-light {
    background-color: #ecfdf5 !important;
    color: #064e3b !important;
}

.bg-gold-light {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-emerald {
    color: var(--primary-emerald) !important;
}
.primary-emerald {
    color: var(--primary-emarald-light) !important;
}

.bg-emerald-light.text-emerald {
    color: #064e3b !important;
}

.luxury-card:hover h5, 
.luxury-card:hover .text-emerald,
.luxury-card:hover .text-gold,
.luxury-card:hover .arabic-name {
    color: white !important;
}

.luxury-card:hover .bg-gold-light {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.luxury-card:hover .bg-emerald-light {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
}

/* Ensure icons in cards stay visible */
.luxury-card:hover .icon-wrapper i {
    color: white !important;
}

/* Prayer Times Section Styles */
.prayer-times-section {
    margin-top: 30px;
    margin-bottom: 20px;
}

.prayer-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* Removed overflow: hidden to allow the "bump" effect */
    border: 1px solid rgba(0,0,0,0.05);
}

.main-times {
    display: flex;
    justify-content: space-around;
    padding: 0;
    position: relative;
}

.prayer-time-item {
    flex: 1;
    text-align: center;
    padding: 35px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prayer-time-item:last-child {
    border-right: none;
}

.prayer-time-item.active {
    background: var(--primary-emerald);
    color: #fff;
    z-index: 10;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.3);
    border-right: none; /* Hide border when active to look cleaner */
}

.prayer-time-item.active .prayer-name,
.prayer-time-item.active .prayer-time {
    color: #fff;
}

.prayer-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--bg-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.prayer-time-item.active .prayer-icon-wrapper {
    background: rgba(255,255,255,0.2);
}

.prayer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.prayer-time {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.current-badge {
    position: absolute;
    bottom: 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.65rem;
    padding: 0 12px;
    border-radius: 50px;
    font-weight: 600;
}

/* Secondary Prayer Cards */
.secondary-times {
    display: flex;
    flex-direction: column;
}

.card-header-emerald {
    background: var(--primary-emerald);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
}

.prayer-time-item-small {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.prayer-icon-wrapper-small {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.prayer-name-small {
    font-weight: 700;
    font-size: 0.85rem;
}

.prayer-time-small {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .main-times {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .prayer-time-item {
        flex: 0 0 33.333%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .prayer-time-item:nth-child(3n) {
        border-right: none;
    }
    .prayer-time-item:last-child {
        flex: 0 0 100%;
        border-bottom: none;
    }
    .prayer-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .prayer-time-item {
        flex: 0 0 50%;
    }
    .prayer-time-item:nth-child(2n) {
        border-right: none;
    }
    .prayer-time-item:last-child {
        flex: 0 0 100%;
    }
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
}

.current-badge {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.65rem;
    padding: 0 14px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    animation: badge-pulse 2s infinite ease-in-out;
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 20;
}

/* Daily Hadith Card */
.daily-hadith-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.daily-hadith-card .card-header-emerald {
    border-radius: 0;
}

.daily-hadith-card .hadith-content {
    line-height: 1.8;
}

.daily-hadith-card .arabic-text {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.4rem;
    color: var(--primary-emerald);
    line-height: 2.2;
}

.daily-hadith-card .bangla-text {
    font-size: 1.1rem;
    color: #475569;
}

[data-bs-theme="dark"] .daily-hadith-card {
    background: #1e293b;
    border-color: var(--text-main);
}

[data-bs-theme="dark"] .daily-hadith-card .bangla-text {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .daily-hadith-card .arabic-text {
    color: #34d399;
}
.countdown-timer {
    font-size: 1.1rem;
}