/* CSS Variables for Consistency */
:root {
    --oxford-blue: #1A2B3C;
    --bold-slate: #E2E8F0; /* A much bolder, high-contrast Slate Blue */
    --burnt-orange: #E67E22;
    --charcoal: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    color: var(--oxford-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography & Layout Spacing */
section {
    padding: 130px 0 100px;
}

.section-accent {
    width: 40px;
    height: 4px;
    background-color: var(--burnt-orange);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    color: #666;
}

/* Navigation Header & Banner */
.top-banner {
    background-color: var(--oxford-blue);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header {
    background-color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    color: var(--oxford-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    text-transform: none; /* Ensures custom casing is kept */
}

.logo-icon {
    color: var(--burnt-orange);
    flex-shrink: 0;
    margin-right: 0.6rem;
}

.logo span {
    color: var(--burnt-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--burnt-orange);
    opacity: 1;
}

.nav-links .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--oxford-blue);
    color: var(--white);
    border: 1px solid var(--oxford-blue);
}

.btn-primary:hover {
    background-color: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--oxford-blue);
    border: 1px solid var(--oxford-blue);
}

.btn-secondary:hover {
    background-color: var(--oxford-blue);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Image Styles */
.hero-img {
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    max-width: 100%;
    height: auto;
    display: block;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    background-color: var(--bold-slate);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 520px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
}

/* Subject Cards Section */
.subjects {
    background-color: var(--white);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subject-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 4px solid var(--oxford-blue);
    transition: var(--transition);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.subject-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Tutor Grid Section */
.tutors-section {
    background-color: var(--bold-slate);
}

.tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tutor-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.tutor-card:hover {
    border-color: var(--burnt-orange);
}

.tutor-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--cream);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    color: var(--oxford-blue);
    font-weight: 600;
}

.tutor-bio {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.tutor-credentials {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.tutor-credentials li {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #777;
}

/* Success Stories Section */
.success-section {
    background-color: var(--oxford-blue);
    color: var(--white);
}

.success-section .section-title {
    color: var(--white);
    margin-bottom: 3.5rem;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.success-card {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.success-author {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--burnt-orange);
}

/* Booking System Section */
.contact {
    background-color: var(--white);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    min-height: 400px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-step h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.subject-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.subject-option input {
    display: none;
}

.option-box {
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.subject-option input:checked + .option-box {
    border-color: var(--burnt-orange);
    background-color: rgba(230, 126, 34, 0.05);
    color: var(--burnt-orange);
}

.step-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* Fix for label color in dark section if needed, but booking is in light section */

.form-group input, .form-group select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 3rem;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .booking-card {
        padding: 1.5rem;
    }

    .subject-options {
        grid-template-columns: 1fr;
    }

    .credentials {
        flex-direction: column;
        gap: 0.5rem;
    }

    .success-grid {
        gap: 2rem;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}    .section-title {
        font-size: 1.75rem;
    }
}