/* ==== KABE.TR – Premium Design System ==== */
/* Light theme, gold/green accents, Islamic aesthetic */
/* Fonts loaded via preload in HTML for better CWV scores */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f0;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --text-primary: #1a1a2e;
    --text-secondary: #5f6368;
    --gold: #b8860b;
    --gold-light: #d4a853;
    --green: #1b5e20;
    --green-light: #2e7d32;
    --accent: #b8860b;
    --border: rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(184, 134, 11, 0.08) 20px,
            rgba(184, 134, 11, 0.08) 21px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 20px,
            rgba(184, 134, 11, 0.08) 20px,
            rgba(184, 134, 11, 0.08) 21px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 40px,
            rgba(184, 134, 11, 0.08) 40px,
            rgba(184, 134, 11, 0.08) 41px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            rgba(184, 134, 11, 0.08) 40px,
            rgba(184, 134, 11, 0.08) 41px);
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Geometric Pattern Background === */
.geometric-pattern {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(184, 134, 11, 0.06) 20px,
            rgba(184, 134, 11, 0.06) 21px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 20px,
            rgba(184, 134, 11, 0.06) 20px,
            rgba(184, 134, 11, 0.06) 21px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 40px,
            rgba(184, 134, 11, 0.06) 40px,
            rgba(184, 134, 11, 0.06) 41px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            rgba(184, 134, 11, 0.06) 40px,
            rgba(184, 134, 11, 0.06) 41px);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(184, 134, 11, 0.15);
}

.navbar.scrolled .container {
    height: 50px;
}

.navbar.scrolled .brand-logo {
    height: 60px;
}

.navbar.scrolled .nav-links a {
    height: 50px;
}

.navbar.scrolled .nav-dropdown {
    height: 50px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: height 0.35s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand .brand-logo {
    height: 75px;
    width: auto;
    transition: height 0.4s ease, transform 0.3s;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.04);
}

.navbar-brand .brand-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 0 10px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    position: relative;
}

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

.nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.55rem;
    opacity: 0.4;
    transition: transform 0.3s, opacity 0.3s;
    display: inline-block;
    margin-left: 4px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    height: auto !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-secondary) !important;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.nav-dropdown-menu a.active {
    background: rgba(184, 134, 11, 0.06) !important;
    color: var(--gold) !important;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--bg-secondary);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 12px;
    border-left: 1px solid var(--border);
    padding-left: 12px;
    height: 28px;
    align-items: center;
}

.lang-switcher a {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    border: none !important;
    border-bottom: none !important;
    height: auto !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lang-switcher a:hover {
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
}

.lang-switcher a.active {
    background: var(--gold) !important;
    color: #fff !important;
}

body[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 12px;
    border-left: none;
    border-right: 1px solid var(--border);
    padding-left: 0;
    padding-right: 12px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(ellipse at center, rgba(184, 134, 11, 0.04) 0%, transparent 60%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.25);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-glass);
    color: #cd930b;
    border: 1px solid rgb(184 134 11);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* === WAVE DIVIDER === */
.section-wave {
    position: relative;
    z-index: 2;
    margin-top: -2px;
    line-height: 0;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* === STREAMS SECTION (Islamic pattern bg) === */
.streams-section {
    background: #faf8f3;
    position: relative;
    overflow: hidden;
}

.streams-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background:
        /* Layer 1: diagonal lines */
        repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            var(--gold) 20px,
            var(--gold) 21px),
        /* Layer 2: opposite diagonal */
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 20px,
            var(--gold) 20px,
            var(--gold) 21px),
        /* Layer 3: horizontal weave */
        repeating-linear-gradient(0deg,
            transparent,
            transparent 40px,
            var(--gold) 40px,
            var(--gold) 41px),
        /* Layer 4: vertical weave */
        repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            var(--gold) 40px,
            var(--gold) 41px);
}

/* Decorative arch shapes on sides */
.streams-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.streams-section .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-gold {
    color: var(--gold);
}

/* === PAGE HEADER === */
.page-header {
    padding: 140px 0 60px;
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.06) 0%, transparent 50%);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === VIDEO PLAYER === */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: #e53935;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite;
}

.viewer-count {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

body[dir="rtl"] .live-badge {
    left: auto;
    right: 20px;
}

body[dir="rtl"] .viewer-count {
    right: auto;
    left: 20px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* === CONTENT SECTION === */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--gold);
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 8px;
}

.content-section strong {
    color: var(--text-primary);
}

/* === STATS BAR === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

body[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--gold);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === PRAYER TIMES TABLE === */
.prayer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.prayer-table th {
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    padding: 14px 20px;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

body[dir="rtl"] .prayer-table th {
    text-align: right;
}

.prayer-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.prayer-table tr:hover td {
    background: rgba(212, 168, 83, 0.03);
}

/* === DUA CARDS === */
.dua-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
}

.dua-card .dua-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--gold);
    text-align: right;
    direction: rtl;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(212, 168, 83, 0.05);
    border-radius: var(--radius-sm);
}

.dua-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dua-card .dua-translation {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dua-card .dua-source {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* === FOOTER === */
.footer {
    background: #1a1a2e;
    color: #c0c0c8;
    padding: 70px 0 0;
    position: relative;
    z-index: 1;
}

.footer a {
    color: #a0a0aa;
    transition: all 0.25s ease;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-brand img {
    height: 140px;
}

.footer-about p {
    color: #8a8a96;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #a0a0aa;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0;
}

.footer-social a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    padding-left: 0;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

body[dir="rtl"] .footer-column h4::after {
    left: auto;
    right: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #8a8a96;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: #5a5a66;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ALERT === */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(46, 125, 50, 0.15);
    color: var(--green-light);
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.alert-error {
    background: rgba(229, 57, 53, 0.15);
    color: #ef5350;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: 300px;
        height: 100vh;
        background: #fff;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 85px 0 30px;
        gap: 0;
        align-items: stretch;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        text-align: left;
        border-radius: 0;
        padding: 14px 28px;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(184, 134, 11, 0.06);
    }

    .nav-links a.active {
        border-left: 3px solid var(--gold);
        padding-left: 25px;
    }

    /* Mobile dropdown - expand below trigger */
    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .nav-dropdown-trigger {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        height: auto !important;
        padding: 14px 28px !important;
    }

    .dropdown-arrow {
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-width: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.02) !important;
        backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        display: block !important;
        flex-direction: column !important;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 600px;
        border-left: 2px solid rgba(212, 168, 83, 0.2) !important;
        margin-left: 20px;
    }

    .nav-dropdown-menu a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px 12px 22px !important;
        font-size: 0.88rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
        border-radius: 0 !important;
        color: var(--text-secondary) !important;
        height: auto !important;
        white-space: normal !important;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:active {
        color: var(--gold) !important;
        background: rgba(212, 168, 83, 0.06) !important;
        padding-left: 26px !important;
    }

    .nav-dropdown-menu a.active {
        border-left: none !important;
        color: var(--gold) !important;
        background: rgba(212, 168, 83, 0.08) !important;
        font-weight: 600;
    }

    .nav-links.open {
        right: 0;
    }

    body[dir="rtl"] .nav-links {
        right: auto;
        left: -110%;
        border-left: none;
        border-right: 1px solid var(--border);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    }

    body[dir="rtl"] .nav-links.open {
        left: 0;
    }

    body[dir="rtl"] .nav-links a {
        text-align: right;
    }

    body[dir="rtl"] .nav-links a.active {
        border-left: none;
        border-right: 3px solid var(--gold);
        padding-left: 28px;
        padding-right: 25px;
    }

    body[dir="rtl"] .nav-dropdown-menu {
        border-left: none !important;
        border-right: 2px solid rgba(184, 134, 11, 0.15) !important;
        margin-left: 0;
        margin-right: 20px;
    }

    .lang-switcher {
        margin: 15px 28px 0;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MOBILE BOTTOM NAV === */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(1.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.5);
    border-top: 1px solid var(--border);
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.06);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav-items a,
.bottom-nav-items button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    letter-spacing: 0.3px;
}

.bottom-nav-items a .nav-icon,
.bottom-nav-items button .nav-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: all 0.25s ease;
    position: relative;
}

/* Active state with glow */
.bottom-nav-items a.active {
    color: var(--gold);
}

.bottom-nav-items a.active .nav-icon {
    transform: scale(1.2) translateY(-2px);
    filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.4));
}

/* Active indicator dot */
.bottom-nav-items a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.4);
}

/* Hover/touch effect */
.bottom-nav-items a:not(.active):hover,
.bottom-nav-items button:hover {
    color: var(--text-primary);
}

.bottom-nav-items a:not(.active):hover .nav-icon,
.bottom-nav-items button:hover .nav-icon {
    transform: scale(1.1);
}

/* More menu overlay - slide-up sheet */
.more-menu-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 10px);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.12);
    animation: sheetSlideUp 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.more-menu-overlay.open {
    display: block;
}

/* Handle bar */
.more-menu-overlay::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin: 12px auto 8px;
}

.more-menu-overlay a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

.more-menu-overlay a:last-of-type {
    border-bottom: none;
}

.more-menu-overlay a:hover,
.more-menu-overlay a:active {
    color: var(--gold);
    background: rgba(184, 134, 11, 0.06);
    padding-left: 28px;
}

.more-menu-overlay .lang-row {
    display: flex;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    justify-content: center;
}

.more-menu-overlay .lang-row a {
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid var(--border);
    min-width: 0;
    letter-spacing: 0.5px;
    justify-content: center;
    border-bottom: none;
}

.more-menu-overlay .lang-row a:hover {
    padding-left: 18px;
}

.more-menu-overlay .lang-row a.active {
    background: linear-gradient(135deg, var(--gold), #d4a853);
    color: #fff;
    border-color: var(--gold);
}

@keyframes sheetSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SHARE BAR === */
.share-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-bar-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-btn.whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.share-btn.copy-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 168, 83, 0.1);
}

.share-btn .share-icon {
    font-size: 1.1rem;
}

/* Copy tooltip */
.share-btn .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--gold);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

.share-btn .tooltip.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Small share button for dua cards */
.dua-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.dua-share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Mobile adjustments for bottom nav */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 68px;
    }

    .back-to-top {
        bottom: 80px;
    }

    body[dir="rtl"] .more-menu-overlay {
        right: auto;
        left: 10px;
    }

    .share-bar {
        gap: 8px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .share-bar-label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-btn span:not(.share-icon) {
        display: none;
    }

    .share-btn {
        padding: 10px 14px;
    }
}

/* ==== DUALAR PAGE ==== */
.dua-search-box {
    margin-bottom: 25px;
}

.dua-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.dua-search-inner:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.15);
}

.dua-search-icon {
    font-size: 1.2em;
}

.dua-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1em;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.dua-search-input::placeholder {
    color: var(--text-secondary);
}

.dua-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.dua-stats strong {
    color: var(--gold);
}

.dua-category {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.dua-category:hover {
    border-color: rgba(184, 134, 11, 0.2);
}

.dua-category.open {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.08);
}

.dua-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.dua-category-header:hover {
    background: rgba(184, 134, 11, 0.04);
}

.dua-category-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dua-category-icon {
    font-size: 1.5em;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
}

.dua-category-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.dua-category-count {
    font-size: 0.8em;
    color: var(--gold);
    font-weight: 500;
}

.dua-category-toggle {
    color: var(--gold);
    font-size: 0.85em;
    transition: var(--transition);
}

.dua-category-body {
    border-top: 1px solid var(--border);
}

.dua-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.dua-item:last-child {
    border-bottom: none;
}

.dua-item:hover {
    background: rgba(184, 134, 11, 0.03);
}

.dua-arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.5em;
    line-height: 2;
    direction: rtl;
    text-align: right;
    color: var(--gold-light);
    margin-bottom: 14px;
    padding: 15px 18px;
    background: rgba(184, 134, 11, 0.04);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--gold);
}

.dua-translation-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 2px solid rgba(212, 168, 83, 0.2);
}

.dua-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dua-source-tag {
    font-size: 0.78em;
    color: var(--text-secondary);
    background: var(--bg-glass);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.dua-actions {
    display: flex;
    gap: 6px;
}

.dua-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: var(--transition);
    color: var(--text-primary);
}

.dua-btn:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .dua-category-header {
        padding: 12px 14px;
    }

    .dua-category-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2em;
    }

    .dua-category-title {
        font-size: 0.95em;
    }

    .dua-item {
        padding: 14px;
    }

    .dua-arabic-text {
        font-size: 1.25em;
        padding: 12px 14px;
    }

    .dua-translation-text {
        font-size: 0.88em;
    }

    .dua-stats {
        font-size: 0.82em;
        gap: 14px;
    }
}

/* ==== HERO VIDEO SECTION ==== */
.hero-video-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg .video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: opacity 0.5s;
}

.hero-video-bg .video-thumb.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
    border: none;
    pointer-events: none;
    z-index: 0;
}

.hero-video-bg .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.15) 30%,
            rgba(10, 10, 15, 0.15) 60%, rgba(10, 10, 15, 0.9) 100%);
}

.hero-video-bg .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 60px;
    max-width: 800px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 5%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 60px 20px rgb(0 0 0);
}

.hero-video-bg h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-video-bg .hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-badge {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 600;
}

.hero-video-bg .btn-group {
    position: relative;
    z-index: 3;
}

.hero-video-bg .btn {
    pointer-events: all;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 30px rgba(212, 168, 83, 0.4);
}

.hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 40px rgba(212, 168, 83, 0.6);
}

.hero-play-btn.hidden {
    display: none;
}

/* Hero mobile overrides */
@media (max-width: 768px) {
    .hero-video-bg .hero-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 30px 20px;
    }

    .hero-video-bg {
        min-height: 85vh;
    }

    .hero-video-bg .overlay {
        background: linear-gradient(to bottom,
                rgba(10, 10, 15, 0.5) 0%,
                rgba(10, 10, 15, 0.3) 40%,
                rgba(10, 10, 15, 0.3) 60%,
                rgba(10, 10, 15, 0.85) 100%);
    }

    .hero-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==== SERVICE CARDS ==== */
.service-card {
    text-align: center;
    padding: 35px 25px;
}

.service-card .card-icon {
    font-size: 2.5rem;
}

/* ==== DAILY DUA SECTION ==== */
.daily-dua-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.daily-dua-container {
    max-width: 700px;
    text-align: center;
}

.daily-dua-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    direction: rtl;
    color: var(--gold);
    line-height: 2.2;
    margin: 20px 0;
}

.daily-dua-title {
    color: var(--text-primary);
    margin: 15px 0 8px;
}

.daily-dua-translation {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.daily-dua-source {
    color: var(--gold-light);
    font-style: italic;
}

/* ==== BLOG ARTICLE CARDS ==== */
.article-card {
    padding: 0;
    overflow: hidden;
}

.article-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-cover-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(184, 134, 11, 0.04));
    font-size: 3rem;
}

.article-body {
    padding: 20px;
}

.article-body h3 {
    margin-bottom: 8px;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted, var(--text-secondary));
}

/* ==== CTA CARDS ==== */
.cta-card {
    text-align: center;
    padding: 40px 30px;
}

.cta-card .btn {
    margin-top: 15px;
}

.blog-all-link {
    text-align: center;
    margin-top: 30px;
}