:root {
    --navy: #003366;
    --light-blue: #336699;
    --beige: #f5f5dc;
    --parchment: #faf8f0;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --grey: #e0e0e0;
    
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--parchment);
    color: var(--text-dark);
    line-height: 1.7;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.edu-header { background-color: var(--white); padding: 25px 0; border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); display: flex; align-items: center; }
.bold { font-weight: 900; }
.icon { font-size: 1.8rem; margin-right: 10px; }

.edu-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.edu-nav a { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); text-transform: uppercase; }
.edu-nav a:hover, .edu-nav a.active { color: var(--light-blue); }

.btn-edu { background-color: var(--navy); color: var(--white) !important; padding: 10px 25px; border-radius: 4px; font-weight: bold; }
.btn-edu:hover { background-color: var(--light-blue); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: 1px solid var(--navy); color: var(--navy); padding: 5px 10px; cursor: pointer; font-family: var(--font-serif); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100%; background: var(--white); z-index: 2000; padding: 40px; display: flex; flex-direction: column; transition: 0.3s; border-left: 2px solid var(--navy); }
.mobile-menu.active { right: 0; }
.close-menu { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-bottom: 20px; color: var(--navy); }
.mobile-menu a { padding: 15px 0; border-bottom: 1px solid #eee; font-family: var(--font-serif); font-weight: bold; }

/* Hero */
.hero-edu { height: 600px; background-size: cover; background-position: center; position: relative; }
.hero-overlay { width: 100%; height: 100%; background: rgba(0, 51, 102, 0.4); display: flex; align-items: center; justify-content: center; }
.hero-card { background: rgba(255, 255, 255, 0.95); padding: 50px; text-align: center; border-radius: 4px; max-width: 700px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border-top: 5px solid var(--navy); }
.hero-card h1 { font-family: var(--font-serif); font-size: 2.8rem; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.hero-card p { font-size: 1.2rem; margin-bottom: 30px; color: #555; }

.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-primary { background-color: var(--navy); color: var(--white); padding: 15px 35px; border-radius: 4px; font-weight: bold; }
.btn-secondary { border: 2px solid var(--navy); color: var(--navy); padding: 13px 35px; border-radius: 4px; font-weight: bold; }
.btn-primary:hover, .btn-secondary:hover { opacity: 0.9; transform: translateY(-2px); }

/* Courses */
.section-padding { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--navy); }
.divider { width: 80px; height: 3px; background-color: var(--navy); margin: 15px auto; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.course-card { background: var(--white); padding: 40px 30px; border: 1px solid var(--grey); border-radius: 4px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; }
.course-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--navy); }
.course-card.highlight { border: 2px solid var(--navy); background-color: #fdfdfd; }

.level-badge { display: inline-block; background-color: var(--beige); color: var(--navy); padding: 5px 15px; font-weight: bold; font-family: var(--font-serif); margin-bottom: 15px; border-radius: 20px; }
.course-card h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 15px; }
.details { list-style: none; margin: 20px 0; font-size: 0.9rem; color: #666; }
.details li { margin-bottom: 5px; }
.link-btn { font-weight: bold; color: var(--navy); font-size: 0.9rem; }

/* About & Testimonials */
.page-header { background-color: var(--navy); color: var(--white); padding: 60px 0; text-align: center; }
.page-header h1 { font-family: var(--font-serif); font-size: 3rem; }

.about-content { display: flex; gap: 50px; align-items: center; }
.text-side { flex: 1; }
.text-side h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); margin-bottom: 20px; }
.divider-left { width: 60px; height: 3px; background-color: var(--navy); margin-bottom: 25px; }
.features-list { margin-top: 20px; list-style: none; }
.features-list li { margin-bottom: 10px; font-weight: 600; }
.img-side img { width: 100%; border-radius: 4px; box-shadow: 10px 10px 0 var(--beige); }

.testimonial-list { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.review-box { background: var(--white); padding: 40px; border-left: 5px solid var(--navy); position: relative; }
.quote-mark { font-size: 4rem; color: var(--beige); position: absolute; top: 10px; left: 20px; font-family: serif; z-index: 0; }
.review-box p { position: relative; z-index: 1; font-style: italic; color: #555; margin-bottom: 20px; font-size: 1.1rem; }
.student strong { display: block; color: var(--navy); font-family: var(--font-serif); }
.student span { font-size: 0.8rem; color: #888; }

/* Contact Form */
.contact-paper { max-width: 700px; margin: 0 auto; background: var(--white); padding: 60px; border: 1px solid var(--grey); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.paper-header { text-align: center; margin-bottom: 40px; }
.paper-header h2 { font-family: var(--font-serif); color: var(--navy); }
.info-address { margin-top: 20px; font-weight: bold; color: var(--text-dark); }

.academic-form .form-row { display: flex; gap: 20px; }
.academic-form .form-group { margin-bottom: 20px; flex: 1; }
.academic-form label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; color: var(--navy); }
.academic-form input, .academic-form select, .academic-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; background-color: var(--parchment); font-family: var(--font-sans); }
.academic-form input:focus, .academic-form select:focus, .academic-form textarea:focus { outline: 1px solid var(--navy); border-color: var(--navy); }
.submit-btn { width: 100%; background-color: var(--navy); color: var(--white); border: none; padding: 15px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background-color: var(--light-blue); }

/* Legal */
.legal-text { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; border: 1px solid var(--grey); }
.legal-text h1 { font-family: var(--font-serif); color: var(--navy); margin-bottom: 20px; }
.legal-text h3 { color: var(--light-blue); margin-top: 30px; margin-bottom: 10px; font-family: var(--font-serif); }

/* Footer */
.edu-footer { background-color: var(--navy); color: var(--white); padding: 60px 0 20px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.f-col h4 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 5px; }
.f-col.center a { color: var(--beige); margin: 0 15px; font-weight: 600; }
.f-col.center a:hover { color: var(--white); }
.copyright { width: 100%; text-align: center; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: #ccc; }

@media (max-width: 900px) {
    .edu-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-card h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .course-grid, .about-content, .academic-form .form-row, .footer-content { grid-template-columns: 1fr; flex-direction: column; }
    .f-col { margin-bottom: 20px; text-align: center; width: 100%; }
}