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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6f798c 0%, #4a7987 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.image-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

/* Image responsive styles */
img {
    max-width: 100%;
    height: auto;
}

.hero-image img,
.about-image img {
    display: block;
    width: 100%;
}

/* Program and Feature card images */
.program-card img,
.feature-card img {
    transition: transform 0.3s ease;
}

.program-card:hover img,
.feature-card:hover img {
    transform: scale(1.05);
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .program-card img,
    .feature-card img {
        height: 120px;
    }
    
    .level-chart img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .program-card img,
    .feature-card img {
        height: 100px;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background: linear-gradient(135deg, #6f798c 0%, #4a7987 100%);
    color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.program-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.program-card .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.program-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Levels Section */
.levels {
    padding: 80px 0;
    background: #f8f9fa;
}

.levels-content {
    text-align: center;
}

.level-chart {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Scholarship Section */
.scholarship {
    padding: 80px 0;
    background: linear-gradient(45deg, #89a7cc 0%, #89a7cc 100%);
    color: white;
    text-align: center;
}

.scholarship h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.scholarship-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #e74c3c;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* News Section */
.news {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.news-content p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #6f798c 0%, #4a7987 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group select {
    color: #333;
}

.submit-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: #e74c3c;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* iPad Pro specific styles */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid,
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: 0;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        box-shadow: -2px 0 20px rgba(0,0,0,0.1);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 0.3rem 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.7s; }

    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 500;
        color: #2c3e50;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        text-align: left;
    }

    .nav-menu a:hover {
        background: #e74c3c;
        color: white;
        transform: translateX(5px);
    }

    .nav-menu a::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 50px;
        min-height: 500px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-image img {
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        order: 2;
    }
    
    .contact-info {
        order: 1;
        margin-bottom: 1rem;
    }

    .features-grid,
    .programs-grid,
    .testimonial-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .program-card {
        padding: 1.5rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .scholarship-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .about, .why-choose, .programs, .levels, .scholarship, .testimonials, .news, .faq, .contact {
        padding: 60px 0;
    }
    
    .level-chart img {
        max-height: 600px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .info-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 1rem;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .info-icon {
        margin-right: 1rem;
        margin-bottom: 0;
        font-size: 1.2rem;
        flex-shrink: 0;
        width: 30px;
        text-align: center;
    }
    
    .contact-info h3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .info-item div:last-child {
        flex: 1;
        line-height: 1.4;
    }
    
    .info-item strong {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .hero {
        padding: 90px 0 40px;
        min-height: 400px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .feature-card,
    .program-card,
    .testimonial-card,
    .highlight-card {
        padding: 1rem;
    }
    
    .feature-card h3,
    .program-card h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        width: 100%;
        top: 70px;
        height: calc(100vh - 70px);
        padding: 1.5rem 1rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .about, .why-choose, .programs, .levels, .scholarship, .testimonials, .news, .faq, .contact {
        padding: 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-image img {
        height: 200px;
    }
    
    .level-chart img {
        max-height: 400px;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    
    .info-item div:last-child {
        text-align: center;
    }
    
    .info-item strong {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .feature-card,
    .program-card {
        padding: 0.8rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .info-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .info-item strong {
        font-size: 0.85rem;
    }
    
    .info-item div:last-child {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .info-icon {
        font-size: 1.3rem;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .program-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #e74c3c;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.floating-back-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.floating-back-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Hide floating button on desktop */
@media (min-width: 769px) {
    .floating-back-btn {
        display: none;
    }
}

/* Adjust button size for very small screens */
@media (max-width: 480px) {
    .floating-back-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    
    .floating-back-btn svg {
        width: 20px;
        height: 20px;
    }
}