/* ===========================================================================
   Base Styles
   =========================================================================== */

:root {
    --primary-color: #5e72e4;
    --secondary-color: #2dce89;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #222;
    --white: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-color: #eaeaea;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 4px;
}

/* ===========================================================================
   Header & Navigation
   =========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    border-radius: 0;
    max-height: 60px;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 5px;
    position: relative;
}

.desktop-nav a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.desktop-nav a:hover:before,
.desktop-nav a.active:before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    min-width: 250px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav ul li {
    margin-bottom: 5px;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.mobile-nav ul li:last-child a {
    border-bottom: none;
}

.mobile-menu-toggle.active i::before {
    content: "\f00d";
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===========================================================================
   Hero Section
   =========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    background: url('hero1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin-left: 10%;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ===========================================================================
   About Section
   =========================================================================== */

.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-grid.reversed {
    grid-template-columns: 1fr 1fr;
}

.about-content h3 {
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.about-content h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-image img {
    transition: transform 0.5s ease;
    width: 100%;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================================================================
   Services Section
   =========================================================================== */

.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.services-note {
    background-color: rgba(45, 206, 137, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

/* ===========================================================================
   Philosophy Section
   =========================================================================== */

.philosophy-section {
    padding: 100px 0;
    background-color: var(--white);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.philosophy-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.philosophy-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.philosophy-image:hover img {
    transform: scale(1.05);
}

.philosophy-text h3 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.philosophy-text h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.philosophy-points {
    margin-top: 40px;
    display: grid;
    grid-gap: 30px;
}

.philosophy-point {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.philosophy-point i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.philosophy-point h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.philosophy-point p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.philosophy-conclusion {
    margin-top: 40px;
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===========================================================================
   Staff Section
   =========================================================================== */

.staff-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.staff-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.staff-grid {
    display: grid;
    grid-gap: 50px;
    margin-bottom: 60px;
}

.staff-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.staff-image {
    overflow: hidden;
    height: 100%;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.staff-image:hover img {
    transform: scale(1.05);
}

.staff-info {
    padding: 40px;
}

.staff-info h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.staff-info h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.qualifications {
    text-align: center;
}

.qualifications h3 {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.qualifications h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.qualification-item {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.qualification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.qualification-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.qualification-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===========================================================================
   Parent Information Section
   =========================================================================== */

.parent-info-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.parent-info-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.parent-info-text {
    flex: 1;
    max-width: 600px;
}

.parent-info-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-light);
}

.parent-info-image {
    flex-basis: 40%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.parent-info-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.parent-info-image img:hover {
    transform: scale(1.05);
}

/* ===========================================================================
   Reviews Section
   =========================================================================== */

.reviews-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===========================================================================
   Price List Section
   =========================================================================== */

.prices-section {
    padding: 100px 0;
    background-color: var(--white);
}

.prices-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.price-table-container {
    margin-bottom: 50px;
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.price-table tbody tr {
    transition: var(--transition);
}

.price-table tbody tr:hover {
    background-color: rgba(94, 114, 228, 0.05);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table td:last-child {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

.prices-notes {
    background-color: rgba(45, 206, 137, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
}

.prices-notes h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.prices-notes ul {
    padding-left: 20px;
}

.prices-notes li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    list-style-type: none;
}

.prices-notes li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

/* ===========================================================================
   Facebook CTA Section
   =========================================================================== */

.news-section {
    padding: 100px 0;
    background-color: var(--white);
}

.facebook-cta {
    background-color: rgba(94, 114, 228, 0.05);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.facebook-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.facebook-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.facebook-text h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.facebook-text p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================================================
   News Section
   =========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.news-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

.news-cta {
    text-align: center;
    padding: 40px;
    background-color: rgba(94, 114, 228, 0.05);
    border-radius: var(--border-radius);
}

.news-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ===========================================================================
   Location Section
   =========================================================================== */

.location-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.location-info {
    padding-right: 20px;
}

.location-info h3 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.location-info h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.location-details {
    margin: 30px 0;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.location-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.location-hours {
    background-color: rgba(94, 114, 228, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.location-hours h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-hours p {
    margin-bottom: 10px;
}

.location-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    border-radius: var(--border-radius);
}

/* ===========================================================================
   Contact Section
   =========================================================================== */

.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.contact-info {
    padding-right: 20px;
}

.contact-info h3 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.contact-note {
    background-color: rgba(94, 114, 228, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.contact-note h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-media {
    margin-top: 40px;
}

.social-media h4 {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* ===========================================================================
   Footer
   =========================================================================== */

footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    border-radius: 0;
}

.footer-logo p {
    font-size: 0.9rem;
}

.footer-nav h4,
.footer-contact h4,
.footer-hours h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-nav h4:after,
.footer-contact h4:after,
.footer-hours h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-hours p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--white);
}

/* ===========================================================================
   Back to Top Button
   =========================================================================== */

#backToTop {
    position: fixed;
    right: 15px;
    bottom: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

#backToTop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: var(--secondary-color);
}

/* ===========================================================================
   Responsive Design
   =========================================================================== */

@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 10px 3%;
    }

    .logo img {
        height: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-grid,
    .about-grid.reversed,
    .philosophy-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-grid.reversed .about-image {
        order: -1;
    }
    
    .staff-card {
        grid-template-columns: 1fr;
    }
    
    .staff-card .staff-image {
        order: -1;
    }
    
    .parent-info-content {
        gap: 30px;
    }
    .parent-info-image {
        flex-basis: 45%;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .about-grid,
    .staff-grid {
        gap: 30px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .price-table th,
    .price-table td {
        padding: 12px 15px;
    }
    
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-nav {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .about-grid {
        flex-direction: column;
    }
    .about-grid.reversed {
        flex-direction: column-reverse;
    }
    .about-image {
        margin-top: 30px;
    }
    
    .philosophy-content {
        flex-direction: column;
    }
    .philosophy-image {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .parent-info-content {
        flex-direction: column;
    }
    .parent-info-image {
        margin-top: 30px;
        max-width: 90%;
        width: 100%;
        flex-basis: auto;
    }
    .parent-info-text {
        max-width: 100%;
    }
    
    .staff-grid {
        flex-direction: column;
    }
    .staff-card:last-child .staff-info {
        order: -1;
        margin-bottom: 30px;
    }
    .staff-card .staff-image {
        max-width: 100%;
    }
    .qualifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .location-content {
        flex-direction: column;
    }
    .location-map {
        margin-top: 30px;
        height: 350px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    .contact-info {
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav, .footer-contact, .footer-hours {
        margin-top: 30px;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-social {
        margin-top: 10px;
    }
    
    /* Ensure back to top button stays in viewport */
    #backToTop {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        max-width: 100vw;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .about-section,
    .services-section,
    .philosophy-section,
    .staff-section,
    .parent-info-section,
    .reviews-section,
    .news-section,
    .location-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}

/* Form styling improvements */
.form-group .required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-response {
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #27ae60;
}

.form-response.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.form-success {
    text-align: center;
    padding: 30px 20px;
}

.form-success i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.form-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================================================
   Landscape Orientation Fixes
   =========================================================================== */

/* Landscape mode fixes for mobile devices */
@media (max-width: 992px) and (orientation: landscape) {
    .mobile-nav {
        width: 50%;
        min-width: 280px;
        max-width: 350px;
        padding-top: 70px;
    }
    
    .mobile-nav ul li a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Ensure mobile menu is properly positioned */
    .mobile-nav.active {
        right: 0;
        display: block;
    }
    
    /* Ensure toggle button is always visible and clickable */
    .mobile-menu-toggle {
        position: relative;
        z-index: 1002;
        display: block !important;
    }
    
    /* Adjust header height in landscape for mobile */
    .header-container {
        padding: 8px 3%;
    }
    
    .logo img {
        height: 50px;
    }
}

/* Specific landscape fixes for smaller devices */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav {
        width: 55%;
        min-width: 250px;
        max-width: 300px;
        padding-top: 60px;
    }
    
    .mobile-nav ul li a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Very small landscape devices (phones in landscape) */
@media (max-width: 576px) and (orientation: landscape) {
    .mobile-nav {
        width: 60%;
        min-width: 220px;
        max-width: 280px;
        padding-top: 50px;
    }
    
    .mobile-nav ul li a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
} 