:root {
    --primary-color: #00c389;
    --secondary-color: #4668b0;
    --white: #ffffff;
    --light-bg: #f5f9fa;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
body {
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* Header Styles */
header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    margin-top: 0;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 50px;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    margin-right: 20px;
}
.nav-menu ul li {
    margin: 0 15px;
}
.nav-menu ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.cart-icon {
    position: relative;
    margin-right: 20px;
}
.cart-icon i {
    font-size: 20px;
    color: #333;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-buttons .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
}
.login-btn {
    color: #333;
    border: 1px solid #ddd;
}
.signup-btn {
    background-color: var(--primary-color);
    color: var(--white);
}
/* Hero Section Styles */
.hero {
    position: relative;
    height: 500px;
    background-image: url('https://www.revisioncentre.co.uk/assets/frontend/images/home-banner-image.png');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 1;
}
.search-box {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.search-title {
    margin-bottom: 20px;
}
.search-title h2 {
    color: var(--white);
    font-size: 28px;
    font-weight: 500;
}
.search-title h2 span {
    color: var(--primary-color);
    font-weight: 700;
}
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.form-group {
    flex-grow: 1;
    min-width: 200px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
   
    background-color: var(--white);
    color: #333;
}
.form-control::placeholder {
    color: #999;
}
.postcode-input {
    position: relative;
}
.postcode-input .form-control {
    padding-right: 40px;
}
.postcode-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.checkbox-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.checkbox-label {
    color: var(--white);
    margin-right: 20px;
    display: flex;
    align-items: center;
}
.checkbox-label input {
    margin-right: 5px;
}
.search-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
}
/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    gap: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}
.contact-item i {
    margin-right: 8px;
}
/* Partners Section */
.partners {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}
.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.partner-logo {
    margin: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.partner-logo:hover {
    opacity: 1;
}
.partner-logo img {
    height: 40px;
}
/* Responsive */
@media (max-width: 768px) {
    .nav-menu ul {
        display: none;
    }
    .search-box {
        width: 95%;
        padding: 20px;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
.popular-tutors {
    padding: 60px 0 30px 0;
    background: #fff;
    text-align: center;
}
.popular-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}
.tutors-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.tutor-card {
    background: #fff;
    box-shadow: 0 10px 30px 0 rgba(70,104,176,0.07);
    border-radius: 10px;
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.tutor-card:hover {
    box-shadow: 0 10px 30px 0 rgba(0,195,137,0.15);
}
.tutor-img {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}
.tutor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tutor-price {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #00c389;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 10px 18px 10px 12px;
    border-radius: 10px 0 0 0;
}
.tutor-price span {
    font-size: 0.9rem;
    font-weight: 400;
}
.tutor-info {
    padding: 18px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tutor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.tutor-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
}
.tutor-rating {
    font-size: 0.95rem;
    color: #888;
}
.tutor-meta {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    margin: 10px 0 6px 0;
    color: #4668b0;
}
.meta-item i {
    color: #00c389;
    margin-left: 2px;
}
.tutor-tagline {
    font-size: 0.96rem;
    color: #444;
    margin-bottom: 10px;
}
.tutor-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.stat-distance {
    background: #eaf3fa;
    color: #4668b0;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.97rem;
}
.stat-online {
    background: #eaf3fa;
    color: #4668b0;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.97rem;
}
.profile-btn {
    margin-top: 10px;
    background: #00c389;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    width: 100%;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background 0.2s;
    display: block;
    text-align: center;
}
.profile-btn:hover {
    background: #009a6e;
}
@media (max-width: 1100px) {
    .tutors-grid {
        flex-direction: column;
        align-items: center;
    }
}

.learn-with-us {
    padding: 60px 0 30px 0;
    background: #fff;
    text-align: center;
}
.learn-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}
.stats-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.stat-card {
    background: #fff;
    box-shadow: 0 10px 30px 0 rgba(70,104,176,0.07);
    border-radius: 10px;
    padding: 32px 24px;
    min-width: 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.stat-card:hover {
    box-shadow: 0 10px 30px 0 rgba(0,195,137,0.15);
}
.stat-number {
    font-size: 38px;
    font-weight: 700;
    color: #4668b0;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 15px;
    color: #888;
}
@media (max-width: 900px) {
    .stats-cards {
        flex-direction: column;
        gap: 20px;
    }
}

.how-it-works {
    padding: 80px 0;
    background: linear-gradient(90deg, #f5f9fa 0%, #e0f3fa 100%);
    overflow: hidden;
    position: relative;
}
.how-it-works-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.how-it-works-text {
    flex: 1;
    padding-right: 50px;
}
.how-it-works-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.how-it-works-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}
.know-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 30px;
}
.know-more i {
    margin-left: 8px;
}
.features {
    display: flex;
    gap: 30px;
}
.feature {
    display: flex;
    align-items: center;
}
.feature i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0, 195, 137, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}
.feature-text p {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.how-it-works-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.how-it-works-image img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .how-it-works-content {
        flex-direction: column;
    }
    .how-it-works-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .features {
        justify-content: center;
    }
}

.main-footer {
    background: #181818;
    color: #fff;
    font-size: 15px;
}
.footer-top {
    padding: 50px 0 20px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}
.footer-logo img {
    height: 60px;
}
.footer-links {
    flex: 2;
    min-width: 220px;
}
.footer-title {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.footer-links ul li {
    margin-bottom: 6px;
}
.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links ul li a:hover {
    color: #00c389;
}
.footer-social {
    margin-top: 10px;
}
.footer-social a {
    display: inline-block;
    color: #fff;
    background: #232323;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin-right: 8px;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
    background: #00c389;
    color: #fff;
}
.footer-contact {
    flex: 1.3;
    min-width: 180px;
}
.footer-contact-item {
    margin-bottom: 14px;
}
.footer-contact-label {
    color: #aaa;
    font-size: 13px;
    display: block;
}
.footer-bottom {
    background: #222;
    padding: 12px 0;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-logo, .footer-links, .footer-contact {
        justify-content: center;
        text-align: center;
    }
}

.register-choice-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
}
.register-choice-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}
.register-choice-subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}
.register-choice-options {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}
.register-choice-card {
    background: #fafbfc;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 32px 38px 24px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    min-width: 250px;
    max-width: 320px;
}
.register-choice-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transform: translateY(-4px) scale(1.03);
}
.register-choice-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 18px;
}
.register-choice-label {
    font-size: 1.45rem;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.5px;
    color: #222;
    text-align: center;
}
@media (max-width: 700px) {
    .register-choice-options {
        flex-direction: column;
        gap: 28px;
    }
    .register-choice-card {
        min-width: 180px;
        padding: 22px 12px 16px 12px;
    }
}

.hero-about-bg {
    background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
    position: relative;
    height: 380px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}
.hero-about-image {
    position: absolute;
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
    width: 900px;
    max-width: 90vw;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.12);
    border: 8px solid #fff;
    object-fit: cover;
    z-index: 2;
}
.about-section {
    margin-top: 160px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}
.about-section h2 {
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 18px;
    color: #222;
}
.about-section p {
    font-size: 1.16rem;
    color: #444;
    margin-bottom: 0;
    line-height: 1.7;
}
@media (max-width: 600px) {
    .hero-about-image { width: 98vw; left: 1vw; transform: none; }
    .about-section { margin-top: 120px; }
}

/* Header Font & Menu Styling */
header, .nav-menu ul, .nav-menu ul li a, .auth-buttons .btn {
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
}

header {
    background: #fff;
    box-shadow: 0 1px 0 #e5e5e5;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 0;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1201;
}
.hamburger-menu span {
    display: block;
    height: 3px;
    width: 28px;
    background: #232323;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 24px 16px 24px;
        box-shadow: 0 2px 12px rgba(44,62,80,0.08);
        display: none;
        z-index: 1200;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        width: 100%;
        margin-top: 12px;
    }
    .hamburger-menu {
        display: flex;
    }
    .header-content {
        position: relative;
    }
    .nav-menu {
       display: none;
    }
}

.logo img {
    height: 38px;
    margin-right: 36px;
}

.nav-menu {
    flex: 1;
    /*display: flex;*/
    align-items: center;
    justify-content: flex-end;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu ul li a {
    color: #232323;
    font-size: 15px;
    font-weight: 400;
    padding: 0 0;
    background: none;
    border: none;
    box-shadow: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    line-height: 1.2;
    display: block;
}

.nav-menu ul li a:hover {
    color: #5de294;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 28px;
}

.auth-buttons .btn {
    font-size: 15px;
    font-weight: 400;
    padding: 8px 22px;
    border-radius: 6px;
    background: #5de294;
    color: #fff;
    border: none;
    transition: background 0.2s;
    box-shadow: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-buttons .login-btn {
    background: transparent;
    color: #232323;
    border: 1px solid #e5e5e5;
    margin-right: 0;
}

.auth-buttons .login-btn:hover {
    background: #f5f5f5;
    color: #28a745;
}

.auth-buttons .signup-btn {
    background: #5de294;
    color: #fff;
}

.auth-buttons .signup-btn:hover {
    background: #4fbf82;
    color: #fff;
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        min-height: 56px;
    }
    .nav-menu ul {
        gap: 18px;
    }
    .auth-buttons {
        margin-left: 0;
        gap: 8px;
    }
}

/* Horizontal Search Form Styles */
.search-form-horizontal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-control-horizontal {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
}

.form-control-horizontal:focus {
    outline: none;
    border-color: #5de294;
    box-shadow: 0 0 5px rgba(93, 226, 148, 0.3);
}

.postcode-input-horizontal {
    position: relative;
    flex: 1;
}

.postcode-input-horizontal i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-button-horizontal {
    background: #5de294;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-button-horizontal:hover {
    background: #4fbf82;
}

.teaching-preferences {
    display: flex;
    align-items: center;
    gap: 20px;
}

.preferences-label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.checkbox-group-horizontal {
    display: flex;
    gap: 20px;
}

.checkbox-label-horizontal {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label-horizontal input[type="checkbox"] {
    margin: 0;
}

.checkbox-label-horizontal span {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .form-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .form-control-horizontal {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .teaching-preferences {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .checkbox-group-horizontal {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* CTA Section */
.cta-section {
    padding: 40px 0;
    background: linear-gradient(90deg, #5de294, #4ca6c3);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.cta-button {
    background-color: #5de294;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4fbf82;
    color: #fff;
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-content h2 {
        margin-bottom: 20px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.testimonials-header h2 {
    font-size: 36px;
    font-weight: bold;
    margin-right: 20px;
}

.testimonial-icon {
    width: 60px;
    height: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.testimonial-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 20px;
}

.testimonial-body h4 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
}

.testimonial-body h4 span {
    font-weight: normal;
    display: block;
    font-size: 18px;
    color: #555;
}

.quote-mark {
    font-size: 60px;
    color: #007bff;
    line-height: 1;
    margin: 10px 0;
}

.testimonial-body p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-link {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.view-all-link:hover {
    text-decoration: underline;
}
