:root {
    --blue: #3b82f6;
    --red: #ef4444;
    --dark: #333;
    --gray: #4b5563;
    --light: #f4f7f6;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
}

header {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for mobile menu */
}

.logo { height: 100px; }

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark);
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 1001;
}

nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 25px; }
nav ul li a { text-decoration: none; color: var(--dark); font-weight: bold; }
nav ul li a:hover { color: var(--blue); }

* {
    box-sizing: border-box;
}

.hero {
    text-align: center;
    padding: 100px 10%;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('/static/images/logor.png') no-repeat center;
    background-size: 40%;
}

.hero h1 {
    font-size: 4.5rem; /* Large impact text */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -2px;
}

.hero .blue { color: var(--blue); }

.hero-subtext {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 14px rgba(59,130,246,0.4); }
.btn-primary:hover { transform: translateY(-3px); background: #2563eb; }

.btn-secondary { background: white; color: var(--dark); border: 1px solid #e5e7eb; }
.btn-secondary:hover { background: #f3f4f6; }

/* --- HERO BADGES (STAT STYLE) --- */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.badge {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1;
    max-width: 300px;
    border: 1px solid #f3f4f6;
}

.badge-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.badge-text {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECTIONS --- */
.container { padding: 100px 10%; text-align: center; }
.bg-light { background: var(--light); }
h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 40px; }

/* --- STATIONARY REVIEWS GRID --- */
.reviews-section {
    background: var(--dark);
    padding: 80px 0; /* Added 'px' to fix your typo */
    overflow: hidden;
}

.reviews-grid {
    display: flex;
    flex-direction: row;     
    flex-wrap: wrap;         /* Allows cards to wrap to new lines */
    justify-content: center; /* Centers cards on the page */
    padding: 20px 5%;        
    gap: 30px;
    align-items: stretch;    /* Makes cards same height in a row */
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 20px;
    width: 350px;           /* Base width */
    max-width: 100%;        /* Prevents horizontal scroll on small screens */
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.review-btn-container {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

/* Google Review Button Styling */
.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.google-btn i {
    color: #4285F4; /* Official Google Blue */
}

.google-btn:hover {
    background-color: #f8fafc;
    border-color: var(--blue);
    transform: scale(1.05);
}

/* Ensure the heading icon is responsive */
@media (max-width: 768px) {
    .reviews-section h2 i {
        display: block;
        margin: 10px auto 0;
    }
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-grid {
        gap: 20px;
        padding: 20px;
    }

    .review-card {
        padding: 25px;
        width: 100%; /* Take full width on mobile */
    }

    .review-btn-container .btn {
        width: 100%; /* Make button easy to tap on mobile */
        max-width: 300px;
    }
}
/* --- SCROLLING REVIEWS (MARQUEE) --- ************ ADD BACK IN LATER WITH MORE REVIEWS
.reviews-section {
    background: var(--dark);
    padding: 40px 0;
    overflow: hidden; /* Hide overflow for the scroll /
    white-space: nowrap;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

/* Pause animation on hover so parents can read /
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Animation Logic /
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Mobile Tweak for Reviews /
@media (max-width: 1024px) {
    .review-card {
        min-width: 280px;
        padding: 20px;
    }
}

/* About Section */
.about-flex { display: flex; justify-content: center; margin-top: 30px; }
.about-list { list-style: none; padding: 0; text-align: left; }
.about-list li { padding: 10px 0; font-size: 1.1rem; }
.about-list li::before { content: "✓ "; color: var(--blue); font-weight: bold; margin-right: 10px; }

/* Location Section */
.location-group p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin: 10px 0;
}
.online-tag {
    display: inline-block;
    margin-top: 20px;
    background: var(--red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
}

/* --- TUTOR BIO REFINEMENT --- */
.tutor-bio {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 10px 0 20px 0;
    font-style: italic;
    border-left: 3px solid var(--blue);
    padding-left: 15px;
    min-height: 80px; /* Adjust based on your longest bio */
    display: flex;
    align-items: center; /* Vertically centers short bios */
}

/* Tutor Cards */
.grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: stretch; 
    gap: 30px; 
    margin-top: 40px;
}

.tutor-card { 
    background: white; 
    padding: 30px; 
    border-radius: 24px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    text-align: left;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}
.tutor-card h3 { font-size: 1.5rem; margin-top: 0; color: var(--blue); text-align: center;}
.subject-list { list-style: none; padding: 0; margin-top: auto; }
.subject-list li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.price-card { background: white; padding: 50px 30px; border-radius: 24px; position: relative; border: 1px solid #e5e7eb; transition: 0.3s; }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.price-card.highlight { border: 3px solid var(--blue); }
.price { font-size: 3rem; font-weight: 900; margin: 20px 0; }
.price span { font-size: 1rem; color: var(--gray); }
.tag { position: absolute; top: 20px; right: 20px; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; }
.red-tag { background: #fee2e2; color: var(--red); }
.blue-tag { background: #dbeafe; color: var(--blue); }
.grey-tag { background: #f3f4f6; color: var(--gray); }
.savings { color: var(--red); font-weight: 800; }

/* --- CONTACT FORM --- */
.form-container {
    max-width: 600px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
    border: 1px solid #f3f4f6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

/* Alert Messages */
.alert {
    padding: 15px;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER SOCIAL BUTTONS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

/* LinkedIn Branding Color */
.social-btn.linkedin {
    background-color: #0077b5;
    border: 1px solid #0077b5;
}

/* TikTok Branding Color */
.social-btn.tiktok {
    background-color: #010101;
    border: 1px solid #333;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.social-btn i {
    font-size: 1.2rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 20px;
}

footer { background: var(--dark); color: white; padding: 60px 10%; text-align: center; }

/* --- MOBILE RESPONSIVENESS (RQ-D01) --- */
@media (max-width: 768px) {
    /* Adjust Global sizing for readability */
    html {
        font-size: 16px;
    }

    /* Header & Nav */
    header {
        padding: 0.5rem 5%; /* Smaller padding on mobile */
    }
    
    nav {
        /* Align Logo and Toggle Button horizontally */
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        width: 100%; /* Ensure full width */
    }

    .logo {
        height: 60px; /* Smaller logo for mobile header */
        margin: 0;
    }
    
    .menu-toggle {
        display: block !important; /* Show hamburger on mobile, forced */
    }

    /* Hide menu by default */
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 15px;
        border-top: 1px solid #f3f4f6;
    }
    
    /* Show menu when active */
    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    nav ul li a:hover {
        background-color: #f9fafb;
    }

    /* Hero Section */
    .hero {
        padding: 60px 5%;
        background-size: cover; /* Cover or contain depending on image, cover is safer for text overlay */
        background-position: center;
    }

    .hero h1 {
        font-size: 2.2rem; /* Reduce from 4.5rem to fit screen */
        line-height: 1.2;
    }

    .hero-subtext {
        font-size: 1.15rem; /* Ensure readability */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn {
        width: 100%; /* Full width buttons */
        box-sizing: border-box;
    }

    .hero-badges {
        flex-direction: column;
        gap: 20px;
    }

    .badge {
        max-width: 100%;
        padding: 20px;
    }
    
    .badge-title {
        font-size: 2rem;
    }

    /* General Sections */
    .container {
        padding: 60px 5%;
    }

    h2 {
        font-size: 2.2rem;
    }

    /* About Section */
    .about-list li {
        font-size: 1.1rem;
    }

    /* Cards & Grids */
    .grid {
        flex-direction: column;
    }
    
    .tutor-card {
        padding: 20px;
        max-width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr; /* Force single column */
    }
    
    /* Footer */
    footer {
        padding: 40px 5%;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}