/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', 'Inter', 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    overflow-x: hidden;
    overflow-y: visible;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', 'Poppins', 'Inter', 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, serif;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 51%, #dee2e6 100%) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo h1 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: none;
    white-space: nowrap;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #1a1a1a;
    background: rgba(26,26,26,0.05);
    transform: translateY(-1px);
}

.register-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff !important;
    border-radius: 25px;
    padding: 0.8rem 1.8rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44,62,80,0.3);
    border: 2px solid transparent;
}

.register-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #4a5568 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,62,80,0.4);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: left;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
}

/* Parallax background effect removed */

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.features {
    animation: fadeInUp 1.2s ease-out;
}

.about {
    animation: fadeInUp 1.4s ease-out;
}

.courses {
    animation: fadeInUp 1.6s ease-out;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.8 !important;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.5rem;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: rgba(44,62,80,0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
    overflow: visible;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #dee2e6;
    background: #ffffff;
    z-index: 10;
}

.feature-card i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #495057;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(44,62,80,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(44,62,80,0.05)"/><circle cx="40" cy="80" r="0.8" fill="rgba(44,62,80,0.05)"/></svg>') repeat;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-tagline {
    font-size: 1.4rem;
    color: #34495e;
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    position: relative;
}

.about-tagline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.8;
    color: #495057;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-logos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.logo-container {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 3px solid #f8f9fa;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.main-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.accreditation-logos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.accreditation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.accreditation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(44,62,80,0.2);
}

.accreditation-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.accreditation-text {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.about-gallery-img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #f8f9fa;
    background: white;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.about-gallery-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.about-gallery-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: rgba(44,62,80,0.3);
    background: #f8f9fa;
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: #f8f9fa;
    overflow: visible;
}

.courses h2 {
    text-align: center;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.course-card {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #dee2e6;
    background: #ffffff;
    z-index: 10;
}

.course-card h3 {
    font-size: 1.4rem;
    color: #495057;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.course-card h4 {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif;
}


.course-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #6c757d;
    font-size: 0.95rem;
}

.course-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f4;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.course-card li:last-child {
    border-bottom: none;
}

.course-card li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.3rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item > div {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #ffffff;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.4;
}

/* 特别处理邮箱地址的换行 - 使用更兼容的方法 */
.contact-item .email-text {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
}

/* 为所有联系信息文字添加统一的换行处理 */
.contact-item p,
.contact-item span {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    max-width: 100%;
    display: block;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-btn i {
    color: white;
    font-size: 1.1rem;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c3e50;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.email-btn i {
    color: white;
    font-size: 1.1rem;
}

.email-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44,62,80,0.3);
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #2c3e50;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-features {
        margin: 1.5rem 0;
    }
    
    .cta-buttons {
        margin-top: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.2rem;
        overflow: visible;
        z-index: 1;
    }
    
    .feature-card:hover {
        z-index: 10;
    }
    
    .feature-card i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .course-card {
        padding: 1.5rem 1.2rem;
        overflow: visible;
        z-index: 1;
    }
    
    .course-card:hover {
        z-index: 10;
    }
    
    .course-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .course-card h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .course-card p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .course-card li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text h2 {
        font-size: 2.8rem;
    }
    
    .about-tagline {
        font-size: 1.2rem;
    }
    
    .logo-container {
        padding: 1.5rem;
    }
    
    .main-logo {
        max-width: 250px;
    }
    
    .accreditation-logos {
        gap: 1rem;
    }
    
    .accreditation-item {
        padding: 1rem;
    }
    
    .accreditation-logo {
        width: 50px;
        height: 50px;
    }
    
    .accreditation-text {
        font-size: 0.8rem;
    }
    
    .about-gallery {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .about-gallery-img {
        height: 120px;
        padding: 8px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-item {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }
    
    .contact-item i {
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0.6rem;
        flex-shrink: 0;
    }
    
    .contact-item > div {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .contact-item p,
    .contact-item span {
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
    }
    
    .email-text {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .contact-content {
        padding: 0 0.5rem;
    }
    
    .contact-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .contact-item i {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .whatsapp-btn,
    .email-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
    
    .about-tagline {
        font-size: 1.1rem;
    }
    
    .logo-container {
        padding: 1rem;
    }
    
    .main-logo {
        max-width: 200px;
    }
    
    .accreditation-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .accreditation-logo {
        width: 40px;
        height: 40px;
    }
    
    .accreditation-text {
        font-size: 0.75rem;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .about-gallery-img {
        height: 140px;
        padding: 10px;
    }
    
    .feature-card {
        padding: 1.2rem 1rem;
        overflow: visible;
        z-index: 1;
    }
    
    .feature-card:hover {
        z-index: 10;
    }
    
    .feature-card i {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .hero-features {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-features {
        margin: 1rem 0;
    }
    
    .cta-buttons {
        margin-top: 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

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

/* Parallax animation removed */

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
    opacity: 1 !important;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
    opacity: 1 !important;
}

.cta-buttons {
    opacity: 1 !important;
}

/* Fade scroll effect removed */

.feature-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.course-card {
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
}

.course-card:nth-child(1) { animation-delay: 0.2s; }
.course-card:nth-child(2) { animation-delay: 0.4s; }
.course-card:nth-child(3) { animation-delay: 0.6s; }

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.contact-info {
    animation: fadeInLeft 1s ease-out;
}

.contact-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Account for fixed header */
}

/* Enhanced smooth scrolling for better performance */
* {
    scroll-behavior: smooth;
}

/* Custom scroll behavior for better UX */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Fallback for browsers that don't support smooth scrolling */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* Prevent horizontal overflow on specific elements */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Ensure text doesn't overflow */
p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34495e;
}

/* Zoefly Partnership Section */
.zoefly-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.zoefly-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.zoefly-info h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.zoefly-info p {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.zoefly-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44,62,80,0.3);
    margin-top: 1rem;
}

.zoefly-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,62,80,0.4);
    color: white;
}

.zoefly-logo-container {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.zoefly-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.zoefly-tagline {
    color: #6c757d;
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design for Zoefly Section */
@media (max-width: 768px) {
    .zoefly-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .zoefly-info h3 {
        font-size: 1.6rem;
    }
    
    .zoefly-info p {
        font-size: 1rem;
    }
    
    .zoefly-logo {
        max-width: 150px;
    }
}