/* ===================================================================
   ENHANCED HOMEPAGE STYLES (index.php)
   - Integrated Primary & Secondary Dynamic Brand Colors
   - Redesigned Luxury Headings & Eyebrow Badges
   - Dark Overlays for Hero, Parallax, and Card Image Overlays
   - Crisp Light Theme Surfaces
=================================================================== */

/* ── 1. CORE LIGHT BASE WITH DYNAMIC BRAND VARS ─────────────────── */
:root {
    --light-bg-body: #f8fafc;
    --light-bg-alt: #f1f5f9;
    --light-surface: #ffffff;
    --light-border: #e2e8f0;
    --light-text-heading: #0f172a;
    --light-text-body: #334155;
    --light-text-muted: #64748b;
    --card-light-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
    --card-light-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 25px color-mix(in srgb, var(--color-brand-primary) 20%, transparent);
}

/* Force light theme body background */
body {
    background-color: var(--light-bg-body) !important;
    background-image: linear-gradient(180deg, #ffffff 0%, var(--light-bg-body) 100%) !important;
    color: var(--light-text-body) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Selection Highlight */
::selection {
    background-color: var(--color-brand-primary);
    color: var(--color-text-on-brand, #ffffff);
}

/* ── 2. REDESIGNED LUXURY HEADINGS & DYNAMIC EYEBROWS ──────────── */
.section-title-wrapper {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eyebrow Pill Badge using Primary & Secondary Colors */
.section-title-sub, .eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand-primary) !important;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-brand-primary) 14%, transparent) 0%, 
        color-mix(in srgb, var(--color-brand-secondary) 14%, transparent) 100%);
    border: 1.5px solid color-mix(in srgb, var(--color-brand-secondary) 40%, var(--color-brand-primary));
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-brand-secondary) 15%, transparent);
    margin-bottom: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title-sub::before, .eyebrow-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    box-shadow: 0 0 10px var(--color-brand-secondary);
    animation: pulseGlow 2s infinite ease-in-out;
}

.section-title-sub:hover, .eyebrow-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-brand-secondary) 25%, transparent);
    border-color: var(--color-brand-secondary);
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Section Title with Underline Accent */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--light-text-heading) !important;
    position: relative;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 1rem auto 0;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-radius: 4px;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-brand-secondary) 40%, transparent);
    transition: width 0.4s ease, box-shadow 0.4s ease;
}

.section-title-wrapper:hover .section-title::after {
    width: 110px;
    box-shadow: 0 3px 14px color-mix(in srgb, var(--color-brand-secondary) 60%, transparent);
}

.section-title-static {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--light-text-heading) !important;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title-static::after {
    content: '';
    display: block;
    width: 65px;
    height: 4px;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-radius: 4px;
    margin-top: 8px;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-brand-secondary) 40%, transparent);
}

.section-title--light {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
}

/* Intersection observer animation */
.section-title, .section-title-static {
    opacity: 0.9;
}

.heading-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── 3. HERO SECTION (DYNAMIC ADMIN OVERLAY & DUAL BRANDING) ─────── */
.hero-section {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 10s ease;
}

.hero-section:hover .hero-background {
    transform: scale(1.05);
}

/* Hero Overlay - Controlled dynamically via admin settings (dark background-color & opacity) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.hero-content .h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    margin-bottom: 1.2rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Light Theme Hero Booking Card */
.hero-booking-form-container {
    background: #ffffff !important;
    border: 1px solid var(--light-border) !important;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 25px color-mix(in srgb, var(--color-brand-primary) 15%, transparent) !important;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-booking-form-container:hover {
    border-color: var(--color-brand-primary) !important;
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.16), 0 0 35px color-mix(in srgb, var(--color-brand-secondary) 25%, transparent) !important;
}

/* Hero Tabs Navigation */
.hero-form-tabs {
    background: var(--light-bg-alt) !important;
    border-bottom: 1px solid var(--light-border) !important;
    display: flex;
    padding: 6px;
    gap: 6px;
}

.hero-form-tabs .nav-link {
    color: var(--light-text-muted) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-form-tabs .nav-link i {
    font-size: 1.1rem;
    color: var(--color-brand-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-form-tabs .nav-link:hover {
    color: var(--light-text-heading) !important;
    background: rgba(255, 255, 255, 0.75);
}

.hero-form-tabs .nav-link:hover i {
    transform: scale(1.15);
    color: var(--color-brand-secondary);
}

.hero-form-tabs .nav-link.active {
    color: var(--color-text-on-brand, #ffffff) !important;
    background: var(--color-brand-gradient, var(--color-brand-primary)) !important;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-brand-secondary) 35%, transparent);
}

.hero-form-tabs .nav-link.active i {
    color: var(--color-text-on-brand, #ffffff) !important;
}

/* Tab Content Panes */
.hero-booking-form-container .tab-pane {
    padding: 2.25rem 2rem !important;
    background: #ffffff;
}

.hero-booking-form-container .tab-pane p {
    font-size: 1rem;
    color: var(--light-text-muted) !important;
    margin-bottom: 1.5rem;
}

/* Hero Action Buttons (Primary to Secondary Gradient) */
.hero-booking-form-container .btn-primary {
    position: relative;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.02em;
    overflow: hidden;
    background: var(--color-brand-gradient, var(--color-brand-primary)) !important;
    border-color: var(--color-brand-primary) !important;
    color: var(--color-text-on-brand, #ffffff) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-brand-secondary) 30%, transparent);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-booking-form-container .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.hero-booking-form-container .btn-primary:hover::before {
    left: 140%;
}

.hero-booking-form-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--color-brand-secondary) 45%, transparent);
}

/* Floating Hero Features Strip */
.hero-features-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    margin-top: 3rem;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    background: #ffffff !important;
    border: 1px solid var(--light-border) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light-text-body) !important;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: none !important;
}

.hero-feature-item:hover {
    transform: translateY(-2px);
    color: var(--light-text-heading) !important;
}

.hero-feature-item i {
    font-size: 1.25rem;
    color: var(--color-brand-secondary) !important;
    filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--color-brand-secondary) 30%, transparent));
}

.hero-feature-item span {
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

/* ── 4. CAROUSELS & SERVICE CARDS ──────────────────────────────── */
.content-section {
    padding: 3.5rem 1.5rem;
    position: relative;
    background-color: var(--light-bg-body);
}

.content-section.bg-light-shade {
    background-color: var(--light-bg-alt) !important;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}

/* Carousel Control Buttons */
.carousel-nav {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.carousel-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--light-border);
    background: #ffffff;
    color: var(--light-text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-nav button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    color: var(--color-text-on-brand, #ffffff);
    border-color: var(--color-brand-secondary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-brand-secondary) 35%, transparent);
}

.carousel-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Service Card Styling */
.service-card {
    background: #ffffff !important;
    border: 1px solid var(--light-border) !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-light-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-brand-secondary) !important;
    box-shadow: var(--card-light-shadow-hover);
}

/* DARK OVERLAY ON CARDS */
.service-card-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #0f172a;
}

.service-card-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, transparent 60%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-image-link::after {
    opacity: 0.25;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image {
    transform: scale(1.08);
}

.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.service-card-title a {
    color: var(--light-text-heading) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card:hover .service-card-title a {
    color: var(--color-brand-primary) !important;
}

.service-card-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-brand-primary) !important;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card-footer-link {
    gap: 10px;
    color: var(--color-brand-secondary) !important;
}

/* ── 5. "WHO WE ARE" (ABOUT US) SECTION ─────────────────────────── */
.about-us-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg-body) 100%);
}

.about-us-card {
    background: #ffffff !important;
    border: 1px solid var(--light-border) !important;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.about-us-card p.text-secondary {
    color: var(--light-text-body) !important;
}

.about-media-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--light-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, transform 0.4s ease;
}

.about-media-wrapper:hover {
    border-color: var(--color-brand-primary);
    transform: translateY(-4px);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.about-stat-item {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-brand-primary) 8%, transparent) 0%, 
        color-mix(in srgb, var(--color-brand-secondary) 8%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--color-brand-secondary) 25%, var(--light-border));
    border-radius: 14px;
    padding: 1rem 0.8rem;
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.about-stat-item:hover {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-brand-primary) 15%, transparent) 0%, 
        color-mix(in srgb, var(--color-brand-secondary) 15%, transparent) 100%);
    border-color: var(--color-brand-secondary);
    transform: translateY(-3px);
}

.about-stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1.2;
}

.about-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--light-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-us-section .btn-primary {
    background: var(--color-brand-gradient, var(--color-brand-primary)) !important;
    border-color: var(--color-brand-primary) !important;
    color: var(--color-text-on-brand, #ffffff) !important;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-brand-secondary) 25%, transparent);
}

.about-us-section .btn-primary:hover {
    box-shadow: 0 10px 25px color-mix(in srgb, var(--color-brand-secondary) 40%, transparent);
}

/* ── 6. TRUSTPILOT PARALLAX (DARK OVERLAY) ──────────────────────── */
.parallax-section {
    position: relative;
    padding: 4rem 1.5rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

/* DARK OVERLAY ON PARALLAX SECTIONS */
.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 20, 30, 0.78) 0%, rgba(10, 12, 18, 0.92) 100%) !important;
    z-index: 1;
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

.trustpilot-card {
    display: inline-block;
    max-width: 680px;
    width: 100%;
    background: #ffffff !important;
    border: 1.5px solid var(--color-brand-secondary) !important;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(0, 182, 122, 0.12);
    text-align: left;
}

/* Accent top strip with brand gradient */
.trustpilot-card::before {
    content: '';
    display: block;
    height: 5px;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-radius: 24px 24px 0 0;
}

.trustpilot-card-inner {
    padding: 2.5rem;
    text-align: center;
}

.trustpilot-card .section-title {
    color: var(--light-text-heading) !important;
    text-shadow: none !important;
}

.trustpilot-card .section-title-sub {
    color: var(--color-brand-primary) !important;
}

.trustpilot-card .section-title-wrapper {
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
}

.stars-rating-wrapper {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1.25rem;
}

.stars-rating-wrapper i {
    font-size: 1.4rem;
    color: #00b67a;
    filter: drop-shadow(0 1px 4px rgba(0, 182, 122, 0.35));
}

.trustpilot-logo-img {
    height: 38px;
    width: auto;
    filter: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-top: 0.5rem;
}

.trustpilot-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.12));
}

/* ── 7. PREMIUM FEATURES (WHY CHOOSE US) ────────────────────────── */
.premium-features-section {
    background: linear-gradient(180deg, var(--light-bg-body) 0%, #ffffff 100%) !important;
}

.premium-features-section p.text-muted {
    color: var(--light-text-body) !important;
}

.feature-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
}

.feature-item {
    position: relative;
    background: #ffffff !important;
    border: 1px solid var(--light-border) !important;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-light-shadow);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

/* Accent bottom line: uses admin gradient so it stays consistent */
.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3.5px;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-radius: 3px 3px 0 0;
    transition: width 0.35s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 0 25px color-mix(in srgb, var(--color-brand-secondary) 20%, transparent);
    border-color: var(--color-brand-secondary) !important;
}

.feature-item:hover::after {
    width: 70%;
}

.feature-item__icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-brand-primary) 12%, transparent) 0%, 
        color-mix(in srgb, var(--color-brand-secondary) 12%, transparent) 100%);
    border: 1.5px solid color-mix(in srgb, var(--color-brand-secondary) 30%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-brand-secondary) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item__icon i {
    font-size: 1.85rem;
    color: var(--color-brand-primary) !important;
    transition: transform 0.35s ease, color 0.35s ease;
}

.feature-item:hover .feature-item__icon {
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-color: var(--color-brand-secondary);
    transform: scale(1.12);
}

.feature-item:hover .feature-item__icon i {
    color: var(--color-text-on-brand, #ffffff) !important;
    transform: scale(1.15) rotate(-8deg);
}

.feature-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--light-text-heading) !important;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-item__desc {
    font-size: 0.88rem;
    color: var(--light-text-muted) !important;
    line-height: 1.6;
    margin: 0;
}

/* ── 8. HOLY QURAN PARALLAX (DARK OVERLAY) ──────────────────────── */
.quran-section {
    position: relative;
}

.quran-card {
    display: inline-block;
    max-width: 680px;
    width: 100%;
    background: #ffffff !important;
    border: 1.5px solid var(--color-brand-secondary) !important;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14), 0 0 40px color-mix(in srgb, var(--color-brand-primary) 12%, transparent);
}

/* Accent top strip with brand gradient */
.quran-card::before {
    content: '';
    display: block;
    height: 5px;
    background: var(--color-brand-gradient, var(--color-brand-primary));
    border-radius: 24px 24px 0 0;
}

.quran-card-inner {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quran-card .section-title {
    color: var(--light-text-heading) !important;
    text-shadow: none !important;
}

.quran-section .section-title-sub {
    color: var(--color-brand-primary) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.quran-card .section-title-wrapper {
    margin-bottom: 1.25rem;
}

.quran-card p {
    color: var(--light-text-muted) !important;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 1.5rem;
}

/* Ornament divider */
.quran-ornament-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.quran-ornament-divider::before,
.quran-ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-brand-secondary), transparent);
    opacity: 0.5;
}

.quran-ornament-divider i {
    font-size: 1.1rem;
    color: var(--color-brand-primary);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
    filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--color-brand-primary) 35%, transparent));
    animation: spinOnce 0.6s ease;
}

.quran-image-floating {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--color-brand-primary) 20%, rgba(0,0,0,0.15)));
    animation: floatArtwork 4s ease-in-out infinite;
    margin: 0.5rem 0 1.5rem;
}

@keyframes floatArtwork {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.quran-languages-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quran-language-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--color-brand-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    margin: 0.4rem;
}

.btn-download-pdf.btn-light {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #ffffff !important;
}

.btn-download-pdf.btn-primary {
    background: var(--color-brand-gradient, var(--color-brand-primary)) !important;
    color: var(--color-text-on-brand, #ffffff) !important;
    border-color: var(--color-brand-primary) !important;
}

.btn-download-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--color-brand-secondary) 35%, transparent);
}

.btn-download-pdf i {
    transition: transform 0.3s ease;
}

.btn-download-pdf:hover i {
    transform: translateY(2px);
}

/* ── 9. RESPONSIVE MEDIA QUERIES ────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-content .h1 { font-size: 2.3rem; }
    .section-title { font-size: 1.75rem; }
    .section-title-static { font-size: 1.65rem; }
    .feature-icons-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .about-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .trustpilot-rating-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 4.5rem 1rem 3.5rem; min-height: auto; }
    .hero-content .h1 { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.75rem; }
    .hero-form-tabs { flex-direction: column; }
    .hero-form-tabs .nav-link { padding: 0.75rem 1rem; }
    .hero-features-strip { gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 20px; }
    .hero-feature-item { width: calc(50% - 0.5rem); }
    .section-title { font-size: 1.6rem; }
    .section-title-static { font-size: 1.5rem; }
    .content-section { padding: 3.5rem 1rem; }
    .about-stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .trustpilot-card-inner, .quran-card-inner { padding: 1.75rem 1.25rem; }
    .trustpilot-score-number { font-size: 2.8rem; }
    .trustpilot-cta-row { flex-direction: column; align-items: flex-start; }
    .quran-card .section-title-wrapper { margin-bottom: 0.75rem; }
}

@media (max-width: 575.98px) {
    .feature-icons-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero-feature-item { width: 100%; }
    .trustpilot-score-block { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
