/* MandariQ Website - Main Stylesheet */

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

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A2B4A;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #DC143C;
}

.nav-cta {
    background: #DC143C;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: #B01030;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F4F8 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: #1A2B4A;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #DC143C;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #DC143C;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background: #B01030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background: white;
    color: #DC143C;
    padding: 1rem 2.5rem;
    border: 2px solid #DC143C;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #DC143C;
    color: white;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1A2B4A;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Page Header (for subpages) */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, #DC143C 0%, #B01030 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #DC143C;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    color: #1A2B4A;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    line-height: 1.7;
}

/* Why Mandarin Section */
.why-mandarin {
    background: linear-gradient(135deg, #F0F4F8 0%, #FFF5F0 100%);
    padding: 5rem 2rem;
}

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

.why-text h2 {
    font-size: 2.5rem;
    color: #1A2B4A;
    margin-bottom: 1.5rem;
}

.why-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.why-list {
    list-style: none;
}

.why-list li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-list li:before {
    content: "✓";
    color: #DC143C;
    font-weight: bold;
    font-size: 1.5rem;
}

.why-image {
    background: linear-gradient(135deg, #DC143C 0%, #F4A259 100%);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.3);
}

/* Programs Section */
.programs {
    background: white;
}

.program-card {
    background: linear-gradient(135deg, #FFF5F0 0%, white 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #DC143C;
    transition: all 0.3s;
}

.program-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.program-badge {
    display: inline-block;
    background: #DC143C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.8rem;
    color: #1A2B4A;
    margin-bottom: 0.5rem;
}

.program-subtitle {
    color: #DC143C;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.program-features {
    list-style: none;
    margin: 1.5rem 0;
}

.program-features li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.program-features li:before {
    content: "🎯";
    font-size: 1.2rem;
}

.program-cta {
    display: inline-block;
    margin-top: 1rem;
    color: #DC143C;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.program-cta:hover {
    color: #B01030;
    transform: translateX(5px);
}

/* Learning Method */
.learning-method {
    background: #1A2B4A;
    color: white;
}

.learning-method h2 {
    color: white;
}

.learning-method .section-header p {
    color: #ccc;
}

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

.method-step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.method-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #DC143C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.method-step h3 {
    color: #F4A259;
    margin-bottom: 1rem;
}

.method-step p {
    color: #ccc;
    line-height: 1.7;
}

/* News & Articles Section */
.news-articles {
    background: white;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #DC143C 0%, #F4A259 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.article-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.article-category {
    background: #FFF5F0;
    color: #DC143C;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.article-card h3 {
    font-size: 1.4rem;
    color: #1A2B4A;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.article-link {
    color: #DC143C;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.article-link:hover {
    gap: 0.8rem;
    color: #B01030;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F4F8 100%);
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    margin-top: 2rem;
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: #DC143C;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: #1A2B4A;
}

.testimonial-role {
    color: #DC143C;
    font-size: 0.95rem;
}

/* CTA Section */
.final-cta {
    background: linear-gradient(135deg, #DC143C 0%, #B01030 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.final-cta h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta .cta-buttons {
    gap: 1.5rem;
}

.final-cta .btn-primary {
    background: white;
    color: #DC143C;
}

.final-cta .btn-primary:hover {
    background: #F4A259;
    color: white;
}

.final-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.final-cta .btn-secondary:hover {
    background: white;
    color: #DC143C;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.badge:before {
    content: "✓";
    font-size: 1.8rem;
}

/* Content sections for subpages */
.content-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #1A2B4A;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    font-size: 1.6rem;
    color: #DC143C;
    margin: 2rem 0 1rem;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.content-section ul, .content-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #555;
}

/* Two column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1A2B4A;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DC143C;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F4F8 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-info h3 {
    color: #1A2B4A;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info a {
    color: #DC143C;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1A2B4A;
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-column h3 {
    color: #F4A259;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column p, .footer-column a {
    color: #ccc;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #F4A259;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #DC143C;
    transform: translateY(-3px);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1A2B4A;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}
