/* ============================================================
   ZakaSchool LMS Theme — Main Stylesheet
   Version 1.0.0
   ============================================================ */

/* ---- 1. CSS VARIABLES ---- */
:root {
    --zps-primary:       #1B4332;
    --zps-primary-light: #2D6A4F;
    --zps-primary-dark:  #0D2B1D;
    --zps-accent:        #B7791F;
    --zps-accent-light:  #D4A843;
    --zps-gold:          #C9A94B;
    --zps-bg:            #FAFAF8;
    --zps-bg-dark:       #0F1A14;
    --zps-bg-card:       #FFFFFF;
    --zps-text:          #1A2318;
    --zps-text-muted:    #5A6B60;
    --zps-text-light:    #8A9E90;
    --zps-border:        rgba(27,67,50,0.12);
    --zps-shadow-sm:     0 2px 8px rgba(27,67,50,0.08);
    --zps-shadow-md:     0 8px 32px rgba(27,67,50,0.12);
    --zps-shadow-lg:     0 24px 64px rgba(27,67,50,0.16);
    --zps-radius-sm:     6px;
    --zps-radius-md:     12px;
    --zps-radius-lg:     20px;
    --zps-radius-xl:     32px;
    --zps-font-display:  'Playfair Display', Georgia, serif;
    --zps-font-body:     'DM Sans', -apple-system, sans-serif;
    --zps-font-mono:     'DM Mono', monospace;
    --zps-transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
    --zps-header-h:      72px;
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--zps-font-body);
    color: var(--zps-text);
    background: var(--zps-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--zps-primary); text-decoration: none; transition: var(--zps-transition); }
a:hover { color: var(--zps-primary-light); }

h1, h2, h3, h4 { font-family: var(--zps-font-display); line-height: 1.2; color: var(--zps-text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }
p  { line-height: 1.75; }

/* ---- 3. LAYOUT UTILITIES ---- */
.zps-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.zps-main { min-height: 60vh; }

/* ---- 4. TOPBAR ---- */
.zps-topbar {
    background: var(--zps-bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-family: var(--zps-font-body);
    padding: 8px 0;
}

.zps-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.zps-topbar-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
}

.zps-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zps-topbar-link {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.zps-topbar-link:hover { color: #fff; }

/* ---- 5. HEADER ---- */
.zps-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250,250,248,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zps-border);
    height: var(--zps-header-h);
    transition: var(--zps-transition);
}

.zps-header.zps-scrolled {
    box-shadow: var(--zps-shadow-md);
    height: 64px;
}

.zps-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
}

/* Logo */
.zps-logo { flex-shrink: 0; }
.zps-logo a, .zps-logo-text { display: flex; align-items: center; gap: 8px; }
.zps-logo img { height: 48px; width: auto; }
.zps-logo-mark {
    font-family: var(--zps-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--zps-primary);
    letter-spacing: -0.02em;
}
.zps-logo-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zps-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: 1px solid var(--zps-border);
    padding-left: 8px;
    line-height: 1.2;
}

/* Nav */
.zps-nav { flex: 1; }
.zps-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.zps-nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zps-text-muted);
    border-radius: var(--zps-radius-sm);
    transition: var(--zps-transition);
}
.zps-nav-menu li a:hover,
.zps-nav-menu li.current-menu-item a {
    color: var(--zps-primary);
    background: rgba(27,67,50,0.06);
}

/* Header actions */
.zps-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ---- 6. BUTTONS ---- */
.zps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--zps-font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--zps-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--zps-transition);
    white-space: nowrap;
    text-decoration: none;
}

.zps-btn-sm  { padding: 7px 14px; font-size: 13px; }
.zps-btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: var(--zps-radius-md); }

.zps-btn-primary {
    background: var(--zps-primary);
    color: #fff;
    border-color: var(--zps-primary);
}
.zps-btn-primary:hover {
    background: var(--zps-primary-light);
    border-color: var(--zps-primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,67,50,0.3);
}

.zps-btn-accent {
    background: var(--zps-accent);
    color: #fff;
    border-color: var(--zps-accent);
}
.zps-btn-accent:hover {
    background: var(--zps-accent-light);
    border-color: var(--zps-accent-light);
    color: #fff;
    transform: translateY(-1px);
}

.zps-btn-outline {
    background: transparent;
    color: var(--zps-primary);
    border-color: var(--zps-primary);
}
.zps-btn-outline:hover {
    background: var(--zps-primary);
    color: #fff;
}

.zps-btn-ghost {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
}
.zps-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.zps-btn-white {
    background: #fff;
    color: var(--zps-primary-dark);
    border-color: #fff;
    font-weight: 600;
}
.zps-btn-white:hover {
    background: var(--zps-bg);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.zps-btn-ghost-white {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.4);
}
.zps-btn-ghost-white:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ---- 7. HERO ---- */
.zps-hero {
    position: relative;
    background: var(--zps-bg-dark);
    min-height: calc(100vh - var(--zps-header-h) - 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.zps-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.zps-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.zps-hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--zps-primary);
    top: -100px; left: -100px;
}
.zps-hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--zps-accent);
    bottom: -50px; right: 200px;
    opacity: 0.2;
}
.zps-hero-orb-3 {
    width: 300px; height: 300px;
    background: #2D6A4F;
    top: 40%; right: -80px;
    opacity: 0.25;
}

.zps-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.zps-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27,67,50,0.6);
    border: 1px solid rgba(45,106,79,0.5);
    color: #74C69D;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.zps-badge-dot {
    width: 6px; height: 6px;
    background: #52B788;
    border-radius: 50%;
    animation: zpsPulse 2s infinite;
}

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

.zps-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--zps-font-display);
}

.zps-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* Hero visual */
.zps-hero-visual {
    position: relative;
    height: 420px;
}

.zps-hero-img-block {
    width: 100%;
    height: 100%;
    border-radius: var(--zps-radius-lg);
    overflow: hidden;
    background: rgba(27,67,50,0.3);
    border: 1px solid rgba(45,106,79,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.zps-hero-img-block img { width: 100%; height: 100%; object-fit: cover; }

.zps-hero-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.3);
}
.zps-hero-placeholder p {
    font-family: var(--zps-font-display);
    font-size: 1rem;
    margin-top: 12px;
}

.zps-hero-card {
    position: absolute;
    background: rgba(10,20,14,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45,106,79,0.4);
    border-radius: var(--zps-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    color: #fff;
    min-width: 190px;
}

.zps-hcard-icon {
    width: 40px; height: 40px;
    background: rgba(27,67,50,0.6);
    border-radius: var(--zps-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #74C69D;
    flex-shrink: 0;
}
.zps-hcard-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.zps-hcard-sub   { font-size: 11px; color: rgba(255,255,255,0.5); }

.zps-hero-card-1 { top: 20px; left: -30px; }
.zps-hero-card-2 { bottom: 80px; left: -40px; }
.zps-hero-card-3 { top: 50%; right: -20px; transform: translateY(-50%); }

/* ---- 8. STATS BAR ---- */
.zps-stats {
    background: var(--zps-primary-dark);
    padding: 40px 0;
    border-bottom: 1px solid rgba(45,106,79,0.2);
}

.zps-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(45,106,79,0.2);
    border-radius: var(--zps-radius-md);
    overflow: hidden;
}

.zps-stat-item {
    background: rgba(15,26,20,0.6);
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zps-stat-num {
    font-family: var(--zps-font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #52B788;
    line-height: 1;
}
.zps-stat-lbl {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

/* ---- 9. SECTION COMMON ---- */
.zps-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.zps-section-header-sm { margin-top: 64px; margin-bottom: 32px; }

.zps-section-tag {
    display: inline-block;
    background: rgba(27,67,50,0.08);
    color: var(--zps-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(27,67,50,0.15);
}

.zps-section-title {
    color: var(--zps-text);
    margin-bottom: 16px;
}

.zps-section-desc {
    font-size: 1.05rem;
    color: var(--zps-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---- 10. COURSES SECTION ---- */
.zps-courses-section {
    padding: 96px 0;
    background: var(--zps-bg);
}

.zps-wings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 72px;
}

.zps-wing-card {
    background: var(--zps-bg-card);
    border: 1px solid var(--zps-border);
    border-radius: var(--zps-radius-lg);
    padding: 40px;
    position: relative;
    transition: var(--zps-transition);
}
.zps-wing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zps-shadow-lg);
}

.zps-wing-montessori {
    border-color: rgba(183,121,31,0.3);
    background: linear-gradient(135deg, #FFF8EE 0%, #fff 60%);
}

.zps-wing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--zps-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.zps-wing-icon {
    width: 64px; height: 64px;
    background: rgba(27,67,50,0.08);
    border-radius: var(--zps-radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--zps-primary);
    margin-bottom: 20px;
}
.zps-wing-montessori .zps-wing-icon {
    background: rgba(183,121,31,0.1);
    color: var(--zps-accent);
}

.zps-wing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--zps-font-display);
}
.zps-wing-desc {
    color: var(--zps-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.zps-wing-features {
    list-style: none;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.zps-wing-features li {
    font-size: 13px;
    color: var(--zps-text-muted);
    padding-left: 16px;
    position: relative;
}
.zps-wing-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--zps-primary);
    font-size: 11px;
}
.zps-wing-montessori .zps-wing-features li::before {
    color: var(--zps-accent);
}

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

.zps-course-card {
    background: var(--zps-bg-card);
    border: 1px solid var(--zps-border);
    border-radius: var(--zps-radius-md);
    overflow: hidden;
    transition: var(--zps-transition);
    color: var(--zps-text);
    display: flex;
    flex-direction: column;
}
.zps-course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--zps-shadow-md);
    border-color: rgba(27,67,50,0.25);
}

.zps-course-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(27,67,50,0.06);
}
.zps-course-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.zps-course-card:hover .zps-course-thumb img { transform: scale(1.04); }

.zps-course-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--zps-primary);
    opacity: 0.4;
}

.zps-course-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.zps-course-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--zps-font-display);
    color: var(--zps-text);
}
.zps-course-excerpt {
    font-size: 13px;
    color: var(--zps-text-muted);
    margin-bottom: 12px;
    flex: 1;
}
.zps-course-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--zps-primary);
}

.zps-courses-footer {
    text-align: center;
    margin-top: 48px;
}

/* ---- 11. WHY SECTION ---- */
.zps-why-section {
    padding: 96px 0;
    background: linear-gradient(180deg, #f0f4f1 0%, var(--zps-bg) 100%);
}

.zps-why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.zps-why-body {
    color: var(--zps-text-muted);
    font-size: 1.05rem;
    margin: 20px 0 32px;
    line-height: 1.8;
}

.zps-why-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}
.zps-why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.zps-why-icon {
    width: 28px; height: 28px;
    background: var(--zps-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}
.zps-why-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}
.zps-why-item p {
    font-size: 13px;
    color: var(--zps-text-muted);
    line-height: 1.6;
}

/* Why visual */
.zps-why-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zps-why-big-stat {
    background: var(--zps-primary);
    border-radius: var(--zps-radius-lg);
    padding: 40px;
    text-align: center;
    color: #fff;
}
.zps-why-num {
    font-family: var(--zps-font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.zps-why-num span { font-size: 2.5rem; color: #74C69D; }
.zps-why-lbl {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
}

.zps-why-testimonial {
    background: var(--zps-bg-card);
    border: 1px solid var(--zps-border);
    border-radius: var(--zps-radius-md);
    padding: 24px;
}
.zps-test-stars {
    color: var(--zps-gold);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.zps-why-testimonial p {
    font-size: 14px;
    color: var(--zps-text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}
.zps-test-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--zps-primary);
}

.zps-why-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.zps-badge {
    background: rgba(27,67,50,0.08);
    color: var(--zps-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(27,67,50,0.15);
}

/* ---- 12. CTA BANNER ---- */
.zps-cta-section {
    background: linear-gradient(135deg, var(--zps-primary-dark) 0%, var(--zps-primary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.zps-cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(82,183,136,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.zps-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.zps-cta-title {
    font-family: var(--zps-font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.zps-cta-sub {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    max-width: 440px;
}
.zps-cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---- 13. PAGE HERO ---- */
.zps-page-hero {
    background: var(--zps-primary-dark);
    padding: 64px 0 48px;
    color: #fff;
}
.zps-page-hero-sm { padding: 48px 0 32px; }
.zps-page-hero-title { color: #fff; }

/* ---- 14. PAGE CONTENT ---- */
.zps-page-content {
    padding: 64px 24px;
}
.zps-content-body {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--zps-text);
}
.zps-content-body h2 { margin: 2rem 0 1rem; }
.zps-content-body p  { margin-bottom: 1rem; }

/* ---- 15. BREADCRUMBS ---- */
.zps-breadcrumbs { margin-bottom: 16px; }
.zps-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.zps-breadcrumbs li { color: rgba(255,255,255,0.5); }
.zps-breadcrumbs li::after { content: ' /'; margin-left: 8px; }
.zps-breadcrumbs li:last-child::after { display: none; }
.zps-breadcrumbs a { color: rgba(255,255,255,0.7); }
.zps-breadcrumbs a:hover { color: #fff; }

/* ---- 16. POSTS GRID ---- */
.zps-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}
.zps-post-card {
    background: var(--zps-bg-card);
    border: 1px solid var(--zps-border);
    border-radius: var(--zps-radius-md);
    overflow: hidden;
}
.zps-post-thumb { aspect-ratio: 16/9; overflow: hidden; }
.zps-post-thumb img { width:100%; height:100%; object-fit:cover; }
.zps-post-body { padding: 24px; }
.zps-post-title { font-size: 1.1rem; margin-bottom: 8px; }
.zps-post-title a { color: var(--zps-text); }
.zps-post-meta { font-size: 12px; color: var(--zps-text-light); margin-bottom: 12px; }
.zps-post-excerpt { font-size: 14px; color: var(--zps-text-muted); margin-bottom: 16px; }

/* ---- 17. SOCIAL ICONS ---- */
.zps-social-icons { display: flex; align-items: center; gap: 10px; }
.zps-social-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    border-radius: var(--zps-radius-sm);
    transition: var(--zps-transition);
}
.zps-social-icon svg { width: 14px; height: 14px; }
.zps-social-icon:hover { color: #fff; }

.zps-footer-social .zps-social-icon {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px; height: 36px;
}
.zps-footer-social .zps-social-icon svg { width: 15px; height: 15px; }
.zps-footer-social .zps-social-icon:hover { background: var(--zps-primary); border-color: var(--zps-primary); }

/* ---- 18. FOOTER ---- */
.zps-footer { background: var(--zps-bg-dark); color: rgba(255,255,255,0.7); }

.zps-footer-wave { height: 60px; overflow: hidden; background: var(--zps-bg); margin-bottom: -2px; }
.zps-footer-wave svg { display: block; width: 100%; height: 100%; }

.zps-footer-body { padding: 72px 0 48px; }

.zps-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.zps-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.zps-footer-logo .zps-logo-mark  { color: #fff; font-size: 1.5rem; }
.zps-footer-logo .zps-logo-label { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.2); }

.zps-footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    max-width: 260px;
}

.zps-footer-heading {
    font-family: var(--zps-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 18px;
}

.zps-footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zps-footer-menu a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: var(--zps-transition);
}
.zps-footer-menu a:hover { color: #fff; padding-left: 4px; }

.zps-footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.zps-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.zps-footer-contact a { color: rgba(255,255,255,0.55); }
.zps-footer-contact a:hover { color: #fff; }

.zps-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
}
.zps-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.zps-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ---- 19. MOBILE TOGGLE ---- */
.zps-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.zps-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--zps-text);
    border-radius: 2px;
    transition: var(--zps-transition);
}
.zps-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.zps-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.zps-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- 20. RESPONSIVE ---- */
@media (max-width: 1100px) {
    .zps-hero-inner { gap: 48px; }
    .zps-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .zps-hero-inner { grid-template-columns: 1fr; }
    .zps-hero-visual { display: none; }
    .zps-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .zps-wings-grid { grid-template-columns: 1fr; }
    .zps-courses-grid { grid-template-columns: repeat(2, 1fr); }
    .zps-why-inner { grid-template-columns: 1fr; }
    .zps-cta-inner { flex-direction: column; text-align: center; }
    .zps-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .zps-nav { display: none; }
    .zps-mobile-toggle { display: flex; }
    .zps-header-actions .zps-btn-outline { display: none; }
}

@media (max-width: 600px) {
    .zps-stats-grid { grid-template-columns: 1fr 1fr; }
    .zps-courses-grid { grid-template-columns: 1fr; }
    .zps-posts-grid { grid-template-columns: 1fr; }
    .zps-footer-grid { grid-template-columns: 1fr; }
    .zps-topbar { display: none; }
    .zps-hero { padding: 48px 0; }
    .zps-courses-section, .zps-why-section { padding: 64px 0; }
    .zps-hero-actions { flex-direction: column; }
    .zps-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---- 21. MOBILE NAV OPEN STATE ---- */
.zps-nav-open .zps-nav {
    display: flex;
    position: fixed;
    inset: var(--zps-header-h) 0 0 0;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.zps-nav-open .zps-nav-menu {
    flex-direction: column;
    text-align: center;
    gap: 8px;
}
.zps-nav-open .zps-nav-menu li a {
    font-size: 1.4rem;
    font-family: var(--zps-font-display);
    padding: 12px 24px;
}

/* ---- 22. NO CONTENT ---- */
.zps-no-content {
    padding: 80px 0;
    text-align: center;
}
.zps-no-content h2 { margin-bottom: 12px; }
.zps-no-content p { color: var(--zps-text-muted); }

/* ---- 23. PAGINATION ---- */
.zps-pagination { padding: 32px 0; text-align: center; }
.zps-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.zps-pagination a, .zps-pagination span {
    padding: 8px 14px;
    border-radius: var(--zps-radius-sm);
    font-size: 14px;
    border: 1px solid var(--zps-border);
    color: var(--zps-text-muted);
}
.zps-pagination .current {
    background: var(--zps-primary);
    color: #fff;
    border-color: var(--zps-primary);
}
