:root {
    --olive-primary: #6B8E23;
    --olive-secondary: #556B2F;
    --warm-brown: #8B4513;
    --light-tan: #D2B48C;
    --cream: #FFF8DC;
    --dark-brown: #654321;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.7;
}

/* Mobile Navigation */
.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark-brown);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-tan);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 10px 0;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-menu li {
        text-align: center;
        padding: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--olive-primary), var(--olive-secondary));
    color: var(--cream);
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: headerSlide 1s ease-out;
}

@keyframes headerSlide {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Navigation */
nav {
    background: var(--light-tan);
    padding: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--warm-brown);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
}

nav a {
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--warm-brown);
    transition: all 0.3s ease;
}

nav a:hover::before {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(107, 142, 35, 0.9), rgba(107, 142, 35, 0.8)),
        url('https://images.unsplash.com/photo-1588072432836-e10032774350?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    padding: 8rem 1rem;
    text-align: center;
    color: var(--cream);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 3rem;
    padding-bottom: 5rem;
}

/* Program Cards */
.program-card {
    background: white;
    border: 2px solid var(--light-tan);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.program-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--olive-primary);
}

.program-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Buttons */
button {
    background: var(--warm-brown);
    color: var(--cream);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--dark-brown);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--olive-secondary);
    color: var(--cream);
    padding: 3rem 1rem;
    margin-top: 5rem;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--cream);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

/* Contact Form */
#contact {
    position: relative;
    padding: 5rem 1rem;
    background: linear-gradient(45deg, var(--olive-primary) 30%, var(--warm-brown) 100%);
    border-radius: 30px;
    overflow: hidden;
    margin: 4rem 0;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
    animation: animateGrid 20s linear infinite;
}

@keyframes animateGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

.contact-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 248, 220, 0.98);
    /* More opaque background */
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--dark-brown);
    /* Explicit text color */
}

.contact-content.section-visible {
    transform: translateY(0);
    opacity: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    padding-right: 2rem;
    border-right: 2px solid var(--light-tan);
}

.contact-info h3 {
    color: var(--olive-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    position: relative;
}

.contact-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
}

.contact-details li.address::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 256c-35.3 0-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64z"/></svg>');
}

.contact-details li.phone::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>');
}

.contact-details li.email::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg>');
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-tan);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--olive-primary);
    background: white;
    box-shadow: 0 0 15px rgba(107, 142, 35, 0.2);
    outline: none;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    background: var(--warm-brown);
    font-size: 1.1rem;
    padding: 1.2rem;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: var(--dark-brown);
    transform: scale(1.02);
}


/* Admissions Section */
#admissions {
    position: relative;
    padding: 4rem 1rem;
    background: var(--cream);
    border-radius: 30px;
    margin: 3rem 0;
}

.admissions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 5%;
}

.admissions-process {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-tan);
    transition: all 0.3s ease;
}

.admissions-process:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.admissions-process {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-tan);
    transition: all 0.3s ease;
}

.admissions-process:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.process-steps {
    list-style: none;
    counter-reset: admission-step;
}

.process-steps li {
    counter-increment: admission-step;
    margin: 2rem 0;
    padding-left: 3.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.process-steps li::before {
    content: counter(admission-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--olive-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.admissions-highlights {
    background: rgba(var(--olive-primary), 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 2px dashed var(--olive-primary);
}

.highlight-card {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}
.highlight-card:hover {
    transform: translateX(10px);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--olive-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.admissions-deadlines {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--warm-brown);
    border-radius: 15px;
    color: white;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }


    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid var(--light-tan);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }


    .contact-content {
        padding: 2rem;
    }

}

@media (max-width: 768px) {
    .admissions-container {
        grid-template-columns: 1fr;
    }

    .process-steps li {
        padding-left: 2.5rem;
    }
}


/* Mathematics Program Page Styles */
.program-page .hero {
    background: linear-gradient(rgba(107, 142, 35, 0.9), rgba(107, 142, 35, 0.8)),
        url('https://images.unsplash.com/photo-1587353162953-5f058be0d6d5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1351&q=80');
    padding: 6rem 1rem 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -3rem;
}

.program-overview h2,

.program-registration h2 {
    font-family: 'Merriweather', serif;
    color: var(--olive-secondary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.program-overview h2::after,

/* Curriculum Section Styles */
.curriculum {
    position: relative;
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 4rem 0;
}

.curriculum h2 {
    font-family: 'Merriweather', serif;
    color: var(--olive-secondary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.2rem;
}

.curriculum h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--warm-brown);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--light-tan);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 46%;
    padding: 2rem;
    margin: 2rem 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item:nth-child(odd) {
    left: 0;
    /*margin-left: 4%;*/
}

.timeline-item:nth-child(even) {
    left: 54%;
    margin-right: 4%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    width: 25px;
    height: 25px;
    background: var(--olive-primary);
    border-radius: 50%;
    border: 4px solid var(--cream);
}

.timeline-item:nth-child(odd)::before {
    right: -42px;
}

.timeline-item:nth-child(even)::before {
    left: -42px;
}

.timeline-phase {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--olive-primary);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h3 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--warm-brown);
    font-size: 1.6rem;
    line-height: 1;
}

.timeline-item p {
    color: var(--olive-secondary);
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
}

.timeline-item p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 12px;
    height: 2px;
    background: var(--light-tan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        margin: 2rem 0 !important;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -36px;
        right: auto;
    }

    .timeline-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .curriculum {
        padding: 2rem 0;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline-phase {
        font-size: 0.8rem;
    }
}

/* Trial Class Button Styles */
.trial-button-container {
    text-align: center;
    margin: 2rem 0 3rem;
    display: flex;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--warm-brown);
    color: var(--cream);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    transform: translateY(0);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Computer Science Specific Styles */
.program-page.cs .hero {
    background: linear-gradient(rgba(107, 142, 35, 0.9), rgba(107, 142, 35, 0.8)),
        url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

/* Programming Experience Selector */
select#experience-level {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="%236B8E23" d="M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
}

/* Code-themed decorations */
.program-page.cs .program-card::after {
    content: '</>';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: rgba(107, 142, 35, 0.1);
    font-size: 2rem;
    font-family: monospace;
    font-weight: 700;
}