/* ── Hero ── */
.hero {
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

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

.hero-orb-1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.hero-orb-2 { width: 250px; height: 250px; bottom: -60px; left: -40px; animation-delay: 3s; }

/* ── Course grid ── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.course-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 16px rgba(63, 144, 135, 0.07);
    border: 1px solid rgba(63, 144, 135, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(63, 144, 135, 0.16);
}

.course-card-top {
    background: linear-gradient(135deg, #0d3532 0%, #1a5c55 60%, #2d8078 100%);
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

.course-card-top::before {
    content: attr(data-arabic);
    font-family: 'Amiri', serif;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.06);
    position: absolute;
    right: 16px;
    bottom: -10px;
    line-height: 1;
}

.course-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    font-weight: 800;
    color: #7dd3c9;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.course-card-top h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.course-card-top p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #f8fffe;
    border-bottom: 1px solid rgba(63, 144, 135, 0.07);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.meta-chip svg { width: 12px; height: 12px; flex-shrink: 0; }

.chip-level    { background: var(--brand-light); color: var(--brand); }
.chip-duration { background: var(--gold-light); color: var(--gold); }
.chip-age      { background: #eff6ff; color: #2563eb; }

.course-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-desc { font-size: 13.5px; color: #5a7270; line-height: 1.7; }

.class-types { display: flex; gap: 6px; flex-wrap: wrap; }

.class-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.btn-details {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--brand);
    color: var(--brand);
    transition: background .15s, color .15s;
}

.btn-details:hover { background: var(--brand); color: #fff; }

.btn-enrol {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--brand);
    color: #fff;
    transition: background .15s;
}

.btn-enrol:hover { background: var(--brand-dark); }

/* ── CTA override ── */
.cta-section {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

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