/* ── Hero (home) ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d3532 0%, #1a5c55 40%, #2d8078 70%, #3f9087 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 24px 60px;
}


.hero-orb-1 { width: 500px; height: 500px; top: -150px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; animation-delay: 3s; }
.hero-orb-3 { width: 200px; height: 200px; top: 50%; right: 20%; animation-delay: 5s; }

.hero-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-desc { max-width: 480px; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.hero-stat { text-align: left; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-lbl { font-size: 12px; color: rgba(255, 255, 255, 0.6); font-weight: 500; }

/* ── Hero visual card ── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 360px;
    height: 420px;
}

.hero-main-card {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
}

.hero-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Amiri', serif;
    font-size: 52px;
    color: #fff;
}

.hero-card-tag {
    background: rgba(201, 168, 76, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: #f0d080;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
}

.hero-card-label { color: #fff; font-size: 16px; font-weight: 600; text-align: center; }
.hero-card-sub   { color: rgba(255, 255, 255, 0.65); font-size: 13px; text-align: center; line-height: 1.6; }

.hero-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
}

.hero-float-badge-1 { top: -20px; right: -20px; animation-delay: 0s; }
.hero-float-badge-2 { bottom: 30px; left: -30px; animation-delay: 2s; }

.hfb-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfb-text strong { display: block; font-size: 13px; font-weight: 700; color: #1a2e2c; }
.hfb-text span   { font-size: 11px; color: #888; }

/* ── What is Nabaath ── */
.what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.what-visual {
    background: linear-gradient(135deg, var(--brand-light) 0%, #d0ede9 100%);
    border-radius: 28px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.what-visual::before {
    content: 'نباط';
    font-family: 'Amiri', serif;
    font-size: 120px;
    font-weight: 700;
    color: rgba(63, 144, 135, 0.08);
    position: absolute;
    right: -10px;
    bottom: -20px;
    line-height: 1;
}

.what-visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.what-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(63, 144, 135, 0.1);
}

.what-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.what-pill strong { font-size: 14px; font-weight: 700; color: #1a2e2c; }
.what-pill span   { font-size: 12px; color: #7a9190; margin-top: 2px; display: block; }

.what-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.what-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.what-point-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.what-point h4 { font-size: 15px; font-weight: 700; color: #1a2e2c; margin-bottom: 4px; }
.what-point p  { font-size: 14px; color: #5a7270; line-height: 1.6; }

/* ── Classes ── */
.classes-section {
    background: linear-gradient(135deg, #0d3532 0%, #1a5c55 100%);
}

.classes-section .section-title,
.classes-section .section-sub { color: rgba(255, 255, 255, 0.9); }
.classes-section .section-sub { color: rgba(255, 255, 255, 0.65); }
.classes-section .section-tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.class-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 32px 28px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.class-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.class-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-mid));
    border-radius: 20px 20px 0 0;
}

.class-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.class-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.class-card p  { font-size: 14px; color: rgba(255, 255, 255, 0.65); line-height: 1.7; }

.class-tag {
    display: inline-block;
    margin-top: 16px;
    background: rgba(63, 144, 135, 0.3);
    color: #7dd3c9;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* ── About us (home page section) ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
    aspect-ratio: 4/5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-pattern {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image: repeating-linear-gradient(60deg, #fff 0, #fff 1px, transparent 0, transparent 30px);
}

.about-img-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.about-arabic {
    font-family: 'Amiri', serif;
    font-size: 72px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    display: block;
    margin-bottom: 16px;
}

.about-img-sub { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.about-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.about-stat-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
}

.about-stat-box strong { display: block; color: #fff; font-size: 20px; font-weight: 800; }
.about-stat-box span   { color: rgba(255, 255, 255, 0.7); font-size: 10px; font-weight: 500; }

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--brand-light);
    border-radius: 16px;
    border-left: 4px solid var(--brand);
}

.about-value h4 { font-size: 15px; font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; }
.about-value p  { font-size: 14px; color: #5a7270; line-height: 1.6; }

/* ── Programs ── */
.programs-section { background: var(--brand-light); }

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(63, 144, 135, 0.08);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(63, 144, 135, 0.18);
}

.program-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0;
    background: linear-gradient(0deg, var(--brand-light), transparent);
    transition: height .3s;
}

.program-card:hover::before { height: 50%; }

.prog-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: background .3s;
}

.program-card:hover .prog-icon { background: var(--brand); }
.program-card:hover .prog-icon svg { stroke: #fff; }

.program-card h3 { font-size: 15px; font-weight: 700; color: #1a2e2c; margin-bottom: 8px; position: relative; z-index: 1; }
.program-card p  { font-size: 13px; color: #7a9190; line-height: 1.6; position: relative; z-index: 1; }

.prog-number {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 36px;
    font-weight: 900;
    color: rgba(63, 144, 135, 0.07);
    line-height: 1;
    font-style: italic;
}

/* ── Home CTA override ── */
.cta-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%),
                url('/images/banner1.png') center/cover no-repeat;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-inner    { grid-template-columns: 1fr; text-align: center; }
    .hero-visual   { display: none; }
    .hero-actions  { justify-content: center; }
    .hero-stats    { justify-content: center; }
    .what-grid     { grid-template-columns: 1fr; }
    .about-grid    { grid-template-columns: 1fr; }
    .about-img     { aspect-ratio: auto; height: 400px; border-radius: 18px; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .classes-grid  { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats    { flex-wrap: wrap; gap: 20px; }
}

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