/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 50%, #f1f7f8 50%);
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNlNjFjNWQiIGZpbGwtb3BhY2l0eT0iLjA1Ij48cGF0aCBkPSJNMzYgMzRjMC0yLjIxLTEuNzktNC00LTRzLTQgMS43OS00IDQgMS43OSA0IDQgNCAzLjk4LTEuNzggNC00aC4wMXptMC0xMGMwLTIuMjEtMS43OS00LTQtNHMtNCAxLjc5LTQgNCAxLjc5IDQgNCA0IDMuOTgtMS43OCA0LTRoLjAxek0yNiAyNGMwLTIuMjEtMS43OS00LTQtNHMtNCAxLjc5LTQgNCAxLjc5IDQgNCA0IDMuOTgtMS43OCA0LTRoLjAxem0wIDEwYzAtMi4yMS0xLjc5LTQtNC00cy00IDEuNzktNCA0IDEuNzkgNCA0IDQgMy45OC0xLjc4IDQtNGguMDF6Ij48L3BhdGg+PC9nPjwvZz48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(230, 28, 93, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    color: #555;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.hero-image-main img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-image-main img {
    transform: scale(1.05);
}

.hero-image-shape {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--primary-color);
    border-radius: 20px;
    bottom: -30px;
    right: -30px;
    z-index: 1;
}

.hero-features {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    z-index: 3;
    min-width: 300px;
}

.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.hero-feature:last-child {
    margin-bottom: 0;
}

.hero-feature-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(230, 28, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.hero-feature-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    max-width: 570px;
}

.about-subtitle {
    display: inline-block;
    background-color: rgba(230, 28, 93, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--secondary-color);
}

.about-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 28, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.about-feature-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.about-feature-content p {
    font-size: 15px;
    color: #666;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.about-image-main img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover .about-image-main img {
    transform: scale(1.05);
}

.about-image-shape {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 5px solid var(--primary-color);
    border-radius: 20px;
    top: -25px;
    left: -25px;
    z-index: 1;
}

.about-image-caption {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    z-index: 3;
    max-width: 200px;
}

.about-image-caption h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.about-image-caption p {
    font-size: 14px;
    color: #666;
}

/* Compact Current Programs */
.programs {
    position: relative;
}

.program-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.program-tab {
    padding: 12px 25px;
    background-color: white;
    border: 2px solid #eee;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    margin: 0 10px 10px;
    transition: var(--transition);
}

.program-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.program-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.program-content {
    display: none;
}

.program-content.active {
    display: block;
}

.program-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.program-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.program-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 28, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.program-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.program-info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 0;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
}

.level-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    border: 2px dashed rgba(230, 28, 93, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.level-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 120px;
}

.level-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.level-card:hover .level-image img {
    transform: scale(1.05);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.level-icon {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.level-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.level-age {
    display: inline-block;
    background-color: white;
    width: max-content;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.level-features {
    margin-bottom: 0;
}

.level-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-grow: 1;
    margin-bottom: 10px;
}

.level-feature:last-child {
    margin-bottom: 0;
}

.level-feature i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
}

.level-feature span {
    font-size: 14px;
    color: #555;
}

.program-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.level-action {
    margin-top: 20px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.program-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-detail i {
    color: var(--primary-color);
    font-size: 14px;
}

.program-detail span {
    font-size: 14px;
    color: #555;
}

.program-action .btn {
    font-size: 14px;
    padding: 10px 20px;
}

/* Compact Upcoming Programs */
.upcoming-programs {
    position: relative;
}

.coming-soon-banner {
    background: linear-gradient(135deg, #e61c5d, #8a4fff);
    border-radius: var(--border-radius);
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(230, 28, 93, 0.2);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-text p {
    font-size: 15px;
    margin-bottom: 0;
    opacity: 0.9;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.upcoming-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px dashed rgba(230, 28, 93, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.upcoming-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
}

.language-badge.bilingual {
    background-color: rgba(230, 28, 93, 0.1);
    color: var(--primary-color);
}

.language-badge.english {
    background-color: rgba(76, 110, 245, 0.1);
    color: #4c6ef5;
}

.upcoming-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.upcoming-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.upcoming-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.upcoming-body {
    padding: 25px;
    flex-grow: 1;
}

.language-ratio {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.ratio-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.ratio-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.ratio-vi {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.ratio-en {
    background-color: #4c6ef5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
}

.feature-item span {
    font-size: 13px;
    color: #555;
}

.upcoming-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.class-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.class-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-detail i {
    color: var(--primary-color);
    font-size: 14px;
}

.class-detail span {
    font-size: 13px;
    color: #555;
}

.class-action .btn {
    font-size: 14px;
    padding: 10px 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .level-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-grid {
        grid-template-columns: 1fr;
    }

    .program-footer,
    .upcoming-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-action,
    .class-action {
        width: 100%;
    }

    .program-action .btn,
    .class-action .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .coming-soon-banner {
        flex-direction: column;
        text-align: center;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .program-tabs {
        flex-direction: column;
        align-items: center;
    }

    .program-tab {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 0 0 10px;
    }

    .level-action .btn {
        width: 100%;
    }

    .program-action, .class-action {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .program-action .btn, .class-action .btn {
        margin-right: 0 !important;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .program-header {
        flex-direction: column;
        text-align: center;
    }

    .program-details,
    .class-details {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}

/* Benefits Section */
.benefits {
    position: relative;
    overflow: hidden;
}

.benefits-container {
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover::before {
    height: 10px;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(230, 28, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.benefit-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.benefit-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    position: relative;
    background-color: var(--light-color);
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    margin: 40px 20px 20px;
}

.testimonial-quote {
    position: absolute;
    top: -25px;
    left: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.testimonial-text {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.testimonial-author-info p {
    font-size: 14px;
    color: #777;
}

.testimonial-rating {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.testimonial-rating i {
    color: #f4c150;
    font-size: 18px;
    margin-right: 5px;
}

/* News Section */
.news {
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 230px;
    overflow: hidden;
    position: relative;
}

.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-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.news-excerpt {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.news-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 991px) {
    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-shape {
        width: 80%;
        height: 80%;
        bottom: -20px;
        right: -20px;
    }

    .hero-features {
        bottom: -20px;
        left: -20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content {
        max-width: 100%;
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-image-shape {
        width: 70%;
        height: 70%;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-features {
        position: relative;
        left: unset;
    }

    .about-image-caption {
        bottom: -50px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    /* .program-cards {
        grid-template-columns: 1fr;
    } */

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }
}

.view-all-news {
    margin-top: 40px;
    text-align: center;
}

.view-all-news .btn {
    padding: 12px 28px;
    font-size: 16px;
}