/* =============================================================
           ELEARNING — all selectors prefixed mel- (zero site conflicts)
        ============================================================= */
.mel-page {
    padding-top: 0;
}

.mel-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.mel-section-alt {
    background: var(--parchment);
}

.mel-sec-head {
    text-align: center;
    margin-bottom: 52px;
}

.mel-sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 14px;
}

.mel-sec-eyebrow span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.mel-sec-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.22;
    margin-bottom: 13px;
}

.mel-sec-desc {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 590px;
    margin: 0 auto;
    line-height: 1.8;
}

.mel-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.mel-orn-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.mel-orn-line.rev {
    background: linear-gradient(to left, transparent, var(--gold));
}

.mel-orn-diamond {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════
           HERO — redesigned to match homepage aesthetic
        ═══════════════════════════════════════════════════════ */
.mel-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 180px 0 80px;
    background-image: url("../Images/Home/Hero-large.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

/* Layered light overlay — identical technique to homepage hero */
.mel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .80) 0%,
            rgba(236, 248, 246, .70) 35%,
            rgba(210, 238, 234, .60) 60%,
            rgba(255, 255, 255, .75) 100%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18) 100%);
}

/* Subtle geometric watermark — matches site geo-bg */
.mel-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%231f6b41' stroke-width='0.4'%3E%3Cpolygon points='40,2 78,21 78,59 40,78 2,59 2,21'/%3E%3Cpolygon points='40,14 66,27 66,53 40,66 14,53 14,27'/%3E%3C/g%3E%3C/svg%3E");
}

/* Coloured accent blobs — now teal/gold tones on light bg */
.mel-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.mel-hero-blob-1 {
    z-index: 1;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(13, 115, 119, .10) 0%, transparent 70%);
    top: -130px;
    right: -80px;
}

.mel-hero-blob-2 {
    z-index: 1;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(200, 147, 58, .09) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}

/* Inner two-column grid */
.mel-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Eyebrow pill — matches homepage style */
.mel-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 115, 119, .09);
    border: 1px solid rgba(13, 115, 119, .22);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

/* Arabic Bismillah greeting — matches homepage arabic-greeting */
.mel-hero-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1.2rem, 2.6vw, 1.85rem);
    color: var(--primary-teal);
    direction: rtl;
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.55;
    font-weight: 700;
}

/* Main heading — Amiri serif like homepage hero-title */
.mel-hero-title {
    font-family: 'Amiri', serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.15;
    margin-bottom: 8px;
    /* max-width: 580px; */
}

.mel-hero-title em {
    font-style: italic;
    color: var(--gold);
}

/* Sub-heading — like homepage hero-subtitle */
.mel-hero-subtitle-label {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 14px;
    line-height: 1.4;
    /* max-width: 420px; */
}

/* Description — like homepage hero-description */
.mel-hero-subtitle {
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    color: #555;
    line-height: 1.82;
    margin-bottom: 32px;
    text-align: justify;
    /* max-width: 460px; */
}

/* Horizontal gold rule under title */
.mel-hero-rule {
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    border-radius: 4px;
    margin: 16px 0 22px;
}

/* CTA buttons — reuse site btn-primary / btn-secondary */
.mel-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Keep gold button for "Enroll" CTA */
.mel-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 6px;
    background: var(--primary-teal);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary-teal);
    box-shadow: 0 4px 20px rgba(13, 115, 119, .32);
    transition: all .35s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.mel-btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: -1;
}

.mel-btn-gold:hover {
    color: var(--primary-teal);
    box-shadow: 0 8px 26px rgba(13, 115, 119, .46);
    transform: translateY(-2px);
}

.mel-btn-gold:hover::before {
    transform: scaleX(1);
}

.mel-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 6px;
    background: transparent;
    color: var(--primary-teal);
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary-teal);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mel-btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: -1;
}

.mel-btn-outline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, .28);
}

.mel-btn-outline:hover::before {
    transform: scaleX(1);
}

/* ── RIGHT COLUMN CARD — styled like homepage nb-board ── */
.mel-hero-visual {
    position: relative;
}

/* Spinning "3 Days Free" badge — keep but re-colour */
.mel-hero-badge {
    position: absolute;
    top: -18px;
    right: -14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-deep);
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: .52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.35;
    box-shadow: 0 5px 22px rgba(200, 147, 58, .50);
    animation: mel-spin-slow 14s linear infinite;
    z-index: 4;
}

.mel-hero-badge strong {
    font-size: .85rem;
    line-height: 1.1;
    display: block;
}

@keyframes mel-spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Card — styled like nb-board */
.mel-hero-card {
    background: #ffffff;
    border: 1px solid rgba(13, 115, 119, .12);
    border-radius: 16px;
    box-shadow:
        0 4px 32px rgba(13, 115, 119, .13),
        0 1px 4px rgba(0, 0, 0, .06);
    overflow: hidden;
    animation: fadeUp .9s .2s ease both;
}

/* Card header — matches nb-header gradient */
.mel-hero-card-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mel-hero-card-header-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .15);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.mel-hero-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: white;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0;
}

.mel-hero-card-sub {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

/* Platform grid — light card style */
.mel-platform-section {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(13, 115, 119, .08);
    background: #fafffe;
}

.mel-platform-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-bottom: 11px;
}

.mel-platform-section-label::before {
    content: '';
    display: block;
    width: 3px;
    height: 13px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.mel-platform-grid {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.mel-platform-pill {
    background: rgba(13, 115, 119, .05);
    border: 1px solid rgba(13, 115, 119, .12);
    border-radius: 7px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .25s, border-color .25s;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mel-platform-pill:hover {
    background: rgba(13, 115, 119, .1);
    border-color: rgba(13, 115, 119, .22);
}

.mel-platform-pill i {
    font-size: 12px;
}

.mel-plat-zoom {
    color: #2D8CFF;
}

.mel-plat-teams {
    color: #6264A7;
}

.mel-plat-wa {
    color: #25D366;
}

.mel-platform-pill span {
    font-size: .68rem;
    color: var(--text-mid);
    font-weight: 600;
}

/* Features list section */
.mel-features-divider {
    padding: 14px 20px 16px;
    background: #fff;
}

.mel-features-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 11px;
}

.mel-features-label::before {
    content: '';
    display: block;
    width: 3px;
    height: 13px;
    background: var(--primary-teal);
    border-radius: 2px;
    flex-shrink: 0;
}

.mel-features-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mel-feat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    color: var(--text-mid);
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid rgba(13, 115, 119, .07);
    background: #f9fdfc;
    transition: background .2s, border-color .2s;
}

.mel-feat-item:hover {
    background: #eef9f6;
    border-color: rgba(13, 115, 119, .16);
}

.mel-feat-item i {
    color: var(--primary-teal);
    font-size: .78rem;
    flex-shrink: 0;
}

/* WHY */
.mel-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mel-why-card {
    background: white;
    border-radius: 15px;
    padding: 26px 20px 24px;
    text-align: center;
    border: 1px solid rgba(200, 147, 58, .12);
    box-shadow: 0 3px 16px rgba(0, 0, 0, .05);
    transition: transform .35s, box-shadow .35s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mel-why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}

.mel-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(13, 115, 119, .12);
}

.mel-why-card:hover::before {
    transform: scaleX(1);
}

.mel-why-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 115, 119, .08), rgba(200, 147, 58, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 21px;
    color: var(--primary-teal);
    transition: background .3s, color .3s;
    flex-shrink: 0;
}

.mel-why-card:hover .mel-why-icon {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    color: white;
}

.mel-why-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: .97rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.mel-why-card p {
    font-size: .81rem;
    color: var(--text-mid);
    line-height: 1.68;
    margin: 0;
}

/* STEPS */
.mel-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.mel-steps-grid::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
}

.mel-step {
    text-align: center;
    padding: 0 22px;
    position: relative;
}

.mel-step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(13, 115, 119, .3);
    position: relative;
    z-index: 1;
    transition: transform .3s;
}

.mel-step:hover .mel-step-num {
    transform: scale(1.1);
}

.mel-step h4 {
    font-family: 'Playfair Display', serif;
    font-size: .97rem;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.mel-step p {
    font-size: .81rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* COURSES */
.mel-courses-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.mel-courses-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("Images/Home/Hero-large.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mel-courses-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(20, 68, 42, .94) 0%, rgba(13, 115, 119, .9) 55%, rgba(20, 68, 42, .93) 100%);
}

.mel-courses-inner {
    position: relative;
    z-index: 2;
}

.mel-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mel-course-card {
    background: white;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 6px 26px rgba(0, 0, 0, .18);
    transition: transform .35s, box-shadow .35s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mel-course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.mel-course-img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.mel-course-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
}

.mel-cimg-teal {
    background: linear-gradient(145deg, var(--primary-teal), var(--primary-teal-dark));
}

.mel-cimg-green {
    background: linear-gradient(145deg, var(--green-mid), var(--green-deep));
}

.mel-cimg-gold {
    background: linear-gradient(145deg, #9a6c28, var(--gold));
}

.mel-cimg-dark {
    background: linear-gradient(145deg, var(--green-deep), #0a1e10);
}

.mel-course-img-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, .9);
}

.mel-course-img-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, .72);
    direction: rtl;
    text-align: center;
}

.mel-course-body {
    padding: 16px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mel-course-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: .93rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.mel-course-body p {
    font-size: .76rem;
    color: var(--text-mid);
    line-height: 1.62;
    margin-bottom: 10px;
}

.mel-course-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.mel-course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    color: var(--text-soft);
    font-weight: 600;
}

.mel-course-meta i {
    font-size: .63rem;
    color: var(--gold);
}

.mel-course-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 22px;
    border-radius: 6px;
    background: var(--primary-teal);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary-teal);
    transition: all .3s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: auto;
}

.mel-course-enroll::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
    z-index: -1;
}

.mel-course-enroll:hover {
    border-color: var(--green-deep);
}

.mel-course-enroll:hover::before {
    transform: scaleX(1);
}

/* ── FEATURED COMPREHENSIVE CARD ─────────────────── */
.mel-courses-featured-wrap {
    margin-bottom: 24px;
}

.mel-course-card-featured {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
    transition: transform .35s, box-shadow .35s;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    position: relative;
    border: 2px solid rgba(200, 147, 58, .45);
}

.mel-course-card-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, .36);
}

.mel-course-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-teal), var(--gold));
    z-index: 3;
}

/* Featured badge ribbon */
.mel-feat-ribbon {
    position: absolute;
    top: 18px;
    right: -1px;
    z-index: 4;
    background: linear-gradient(135deg, var(--gold), #a8772a);
    color: var(--green-deep);
    font-family: 'Roboto', sans-serif;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 14px 5px 10px;
    border-radius: 4px 0 0 4px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, .22);
}

.mel-feat-ribbon i {
    margin-right: 5px;
}

/* Left: image side */
.mel-course-feat-img {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.mel-course-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Placeholder shown when no real image is set */
.mel-course-feat-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(145deg, var(--green-deep) 0%, #0d4a2a 40%, var(--primary-teal) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
}

.mel-feat-img-icon {
    font-size: 3.8rem;
    color: rgba(255, 255, 255, .9);
}

.mel-feat-img-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    color: var(--gold-light);
    direction: rtl;
    text-align: center;
    line-height: 1.6;
}

.mel-feat-img-sub {
    font-size: .7rem;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    margin-top: 4px;
}

/* image overlay gradient */
.mel-course-feat-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(10, 30, 15, .6));
    pointer-events: none;
}

/* Right: content side */
.mel-course-feat-body {
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
}

.mel-feat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.mel-feat-eyebrow::before,
.mel-feat-eyebrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gold);
}

.mel-course-feat-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.25;
}

.mel-course-feat-body h3 em {
    font-style: italic;
    color: var(--primary-teal);
}

.mel-course-feat-body>p {
    font-size: .8rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Modules list */
.mel-feat-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    margin-bottom: 16px;
    flex: 1;
}

.mel-feat-module {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .74rem;
    color: var(--text-dark);
    font-weight: 600;
}

.mel-feat-module i {
    color: var(--primary-teal);
    font-size: .7rem;
    flex-shrink: 0;
}

.mel-feat-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mel-feat-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 115, 119, .08);
    border: 1px solid rgba(13, 115, 119, .18);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .68rem;
    color: var(--primary-teal);
    font-weight: 700;
}

.mel-feat-meta-pill i {
    font-size: .62rem;
}

.mel-feat-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #b8842e);
    color: var(--green-deep);
    font-family: 'Roboto', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(200, 147, 58, .38);
    transition: all .3s;
    align-self: flex-start;
}

.mel-feat-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 147, 58, .52);
}

/* Placeholder for regular course cards */
.mel-course-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    /* Replace this URL with your own image: */
    background-image: url('YOUR_IMAGE_URL_HERE');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fallback gradient shown when image not loaded */
.mel-course-img-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mel-cph-teal {
    background-color: var(--primary-teal);
}

.mel-cph-green {
    background-color: var(--green-mid);
}

.mel-cph-gold {
    background-color: #9a6c28;
}

.mel-cph-dark {
    background-color: var(--green-deep);
}

.mel-course-img-ph .mel-course-img-icon,
.mel-course-img-ph .mel-course-img-arabic {
    position: relative;
    z-index: 1;
}

/* RAMADAN */
.mel-ramadan-section {
    background: linear-gradient(135deg, var(--green-deep) 0%, #0c2e1a 50%, #14442a 100%);
    position: relative;
    overflow: hidden;
    padding: 86px 0;
}

.mel-ramadan-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='0.5'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Cpolygon points='50,5 95,27.5 95,72.5 50,95 5,72.5 5,27.5'/%3E%3C/g%3E%3C/svg%3E");
}

.mel-ramadan-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mel-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: mel-twinkle 3s ease-in-out infinite;
}

@keyframes mel-twinkle {

    0%,
    100% {
        opacity: .2;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.mel-ramadan-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.mel-ramadan-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200, 147, 58, .18);
    border: 1px solid rgba(200, 147, 58, .38);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
}

.mel-ramadan-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin-bottom: 9px;
}

.mel-ramadan-header h2 em {
    font-style: italic;
    color: var(--gold-light);
}

.mel-ramadan-header p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.75;
}

.mel-hadith-block {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(200, 147, 58, .28);
    border-radius: 18px;
    padding: 34px 38px;
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.mel-hadith-block::before {
    content: '\275D';
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--green-deep);
    font-size: 1.1rem;
    font-weight: 700;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mel-hadith-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
    color: var(--gold-light);
    direction: rtl;
    line-height: 1.8;
    margin-bottom: 14px;
}

.mel-hadith-urdu {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(.95rem, 1.7vw, 1.2rem);
    color: rgba(255, 255, 255, .8);
    direction: rtl;
    line-height: 1.9;
    margin-bottom: 11px;
}

.mel-hadith-english {
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 13px;
}

.mel-hadith-ref {
    font-size: .73rem;
    color: rgba(200, 147, 58, .72);
    font-weight: 600;
    letter-spacing: .06em;
}

.mel-hadith-source {
    font-size: .75rem;
    color: rgba(255, 255, 255, .38);
    margin-top: 4px;
}

/* Ramadan cards */
.mel-ramadan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.mel-ramadan-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
    background: rgba(0, 0, 0, .15);
    border: 1px solid rgba(255, 255, 255, .1);
}

.mel-ramadan-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .5);
    border-color: rgba(200, 147, 58, .4);
}

/* The image fills the card top — real photo */
.mel-rc-img-real {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.mel-rc-body {
    padding: 14px 13px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
}

.mel-rc-surah {
    font-family: 'Scheherazade New', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 3px;
    direction: rtl;
}

.mel-rc-title {
    font-size: .82rem;
    color: white;
    font-weight: 700;
    margin-bottom: 7px;
}

.mel-rc-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 11px;
}

.mel-rc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: .68rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
}

.mel-rc-pill i {
    font-size: .6rem;
    color: var(--gold-light);
}

.mel-rc-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    font-family: 'Roboto', sans-serif;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    transition: opacity .3s;
}

.mel-rc-enroll:hover {
    opacity: .82;
}

/* TESTIMONIALS */
.mel-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.mel-testi-card {
    background: white;
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid rgba(200, 147, 58, .1);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
    position: relative;
}

.mel-testi-quote {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    color: rgba(13, 115, 119, .07);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.mel-testi-stars {
    color: var(--gold);
    font-size: .82rem;
    margin-bottom: 11px;
    letter-spacing: 2px;
}

.mel-testi-text {
    font-size: .86rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 18px;
    font-style: italic;
}

.mel-testi-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mel-testi-ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: .84rem;
    flex-shrink: 0;
}

.mel-testi-name {
    font-size: .86rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mel-testi-loc {
    font-size: .72rem;
    color: var(--text-soft);
}

/* CTA */
.mel-cta {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 50%, var(--green-mid) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mel-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon fill='none' stroke='%23fff' stroke-width='0.5' points='40,2 78,21 78,59 40,78 2,59 2,21'/%3E%3C/svg%3E");
}

.mel-cta-inner {
    position: relative;
    z-index: 2;
}

.mel-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3vw, 2.75rem);
    color: white;
    margin-bottom: 11px;
    font-weight: 700;
}

.mel-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 30px;
}

.mel-cta-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.65rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 20px;
    direction: rtl;
}

.mel-cta-btns {
    display: flex;
    gap: 13px;
    justify-content: center;
    flex-wrap: wrap;
}

.mel-cta-btn1 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    border-radius: 6px;
    background: var(--gold);
    color: var(--green-deep);
    font-family: 'Roboto', sans-serif;
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(200, 147, 58, .38);
    transition: all .3s;
}

.mel-cta-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 147, 58, .52);
}

.mel-cta-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    border-radius: 6px;
    background: transparent;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .44);
    transition: all .3s;
}

.mel-cta-btn2:hover {
    background: rgba(255, 255, 255, .12);
    border-color: white;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .mel-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mel-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mel-ramadan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .mel-hero {
        background-image: url("../Images/Home/Hero-mobiles.png");
        background-position: bottom center;
        background-attachment: scroll;
        padding: 160px 0 60px;
    }
}

@media (max-width: 576px) {
    .mel-hero {
        padding: 150px 0 50px;
    }

    .mel-hero-title {
        font-size: 1.9rem;
    }

    .mel-hero-subtitle-label {
        font-size: .95rem;
    }
}

@media (max-width: 900px) {
    .mel-hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .mel-hero-label {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mel-hero-arabic {
        text-align: center;
    }

    .mel-hero-title {
        text-align: center;
    }

    .mel-hero-subtitle-label {
        text-align: center;
    }

    .mel-hero-subtitle {
        text-align: center;
    }

    .mel-hero-rule {
        margin-left: auto;
        margin-right: auto;
    }

    .mel-hero-btns {
        justify-content: center;
    }

    .mel-hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .mel-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .mel-steps-grid::before {
        display: none;
    }

    .mel-testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mel-hadith-block {
        padding: 26px 20px;
    }

    .mel-course-card-featured {
        grid-template-columns: 1fr;
    }

    .mel-course-feat-img {
        min-height: 220px;
    }

    .mel-course-feat-img-placeholder {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .mel-section {
        padding: 54px 0;
    }

    .mel-why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .mel-courses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .mel-ramadan-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .mel-hero {
        padding: 120px 0 54px;
        min-height: auto;
    }

    .mel-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .mel-feat-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mel-why-grid {
        grid-template-columns: 1fr;
    }

    .mel-courses-grid {
        grid-template-columns: 1fr;
    }

    .mel-ramadan-grid {
        grid-template-columns: 1fr;
    }

    .mel-hero-title {
        font-size: 1.8rem;
    }

    .mel-sec-title {
        font-size: 1.5rem;
    }
}

.mel-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.mel-anim.mel-visible {
    opacity: 1;
    transform: translateY(0);
}

.mel-anim-d1 {
    transition-delay: .1s;
}

.mel-anim-d2 {
    transition-delay: .2s;
}

.mel-anim-d3 {
    transition-delay: .3s;
}

.mel-anim-d4 {
    transition-delay: .4s;
}

.mel-anim-d5 {
    transition-delay: .5s;
}






