/* ============================================
   EASY DA'WAH Frontend Modern Design System
   Version 2.0 - Clean, Modern, Islamic Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* CSS Custom Properties
   Palette: deep emerald primary, warm stone neutrals, charcoal text,
   muted gold used sparingly for accents and Quran-related highlights. */
:root {
    --ed-primary: #135c43;
    --ed-primary-light: #1a7a58;
    --ed-primary-dark: #0d4231;
    --ed-primary-50: #f3f7f5;
    --ed-primary-100: #dfeae4;
    --ed-secondary: #1d211f;
    --ed-secondary-light: #363c39;
    --ed-accent: #b08d57;
    --ed-accent-light: #cdae7e;
    --ed-accent-dark: #8f7043;
    /* Gold dark enough to use as text on the light backgrounds; --ed-accent
       stays as-is for icons, borders and other non-text decoration. */
    --ed-accent-text: #7d633b;
    /* Gold light enough to read on the emerald gradients (which run from
       #0d4231 to #1a7a58) - the standard accent drops to 2.5:1 there. */
    --ed-accent-on-dark: #f5efe5;
    /* Donation red. Deliberately the only red in the palette so it reads as
       a call to give rather than as an error state - kept a deep, warm red
       so it sits beside the emerald without shouting. */
    --ed-donate: #b81f2b;
    --ed-donate-dark: #8f1721;
    --ed-donate-light: #d94452;
    --ed-donate-50: #fdf2f3;
    --ed-donate-100: #f7dcdf;
    --ed-success: #2f7d5d;
    --ed-success-light: #dcece4;
    --ed-danger: #b3453b;
    --ed-warning: #b0812f;
    --ed-info: #3f6b8a;
    --ed-dark: #161a18;
    --ed-dark-700: #262b28;
    /* Warm stone neutrals rather than cool slate */
    --ed-gray-50: #faf8f4;
    --ed-gray-100: #f2efe8;
    --ed-gray-200: #e6e1d6;
    --ed-gray-300: #d2cbbc;
    --ed-gray-400: #787061;
    --ed-gray-500: #696359;
    --ed-gray-600: #5b554d;
    --ed-gray-700: #423e37;
    --ed-gray-800: #2b2823;
    --ed-gray-900: #1a1815;
    --ed-white: #ffffff;
    --ed-body-bg: #faf8f4;
    --ed-card-bg: #ffffff;
    /* Moderate rounding, not pill-shaped everywhere */
    --ed-border-radius: 8px;
    --ed-border-radius-sm: 5px;
    --ed-border-radius-lg: 12px;
    --ed-border-radius-xl: 16px;
    --ed-radius: 8px;
    --ed-radius-sm: 5px;
    --ed-radius-md: 8px;
    --ed-radius-lg: 12px;
    /* Restrained shadows */
    --ed-shadow-sm: 0 1px 2px 0 rgba(26, 24, 21, 0.04);
    --ed-shadow: 0 1px 3px 0 rgba(26, 24, 21, 0.06), 0 1px 2px -1px rgba(26, 24, 21, 0.04);
    --ed-shadow-md: 0 4px 12px -2px rgba(26, 24, 21, 0.07), 0 2px 4px -2px rgba(26, 24, 21, 0.04);
    --ed-shadow-lg: 0 12px 28px -8px rgba(26, 24, 21, 0.10), 0 4px 8px -4px rgba(26, 24, 21, 0.05);
    --ed-shadow-xl: 0 24px 48px -12px rgba(26, 24, 21, 0.14);
    --ed-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ed-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ed-font-display: 'Poppins', Georgia, 'Times New Roman', serif;
    --ed-font-arabic: 'Kitab', 'Noto Naskh Arabic', serif;
}


/* ============================================
   BASE STYLES
   ============================================ */
/* Arabic font faces */
@font-face {
    font-family: 'Kitab';
    src: url("../fonts/Kitab-Regular.ttf");
}

@font-face {
    font-family: 'Kitab Bold';
    src: url("../fonts/Kitab-Bold.ttf");
}

@font-face {
    font-family: 'JannaBold';
    src: url("../fonts/Janna-bold.woff") format("woff");
}

@font-face {
    font-family: 'JannaRegular';
    src: url("../fonts/Janna-regular.woff") format("woff");
}

@font-face {
    font-family: 'SourceSansProRegular';
    src: url("../fonts/sourcesanspro-regular.woff2") format("woff2");
}


@font-face {
    font-family: 'SourceSansProBold';
    src: url("../fonts/sourcesanspro-bold.woff2") format("woff2");
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ed-font-family) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--ed-gray-700) !important;
    background-color: var(--ed-body-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ed-font-display) !important;
    font-weight: 600 !important;
    color: var(--ed-dark) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

/* Smaller headings inside UI chrome read better in the UI sans */
.ed-card-header,
.ed-form-label,
.badge,
.ed-btn,
th {
    font-family: var(--ed-font-family) !important;
}

h1 {
    font-size: 2.5rem !important;
}

h2 {
    font-size: 2rem !important;
}

h3 {
    font-size: 1.5rem !important;
}

h4 {
    font-size: 1.25rem !important;
}

h5 {
    font-size: 1.1rem !important;
}

h6 {
    font-size: 1rem !important;
}

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

a:hover {
    color: var(--ed-primary-dark);
    text-decoration: none;
}

p {
    color: var(--ed-gray-600);
    margin-bottom: 1rem;
}

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

/* ============================================
   NAVIGATION / HEADER
   ============================================ */
#ed-header {
    background: var(--ed-white);
    box-shadow: var(--ed-shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: var(--ed-transition);
}

#ed-header.scrolled {
    box-shadow: var(--ed-shadow-md);
}

.ed-topbar {
    background: var(--ed-dark);
    color: var(--ed-gray-400);
    padding: 8px 0;
    font-size: 13px;
}

.ed-topbar a {
    color: var(--ed-gray-400);
    transition: var(--ed-transition);
}

.ed-topbar a:hover {
    color: var(--ed-accent);
}

.ed-topbar .fa,
.ed-topbar .fas,
.ed-topbar .far {
    color: var(--ed-accent);
    margin-right: 6px;
}

.ed-navbar {
    padding: 0.75rem 0;
}

.ed-navbar .navbar-brand img {
    height: 45px;
    transition: var(--ed-transition);
}

.ed-navbar .nav-link {
    color: var(--ed-gray-700) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem !important;
    border-radius: var(--ed-border-radius-sm);
    transition: var(--ed-transition);
    position: relative;
}

.ed-navbar .nav-link:hover,
.ed-navbar .nav-link.active {
    color: var(--ed-primary) !important;
    background: var(--ed-primary-50);
}

.ed-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--ed-primary);
    border-radius: 2px;
}

.ed-nav-cta {
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-dark)) !important;
    color: var(--ed-white) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    border: none;
    transition: var(--ed-transition);
}

.ed-nav-cta:hover {
    background: linear-gradient(135deg, var(--ed-accent-light), var(--ed-accent)) !important;
    color: var(--ed-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

/* Mobile toggle */
.navbar-toggler {
    border: 2px solid var(--ed-gray-300) !important;
    padding: 0.4rem 0.6rem;
    border-radius: var(--ed-border-radius-sm);
}

.navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
}

/* ============================================
   HERO / PAGE HEADERS
   ============================================ */
.ed-hero {
    background: linear-gradient(135deg, var(--ed-secondary) 0%, var(--ed-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    color: var(--ed-white);
}

.ed-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.4;
    z-index: 0;
}

.ed-hero .container {
    position: relative;
    z-index: 1;
}

.ed-hero h1 {
    color: var(--ed-white) !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem;
}

.ed-hero .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
}

.ed-hero .ed-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--ed-accent-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Page Headers (inner pages) */
.ed-page-header {
    background: linear-gradient(135deg, var(--ed-secondary) 0%, var(--ed-primary-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ed-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.ed-page-header .container {
    position: relative;
    z-index: 1;
}

.ed-page-header h2 {
    color: var(--ed-white) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ed-page-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 1rem;
}

.ed-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
    font-size: 0.9rem;
}

.ed-breadcrumb li {
    color: var(--ed-gray-500);
}

.ed-breadcrumb li a {
    color: var(--ed-primary);
}

.ed-breadcrumb li+li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--ed-gray-400);
}

/* ============================================
   SECTIONS
   ============================================ */
.ed-section {
    padding: 4rem 0;
}

.ed-section-sm {
    padding: 2.5rem 0;
}

.ed-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.ed-section-title h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--ed-dark) !important;
    margin-bottom: 0.75rem;
}

.ed-section-title p {
    color: var(--ed-gray-500);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.ed-section-title .ed-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ed-primary), var(--ed-accent));
    border-radius: 3px;
    margin: 1rem auto;
}

/* ============================================
   CARDS
   ============================================ */
.ed-card {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    border: 1px solid var(--ed-gray-200);
    box-shadow: var(--ed-shadow-sm);
    transition: var(--ed-transition);
    overflow: hidden;
}

.ed-card:hover {
    box-shadow: var(--ed-shadow-md);
    transform: translateY(-2px);
    border-color: var(--ed-gray-300);
}

.ed-card .card-body {
    padding: 1.5rem;
}

.ed-card .card-header {
    background: var(--ed-gray-50);
    border-bottom: 1px solid var(--ed-gray-200);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--ed-dark);
}

.ed-card .card-footer {
    background: var(--ed-gray-50);
    border-top: 1px solid var(--ed-gray-200);
    padding: 1rem 1.5rem;
}

.ed-card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Feature Cards */
.ed-feature-card {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--ed-gray-200);
    box-shadow: var(--ed-shadow-sm);
    transition: var(--ed-transition);
}

.ed-feature-card:hover {
    box-shadow: var(--ed-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--ed-primary-100);
}

.ed-feature-card .ed-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    background: var(--ed-primary-50);
    color: var(--ed-primary);
    transition: var(--ed-transition);
}

.ed-feature-card:hover .ed-icon {
    background: var(--ed-primary);
    color: var(--ed-white);
    transform: scale(1.05);
}

.ed-feature-card h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem;
}

.ed-feature-card p {
    font-size: 0.9rem;
    color: var(--ed-gray-500);
    margin-bottom: 0;
}

.ed-feature-card .ed-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ed-primary);
}

.ed-feature-card .ed-link:hover {
    color: var(--ed-primary-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--ed-font-family);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ed-border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--ed-transition);
    text-decoration: none;
    line-height: 1.5;
}

.ed-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.ed-btn-primary {
    background: linear-gradient(135deg, var(--ed-primary), var(--ed-primary-dark));
    color: var(--ed-white) !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.ed-btn-primary:hover {
    background: linear-gradient(135deg, var(--ed-primary-light), var(--ed-primary));
    color: var(--ed-white) !important;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.ed-btn-accent {
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-dark));
    color: var(--ed-white) !important;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.25);
}

.ed-btn-accent:hover {
    background: linear-gradient(135deg, var(--ed-accent-light), var(--ed-accent));
    color: var(--ed-white) !important;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
}

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

.ed-btn-outline:hover {
    background: var(--ed-primary);
    color: var(--ed-white) !important;
}

.ed-btn-white {
    background: var(--ed-white);
    color: var(--ed-primary) !important;
    box-shadow: var(--ed-shadow);
}

.ed-btn-white:hover {
    background: var(--ed-gray-50);
    color: var(--ed-primary-dark) !important;
    box-shadow: var(--ed-shadow-md);
}

.ed-btn-dark {
    background: var(--ed-dark);
    color: var(--ed-white) !important;
}

.ed-btn-dark:hover {
    background: var(--ed-dark-700);
    color: var(--ed-white) !important;
}

.ed-btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
}

.ed-btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.ed-btn-block {
    display: flex;
    width: 100%;
}

.ed-btn-pill {
    border-radius: 50px;
}

/* ============================================
   FORMS
   ============================================ */
.ed-form-control {
    font-family: var(--ed-font-family);
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--ed-gray-300);
    border-radius: var(--ed-border-radius-sm);
    font-size: 0.9rem;
    color: var(--ed-gray-800);
    background: var(--ed-white);
    transition: var(--ed-transition);
    width: 100%;
    height: auto;
}

.ed-form-control:focus {
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    outline: none;
}

.ed-form-control::placeholder {
    color: var(--ed-gray-400);
}

.ed-form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ed-gray-700);
    margin-bottom: 0.35rem;
}

.ed-form-group {
    margin-bottom: 1.25rem;
}

select.ed-form-control {
    appearance: auto;
}

textarea.ed-form-control {
    min-height: 120px;
    resize: vertical;
}

/* Also style Bootstrap form-control for backward compat */
.form-control {
    border-radius: var(--ed-border-radius-sm);
    border: 1.5px solid var(--ed-gray-300);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: var(--ed-transition);
}

.form-control:focus {
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* ============================================
   TABLES
   ============================================ */
.ed-table-wrapper {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    border: 1px solid var(--ed-gray-200);
    overflow: hidden;
    box-shadow: var(--ed-shadow-sm);
}

.ed-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.ed-table thead th {
    background: var(--ed-gray-50);
    color: var(--ed-gray-600);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--ed-gray-200);
    white-space: nowrap;
}

.ed-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ed-gray-100);
    color: var(--ed-gray-700);
    font-size: 0.9rem;
    vertical-align: middle;
}

.ed-table tbody tr:hover {
    background: var(--ed-gray-50);
}

.ed-table tbody tr:last-child td {
    border-bottom: none;
}

/* Style standard Bootstrap tables too */
.table thead th {
    background: var(--ed-secondary) !important;
    color: var(--ed-white) !important;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 0.875rem 1rem;
}

.table td {
    color: var(--ed-gray-700) !important;
    vertical-align: middle !important;
    text-transform: none;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: var(--ed-primary-50) !important;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.ed-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    line-height: 1.5;
}

.ed-badge-primary {
    background: var(--ed-primary-100);
    color: var(--ed-primary-dark);
}

.ed-badge-accent {
    background: rgba(212, 168, 67, 0.15);
    color: var(--ed-accent-text);
}

.ed-badge-success {
    background: var(--ed-success-light);
    color: #065f46;
}

.ed-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   CAROUSEL / SLIDER
   ============================================ */
.ed-carousel .carousel-item img {
    border-radius: var(--ed-border-radius-lg);
    box-shadow: var(--ed-shadow-lg);
}

.ed-carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.ed-carousel .carousel-indicators .active {
    background: var(--ed-accent);
    width: 28px;
    border-radius: 5px;
}

.ed-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--ed-border-radius-sm);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.ed-carousel .carousel-caption h3 {
    color: var(--ed-white) !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
}

.ed-carousel .carousel-caption p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.ed-audio-card {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    border: 1px solid var(--ed-gray-200);
    overflow: hidden;
    transition: var(--ed-transition);
}

.ed-audio-card:hover {
    box-shadow: var(--ed-shadow-md);
    transform: translateY(-3px);
}

.ed-audio-card .ed-audio-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ed-audio-card .ed-audio-body {
    padding: 1rem;
}

.ed-audio-card .ed-audio-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ed-audio-card .ed-audio-meta {
    font-size: 0.8rem;
    color: var(--ed-gray-500);
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ed-audio-card audio {
    width: 100%;
    border-radius: var(--ed-border-radius-sm);
    outline: none;
}

/* ============================================
   VIDEO CARDS
   ============================================ */
.ed-video-card {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    border: 1px solid var(--ed-gray-200);
    overflow: hidden;
    transition: var(--ed-transition);
}

.ed-video-card:hover {
    box-shadow: var(--ed-shadow-md);
    transform: translateY(-3px);
}

.ed-video-card .ed-video-thumb {
    position: relative;
    overflow: hidden;
}

.ed-video-card .ed-video-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--ed-transition);
}

.ed-video-card:hover .ed-video-thumb img {
    transform: scale(1.05);
}

.ed-video-card .ed-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--ed-transition);
}

.ed-video-card:hover .ed-play-overlay {
    opacity: 1;
}

.ed-play-overlay i {
    font-size: 3rem;
    color: var(--ed-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ed-video-card .ed-video-body {
    padding: 1rem;
}

.ed-video-card .ed-video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.ed-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ed-search-bar input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 2px solid var(--ed-gray-200);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--ed-white);
    transition: var(--ed-transition);
    color: var(--ed-gray-800);
}

.ed-search-bar input:focus {
    border-color: var(--ed-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    outline: none;
}

.ed-search-bar .ed-search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ed-gray-400);
    font-size: 1rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.ed-pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.ed-pagination li a,
.ed-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--ed-border-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ed-gray-600);
    background: var(--ed-white);
    border: 1px solid var(--ed-gray-200);
    transition: var(--ed-transition);
    text-decoration: none;
}

.ed-pagination li a:hover {
    background: var(--ed-primary-50);
    border-color: var(--ed-primary);
    color: var(--ed-primary);
}

.ed-pagination li.active a,
.ed-pagination li.active span {
    background: var(--ed-primary);
    color: var(--ed-white);
    border-color: var(--ed-primary);
}

.ed-pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bootstrap pagination override */
.pagination .page-item .page-link {
    border-radius: var(--ed-border-radius-sm);
    border: 1px solid var(--ed-gray-200);
    color: var(--ed-gray-600);
    font-weight: 500;
    margin: 0 2px;
    transition: var(--ed-transition);
}

.pagination .page-item.active .page-link,
.pagination .page-link.bg-success {
    background: var(--ed-primary) !important;
    border-color: var(--ed-primary) !important;
    color: var(--ed-white) !important;
}

.pagination .page-link:hover {
    background: var(--ed-primary-50);
    border-color: var(--ed-primary);
    color: var(--ed-primary);
}

/* ============================================
   QURAN & ISLAMIC CONTENT
   ============================================ */
.ed-arabic-text {
    font-family: var(--ed-font-arabic);
    font-size: 1.75rem;
    line-height: 2.5;
    color: var(--ed-dark);
    direction: rtl;
    text-align: right;
}

.ed-arabic-text-lg {
    font-size: 2.25rem;
    line-height: 2.8;
}

.ed-verse-card {
    background: var(--ed-white);
    border-radius: var(--ed-border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ed-gray-200);
    transition: var(--ed-transition);
}

.ed-verse-card:hover {
    border-color: var(--ed-primary-100);
    box-shadow: var(--ed-shadow);
}

.ed-verse-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ed-primary);
    color: var(--ed-white);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.ed-surah-info {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    border: 1px solid var(--ed-gray-200);
    overflow: hidden;
}

.ed-surah-info .list-group-item {
    border-color: var(--ed-gray-100);
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
}

.ed-surah-info .list-group-item b {
    color: var(--ed-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.ed-footer {
    background: var(--ed-dark);
    color: var(--ed-gray-400);
    padding: 4rem 0 0;
}

.ed-footer h5 {
    color: var(--ed-white) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ed-footer p {
    color: var(--ed-gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ed-footer a {
    color: var(--ed-gray-400);
    transition: var(--ed-transition);
    font-size: 0.9rem;
}

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

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

.ed-footer-links li {
    padding: 0.4rem 0;
}

.ed-footer-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-footer-links li a i {
    font-size: 0.7rem;
    color: var(--ed-primary);
}

.ed-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ed-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ed-gray-400);
    font-size: 1rem;
    transition: var(--ed-transition);
}

.ed-footer-social a:hover {
    background: var(--ed-primary);
    color: var(--ed-white);
    padding-left: 0;
    transform: translateY(-2px);
}

.ed-footer-newsletter input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ed-white);
    border-radius: var(--ed-border-radius-sm) 0 0 var(--ed-border-radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.ed-footer-newsletter input::placeholder {
    color: var(--ed-gray-500);
}

.ed-footer-newsletter input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ed-primary);
    outline: none;
    box-shadow: none;
}

.ed-footer-newsletter button {
    border-radius: 0 var(--ed-border-radius-sm) var(--ed-border-radius-sm) 0;
    background: var(--ed-primary);
    border: 1px solid var(--ed-primary);
    color: var(--ed-white);
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    transition: var(--ed-transition);
}

.ed-footer-newsletter button:hover {
    background: var(--ed-primary-light);
    border-color: var(--ed-primary-light);
}

.ed-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--ed-gray-500);
}

.ed-footer-bottom a {
    color: var(--ed-gray-400);
}

.ed-footer-bottom a:hover {
    color: var(--ed-accent-light);
    padding-left: 0;
}

/* ============================================
   CONTACT INFO BOXES
   ============================================ */
.ed-info-box {
    background: var(--ed-white);
    border-radius: var(--ed-border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--ed-gray-200);
    height: 100%;
    transition: var(--ed-transition);
}

.ed-info-box:hover {
    box-shadow: var(--ed-shadow-md);
    border-color: var(--ed-primary-100);
}

.ed-info-box .ed-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--ed-primary-50);
    color: var(--ed-primary);
    font-size: 1.4rem;
}

.ed-info-box h5 {
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    margin-bottom: 0.75rem;
}

.ed-info-box p {
    font-size: 0.9rem;
    color: var(--ed-gray-500);
    margin-bottom: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--ed-primary);
    color: var(--ed-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--ed-shadow-md);
    transition: var(--ed-transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--ed-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--ed-shadow-lg);
    color: var(--ed-white);
}

/* ============================================
   LIST GROUP / SURAH INFO OVERRIDE
   ============================================ */
.list-group-item {
    border-color: var(--ed-gray-100);
}

.list-group-item.bg-dark {
    background: var(--ed-secondary) !important;
    border: none;
}

/* ============================================
   CHANNEL / RECITOR GRID CARDS
   ============================================ */
.ed-channel-card {
    background: var(--ed-card-bg);
    border-radius: var(--ed-border-radius);
    overflow: hidden;
    border: 1px solid var(--ed-gray-200);
    text-align: center;
    transition: var(--ed-transition);
}

.ed-channel-card:hover {
    box-shadow: var(--ed-shadow-lg);
    transform: translateY(-4px);
}

.ed-channel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ed-channel-card .ed-channel-body {
    padding: 1.25rem;
}

.ed-channel-card h6 {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: var(--ed-dark) !important;
    margin-bottom: 0.75rem;
}

/* ============================================
   DONATE / CTA SECTIONS
   ============================================ */
.ed-donate-section {
    background: linear-gradient(135deg, var(--ed-primary-50), var(--ed-white));
    border-radius: var(--ed-border-radius-lg);
    border: 1px solid var(--ed-gray-200);
    overflow: hidden;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.ed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.ed-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ed-gray-200);
    border-top-color: var(--ed-primary);
    border-radius: 50%;
    animation: ed-spin 0.8s linear infinite;
}

@keyframes ed-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ALERTS / NOTIFICATIONS
   ============================================ */
.ed-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--ed-border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ed-alert-success {
    background: var(--ed-success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ed-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ed-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ed-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .ed-hero {
        padding: 3rem 0;
    }

    .ed-hero h1 {
        font-size: 2rem !important;
    }

    .ed-section {
        padding: 3rem 0;
    }

    .ed-navbar .nav-link {
        padding: 0.5rem 0 !important;
    }

    .ed-topbar {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .ed-hero {
        padding: 2.5rem 0;
        text-align: center;
    }

    .ed-hero h1 {
        font-size: 1.75rem !important;
    }

    .ed-hero .lead {
        margin: 0 auto;
    }

    .ed-section {
        padding: 2rem 0;
    }

    .ed-page-header {
        padding: 2rem 0;
    }

    .ed-page-header h2 {
        font-size: 1.5rem !important;
    }

    .ed-footer {
        padding: 3rem 0 0;
        text-align: center;
    }

    .ed-footer-links li a {
        justify-content: center;
    }

    .ed-footer-social {
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.ed-bg-gradient {
    background: linear-gradient(135deg, var(--ed-secondary) 0%, var(--ed-primary-dark) 100%);
}

.ed-bg-light {
    background: var(--ed-gray-50);
}

.ed-text-primary {
    color: var(--ed-primary) !important;
}

.ed-text-accent {
    color: var(--ed-accent) !important;
}

.ed-text-muted {
    color: var(--ed-gray-500) !important;
}

.ed-text-dark {
    color: var(--ed-dark) !important;
}

.ed-rounded {
    border-radius: var(--ed-border-radius);
}

.ed-rounded-lg {
    border-radius: var(--ed-border-radius-lg);
}

.ed-shadow {
    box-shadow: var(--ed-shadow);
}

.ed-shadow-md {
    box-shadow: var(--ed-shadow-md);
}

.ed-shadow-lg {
    box-shadow: var(--ed-shadow-lg);
}

.ed-gap-1 {
    gap: 0.25rem;
}

.ed-gap-2 {
    gap: 0.5rem;
}

.ed-gap-3 {
    gap: 1rem;
}

.ed-gap-4 {
    gap: 1.5rem;
}

/* Override old breadcrumbs */
.breadcrumbs {
    background: linear-gradient(135deg, var(--ed-secondary) 0%, var(--ed-primary-dark) 100%) !important;
    padding: 2.5rem 0 !important;
}

.breadcrumbs h2 {
    color: var(--ed-white) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Override old page-header */
.page-header {
    background: linear-gradient(135deg, var(--ed-secondary) 0%, var(--ed-primary-dark) 100%) !important;
    padding: 2.5rem 0 !important;
}

.page-header h2 {
    color: var(--ed-white) !important;
    font-weight: 700 !important;
}

/* Card overrides for backward compat */
.card {
    border-radius: var(--ed-border-radius) !important;
    border: 1px solid var(--ed-gray-200) !important;
    box-shadow: var(--ed-shadow-sm) !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--ed-shadow) !important;
}

.card-header {
    background: var(--ed-gray-50) !important;
    border-bottom: 1px solid var(--ed-gray-200) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--ed-dark);
}

.card-body {
    padding: 1.5rem;
}

/* Override Bootstrap btn-success / btn-info */
.btn-success {
    background: var(--ed-primary) !important;
    border-color: var(--ed-primary) !important;
    border-radius: var(--ed-border-radius-sm);
    font-weight: 600;
    transition: var(--ed-transition);
}

.btn-success:hover {
    background: var(--ed-primary-dark) !important;
    border-color: var(--ed-primary-dark) !important;
    transform: translateY(-1px);
}

.btn-info {
    background: var(--ed-info) !important;
    border-color: var(--ed-info) !important;
    border-radius: var(--ed-border-radius-sm);
    color: var(--ed-white) !important;
}

.btn-warning {
    background: var(--ed-accent) !important;
    border-color: var(--ed-accent) !important;
    border-radius: var(--ed-border-radius-sm);
    color: var(--ed-white) !important;
}

.btn-danger {
    background: var(--ed-danger) !important;
    border-color: var(--ed-danger) !important;
    border-radius: var(--ed-border-radius-sm);
}

.btn-secondary {
    background: var(--ed-gray-600) !important;
    border-color: var(--ed-gray-600) !important;
    border-radius: var(--ed-border-radius-sm);
}

.badge {
    border-radius: 50px !important;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ed-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--ed-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ed-gray-400);
}

/* Selection colors */
::selection {
    background: var(--ed-primary);
    color: var(--ed-white);
}

::-moz-selection {
    background: var(--ed-primary);
    color: var(--ed-white);
}
