:root {
    --primary-red: #CE1126;
    --primary-yellow: #FCD116;
    --primary-green: #006B3F;
    --primary-gold: #DAA520;
    --primary-black: #000;
    --white: #FFF;
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    --hero-bg: linear-gradient(135deg, var(--primary-green), var(--primary-gold));
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--bg-gradient);
    min-height: 100vh;
    font-size: 16px;
    padding-top: 60px; /* Reduced for mobile */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

ul li::before {
    content: '▶';
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.section p, .section ul {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.program {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-yellow);
}

.program h2 {
    color: var(--primary-gold);
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 0.5rem;
}

.testimonials p {
    font-style: italic;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.footer p {
    font-size: 1rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-black);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-height: 60px;
    padding: 0.5rem 0;
}

nav {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    color: var(--primary-black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    font-weight: bold;
    min-width: 50px;
    min-height: 50px;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.hero {
    min-height: 80vh; /* Reduced from 100vh for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-bg);
    color: var(--white);
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.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="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none; /* Allow clicks through */
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    z-index: 1;
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--primary-gold);
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-red);
}

.testimonials {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.footer {
    background: var(--primary-black);
    color: var(--primary-yellow);
    padding: 2rem 1rem;
    text-align: center;
    font-weight: 600;
}

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

.rotating-keyword {
    color: var(--primary-yellow);
    font-weight: bold;
}

.tile {
    background: var(--primary-green);
    padding: 1rem;
    margin: 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: scale(1.05);
}

/* Form styles */
form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(206, 17, 38, 0.3);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Enhanced hamburger menu visibility */
    .mobile-menu-toggle {
        display: block !important;
        background: var(--primary-yellow) !important;
        color: var(--primary-black) !important;
        font-size: 1.8rem !important;
        padding: 1rem !important;
        min-width: 60px !important;
        min-height: 60px !important;
        right: 0.5rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
        border: 3px solid var(--primary-yellow) !important;
    }
    
    /* Better touch targets */
    nav ul li a {
        min-height: 44px; /* iOS recommended minimum */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved button spacing */
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better form spacing */
    form label {
        margin-top: 1rem;
        font-size: 1rem;
    }
    
    form input, form select, form textarea {
        margin-bottom: 1.2rem;
        border-radius: 8px;
    }
    
    /* Prevent text overflow */
    .section p, .section ul {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Better program cards */
    .program {
        border-radius: 12px;
    }
    
    /* Improved testimonials */
    .testimonials {
        border-radius: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-black);
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .program {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    form {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }

    .hero {
        min-height: 50vh;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

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

    .program {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .program h2 {
        font-size: 1.4rem;
    }

    form {
        padding: 1rem;
        margin: 0;
    }

    form input, form select, form textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .testimonials {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
    }
}
