:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary-color: #1E293B;
    --text-color: #475569;
    --text-light: #64748b;
    --bg-light: #F8FAFC;
    --bg-white: #ffffff;
    --border-color: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    background: url('../images/texture-bg.png') repeat;
    
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
   
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero-image-background {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 80%;
    height: 100%;
    background: var(--primary-light);
    border-radius: var(--radius);
    opacity: 0;
    z-index: 1;
    transform: scale(0.95);
    animation: showBackground 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes showBackground {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(-30px);
    animation: landImage 1.2s ease-out forwards;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

@keyframes landImage {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-image-background {
        top: 10px;
        right: -10px;
        width: 85%;
        height: 100%;
    }
    
    .hero-image:hover {
        transform: translateY(-3px);
    }
    
    @keyframes landImage {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }
        60% {
            transform: translateY(5px);
        }
        80% {
            transform: translateY(-3px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.image-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder-small {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.2);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.btn-link:hover {
    gap: 0.75rem;
}

.stats {
    padding: 4rem 0;
    background: #818CF8;
    
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 100%
    );
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover::after {
    border-color: var(--primary-color);
    transform: scale(1.02);
    opacity: 0.3;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.stat-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulseIcon {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.stat-item:hover .stat-icon i {
    animation: pulseIcon 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-label {
    color: var(--primary-dark);
    transform: translateY(2px);
}

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

.stat-item.animated .stat-number {
    animation: countUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: block;
    width: 100%;
}

.section-title-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.course-overview,
.special-courses {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.course-card,
.special-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.course-card::before,
.special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.course-card:hover,
.special-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.course-card:hover::before,
.special-card:hover::before {
    opacity: 1;
}

.course-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

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

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-icon,
.special-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.course-card:hover .course-icon,
.special-card:hover .special-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.course-features {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.course-features li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: -1.5rem;
    color: var(--success);
    font-weight: bold;
}

.learning-methods {
    padding: 5rem 0;
    background: white;
}

.methods-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.methods-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
}

.method-slide {
    width: 25%;
    display: flex;
    align-items: center;
    min-height: 500px;
    background: var(--bg-white);
}

.method-slide:nth-child(even) {
    flex-direction: row-reverse;
}

.method-image {
    flex: 1;
    height: 500px;
    position: relative;
    overflow: hidden;
}

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

.method-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.method-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.method-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .method-slide {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .method-slide:nth-child(even) {
        flex-direction: column !important;
    }
    
    .method-image {
        height: 250px;
    }
    
    .method-content {
        padding: 2rem;
    }
    
    .method-content h3 {
        font-size: 1.5rem;
    }
}

.testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial-stars {
    color: var(--warning);
    margin-top: 1rem;
}

.page-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    animation: glowIn 1.5s ease-out forwards;
}

.page-hero h1 {
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
    position: relative;
}

.page-hero .lead {
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease-out forwards 0.3s;
    position: relative;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mission {
    padding: 5rem 0;
}

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

.mission-image {
    position: relative;
    text-align: center;
}

.mission-image-background {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 80%;
    height: 100%;
    background: var(--primary-light);
    border-radius: var(--radius);
    opacity: 0;
    z-index: 1;
    transform: scale(0.95);
    animation: showBackground 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.mission-image img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-30px);
    animation: landImage 1.2s ease-out forwards;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.timeline {
    padding: 5rem 0;
    background: var(--bg-light);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 1.5rem;
}

.team {
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.member-bio {
    color: white;
    padding: 1rem;
    text-align: center;
}

.member-bio p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.team-member:hover .member-overlay {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .member-photo {
        width: 180px;
        height: 180px;
    }
    
    .member-bio p {
        font-size: 0.85rem;
    }
}

.methods {
    padding: 5rem 0;
    background: var(--bg-light);
}

.methods-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-detail-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.method-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.method-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.method-detail-card:hover::before {
    opacity: 1;
}

.method-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.method-detail-card:hover .method-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.method-detail-card:nth-child(1) { animation-delay: 0.1s; }
.method-detail-card:nth-child(2) { animation-delay: 0.3s; }
.method-detail-card:nth-child(3) { animation-delay: 0.5s; }
.method-detail-card:nth-child(4) { animation-delay: 0.7s; }

.certifications {
    padding: 5rem 0;
    background: var(--bg-white);
}

.cert-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.cert-text {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards 0.2s;
}

.cert-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.4s;
}

.cert-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
    will-change: transform, opacity;
}

.cert-list li:nth-child(1) { animation-delay: 0.2s; }
.cert-list li:nth-child(2) { animation-delay: 0.4s; }
.cert-list li:nth-child(3) { animation-delay: 0.6s; }
.cert-list li:nth-child(4) { animation-delay: 0.8s; }
.cert-list li:nth-child(5) { animation-delay: 1s; }

.cert-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cert-list span {
    color: var(--text-light);
    line-height: 1.6;
}

.cert-image {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease forwards 0.5s;
}

.cert-image-background {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: var(--radius);
    opacity: 0;
    transform: scale(0.95);
    animation: showBackground 0.8s ease forwards 1s;
}

.cert-image img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

@media (max-width: 992px) {
    .cert-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cert-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cert-list {
        gap: 1rem;
    }
    
    .cert-intro {
        font-size: 1rem;
    }
    
    .cert-list i {
        font-size: 1.1rem;
    }
    
    .cert-list span {
        font-size: 0.95rem;
    }
}

.course-levels {
    padding: 5rem 0;
}

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

.level-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.level-card:hover::before {
    opacity: 1;
}

.level-card:nth-child(1) { animation-delay: 0.1s; }
.level-card:nth-child(2) { animation-delay: 0.2s; }
.level-card:nth-child(3) { animation-delay: 0.3s; }
.level-card:nth-child(4) { animation-delay: 0.4s; }
.level-card:nth-child(5) { animation-delay: 0.5s; }
.level-card:nth-child(6) { animation-delay: 0.6s; }

.level-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-header h3 {
    color: white;
    margin: 0;
}

.level-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.level-card > p {
    padding: 1rem 1.5rem 0;
}

.level-goals {
    padding: 1rem 1.5rem;
    list-style: none;
}

.level-goals li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.level-goals li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.level-info {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
}

.level-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.level-card:hover .level-info i {
    transform: scale(1.2);
}

.level-header h3 {
    transition: transform 0.3s ease;
}

.level-card:hover .level-header h3 {
    transform: translateX(5px);
}

.special-courses {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.special-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.special-card:hover::before {
    opacity: 1;
}

.special-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.special-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.special-card:hover .special-icon {
    background: var(--primary-color);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.special-card:hover .special-icon i {
    color: white;
    transform: scale(1.1);
}

.special-card h3 {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.special-card:hover h3 {
    transform: translateX(5px);
}

.special-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

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

.special-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.special-card:hover ul li::before {
    transform: translateX(3px);
}

.special-card:nth-child(1) { animation-delay: 0.1s; }
.special-card:nth-child(2) { animation-delay: 0.2s; }
.special-card:nth-child(3) { animation-delay: 0.3s; }
.special-card:nth-child(4) { animation-delay: 0.4s; }
.special-card:nth-child(5) { animation-delay: 0.5s; }
.special-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .special-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .special-card {
        padding: 1.5rem;
    }
}

.course-format {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.format-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.format-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.format-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.format-features {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.feature-check {
    color: var(--success);
    font-weight: bold;
}

.format-schedule {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.learning-path {
    padding: 5rem 0;
}

.path-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.path-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.path-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.path-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.path-step:hover::before {
    opacity: 1;
}

.path-step:nth-child(1) { animation-delay: 0.1s; }
.path-step:nth-child(3) { animation-delay: 0.3s; }
.path-step:nth-child(5) { animation-delay: 0.5s; }
.path-step:nth-child(7) { animation-delay: 0.7s; }
.path-step:nth-child(9) { animation-delay: 0.9s; }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.path-arrow {
    font-size: 2rem;
    color: var(--text-light);
}

.contact-main {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.map-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.map-placeholder {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 10rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.opening-hours {
    padding: 5rem 0;
}

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

.hours-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.hours-list {
    margin-top: 1rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-list li:last-child {
    border-bottom: none;
}

.faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}
.cta {
    position: relative;
    padding: 60px 0;
    background: url('../images/bg-cta-class.jpg') center center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 80, 0.7); 
    z-index: 1;
}

.cta .container,
.cta-content {
    position: relative;
    z-index: 2;
}
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-column a:hover {
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-image {
        order: -1;
    }
    
    .mission-image-background {
        top: 10px;
        right: -10px;
        width: 85%;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .methods-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .path-steps {
        flex-direction: column;
    }
    
    .path-arrow {
        transform: rotate(90deg);
    }
    
    .format-card.featured {
        transform: scale(1);
    }
}

.process-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.process-section .course-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.process-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.process-card:hover::before {
    opacity: 1;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.process-card:hover .process-number {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.process-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.process-card:hover .process-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.process-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.process-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .process-section .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-section .course-grid {
        grid-template-columns: 1fr;
    }
    
    .process-section {
        padding: 3rem 0;
    }
    
    .process-card {
        padding: 2rem 1.5rem;
    }
}

.features-showcase {
    padding: 64px 0 48px 0;
}

.features-showcase .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.25em;
    color: #22223b;
}

.section-title-divider {
    width: 60px;
    height: 4px;
    background: #6366f1;
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

.features-showcase .section-subtitle {
    text-align: center;
    color: #7077a1;
    margin-bottom: 36px;
    font-size: 1.08rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    position: relative;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.07);
    padding: 28px 36px;
    min-height: 120px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.15);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
    background: #f6f7fd;
}

.feature-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(99,102,241,0.10);
}

.feature-item h3 {
    font-size: 1.19rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #232350;
}

.feature-item p {
    font-size: 1.03rem;
    color: #5e6b8c;
    margin: 0;
}

.feature-item > div:not(.feature-icon) {
    flex: 1;
}

@media (max-width: 900px) {
    .features-grid {
        gap: 28px;
    }
    .feature-item {
        flex-direction: column !important;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
        min-height: 0;
    }
    .feature-icon {
        margin-bottom: 6px;
    }
}


.timeline-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(99, 102, 241, 0.2) 0%,
        var(--primary-color) 20%,
        var(--primary-color) 80%,
        rgba(99, 102, 241, 0.2) 100%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-content {
    flex: 1;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: scaleIn 0.4s ease forwards;
}

.timeline-item:nth-child(1)::after { animation-delay: 0.4s; }
.timeline-item:nth-child(2)::after { animation-delay: 0.6s; }
.timeline-item:nth-child(3)::after { animation-delay: 0.8s; }
.timeline-item:nth-child(4)::after { animation-delay: 1.0s; }
.timeline-item:nth-child(5)::after { animation-delay: 1.2s; }

.timeline-item:hover::after {
    transform: translateX(-50%) scale(1.3);
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.timeline-date {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    }

.timeline-content h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;




    }

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .timeline {
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        margin-left: 0;
        margin-right: 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-year {
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 1rem;
        margin: 0;
    }
    
    .timeline-date {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.progress-tracking {
    padding: 5rem 0;
    background: var(--bg-light);
}

.progress-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.progress-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.progress-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.progress-item:hover::before {
    opacity: 1;
}

.progress-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.progress-item:hover .progress-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.progress-content {
    flex: 1;
}

.progress-item h3 {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.progress-item:hover h3 {
    transform: translateX(5px);
}

.progress-item:nth-child(1) { animation-delay: 0.1s; }
.progress-item:nth-child(2) { animation-delay: 0.3s; }
.progress-item:nth-child(3) { animation-delay: 0.5s; }
.progress-item:nth-child(4) { animation-delay: 0.7s; }

.progress-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.progress-item p {
    color: var(--text-light);
    line-height: 1.6;
}


.text-slider-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.text-slider {
    position: relative;
    padding: 20px;
    height: 100%;
}

.text-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.text-slide.active {
    display: block;
}

.text-slide h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.text-slide ul {
    margin-bottom: 25px;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.grammar-section {
    padding: 5rem 0;
}

.grammar-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.grammar-card:hover {
    box-shadow: var(--hover-shadow);
}

.grammar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--primary-color);
    color: var(--bg-white);
    cursor: pointer;
}

.grammar-header h3 {
    margin: 0;
    color: var(--bg-white);
    font-size: 1.3rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.toggle-btn.active {
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.3);
}

.grammar-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.grammar-card.active .grammar-content {
    padding: 25px;
    max-height: 1000px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--primary-light);
}

.faq-item:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(255, 107, 53, 0.05);
    transition: var(--transition);
    font-size: 1.1rem;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.1);
}

.faq-item.active .faq-question {
    background: var(--primary-color);
    color: var(--bg-white);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.counter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><defs><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
    opacity: 0.2;
}

.counter-box {
    text-align: center;
    position: relative;
    z-index: 2;
}

.counter-box .counter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
}

.counter-box .counter-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.counter-box .counter-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.progress-bar-animate {
    transition: width 2s ease-in-out;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 49, 66, 0.95);
    color: var(--bg-white);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: none;
    border-top: 3px solid var(--primary-color);
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.quiz-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.quiz-field label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.quiz-field select,
.quiz-field .radio-group {
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quiz-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
}

.quiz-result {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.quiz-result h4 {
    margin-bottom: 0.5rem;
}

.quiz-cta {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    backdrop-filter: blur(2px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    width: 92%;
    max-width: 540px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;              /* prevent exceeding viewport height */
    display: flex;                 /* allow body to flex-scroll */
    flex-direction: column;
    animation: modalShow 0.2s ease;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;              /* enable inner scrolling */
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;                /* take remaining height */
    min-height: 0;                 /* allow flex child to shrink */
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

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

.cookie-consent p {
    margin-bottom: 0;
}

.cookie-consent a {
    color: var(--primary-light);
    text-decoration: underline;
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.policy-content {
    padding: 4rem 0;
}

.policy-grid {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.policy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.policy-details h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.policy-list {
    margin: 1rem 0;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.policy-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.policy-note {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.policy-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.policy-note p {
    margin: 0;
}

.price-table {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: none;
}

.price-type {
    font-weight: 500;
    color: var(--secondary-color);
}

.price-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cancellation-timeline {
    margin: 1.5rem 0;
}

.timeline-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.timeline-period {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-refund {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.timeline-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.policy-guarantee {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.policy-guarantee h5 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.policy-guarantee p {
    margin-bottom: 0.75rem;
}

.policy-guarantee ul {
    margin: 0;
}

.policy-guarantee li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.policy-guarantee li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

.process-steps {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-color);
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h5 {
    color: var(--secondary-color);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-color);
}

.contact-item small {
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.policy-update {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 2rem;
    text-align: center;
}

.policy-update i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.policy-update p {
    margin: 0.5rem 0;
}

.policy-update p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 1.5rem;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem auto;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin: 0 0 0.5rem 0;
    }

    /* Additional mobile optimizations for policy page */
    .policy-content {
        padding: 2.5rem 0;
    }

    .policy-grid {
        gap: 2rem;
    }

    .policy-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }

    .policy-details h4 {
        font-size: 1rem;
    }

    .price-type {
        font-size: 0.95rem;
    }

    .price-amount {
        font-size: 1rem;
    }

    .cancellation-timeline .timeline-item {
        padding: 1rem;
    }

    .policy-guarantee {
        padding: 1.25rem;
    }

    .policy-update {
        padding: 1rem;
    }
}

.policy-content .cancellation-timeline .timeline-item {
    display: block;            
    opacity: 1;               
    transform: none;          
}

.policy-content .cancellation-timeline .timeline-item:nth-child(even) {
    flex-direction: initial;  
}

.policy-content .cancellation-timeline .timeline-period,
.policy-content .cancellation-timeline .timeline-refund,
.policy-content .cancellation-timeline .timeline-note {
    display: block;
}