/* ===== MODERN HERO SECTION ===== */
.hero {
    padding: 180px 0 100px;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background Styles */
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.85) 0%, 
        rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
    mix-blend-mode: multiply;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    font-size: 1.2rem;
    color: #f093fb;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-actions .btn-primary {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 16px 36px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-outline {
    border-color: white;
    color: white;
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Educational Background Section */
.education-background {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.education-background h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-background h3 i {
    color: #f093fb;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.education-item i {
    font-size: 1.2rem;
    color: #f093fb;
    min-width: 24px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Hero Visual Area */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    animation: float 6s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: floatIndividual 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 90px;
    height: 90px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 110px;
    height: 110px;
    animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 1s;
}

.floating-element i {
    font-size: 2.5rem;
    color: white;
}

.hero-main-visual {
    position: absolute;
    top: 35%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    overflow: hidden;
    z-index: 2;
}

.hero-main-visual:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.hero-main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4f46e5);
}

.demo-content {
    text-align: center;
}

.demo-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.demo-video-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.demo-video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.play-overlay i {
    font-size: 4.5rem;
    color: white;
    transition: var(--transition);
}

.demo-video-placeholder:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.demo-video-placeholder:hover .play-overlay i {
    transform: scale(1.1);
}

.demo-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.demo-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}

/* ===== MODERN FULL WIDTH SEARCH WIDGET ===== */
.search-widget {
    background: #fff;
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.search-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.search-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
}

/* ===== CLEAN TWO-ROW SEARCH FORM ===== */
.search-container {
    width: 100%;
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.search-row-1 {
    margin-bottom: 20px;
}

.search-row-2 {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-row-2.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.button-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 1;
    font-size: 1.2rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 20px 20px 20px 60px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Adjust widths for better balance */
.subject-group {
    flex: 1.5;
}

.type-group {
    flex: 1;
}

.zip-group {
    flex: 1;
}

.distance-group {
    flex: 1;
}

.button-group {
    flex: 0 0 auto;
    min-width: 180px;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 64px;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

/* For single button row */
.button-row .search-btn {
    max-width: 300px;
}

/* Popular Subjects */
.popular-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
}

.popular-subject {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(79, 70, 229, 0.2);
}

.popular-subject:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.1);
}

/* Subject Suggestions */
.subject-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.subject-suggestion {
    padding: 16px 24px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 15px;
}

.subject-suggestion:hover {
    background: var(--gray-100);
}

.subject-suggestion i {
    color: var(--primary);
    font-size: 1.2rem;
    position: static;
    transform: none;
}

.subject-suggestion .suggestion-text {
    flex: 1;
    font-weight: 500;
}

.subject-suggestion .popular-tag {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== MODERN PROCESS SECTION ===== */
.process {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 50px 30px;
    border-radius: 24px;
    background: white;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.step-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 36px;
    color: var(--primary);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.process-step p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== MODERN TUTORS SECTION ===== */
.tutors {
    background: white;
    position: relative;
}

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

.tutor-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.tutor-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tutor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.tutor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.tutor-university {
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.tutor-body {
    padding: 30px;
}

.tutor-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.subject-tag {
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.tutor-bio {
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutor-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.tutor-footer {
    padding: 0 30px 30px;
}

/* ===== MODERN TESTIMONIALS ===== */

/*tesmonian*/
.testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    padding: 80px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.testimonial-slider {
            margin: 0 auto;
            position: relative;
        }

        .slider-container {
            position: relative;
            width: 100%;
        }

        .testimonial-card {
            background: white;
            border-radius: 30px;
            padding: 50px;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: absolute;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
            overflow: hidden;
        }

        .testimonial-card.active {
            opacity: 1;
            visibility: visible;
            position: relative;
        }

        .testimonial-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 30px;
            overflow: hidden;
            border: 4px solid white;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .testimonial-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .testimonial-text {
            font-size: 1.25rem;
            font-style: italic;
            color: var(--gray-700);
            margin-bottom: 30px;
            line-height: 1.8;
            position: relative;
            z-index: 1;
        }

        .testimonial-author {
            font-weight: 700;
            color: var(--dark);
            font-size: 1.1rem;
        }

        .testimonial-meta {
            color: var(--gray-600);
            font-size: 0.95rem;
            margin-top: 5px;
        }

        /* Slider Controls */
        .slider-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 30px;
            gap: 20px;
        }

        .slider-btn {
            background: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: var(--primary);
        }

        .slider-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }

        .slider-dots {
            display: flex;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        .dot.active {
            background: var(--primary);
            transform: scale(1.3);
        }
/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: transparent;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 3;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatIndividual {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN FOR HOME PAGE ===== */
@media (max-width: 1200px) {
    .hero-top-row {
        gap: 60px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-main-visual {
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .hero-top-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        margin-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
        min-height: 200px;
    }
    
    .hero-main-visual {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
    
    .floating-elements {
        display: none;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .tutor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .subject-group,
    .type-group,
    .zip-group,
    .distance-group,
    .button-group {
        flex: 1 1 100%;
    }
    
    .button-group {
        min-width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .button-row .search-btn {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
        min-height: auto;
    }
    
    .hero-top-row {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tutor-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .search-widget {
        padding: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .popular-subjects {
        justify-content: center;
    }
    
    .search-btn {
        width: 100%;
        min-width: auto;
    }
    
    .education-background {
        padding: 20px;
        max-width: 500px;
        margin: 30px auto;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .search-widget {
        padding: 25px;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .process-step {
        padding: 40px 25px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-card {
        padding: 40px 25px;
        margin: 15px;
    }
    
    .education-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .tutor-header {
        padding: 25px;
    }
    
    .tutor-body {
        padding: 25px;
    }
    
    .tutor-footer {
        padding: 0 25px 25px;
    }
    
    .hero-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .search-widget {
        padding: 20px;
    }
    
    .education-background {
        padding: 15px;
        margin: 25px auto;
    }
    
    .education-background h3 {
        font-size: 1.1rem;
    }
    
    .education-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 1025px) {
    .search-row {
        flex-direction: row;
    }
}