/* ========================================
   Global Variables & Reset
   ======================================== */

:root {
    /* Colors */
    --primary: #1F6F54;
    --secondary: #E8F3EF;
    --accent: #4CAF50;
    --text-primary: #1E1E1E;
    --text-secondary: #6B7280;
    --background: #F9FAFB;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, hsl(163 50% 55%) 0%, hsl(175 50% 45%) 100%);
    
    /* Typography */
    --font-primary: 'Vazirmatn', sans-serif;
    --font-arabic: 'Amiri', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.9;
    direction: rtl;
    font-weight: 400;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    /* color: var(--text-primary); */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: #FFFFFF !important;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-brand:hover .logo-img {
    opacity: 0.85;
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Nav Links */
.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #4B5563;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Custom Dropdown Chevron */
.dropdown-chevron {
    transition: transform 0.25s ease;
    margin-top: 1px;
}

.nav-item.dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Hide Bootstrap default dropdown arrow */
.nav-link.dropdown-toggle::after {
    display: none;
}

/* Premium Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 0.625rem 0;
    margin-top: 0.75rem !important;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    display: block;
    background: white;
}

/* Desktop: Show dropdown on hover */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Prevent click toggle on desktop */
    .nav-link.dropdown-toggle {
        pointer-events: auto;
    }
}

/* Mobile: Use Bootstrap default click behavior */
@media (max-width: 991px) {
    .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0.5rem 1rem;
        margin: 0 !important;
        background: #F9FAFB;
    }
    
    .dropdown-menu.show {
        display: block;
    }
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #4B5563;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    text-align: right;
    border-radius: 6px;
    margin: 0 0.375rem;
}

.dropdown-item:hover {
    background: rgba(31, 111, 84, 0.08);
    color: var(--primary);
}

.dropdown-item:active {
    background: rgba(31, 111, 84, 0.12);
    color: var(--primary);
}

/* Navbar Search */
.navbar-search {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.navbar-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.1);
}

.navbar-search .form-control {
    border: none;
    background: transparent;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    width: 120px;
    transition: width 0.3s ease;
}

.navbar-search .form-control:focus {
    outline: none;
    box-shadow: none;
    width: 160px;
}

.navbar-search .form-control::placeholder {
    color: #9CA3AF;
}

.navbar-search-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-search-btn:hover {
    color: var(--primary);
}

.social-icons a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    padding: 5rem 0 6rem;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(31, 111, 84, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(76, 175, 80, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 80%, rgba(31, 111, 84, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 0%, rgba(31, 111, 84, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, rgba(249, 250, 251, 1) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}





.hero-decoration {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.hero-decoration-right {
    top: 12%;
    left: 3%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-left {
    bottom: 20%;
    right: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-decoration-top {
    top: 8%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
    animation-delay: -2s;
}

/* Additional decorative elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(31, 111, 84, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 2.1;
    max-width: 700px;
    margin: 0 auto;
}

.badge.bg-primary-soft {
    background: linear-gradient(135deg, rgba(31, 111, 84, 0.12) 0%, rgba(76, 175, 80, 0.08) 100%) !important;
    color: var(--primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid rgba(31, 111, 84, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(31, 111, 84, 0.08);
}

.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(31, 111, 84, 0.08);
    }
    50% {
        box-shadow: 0 6px 25px rgba(31, 111, 84, 0.15);
    }
}

/* ========================================
   Enhanced Search Box - Main Focus
   ======================================== */

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* Animated Glow Effect */
.search-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(31, 111, 84, 0.08) 0%, rgba(76, 175, 80, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.search-box {
    position: relative;
    background: white;
    border-radius: 70px;
    box-shadow: 
        0 15px 60px -10px rgba(31, 111, 84, 0.22),
        0 8px 30px -5px rgba(0, 0, 0, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    padding: 0.875rem;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(31, 111, 84, 0.1);
}

.search-box:focus-within {
    box-shadow: 
        0 25px 80px -10px rgba(31, 111, 84, 0.35),
        0 15px 40px -5px rgba(0, 0, 0, 0.14),
        0 0 0 5px rgba(31, 111, 84, 0.1);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(31, 111, 84, 0.2);
}

.search-input {
    border: none;
    padding: 1.625rem 2.25rem;
    font-size: 1.3rem;
    background: transparent;
    flex: 1;
    text-align: right;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Keyboard Shortcut Hint */
.search-icon-hint {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}

.search-icon-hint kbd {
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: #6B7280;
    box-shadow: 0 2px 0 #D1D5DB;
}

.search-btn {
    background: var(--gradient);
    border: none;
    padding: 1.375rem 3rem;
    border-radius: 60px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1875rem;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 10px 30px -5px rgba(31, 111, 84, 0.4);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 45px -5px rgba(31, 111, 84, 0.5);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn i {
    font-size: 1.25rem;
}

/* ========================================
   Quick Search Tags - Enhanced
   ======================================== */

.search-quick-tags {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    align-items: center;
}

.quick-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-label i {
    color: var(--primary);
    font-size: 0.875rem;
}

.quick-tag {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-tag:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 111, 84, 0.25);
}

.quick-tag:active {
    transform: translateY(-1px);
}

/* ========================================
   Compact Inline Stats - Premium Design
   ======================================== */

.stats-inline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.125rem 2rem;
    border-radius: 18px;
    box-shadow: 
        0 4px 20px -5px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(31, 111, 84, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-inline:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px -10px rgba(31, 111, 84, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(31, 111, 84, 0.1);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.stat-number-inline {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label-inline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.125rem;
}

.stat-icon-inline {
    width: 54px;
    height: 54px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px -5px rgba(31, 111, 84, 0.35);
    transition: all 0.3s ease;
}

.stat-item-inline:hover .stat-icon-inline {
    transform: scale(1.08) rotate(5deg);
}

/* Legacy Stats (for other pages) */
.stats-section {
    margin-top: 4rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 5rem 0;
}

.section-subtitle {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   Verse Section
   ======================================== */

.verse-section {
    padding: 5rem 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.verse-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.verse-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.verse-card {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.verse-icon {
    font-size: 3rem;
}

.verse-label {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.9;
}

.verse-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.verse-translation {
    font-size: 1.25rem;
    line-height: 2;
    opacity: 0.95;
}

.verse-card .btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.verse-card .btn-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   Content Section
   ======================================== */

.content-section {
    padding: 5rem 0;
}

/* ========================================
   Latest Content Slider Section
   ======================================== */

.latest-content-section {
    padding: 5rem 0;
    background: var(--background);
}

.section-header-with-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header-content {
    text-align: right;
}

.section-header-content .section-subtitle {
    margin-bottom: 0.75rem;
}

.section-header-content .section-title {
    margin-bottom: 0;
}

.swiper-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.swiper-nav-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.swiper-nav-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.swiper-nav-btn:active {
    transform: scale(0.95);
}

.swiper-nav-btn.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Latest Card */
.latest-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(31, 111, 84, 0.12);
}

.latest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.latest-badge {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-hekmat {
    background: linear-gradient(135deg, rgba(31, 111, 84, 0.12) 0%, rgba(76, 175, 80, 0.12) 100%);
    color: #1F6F54;
}

.badge-letter {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    color: #3B82F6;
}

.badge-article {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(219, 39, 119, 0.12) 100%);
    color: #EC4899;
}

.badge-sermon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 138, 0, 0.12) 100%);
    color: #F59E0B;
}

.play-btn {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 111, 84, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 111, 84, 0.4);
}

.play-btn i {
    margin-right: -2px;
}

.latest-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.latest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.latest-arabic {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.latest-translation {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    margin-top: auto;
}

.view-all-btn {
    border-radius: 50px;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
}

/* Swiper Overrides */
.latestContentSwiper {
    padding: 0.5rem 0 2rem;
}

.latestContentSwiper .swiper-slide {
    height: auto;
}

/* ========================================
   Content Cards (Original)
   ======================================== */

.content-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.content-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.content-link:hover {
    gap: 0.75rem;
    color: var(--accent);
}

/* ========================================
   Statistics Section
   ======================================== */

.statistics-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(31, 111, 84, 0.03) 100%);
}

.statistic-item {
    padding: 2rem 1rem;
}

.statistic-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.statistic-item:hover .statistic-icon {
    transform: scale(1.1) rotate(10deg);
}

.statistic-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.statistic-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.cta-description {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2.5rem;
    font-weight: 700;
}

.cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: linear-gradient(135deg, hsl(163deg 55.27% 34.12%) 0%, hsl(175 50% 45%) 100%);
    color: white;
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer > .container-xl {
    position: relative;
    z-index: 1;
}

.footer-text {
    opacity: 0.85;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, transparent 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
}

.footer-links a::before {
    content: '←';
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.social-links a:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0;
}

/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Utilities
   ======================================== */

.btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .features-section,
    .content-section,
    .statistics-section,
    .latest-content-section {
        padding: 3rem 0;
    }
    
    .verse-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .search-btn {
        padding: 1rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .stats-inline {
        gap: 1rem;
    }
    
    .stat-item-inline {
        padding: 0.875rem 1.25rem;
    }
    
    .stat-number-inline {
        font-size: 1.5rem;
    }
    
    .stat-icon-inline {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .section-header-with-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .swiper-nav-buttons {
        align-self: flex-start;
    }
    
    .latest-card {
        padding: 1.5rem;
    }
    
    .latest-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2rem;
        min-height: auto;
    }
    
    
    .hero-decoration {
        opacity: 0.3;
    }
    
    .hero-decoration svg {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 0 0.5rem;
    }
    
    .search-glow {
        display: none;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 24px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 16px;
        order: -1;
        padding: 1rem 2rem;
    }
    
    .search-input {
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .search-icon-hint {
        display: none;
    }
    
    .search-quick-tags {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quick-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .quick-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .stats-inline {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    
    .stat-item-inline {
        width: 100%;
        max-width: 280px;
        justify-content: space-between;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .scroll-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .verse-arabic {
        font-size: 1.5rem;
    }
    
    .stat-icon,
    .feature-icon,
    .statistic-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Persian Number Styles
   ======================================== */

.persian-numbers {
    font-feature-settings: 'ss01';
}
