/* ==================== RESET AND BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a472a;
    --secondary-color: #d4af37;
    --accent-color: #2e5c3a;
    --light-color: #f8f5e6;
    --dark-color: #0d2818;
    --text-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-color);
    font-size: 18px;
    overflow-x: hidden;
    transition: var(--transition);
}

body.dark-mode {
    --light-color: #121212;
    --text-color: #e0e0e0;
    --dark-color: #f8f5e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3,
h4 {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: var(--secondary-color);
}

.quran-font {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    display: none !important;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 16px;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.theme-toggle .fa-sun {
    transform: translateX(30px);
}

body.dark-mode .theme-toggle .fa-moon {
    transform: translateX(-30px);
}

body.dark-mode .theme-toggle .fa-sun {
    transform: translateX(0);
}

/* ==================== WHATSAPP CHAT ==================== */
.whatsapp-chat {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(-350px);
    transition: transform 0.3s;
}

body.dark-mode .whatsapp-chat {
    background: #1e1e1e;
    color: #e0e0e0;
}

.whatsapp-chat.active {
    transform: translateX(0);
}

.chat-header {
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header i {
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.close-chat:hover {
    transform: rotate(90deg);
}

.chat-body {
    padding: 20px;
}

.chat-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.whatsapp-btn {
    display: block;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ==================== QUICK CONTACT BAR ==================== */
.quick-contact {
    background: var(--primary-color);
    padding: 10px 0;
    position: fixed;
    top: 70px;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .quick-contact {
    background: #1e1e1e;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-items a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-items a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.contact-items i {
    font-size: 1rem;
}

/* ==================== MAIN HEADER ==================== */
.main-header {
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.98), rgba(13, 40, 24, 0.98));
    padding: 15px 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    height: 70px;
    display: flex;
    align-items: center;
    transition: none !important;
}

body.dark-mode .main-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.quran-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: none !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}


.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 800;
    white-space: nowrap;
}

.logo-subtitle {
    display: none !important;
}

/* Navigation */
.main-nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.main-nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav ul li a i {
    font-size: 0.85rem;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-nav ul li a.active {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

/* Theme Btn */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(30deg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.theme-toggle-btn i {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn .light-icon {
    opacity: 1;
}

.theme-toggle-btn .dark-icon {
    opacity: 0;
}

body.dark-mode .theme-toggle-btn .light-icon {
    opacity: 0;
}

body.dark-mode .theme-toggle-btn .dark-icon {
    opacity: 1;
}

/* Search Btn */
.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.search-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-left {
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .quran-icon {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
    }

    .header-right {
        gap: 10px;
    }

    .theme-toggle-btn,
    .search-btn {
        width: 40px;
        height: 40px;
    }

}

@media (max-width: 768px) {
    .main-header {
        height: 65px;
        padding: 8px 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .search-btn {
        display: none;
    }

}

@media (max-width: 576px) {
    .main-header {
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .quran-icon {
        font-size: 1.4rem;
        width: 36px;
        height: 36px;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
    }

    .theme-toggle-btn i {
        font-size: 1rem;
    }

}

/* ==================== HEADER SCROLL EFFECT ==================== */
.main-header.scrolled {
    height: 70px !important;
    padding: 15px 0 !important;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.98), rgba(13, 40, 24, 0.98)) !important;
}

body.dark-mode .main-header.scrolled {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98)) !important;
}

/* ==================== CAPSULE MENU ENHANCEMENT ==================== */

#mobileMenuBtn {
    background: none !important;
    border: none !important;
}

#mobileMenuBtn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

#mobileMenu {
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4) !important;
    border-left: 2px solid rgba(212, 175, 55, 0.3) !important;
}

body.dark-mode #mobileMenu {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(15, 15, 15, 0.98)) !important;
}

body.dark-mode .capsule-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .capsule-btn:hover {
    background: rgba(212, 175, 55, 0.25) !important;
}

@media (max-width: 768px) {
    #mobileMenu {
        width: 260px !important;
    }

    .capsule-btn {
        padding: 14px 18px !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 480px) {
    #mobileMenu {
        width: 240px !important;
        padding: 20px 12px !important;
    }

    .capsule-btn {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        gap: 12px !important;
    }

    #mobileMenuBtn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
}

/* ==================== SEARCH MODAL ==================== */
.search-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-header {
    background: linear-gradient(135deg, #1a472a, #2e5c3a);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.search-input-container {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

#siteSearch {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#siteSearch:focus {
    outline: none;
    border-color: #1a472a;
    box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.1);
}

.search-go-btn {
    background: #1a472a;
    color: white;
    border: none;
    width: 60px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-go-btn:hover {
    background: #2e5c3a;
    transform: translateX(-3px);
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 50vh;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state p {
    margin: 10px 0;
    color: #666;
}

.results-header {
    color: #1a472a;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.result-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #f8f9fa;
    border-color: #1a472a;
    transform: translateX(-5px);
}

.result-icon {
    background: #f0f7f2;
    color: #1a472a;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.result-content {
    flex: 1;
}

.result-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.result-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.result-arrow {
    color: #999;
    font-size: 0.9rem;
}

.search-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #f8f9fa;
}

.shortcut-info {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shortcut-info kbd {
    background: white;
    border: 1px solid #ddd;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
}

.separator {
    opacity: 0.5;
}

.dark-mode .search-modal-content {
    background: #1e1e2e;
    color: white;
}

.dark-mode .search-input-container {
    background: #252538;
    border-color: #333;
}

.dark-mode #siteSearch {
    background: #2d2d44;
    border-color: #444;
    color: white;
}

.dark-mode .search-go-btn {
    background: #d4af37;
    color: #1a1a2e;
}

.dark-mode .result-item {
    background: #252538;
    border-color: #333;
}

.dark-mode .result-item:hover {
    background: #2d2d44;
    border-color: #d4af37;
}

.dark-mode .result-icon {
    background: #2d2d44;
    color: #d4af37;
}

.dark-mode .result-content h4 {
    color: white;
}

.dark-mode .result-content p {
    color: #aaa;
}

.dark-mode .search-footer {
    background: #252538;
    border-color: #333;
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .search-input-container {
        flex-direction: column;
    }

    .search-go-btn {
        width: 100%;
        height: 50px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-icon {
        align-self: center;
    }
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(rgba(26, 71, 42, 0.85), rgba(13, 40, 24, 0.9)),
        url('images/background/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('images/background/background.webp');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: white;
    background: var(--secondary-color);
    padding: 0 10px;
    border-radius: 5px;
    display: inline-block;
    transform: rotate(-2deg);
}

.hero .quran-verse {
    font-size: 1.6rem;
    margin: 25px 0;
    color: var(--light-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: var(--border-radius);
    border-right: 5px solid var(--secondary-color);
}

body.dark-mode .hero .quran-verse {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border-right: 5px solid var(--secondary-color);
}

.hero-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.free-sample {
    background: rgba(212, 175, 55, 0.1);
    border: 2px dashed var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 25px auto;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

.free-sample i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.sample-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border-bottom: 2px dotted var(--secondary-color);
}

.sample-link:hover {
    color: white;
    border-bottom-color: white;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    white-space: nowrap;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.cta-button i {
    font-size: 1.1rem;
}

/* ==================== HERO STATS ==================== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* ==================== QURAN FLOAT ELEMENTS ==================== */
.quran-float {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.quran-float i {
    position: absolute;
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.3);
    animation: float 6s ease-in-out infinite;
}

.quran-float .fa-quran {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.quran-float .fa-star {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.quran-float .fa-book-open {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ==================== TIMER SECTION ==================== */
.timer-section {
    background: linear-gradient(135deg, var(--primary-color), #2e5c3a);
    padding: 40px 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

body.dark-mode .timer-section {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
}

.timer-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .timer-box {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
}

.timer-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.dark-mode .timer-box h3 {
    color: var(--secondary-color);
}

.timer-box i {
    color: var(--secondary-color);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-box {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 80px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.time-box:hover::before {
    animation: shine 1.5s;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.time-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.time-box .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}

.progress-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

body.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.05);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.remaining {
    color: var(--secondary-color);
    font-weight: 700;
}

.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

body.dark-mode .progress-bar {
    background: #444;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #ffd166);
    width: 70%;
    border-radius: 5px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

body.dark-mode .progress-info {
    color: #aaa;
}

.progress-info strong {
    color: var(--primary-color);
}

body.dark-mode .progress-info strong {
    color: var(--secondary-color);
}

.timer-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), #ffd166);
    color: var(--dark-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.timer-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(45deg, #ffd166, var(--secondary-color));
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 800;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .section-title p {
    color: #aaa;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: white;
}

body.dark-mode .about {
    background-color: #1a1a1a;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
}

body.dark-mode .about-text h3 {
    color: var(--secondary-color);
}

.teacher-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.teacher-bio {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-right: 5px solid var(--secondary-color);
}

body.dark-mode .teacher-bio {
    background: #2d2d2d;
}

.teacher-bio p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.teacher-bio i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 20px 0;
}

body.dark-mode .bio-text {
    color: #ccc;
}

/* ==================== BANNER SLIDER ==================== */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 800px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    right: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--dark-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    right: 15px;
}

.next-btn {
    left: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
    border-color: white;
}

.dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* ==================== QURAN PLAYER ==================== */
.quran-player {
    background: rgba(26, 71, 42, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

body.dark-mode .quran-player {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.quran-player::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.1);
    z-index: 0;
}

.quran-player h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

body.dark-mode .quran-player h4 {
    color: var(--secondary-color);
}

.quran-player h4 i {
    color: var(--secondary-color);
}

.audio-player {
    width: 100%;
    margin: 15px 0;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.play-btn,
.pause-btn {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover,
.pause-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.surah-select {
    flex: 1;
    min-width: 200px;
}

.surah-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .surah-select select {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.surah-select select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* ==================== METHODS SECTION ==================== */
.methods {
    background-color: #f0f7f0;
}

body.dark-mode .methods {
    background-color: #1a1a1a;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.method-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

body.dark-mode .method-card {
    background-color: #1e1e1e;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-100%);
}

.method-card:hover::before {
    animation: shine 1.5s;
}

.method-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

body.dark-mode .method-icon {
    color: var(--secondary-color);
}

.method-card:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.method-card h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition);
}

body.dark-mode .method-card h3 {
    color: var(--secondary-color);
}

.method-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

body.dark-mode .method-card p {
    color: #aaa;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

body.dark-mode .method-details {
    border-top-color: #444;
}

.method-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
}

body.dark-mode .method-details span {
    color: #bbb;
}

.method-details i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* ==================== LEVEL SYSTEM ==================== */
.level-system {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

body.dark-mode .level-system {
    background: #1e1e1e;
}

.level-system::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.level-system h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

body.dark-mode .level-system h3 {
    color: var(--secondary-color);
}

.level-system h3 i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.levels {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.level {
    text-align: center;
    flex: 1;
    padding: 20px;
    position: relative;
    min-width: 200px;
    transition: var(--transition);
}

.level:hover {
    transform: translateY(-10px);
}

.level::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.level:hover::after {
    width: 80%;
}

.level-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.level:hover .level-icon {
    background: linear-gradient(135deg, var(--secondary-color), #ffd166);
    color: var(--dark-color);
    transform: scale(1.1) rotate(360deg);
}

.level-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: transform 0.5s;
}

.level:hover .level-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.level h4 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

body.dark-mode .level h4 {
    color: var(--secondary-color);
}

.level p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark-mode .level p {
    color: #aaa;
}

/* ==================== COURSES SECTION ==================== */
.courses {
    background-color: white;
}

body.dark-mode .courses {
    background-color: #1a1a1a;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

body.dark-mode .course-actions {
    border-top-color: #444;
}

.course-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1.1rem;
}

.course-card {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.dark-mode .course-card {
    background-color: #1e1e1e;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==================== CORNER RIBBON ==================== */
.corner-ribbon {
    position: absolute;
    top: 25px;
    right: -50px;
    width: 200px;
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    text-align: center;
    line-height: 50px;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.corner-ribbon.gold {
    background: linear-gradient(45deg, #ff9f43, #ff7f00);
}

.corner-ribbon.green {
    background: linear-gradient(45deg, #2ed573, #1dd1a1);
}

.corner-ribbon.purple {
    background: linear-gradient(45deg, #a55eea, #8854d0);
}

.corner-ribbon::before,
.corner-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    margin: 0 -1px;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
}

.corner-ribbon::before {
    right: 100%;
}

.corner-ribbon::after {
    left: 100%;
}

.ribbon-shadow {
    position: absolute;
    top: 3px;
    right: -5px;
    width: 210px;
    height: 50px;
    transform: rotate(45deg);
    z-index: -1;
    filter: blur(2px);
    opacity: 0.7;
}

.corner-ribbon span {
    display: block;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes ribbon-float {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-3px);
    }
}

.corner-ribbon {
    animation: ribbon-float 3s ease-in-out infinite;
}

.course-card:hover .corner-ribbon {
    animation-play-state: paused;
    background: linear-gradient(45deg, #ff3838, #ff4757);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.course-card:hover .corner-ribbon.gold {
    background: linear-gradient(45deg, #ff7f00, #ff9f43);
}

/* ==================== COURSE HEADER ==================== */
.course-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.course-header h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.course-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.course-header i {
    font-size: 1rem;
}

.course-tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==================== COURSE BODY ==================== */
.course-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body.dark-mode .course-desc {
    color: #aaa;
    border-bottom-color: #444;
}

.course-features {
    list-style: none;
    margin: 20px 0;
    flex: 1;
}

.course-features li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-right: 35px;
    font-size: 1rem;
    color: #555;
}

body.dark-mode .course-features li {
    color: #bbb;
    border-bottom-color: #444;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li i {
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
}

.course-price {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 71, 42, 0.1));
    border-radius: 15px;
    border: 2px dashed var(--secondary-color);
}

body.dark-mode .course-price {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(30, 30, 30, 0.3));
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-left: 15px;
    display: inline-block;
}

body.dark-mode .old-price {
    color: #777;
}

.new-price {
    font-size: 2.2rem;
    color: var(--secondary-color);
    font-weight: 800;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.installment {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

body.dark-mode .installment {
    color: #888;
}

/* ==================== REGISTRATION FORM ==================== */
.registration-form {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 2px dashed var(--secondary-color);
    position: relative;
    overflow: hidden;
}

body.dark-mode .registration-form {
    background: #2d2d2d;
}

.registration-form::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 6rem;
    color: rgba(212, 175, 55, 0.1);
    z-index: 0;
}

.registration-form h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

body.dark-mode .registration-form h4 {
    color: var(--secondary-color);
}

.registration-form h4 i {
    color: var(--secondary-color);
}

#courseRegistration {
    position: relative;
    z-index: 1;
}

#courseRegistration input,
#courseRegistration select {
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

body.dark-mode #courseRegistration input,
body.dark-mode #courseRegistration select {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}

#courseRegistration input:focus,
#courseRegistration select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

#courseRegistration input::placeholder {
    color: #999;
}

body.dark-mode #courseRegistration input::placeholder {
    color: #777;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

body.dark-mode .form-note {
    color: #888;
}

.form-note i {
    color: var(--secondary-color);
    margin-left: 5px;
}

/* ==================== CLASS CALENDAR ==================== */
.class-calendar {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: var(--shadow);
}

body.dark-mode .class-calendar {
    background: #1e1e1e;
}

.class-calendar h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .class-calendar h3 {
    color: var(--secondary-color);
}

.class-calendar i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

#calendar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode #calendar {
    background: #2d2d2d;
    color: #e0e0e0;
}

.fc {
    font-family: 'Vazirmatn', sans-serif;
}

.fc-toolbar-title {
    color: var(--primary-color);
    font-weight: 700;
}

body.dark-mode .fc-toolbar-title {
    color: var(--secondary-color);
}

.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-button-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.fc-event {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    font-weight: 600;
}

.fc-day-today {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

/* ==================== FREE CLASS SECTION ==================== */
.free-class {
    background: linear-gradient(135deg, #f0f7f0, white);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

body.dark-mode .free-class {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.free-class::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 L100,0 L100,100 Z" fill="rgba(212,175,55,0.05)"/></svg>');
    background-size: cover;
    z-index: 0;
}

.video-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

body.dark-mode .video-container {
    background: #1e1e1e;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: auto;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.video-wrapper video.playing~.video-overlay {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.play-btn-large {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.video-overlay h4 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-info {
    padding: 30px;
}

.video-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .video-info h4 {
    color: var(--secondary-color);
}

.video-info h4 i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.video-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

body.dark-mode .video-info p {
    color: #aaa;
}

.video-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

body.dark-mode .video-details {
    border-top-color: #444;
}

.video-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
}

body.dark-mode .video-details span {
    color: #bbb;
}

.video-details i {
    color: var(--secondary-color);
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    background-color: white;
    padding: 70px 0;
}

body.dark-mode .gallery {
    background-color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    background: white;
    max-width: 900px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: slideInUp 0.3s ease;
}

body.dark-mode .lightbox-content {
    background: #1e1e1e;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

#lightbox-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.lightbox-info {
    padding: 25px;
}

.lightbox-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

body.dark-mode .lightbox-info h4 {
    color: var(--secondary-color);
}

.lightbox-info p {
    color: #666;
    line-height: 1.7;
}

body.dark-mode .lightbox-info p {
    color: #aaa;
}

/* ==================== STUDENT VIDEOS OVERLAY STYLES ==================== */
#testimonials .video-play-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
    border-radius: var(--border-radius);
    text-align: center;
    padding: 20px;
}

#testimonials .video-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.student-video-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    max-width: 90%;
}

.student-video-info i.fa-play-circle {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: all 0.3s ease;
}

#testimonials .video-play-overlay:hover .student-video-info i.fa-play-circle {
    transform: scale(1.1);
    color: #ffd166;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

.student-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.student-achievement {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);
}

/* Play icon animation */
@keyframes pulsePlay {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.student-video-info i.fa-play-circle {
    animation: pulsePlay 2s infinite;
}

#testimonials video.playing~.video-play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#testimonials .video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .student-video-info i.fa-play-circle {
        font-size: 3.5rem;
    }

    .student-name {
        font-size: 1.6rem;
    }

    .student-achievement {
        font-size: 1.1rem;
    }

    .video-slider-container {
        padding: 0 50px;
    }

    .video-slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .prev-video-btn {
        right: -20px;
    }

    .next-video-btn {
        left: -20px;
    }
}

@media (max-width: 768px) {
    .student-video-info i.fa-play-circle {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .student-name {
        font-size: 1.4rem;
    }

    .student-achievement {
        font-size: 1rem;
        padding: 6px 15px;
    }

    .video-slider-container {
        padding: 0 30px;
    }

    .video-item {
        padding: 15px !important;
    }

    .video-info {
        padding: 15px !important;
    }

    .student-rating {
        display: none !important;
    }

    .video-info h4 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 1rem;
    }

    .video-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .prev-video-btn {
        right: -35px;
    }

    .next-video-btn {
        left: -35px;
    }

    .faq-question h4 {
        font-size: 0.9rem !important;
    }

    .faq-question i {
        font-size: 0.85rem !important;
    }

    .faq-answer p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .student-video-info i.fa-play-circle {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .student-name {
        font-size: 1.2rem;
    }

    .student-achievement {
        font-size: 0.9rem;
        padding: 5px 12px;
    }

    .video-slider-container {
        padding: 0 20px;
    }

    .video-item {
        padding: 10px !important;
    }

    .video-info {
        padding: 10px !important;
    }

    .student-rating {
        display: none !important;
    }

    .video-info h4 {
        font-size: 1.1rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }

    .stars {
        font-size: 1rem;
    }

    .rating-text {
        font-size: 0.8rem;
    }

    .video-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-video-btn {
        right: -28px;
    }

    .next-video-btn {
        left: -28px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 0.8rem !important;
    }

    .faq-question i {
        font-size: 0.75rem !important;
    }

    .faq-answer p {
        font-size: 0.8rem !important;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contact-method {
        padding: 12px 8px;
    }

    .contact-method h4 {
        font-size: 0.9rem;
    }

    .contact-method p {
        font-size: 0.75rem;
    }

    .contact-info-box h3 {
        font-size: 1.15rem !important;
    }

    .quran-verse-footer {
        font-size: 0.85rem !important;
    }
}

/* ==================== STUDENTS MAP SECTION ==================== */
.students-map {
    background: linear-gradient(135deg, #f0f7f0, white);
    padding: 70px 0;
}

body.dark-mode .students-map {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.map-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#iranMap {
    flex: 2;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 300px;
}

.map-stats {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    min-width: 300px;
}

body.dark-mode .map-stats {
    background: #1e1e1e;
}

.map-stats h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .map-stats h4 {
    color: var(--secondary-color);
}

.map-stats h4 i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.city-stats {
    margin-top: 20px;
}

.city-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

body.dark-mode .city-stat {
    border-bottom-color: #444;
}

.city-stat:hover {
    transform: translateX(-5px);
    border-bottom-color: var(--secondary-color);
}

.city-name {
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
}

body.dark-mode .city-name {
    color: #ccc;
}

.city-count {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    background: linear-gradient(rgba(26, 71, 42, 0.9), rgba(13, 40, 24, 0.9));
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

body.dark-mode .testimonials {
    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,100 L0,100 Z" fill="rgba(212,175,55,0.1)"/></svg>');
    background-size: cover;
}

.testimonials .section-title h2 {
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* ==================== VIDEO SLIDER ==================== */
.video-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 1;
}

.video-slider-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.video-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-item {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    right: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.video-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 25px;
}

.video-container video {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.video-info {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-info h4 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.video-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.student-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.video-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    color: var(--dark-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.prev-video-btn {
    right: -25px;
}

.next-video-btn {
    left: -25px;
}

.video-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.video-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    border-color: white;
}

.video-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* ==================== TESTIMONIALS GRID ==================== */
/* .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    object-fit: cover;
}

.student-info {
    flex: 1;
}

.student-info h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.student-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-body {
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-body p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    padding-right: 20px;
}

.testimonial-body p::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    top: -15px;
    right: 0;
    opacity: 0.3;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) 0% 30%, rgba(255, 255, 255, 0.1) 30% 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: attr(data-percent)'%';
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.testimonial-footer span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
} */



/* ==================== FAQ SECTION ==================== */
.faq {
    background-color: white;
    padding: 70px 0;
}

body.dark-mode .faq {
    background-color: #1a1a1a;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .faq-item {
    border-color: #444;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

body.dark-mode .faq-question {
    background-color: #2d2d2d;
}

.faq-question:hover {
    background-color: #f0f7f0;
}

body.dark-mode .faq-question:hover {
    background-color: #333;
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

body.dark-mode .faq-question h4 {
    color: var(--secondary-color);
}

.faq-question:hover h4 {
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.open {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

body.dark-mode .faq-answer p {
    color: #aaa;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: linear-gradient(135deg, #f0f7f0, white);
    padding: 70px 0;
}

body.dark-mode .contact {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ==================== CONTACT INFO BOX ==================== */
.contact-info-box {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    min-width: 300px;
}

.contact-info-box h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-info-box h3 i {
    font-size: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-method {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.contact-method i,
.contact-method img {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    width: 40px;
    height: 40px;
    display: inline-block;
}

.contact-method img {
    object-fit: contain;
}

.contact-method h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-method p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-5px) rotate(10deg);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.social-link:hover .social-icon {
    filter: none;
}

/* ==================== CONTACT FORM BOX ==================== */
.contact-form-box {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    min-width: 300px;
}

body.dark-mode .contact-form-box {
    background: #1e1e1e;
}

.contact-form-box h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

body.dark-mode .contact-form-box h3 {
    color: var(--secondary-color);
}

.contact-form-box h3 i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 17px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .submit-btn:hover {
    background: white;
    color: var(--dark-color);
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 25px;
}

body.dark-mode footer {
    background-color: #0a0a0a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-logo h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-subtitle {
    color: rgba(221, 221, 221, 0.8);
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.quran-verse-footer {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-right: 3px solid var(--secondary-color);
}


.script-toggle {
    margin-top: 25px;
}

.script-btn {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.script-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer-links ul li a::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links ul li a:hover::before {
    transform: translateX(5px);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-newsletter h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-newsletter p {
    color: rgba(221, 221, 221, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: rotate(15deg) scale(1.1);
    background: white;
}

.footer-certificates {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-certificates img {
    height: 60px;
    border-radius: 5px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-certificates img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-stats i {
    font-size: 1rem;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--secondary-color);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== QURAN MODAL ==================== */
.quran-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quran-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    animation: slideInUp 0.3s ease;
}

body.dark-mode .modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

body.dark-mode .modal-close {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

body.dark-mode .modal-content h3 {
    color: var(--secondary-color);
}

.modal-content h3 i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.quran-verse-modal {
    font-size: 1.8rem;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    margin: 25px 0;
    border-right: 5px solid var(--secondary-color);
    line-height: 2;
}

body.dark-mode .quran-verse-modal {
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.05);
}

.verse-info {
    margin: 25px 0;
    text-align: right;
}

.verse-info p {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
}

body.dark-mode .verse-info p {
    color: #aaa;
}

.verse-info strong {
    color: var(--primary-color);
}

body.dark-mode .verse-info strong {
    color: var(--secondary-color);
}

.copy-verse {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.copy-verse:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .copy-verse:hover {
    background: white;
    color: var(--dark-color);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero .quran-verse {
        font-size: 1.4rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .map-container {
        flex-direction: column;
    }

    .map-stats {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        align-self: center;
    }

    #iranMap {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .levels {
        flex-wrap: wrap;
        gap: 20px;
    }

    .level {
        flex: 0 0 calc(50% - 20px);
        min-width: 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-box {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
        margin-right: 10px;
    }

    .header-container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }

    .logo h1 {
        font-size: 1.3rem;
        white-space: nowrap;
    }

    .logo .quran-icon {
        font-size: 1.5rem;
        margin-left: 8px;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 71, 42, 0.98), rgba(13, 40, 24, 0.98));
        padding: 80px 0 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        margin: 0;
        overflow-y: auto;
    }

    body.dark-mode nav ul {
        background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav ul.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav ul.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav ul.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav ul.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav ul.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    nav ul.active li:nth-child(8) {
        transition-delay: 0.45s;
    }

    nav ul.active li:nth-child(9) {
        transition-delay: 0.5s;
    }

    nav ul li a {
        display: block;
        padding: 18px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
        border-radius: 0;
        transition: all 0.3s;
    }

    nav ul li a:hover {
        background-color: rgba(212, 175, 55, 0.15);
        padding-right: 35px;
        color: var(--secondary-color);
    }

    .header-actions {
        display: none;
    }

    .quick-contact {
        display: none;
    }

    .theme-toggle {
        top: 20px;
        left: 20px;
        width: 50px;
        height: 25px;
    }

    .whatsapp-chat {
        display: none;
    }

    .hero {
        padding: 60px 0 40px;
        margin-top: 40px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero .quran-verse {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 25px !important;
        font-size: 1.1rem;
        justify-content: center;
        text-align: center;
        margin: 5px 0;
        display: flex !important;
        border-radius: 40px;
    }

    .course-btn.cta-button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        border-radius: 30px;
    }

    .timer-section {
        padding: 30px 0;
    }

    .timer-box {
        padding: 25px 20px;
    }

    .countdown {
        gap: 10px;
    }

    .time-box {
        flex: 0 0 calc(50% - 10px);
        min-width: auto;
        padding: 15px;
    }

    .time-box .number {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .banner-slider {
        height: 800px;
    }

    .course-cards,
    .method-cards,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery horizontal scroll on mobile */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 55vw;
        max-width: 220px;
        scroll-snap-align: start;
        height: 240px;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-method {
        padding: 15px 10px;
    }

    .contact-method h4 {
        font-size: 1rem;
    }

    .contact-method p {
        font-size: 0.8rem;
    }

    .contact-info-box h3 {
        font-size: 1.3rem !important;
    }

    .quran-verse-footer {
        font-size: 1rem !important;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 25px 20px;
    }

    .video-slider-container {
        padding: 0 40px;
    }

    .video-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .prev-video-btn {
        right: -20px;
    }

    .next-video-btn {
        left: -20px;
    }

    .video-dots {
        gap: 10px;
        margin-top: 25px;
    }

    .video-dot {
        width: 12px;
        height: 12px;
    }

    .level-system,
    .class-calendar {
        padding: 25px 20px;
    }

    .level-system h3 {
        font-size: 1.35rem;
    }

    .corner-ribbon {
        top: 20px;
        right: -38px;
        width: 155px;
        line-height: 38px;
        font-size: 0.75rem;
    }

    .video-overlay {
        padding-top: 20px;
    }

    .video-overlay h4 {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-stats {
        justify-content: center;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1.2rem;
    }

    .scroll-progress-container {
        height: 3px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.6rem;
    }

    .hero .quran-verse {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .counter {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-box {
        flex: 0 0 calc(50% - 7.5px);
        padding: 15px;
    }

    .time-box .number {
        font-size: 1.8rem;
    }

    .new-price {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .course-header h3 {
        font-size: 1.4rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .teacher-title {
        font-size: 1.1rem;
    }

    .method-card h3 {
        font-size: 1.4rem;
    }

    .level {
        flex: 0 0 calc(50% - 7px);
        min-width: 0;
        padding: 12px 8px;
    }

    .levels {
        gap: 14px;
    }

    .level-system h3 {
        font-size: 1.2rem;
    }

    .corner-ribbon {
        top: 18px;
        right: -33px;
        width: 145px;
        line-height: 36px;
        font-size: 0.7rem;
    }

    .video-overlay {
        padding-top: 25px;
    }

    .video-overlay h4 {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .play-btn-large {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .video-slider-container {
        padding: 0 30px;
    }

    .video-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-video-btn {
        right: -15px;
    }

    .next-video-btn {
        left: -15px;
    }

    .video-dots {
        gap: 8px;
        margin-top: 20px;
    }

    .video-dot {
        width: 10px;
        height: 10px;
    }

    .video-info {
        padding: 15px;
    }

    .video-info h4 {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .quran-verse-modal {
        font-size: 1.4rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .copy-verse {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    nav ul {
        width: 80%;
    }

    nav ul li a {
        padding: 16px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    .hero h2 {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .time-box {
        padding: 12px;
    }

    .time-box .number {
        font-size: 1.6rem;
    }

    .time-box .label {
        font-size: 0.8rem;
    }

    .corner-ribbon {
        top: 14px;
        right: -28px;
        width: 130px;
        line-height: 32px;
        font-size: 0.65rem;
    }

    .ribbon-shadow {
        width: 140px;
        height: 32px;
        top: 1px;
        right: -3px;
    }

    .corner-ribbon span {
        padding: 0 10px;
    }

    .video-slider-container {
        padding: 0 20px;
    }

    .video-slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .prev-video-btn {
        right: -10px;
    }

    .next-video-btn {
        left: -10px;
    }

    .video-dots {
        gap: 6px;
    }

    .video-dot {
        width: 8px;
        height: 8px;
    }

    .footer-newsletter {
        padding: 20px 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
        height: 45px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo .quran-icon {
        font-size: 1.3rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {

    .theme-toggle,
    .whatsapp-chat,
    .quick-contact,
    .back-to-top,
    .mobile-menu-btn,
    .search-btn,

    .slider-btn,
    .video-slider-btn,
    .play-btn,
    .pause-btn,
    .play-btn-large,

    .cta-button,
    .timer-btn,
    .submit-btn,

    .script-btn,
    .copy-verse,
    .lightbox-close,
    .modal-close,
    .search-close,
    .close-chat {
        display: none !important;
    }

    header {
        position: relative;
        box-shadow: none;
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }

    header .logo h1 {
        color: black !important;
    }

    header .quran-icon {
        color: black !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        margin-top: 0;
        padding: 50px 0;
    }

    .hero h2 {
        color: black !important;
    }

    .hero .quran-verse {
        color: black !important;
        background: none !important;
        border: 1px solid #ddd !important;
    }

    .highlight {
        background: none !important;
        color: black !important;
    }

    .timer-section,
    .whatsapp-chat,
    .quran-float,
    .scroll-progress-container,
    .menu-overlay {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
        padding: 30px 0 !important;
    }

    .course-card,
    .method-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    .corner-ribbon {
        background: #f0f0f0 !important;
        color: black !important;
        box-shadow: none !important;
        animation: none !important;
    }

    .course-price {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }

    .new-price {
        color: black !important;
    }

    footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid #ddd;
    }

    footer h3,
    footer h4 {
        color: black !important;
    }

    footer a {
        color: #333 !important;
    }

    .quran-verse-footer {
        color: black !important;
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 20px !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .section-title h2 {
        color: black !important;
    }

    .section-title h2::after {
        background: black !important;
    }

    .quran-font {
        font-size: 12pt !important;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-0 {
    margin-top: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.pt-0 {
    padding-top: 0;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-30 {
    padding-top: 30px;
}

.pt-40 {
    padding-top: 40px;
}

.pt-50 {
    padding-top: 50px;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pb-50 {
    padding-bottom: 50px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.grid {
    display: grid;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-circle {
    border-radius: 50%;
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-light {
    color: var(--light-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

.text-white {
    color: white !important;
}

.text-black {
    color: black !important;
}

.text-muted {
    color: #666 !important;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

.font-small {
    font-size: 0.9rem;
}

.font-large {
    font-size: 1.2rem;
}

.font-xlarge {
    font-size: 1.5rem;
}

.bold {
    font-weight: 700;
}

.semibold {
    font-weight: 600;
}

.light {
    font-weight: 300;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.underline {
    text-decoration: underline;
}

.no-underline {
    text-decoration: none;
}

.pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

.overflow-hidden {
    overflow: hidden;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.z-999 {
    z-index: 999;
}

.z-1000 {
    z-index: 1000;
}

.z-2000 {
    z-index: 2000;
}

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* ==================== ANIMATION UTILITIES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55);
    }

    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--secondary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease forwards;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s forwards;
}

.animate-gradientBG {
    background: linear-gradient(-45deg, #1a472a, #2e5c3a, #d4af37, #f8f5e6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.animate-wave {
    animation: wave 1.5s linear infinite;
}

.animate-blink {
    animation: blink 1s infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

.duration-100 {
    animation-duration: 100ms;
}

.duration-200 {
    animation-duration: 200ms;
}

.duration-300 {
    animation-duration: 300ms;
}

.duration-400 {
    animation-duration: 400ms;
}

.duration-500 {
    animation-duration: 500ms;
}

.duration-600 {
    animation-duration: 600ms;
}

.duration-700 {
    animation-duration: 700ms;
}

.duration-800 {
    animation-duration: 800ms;
}

.duration-900 {
    animation-duration: 900ms;
}

.duration-1000 {
    animation-duration: 1000ms;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}