/* ================= Base ================= */
:root {
    --primary: #7c3aed;
    --primary-light: #c084fc;
    --accent: #fde68a;
    --accent-strong: #fcd34d;
    --text-dark: #1f2937;
    --bg-soft: #f9fafb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Instrument Sans', 'Cairo', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: #9397b3;
    -webkit-font-smoothing: antialiased;
}

/* ================= Hero ================= */
header.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8rem 1.5rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(to right, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
    opacity: 0.95;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    padding: 1rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-parent { background-color: white; color: var(--primary); }
.btn-parent:hover { background-color: #f3f4f6; transform: translateY(-3px); }
.btn-teacher { background-color: var(--accent); color: var(--primary); }
.btn-teacher:hover { background-color: var(--accent-strong); transform: translateY(-3px); }

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: bounce 4s infinite ease-in-out;
}

/* ================= Sections ================= */
section { padding: 6rem 1.5rem; text-align: center; }
.section-container { max-width: 1200px; margin: auto; }
section h2 { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 3rem; }

/* ================= Card Grid ================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-soft);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.card p { font-size: 1rem; opacity: 0.85; }

/* ================= How it works ================= */
.step-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ================= CTA ================= */
.cta { background: linear-gradient(135deg, var(--primary), #9333ea); color: white; }
.cta h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 1rem; }
.cta p { opacity: 0.9; margin-bottom: 2rem; }

/* ================= Footer ================= */
footer { background-color: var(--primary); color: white; padding: 2.5rem 1rem; text-align: center; }
footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ================= Animations ================= */
@keyframes bounce { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-15px); } }
.animate-bounce-slow { animation: bounce 4s ease-in-out infinite; }

/* ================= Responsive ================= */
@media (max-width: 768px){
    .hero-container { flex-direction: column; text-align: center; }
    .btn-group { justify-content: center; }
    .hero p { margin-left: auto; margin-right: auto; }
}


.tracks {
    padding: 60px 0;
}

.track-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: 0.3s ease;
    border: 1px solid #f1f1f1;
    margin: 10px;
}

.track-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.track-card.featured {
    border: 2px solid #7c3aed;
    transform: scale(1.03);
}

.track-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7c3aed;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
}

.track-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.track-header p {
    font-size: 13px;
    color: #777;
}

.track-price {
    margin: 15px 0;
    font-size: 30px;
    font-weight: bold;
}

.track-price small {
    font-size: 14px;
    color: #666;
}

.track-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 13px;
}

.detail strong {
    display: block;
    color: #444;
}

.detail span {
    color: #777;
}

.track-desc {
    font-size: 13px;
    color: #666;
    margin: 10px 0 20px;
}

.track-btn {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.track-btn:hover {
    background: #5b21b6;
}


