/*
Theme Name: Interactive Mandarin
Theme URI: https://interactivemandarin.com
Description: A custom WordPress theme for Interactive Mandarin
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-menu, responsive-layout
*/

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #ffffff;
    /* padding-top has been removed to eliminate the space below the header */
}

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

/* Header Styles */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Fix for WordPress admin bar */
body.logged-in header {
    top: 32px;
}

@media (max-width: 782px) {
    body.logged-in header {
        top: 46px;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0; /* Increased top and bottom padding */
}

.logo {
    display: flex; /* Use flexbox to align logo and text */
    align-items: center; /* Vertically center them */
    gap: 0.75rem; /* Add some space between the logo and text */
    text-decoration: none;
    color: #2D3748; /* Set base color for text */
}

.logo:hover {
    text-decoration: none;
    color: #E53E3E;
}

.logo-img {
    height: 70px; /* Increased logo size from 60px */
    width: auto;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif; /* Changed to a more professional font */
    color: #E53E3E;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0; /* Reduced space between title and tagline */
    line-height: 1.2;
    font-weight: 500;
}

/* WordPress Menu Styling */
.primary-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu ul a {
    text-decoration: none;
    color: #2D3748;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.primary-menu ul a:hover {
    color: #E53E3E;
    background-color: #FFE5E9;
    transform: translateY(-2px);
}

.primary-menu ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #E53E3E;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.primary-menu ul a:hover::after {
    width: 80%;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2D3748;
    cursor: pointer;
}

.cta-btn {
    background: #E53E3E; /* Main CTA button color */
    color: white !important; /* Ensure high specificity */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: #C53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.whatsapp-btn {
    background: #25D366; /* WhatsApp Green */
    color: white !important; /* Ensure high specificity */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFF0F3 0%, #FFE5E9 100%);
    padding: calc(4rem + 100px) 0 4rem 0; 
    text-align: center;
}

body.logged-in .hero {
    padding-top: calc(4rem + 100px + 32px);
}

@media (max-width: 782px) {
    body.logged-in .hero {
        padding-top: calc(4rem + 100px + 46px);
    }
}


.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #4A5568;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E53E3E;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #4A5568;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #ffffff;
}

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

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.about-image {
    min-width: 0;
    align-self: start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Brand Family Section Styles */
.brand-family {
    padding: 5rem 0;
    background: #F7FAFC;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #4A5568;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
}

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

.brand-card {
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #E53E3E;
}

.brand-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 1rem;
}

.brand-card p {
    color: #4A5568;
    flex-grow: 1; 
    margin-bottom: 2rem;
}

.brand-card a,
.brand-card span {
    font-weight: 600;
    text-decoration: none;
    color: #E53E3E;
}

.brand-card.current-site {
    border-color: #E53E3E;
}

.brand-card.current-site span {
    color: #E53E3E;
}

/* Courses Section */
.courses {
    padding: 5rem 0;
    background: #ffffff; /* Changed from grey to white */
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 3rem;
}

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

.course-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #E53E3E;
}

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

.course-icon {
    font-size: 3rem;
    color: #E53E3E;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 1rem;
}

.course-card p {
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
}

.course-features li {
    color: #4A5568;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li::before {
    content: '✓';
    color: #38A169;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #F7FAFC; /* Changed from white to grey */
}

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

.testimonial {
    background: #ffffff; /* Changed from grey to white to stand out */
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #E53E3E;
    position: absolute;
    top: -10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #4A5568;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

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

.testimonial-role {
    color: #E53E3E;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFF0F3 0%, #FFE5E9 100%);
}

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

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item.phone-number {
    margin-top: 2.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #E53E3E;
    margin-right: 1rem;
    width: 30px;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #E53E3E;
}

.map-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

/* START: Styles for intl-tel-input and Checkboxes */
.iti {
    width: 100%;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    accent-color: #E53E3E;
    height: 1.25em;
    width: 1.25em;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
}
/* END: Styles for intl-tel-input and Checkboxes */

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

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

.footer-section h3 {
    color: #a4a9b4;
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: #a4a9b4;
}

.footer-bottom {
    border-top: 1px solid #2D3748;
    padding-top: 1rem;
    text-align: center;
    color: #CBD5E0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 50px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .whatsapp-btn {
        display: none;
    }

    .primary-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .primary-menu ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .brand-links {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: calc(6rem + 80px);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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