:root {
    --primary-color: #8B0000; 
    --secondary-color: #2E8B57;
    --dark-color: #171717;
    --light-color: #f8f8f8;
    --text-color: #333;
    --background-color: #fff;
    --accent-color: #D8BFD8; 
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2);
}

.primary-btn:hover {
    background-color: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 0, 0, 0.3);
    color: white;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(46, 139, 87, 0.2);
}

.secondary-btn:hover {
    background-color: #266f4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 139, 87, 0.3);
    color: white;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-divider path {
    fill: var(--light-color);
}

section:nth-child(odd) {
    background-color: var(--light-color);
}

section:nth-child(odd) .wave-divider path {
    fill: var(--background-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 50%;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.3rem;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover .nav-icon-container {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.1;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 20px 20px 60px var(--shadow-color);
    transform: rotate(2deg);
    transition: transform var(--transition-medium);
}

.hero-image:hover img {
    transform: rotate(0);
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 15px;
    top: 15px;
    left: -15px;
    z-index: -1;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-text {
    flex: 1;
}

.about-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-fast);
    padding-bottom: 1.5rem;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.program-card p {
    padding: 0 1.5rem;
}

.program-features {
    margin: 1rem 0;
    padding: 0 1.5rem;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.program-features .icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}

.program-card .btn {
    margin: 1rem 1.5rem 0;
}

.benefits-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.benefits-image {
    flex: 1;
}

.benefits-list {
    flex: 1;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 30px;
    height: 30px;
    fill: var(--secondary-color);
    flex-shrink: 0;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.day-column h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.class-card {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 8px var(--shadow-color);
    margin-bottom: 1rem;
    transition: transform var(--transition-fast);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.time {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.class-name {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.instructor {
    font-size: 0.9rem;
    color: #666;
}

.substitute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.substitute-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-fast);
}

.substitute-card:hover {
    transform: translateY(-5px);
}

.substitute-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.substitute-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.substitute-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.substitute-from {
    background-color: #f44336;
}

.substitute-to {
    background-color: #4caf50;
}

.substitute-arrow {
    align-self: center;
    margin: 0.5rem 0;
}

.substitute-arrow svg {
    width: 30px;
    height: 30px;
    fill: var(--text-color);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 3px dashed var(--primary-color);
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    font-weight: 700;
    color: white;
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-time:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -31px;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid white;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.contact-form-container {
    flex: 2;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: border var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-item {
    position: relative;
}

.footer-item:nth-child(even) {
    transform: translateY(2rem);
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-item h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-item h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

.footer-item ul {
    margin-top: 1rem;
}

.footer-item li {
    margin-bottom: 0.5rem;
}

.footer-item a {
    color: #ccc;
    transition: color var(--transition-fast);
}

.footer-item a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content,
    .about-content,
    .benefits-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-text h2 {
        text-align: center;
    }
    
    .about-image,
    .benefits-image {
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-item:nth-child(even) {
        transform: none;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .programs,
    .substitute-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 375px) {
    .container {
        width: 95%;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}