/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.btn:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 4rem 0;
}
.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.hero__content { text-align: center; }
.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero__image-wrapper {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero__image { width: 100%; height: auto; object-fit: cover; }

/* About */
.about { padding: 5rem 0; background: #fff; }
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.about__item {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}
.about__item h3 { margin-bottom: 0.5rem; color: #1e3a8a; }
.about__item p { color: #475569; }

/* Programs */
.programs { padding: 5rem 0; background: #f1f5f9; }
.programs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.program-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.program-card:hover { transform: translateY(-5px); }
.program-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.program-card h3 { margin-bottom: 0.5rem; color: #1e3a8a; }
.program-card p { color: #64748b; margin-bottom: 1rem; }
.program-card ul li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.program-card ul li::before {
    content: '✓';
    position: absolute; left: 0; color: #3b82f6; font-weight: bold;
}
.programs__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.programs__image {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
}

/* Portfolio */
.portfolio { padding: 5rem 0; background: #fff; }
.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.portfolio__item {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s;
}
.portfolio__item:hover { transform: scale(1.03); }
.portfolio__item img { width: 100%; height: 250px; object-fit: cover; }
.portfolio__note { text-align: center; margin-top: 2rem; color: #475569; }

/* Teachers */
.teachers { padding: 5rem 0; background: #f1f5f9; }
.teachers__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.teacher-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.teacher-card__avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #3b82f6;
}
.teacher-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { margin-bottom: 0.3rem; }
.teacher-card__role { color: #3b82f6; font-weight: 500; margin-bottom: 0.5rem; }
.teacher-card p { color: #475569; }

/* Reviews */
.reviews { padding: 5rem 0; background: #fff; }
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.review-card {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #3b82f6;
}
.review-card__text { font-style: italic; margin-bottom: 1rem; }
.review-card__author p { font-weight: 600; }
.review-card__author span { color: #64748b; font-size: 0.9rem; }

/* Contact */
.contact { padding: 5rem 0; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; }
.contact__wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact__info .section-title { color: #fff; }
.contact__info .section-title::after { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.contact__info p { margin-bottom: 1.5rem; }
.contact__details li { margin-bottom: 0.5rem; font-size: 1rem; }
.contact__image {
    width: 100%;
    max-width: 300px;
    margin-top: 2rem;
    border-radius: 1rem;
    opacity: 0.9;
}
.contact__form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
}
.form-group { margin-bottom: 1.2rem; position: relative; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
}
.form-group input::placeholder { color: rgba(255,255,255,0.6); }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f59e0b;
}
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.form-group--checkbox input { width: auto; margin-top: 0.3rem; }
.form-group--checkbox label { margin-bottom: 0; }
.error-message {
    color: #fca5a5;
    font-size: 0.85rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
}
.form__btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    margin-top: 0.5rem;
}

/* Footer */
.footer { text-align: center; padding: 2rem 0; background: #1e293b; color: #cbd5e1; }

/* Tablet & Desktop */
@media (min-width: 768px) {
    .hero__container { flex-direction: row; justify-content: space-between; text-align: left; }
    .hero__content { flex: 1; }
    .hero__title { font-size: 3rem; }
    .hero__image-wrapper { flex: 1; }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
    .programs__grid { grid-template-columns: repeat(2, 1fr); }
    .teachers__grid { grid-template-columns: repeat(2, 1fr); }
    .reviews__grid { grid-template-columns: repeat(2, 1fr); }
    .contact__wrapper { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .about__grid { grid-template-columns: repeat(4, 1fr); }
    .programs__grid { grid-template-columns: repeat(3, 1fr); }
    .teachers__grid { grid-template-columns: repeat(3, 1fr); }
    .reviews__grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio__grid { grid-template-columns: repeat(4, 1fr); }
}