.checked {
    color: orange;
}

body {
    background-color: #F7F6F4;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #0d33cc;
    line-height: 1.6;
}



h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #0d33cc;

}

h1 {
    font-size: 48px;
    line-height: 56px;
}

h2 {
    font-size: 36px;
    line-height: 44px;
}

h3 {
    font-size: 24px;
}


label {
    display: block;
    margin-bottom: .5rem;
}


/* Add this to your CSS file */
.age-categories,
.student-levels,
.specialisations {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 4px;
}

.form-check {
    margin-bottom: 5px;
}


/* Add to your stylesheet */
.search-results section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.search-results h2 {
    position: relative;
    padding-left: 15px;
}

.search-results h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 5px;
}

.search-results section:nth-of-type(1) h2::before {
    background-color: #28a745;
}

.search-results section:nth-of-type(2) h2::before {
    background-color: #ffc107;
}

.search-results section:nth-of-type(3) h2::before {
    background-color: #17a2b8;
}


/* Add to your stylesheet */
a .availability-tag {
    transition: all 0.2s ease;
}

a:hover .availability-tag {
    background-color: rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

/* Profile Card Styles */
.card {
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30, 61, 107, 0.1);
    background-color: #fff;
}

.card-title {
    color: #2165B2;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-title a {
    color: #2165B2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0d33cc;
    text-decoration: none;
}

.card-text {
    color: #0d33cc;
    line-height: 1.6;
}

/* Profile card specific elements */
.profile-image {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F7F6F4;
    box-shadow: 0 2px 8px rgba(30, 61, 107, 0.1);
}

/* Tags styling */
.tag {
    border: 2px solid #2165B2;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2165B2;
    background-color: rgba(33, 101, 178, 0.05);
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #2165B2;
    color: #fff;
}

/* Availability tags */
.availability-tag {
    border: 2px solid #2165B2;
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2165B2;
    background-color: rgba(33, 101, 178, 0.05);
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.availability-tag:hover {
    background-color: rgba(33, 101, 178, 0.1);
    transform: translateY(-1px);
}

.availability-tag.highlighted {
    background-color: #F8606A;
    border-color: #F8606A;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(248, 96, 106, 0.3);
    animation: pulse-highlight 2s ease-in-out;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 2px 8px rgba(248, 96, 106, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(248, 96, 106, 0.5);
    }

    100% {
        box-shadow: 0 2px 8px rgba(248, 96, 106, 0.3);
    }
}

/* Button styling */
.btn-vj {
    display: inline-block;
    border-radius: 25px;
    background-color: #2165B2;
    border: 2px solid #2165B2;
    color: #fff;
    text-align: center;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-vj:hover {
    background-color: #1E3D6B;
    border-color: #1E3D6B;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 61, 107, 0.3);
}

.btn-outline-primary.btn-vj {
    background-color: transparent;
    color: #2165B2;
    border-color: #2165B2;
}

.btn-outline-primary.btn-vj:hover {
    background-color: #2165B2;
    color: #fff;
    border-color: #2165B2;
}

/* Primary action on search-result profile cards */
body .search-results .profile-select-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    padding: 11px 22px;
    border: 2px solid rgb(255, 87, 3);
    border-radius: 28px;
    background: rgb(255, 87, 3);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 5px 14px rgba(255, 87, 3, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body .search-results .profile-select-cta:hover {
    border-color: rgb(224, 76, 3);
    background: rgb(224, 76, 3);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 3, 0.4);
}

body .search-results .profile-select-cta:focus-visible {
    outline: 3px solid rgba(255, 87, 3, 0.35);
    outline-offset: 3px;
    box-shadow: 0 5px 14px rgba(255, 87, 3, 0.35);
}

body .search-results .profile-select-cta i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

body .search-results .profile-select-cta:hover i {
    transform: translateX(3px);
}

/* Small text elements */
.small,
small {
    color: #0d33cc;
    font-weight: 500;
}

/* Star rating colors */
.star-rating-profile {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    color: #ddd;
}

.star-rating-profile::before {
    content: "★★★★★";
}

.star-rating-profile::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #FFCF4D;
    width: var(--rating-width, 0);
    overflow: hidden;
}

/* Review count link */
.ms-2 a {
    color: #0d33cc;
    text-decoration: none;
    font-size: 0.9em;
}

.ms-2 a:hover {
    color: #2165B2;
    text-decoration: underline;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: static;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

#logo {
    display: flex;
    align-items: center;
}

#logo img {
    max-width: 100%;
    height: auto;
}

/* Navigation Styles */
.main-navigation {
    padding: 0;
}

.menu-menu-container {
    display: flex;
    justify-content: center;
}

#menu-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    align-items: center;
}

.menu-item {
    margin: 0 25px;
}

.menu-item a {
    color: #1D1D1B;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    border-radius: 5px;
}

.menu-item a:hover {
    color: #1D1D1B;
    background-color: rgba(0, 123, 255, 0.1);
}

/* Hamburger Menu Button (hidden by default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0d33cc;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.menu-toggle:focus {
    outline: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
    }

    #logo img {
        width: 150px;
        height: auto;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: relative;
    }

    .menu-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .menu-menu-container.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #menu-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .menu-item {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-size: 18px;
    }

    .menu-item a:hover {
        background-color: #f8f9fa;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .header-top {
        padding: 6px 12px;
    }

    #logo img {
        width: 140px;
        margin-left: 0;
    }

    .menu-toggle {
        font-size: 20px;
        padding: 8px;
    }

    .menu-item a {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Footer Styles */
footer {
    background-color: #1E3D6B;
    color: #fff;
    padding: 50px 0 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-third {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 20px;
}

.footer-half {
    flex: 1;
    min-width: 120px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: inline-block;
}

.btn-footer {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.btn-footer img {
    filter: brightness(0) invert(1);
}

footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

footer a {
    color: #B8D4F0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 5px;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Newsletter Styles */
.footer-newsletter {
    width: 100%;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: #B8D4F0;
}

.newsletter-form {
    margin-bottom: 25px;
}

.footer-landing {
    background-color: #1E3D6B;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-landing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-landing-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
}

.footer-landing-col .footer-title {
    display: block;
}

.newsletter-container {
    border-radius: 5px;
    padding: 20px;
}

.newsletter-input {
    margin-bottom: 15px;
}

.newsletter-input input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    color: #0d33cc;
}

.newsletter-input input::placeholder {
    color: #666;
}

.newsletter-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #007bff;
}

.btn-newsletter {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-newsletter:hover {
    background-color: #0056b3;
}

/* Social Media Styles */
.social-media {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #B8D4F0;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-footer:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Copyright */
.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #B8D4F0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
    color: #B8D4F0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer Responsive Styles */
@media screen and (max-width: 768px) {
    footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-third {
        flex-direction: column;
        min-width: 100%;
        gap: 25px;
    }

    .footer-half {
        min-width: 100%;
    }

    .social-media {
        justify-content: center;
        gap: 12px;
    }

    .social-footer {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .newsletter-container {
        padding: 15px;
    }

    .newsletter-input input,
    .btn-newsletter {
        padding: 10px 12px;
        font-size: 14px;
    }

    .social-media {
        gap: 10px;
    }

    .social-footer {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .copyright {
        padding: 15px;
        font-size: 12px;
    }
}

/* Search Form Styles */
.search-page-container {
    padding-top: 24px;
}

.search-form {
    background: #0d33cc;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(33, 101, 178, 0.2);
    position: relative;
    overflow: hidden;
}

.search-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.search-form>* {
    position: relative;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

.search-form h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.search-form select,
.search-form input {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #0d33cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-form select:focus,
.search-form input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(33, 101, 178, 0.3);
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.language-selector .form-check {
    margin-bottom: 8px;
}

.language-selector .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.language-selector .form-check-input:checked {
    background-color: #FFCF4D;
    border-color: #FFCF4D;
}

.language-selector .form-check-label {
    color: #fff;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Search Button */
.search-form .btn-primary {
    background: rgb(255, 87, 3);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 87, 3, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}

.search-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 3, 0.5);
    background: rgb(224, 76, 3);
    color: #fff;
}

.search-form .btn-primary:active {
    transform: translateY(-1px);
}

.search-form .btn-primary:focus {
    box-shadow: 0 6px 20px rgba(255, 87, 3, 0.4);
    outline: none;
    color: #fff;
}

/* Advanced Filters Card */
.search-form .card {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.search-form .card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 246, 244, 0.98) 100%);
    border-bottom: 1px solid rgba(33, 101, 178, 0.1);
    padding: 15px 20px;
}

.search-form .collapse-toggle {
    color: #2165B2 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-form .collapse-toggle:hover {
    color: #0d33cc !important;
    text-decoration: none;
}

.search-form .collapse-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.search-form .card-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
}

/* Advanced filters labels - override the white color from main form */
.search-form .card-body label {
    color: #0d33cc !important;
    font-weight: 600;
}

/* Filter containers */
.age-categories,
.student-levels,
.specialisations {
    background: rgba(247, 246, 244, 0.5);
    border: 1px solid rgba(33, 101, 178, 0.1);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.age-categories::-webkit-scrollbar,
.student-levels::-webkit-scrollbar,
.specialisations::-webkit-scrollbar {
    width: 6px;
}

.age-categories::-webkit-scrollbar-track,
.student-levels::-webkit-scrollbar-track,
.specialisations::-webkit-scrollbar-track {
    background: rgba(33, 101, 178, 0.1);
    border-radius: 3px;
}

.age-categories::-webkit-scrollbar-thumb,
.student-levels::-webkit-scrollbar-thumb,
.specialisations::-webkit-scrollbar-thumb {
    background: #2165B2;
    border-radius: 3px;
}

/* Form checks in advanced filters */
.search-form .form-check {
    margin-bottom: 8px;
}

.search-form .form-check-input {
    border: 2px solid #2165B2;
    border-radius: 4px;
}

.search-form .form-check-input:checked {
    background-color: #2165B2;
    border-color: #2165B2;
}

.search-form .form-check-label {
    color: #0d33cc;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Dynamic teacher filters */
.dynamic-search-form {
    display: grid;
    gap: 12px;
}

.filter-step {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(33, 101, 178, 0.12);
    border-radius: 15px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(7, 38, 78, 0.1);
}

.filter-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #173f73;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.4;
}

.language-filter-step {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.language-filter-step .filter-step-title {
    flex: 0 0 auto;
    margin: 0;
}

.filter-step-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.filter-step-intro .filter-step-title {
    margin: 0;
}

.filter-step-intro p {
    margin: 0;
    color: #60738d;
    font-size: 0.82rem;
    line-height: 1.4;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.filter-subsection-title {
    margin: 0 0 9px;
    color: #173f73;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
}

.mobile-filter-summary {
    display: none;
}

.preferences-grid .filter-subsection + .filter-subsection,
.schedule-price-grid .filter-subsection + .filter-subsection {
    padding-left: 18px;
    border-left: 1px solid #dce4ed;
}

.preferences-grid .filter-choice-panel,
.preferences-grid .age-categories.filter-choice-panel,
.preferences-grid .student-levels.filter-choice-panel,
.preferences-grid .specialisations.filter-choice-panel {
    display: grid;
    gap: 5px;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.preferences-grid .filter-choice-panel .form-check {
    min-width: 0;
    padding-left: 0;
}

.preferences-grid .form-check label {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #c8d6e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 550;
    line-height: 1.35;
    user-select: none;
    transition: border-color 0.18s ease, background-color 0.18s ease,
        box-shadow 0.18s ease, transform 0.18s ease;
}

.preferences-grid .form-check label:hover {
    border-color: #7fa5d0;
    background: #f7fbff;
    transform: translateY(-1px);
}

.preferences-grid .form-check label:has(input:checked) {
    border-color: #2165b2;
    background: #eaf3fc;
    box-shadow: inset 0 0 0 1px rgba(33, 101, 178, 0.16);
}

.preferences-grid .form-check label:has(input:focus-visible) {
    outline: 3px solid #ffcf4d;
    outline-offset: 2px;
}

.preferences-grid .form-check input[type="checkbox"] {
    position: static;
    flex: 0 0 18px;
    float: none;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 2px solid #2165b2;
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
}

.schedule-price-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
    gap: 22px;
}

.time-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.time-filter-grid label {
    margin-bottom: 5px;
    color: #173f73;
    font-size: 0.86rem;
    font-weight: 600;
}

.filter-optional {
    color: #60738d;
    font-size: 0.82rem;
    font-weight: 500;
}

.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: transparent;
    backdrop-filter: none;
}

.filter-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.filter-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 18px;
    border: 2px solid #b9c9dc;
    border-radius: 999px;
    background: #fff;
    color: #173f73;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-chip input:checked + span {
    border-color: #2165b2;
    background: #2165b2;
    color: #fff;
}

.filter-chip input:focus-visible + span {
    outline: 3px solid #ffcf4d;
    outline-offset: 2px;
}

.filter-choice-panel,
.age-categories.filter-choice-panel,
.student-levels.filter-choice-panel,
.specialisations.filter-choice-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-height: none;
    padding: 14px;
    overflow: visible;
    background: #f7f9fc;
}

.filter-choice-panel .form-check {
    min-width: min(210px, 100%);
    margin: 0;
}

.filter-choice-panel .form-check label {
    color: #173f73 !important;
    text-shadow: none;
}

.dynamic-search-form .specialisation-more {
    display: none;
}

.dynamic-search-form.specialisations-expanded .specialisation-more {
    display: block;
}

.filter-expand-button {
    margin-top: 10px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #2165b2;
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-expand-button:focus-visible {
    outline: 3px solid #ffcf4d;
    outline-offset: 3px;
}

.dynamic-search-form select {
    width: 100%;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #2165b2 50%),
        linear-gradient(135deg, #2165b2 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.dynamic-search-form .filter-step > label,
.dynamic-search-form .filter-step .col-md-6 > label {
    color: #173f73;
    text-shadow: none;
}

.price-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #173f73;
    font-size: 1rem;
    font-weight: 650;
}

.price-distribution-control {
    position: relative;
    margin-top: 2px;
}

.price-histogram {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 48px;
    padding: 0 12px;
}

.price-histogram-bar {
    flex: 1 1 0;
    min-width: 2px;
    height: max(3px, var(--bar-height, 0%));
    border-radius: 3px 3px 0 0;
    background: rgba(255, 87, 3, 0.78);
    transition: height 0.2s ease, background-color 0.2s ease;
}

.price-histogram-bar.is-empty {
    height: 3px;
    background: #dce4ed;
}

.dual-range-control {
    position: relative;
    display: none;
    height: 46px;
    margin: -2px 2px 0;
}

.dynamic-search-ready .dual-range-control {
    display: block;
}

.dual-range-track {
    position: absolute;
    top: 21px;
    right: 0;
    left: 0;
    height: 6px;
    border-radius: 999px;
    background: #cad5e2;
}

.dual-range-track span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgb(255, 87, 3);
}

.dynamic-search-form .dual-range-control input[type="range"] {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    appearance: none;
    z-index: 2;
}

.dynamic-search-form .dual-range-control #price-min-slider {
    z-index: 3;
}

.dynamic-search-form .dual-range-control #price-max-slider {
    z-index: 4;
}

.dynamic-search-form .dual-range-control input[type="range"].is-active {
    z-index: 5;
}

.dual-range-control input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
}

.dual-range-control input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
}

.dual-range-handles {
    position: absolute;
    top: 24px;
    right: 12px;
    left: 12px;
    z-index: 6;
    height: 0;
    pointer-events: none;
}

.dual-range-handle {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    border: 3px solid rgb(255, 87, 3);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(7, 38, 78, 0.2);
    transform: translate(-50%, -50%);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dual-range-handle.is-active {
    z-index: 2;
    box-shadow: 0 3px 11px rgba(255, 87, 3, 0.38);
    transform: translate(-50%, -50%) scale(1.06);
}

#price-min-slider:focus-visible ~ .dual-range-handles #price-min-handle,
#price-max-slider:focus-visible ~ .dual-range-handles #price-max-handle {
    outline: 3px solid #ffcf4d;
    outline-offset: 3px;
}

.price-help-text {
    margin: 4px 0 0;
    color: #60738d;
    font-size: 0.82rem;
}

.search-submit-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 2px;
}

.live-match-count {
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
}

.live-match-count strong {
    color: #fff;
    font-size: 1.05rem;
}

.filter-update-error {
    margin: 0;
    color: #fff3cd;
    font-size: 0.88rem;
    text-align: center;
}

.dynamic-search-form.is-updating .live-match-count {
    opacity: 0.65;
}

.search-results .search-original-price {
    color: #173f73;
    font-size: 1rem;
    line-height: 1.35;
}

.search-results .search-hourly-price {
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .schedule-price-grid {
        grid-template-columns: 1fr;
    }

    .schedule-price-grid .filter-subsection + .filter-subsection {
        padding-top: 16px;
        padding-left: 0;
        border-top: 1px solid #dce4ed;
        border-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .search-page-container {
        width: 100%;
        max-width: 100%;
        padding-top: 12px;
        padding-right: 12px;
        padding-left: 12px;
        overflow-x: clip;
    }

    .search-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 18px 15px;
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .search-form h1 {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 14px;
        text-align: left;
    }

    .search-form h1 i {
        margin-right: 8px !important;
    }

    .search-benefits {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: flex-start !important;
        gap: 6px 14px !important;
        margin-bottom: 18px !important;
        font-size: 0.9rem;
    }

    .search-wizard-actions {
        display: grid;
        gap: 8px;
        margin-bottom: 16px !important;
    }

    .search-wizard-actions form,
    .search-wizard-actions .wizard-primary-action,
    .search-wizard-actions .wizard-secondary-action {
        display: block !important;
        width: 100%;
        margin: 0 !important;
    }

    .search-wizard-actions .btn-lg {
        padding: 10px 14px !important;
        font-size: 1rem;
    }

    .search-form .search-wizard-actions .wizard-primary-action {
        background: #F8606A;
        border-color: #F8606A;
        color: #fff !important;
        box-shadow: 0 5px 14px rgba(248, 96, 106, 0.35);
    }

    .search-form .search-wizard-actions .wizard-primary-action:hover {
        background: #e94f5a;
        border-color: #e94f5a;
        color: #fff !important;
    }

    .wizard-help-text {
        display: none !important;
    }

    .search-form hr {
        margin: 14px 0 18px !important;
    }

    .search-form .btn-primary {
        width: 100%;
        margin-top: 0;
    }

    .language-selector {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        padding: 0;
    }

    .filter-step {
        padding: 16px;
    }

    .dynamic-search-form {
        gap: 10px;
        min-width: 0;
        max-width: 100%;
    }

    .filter-step,
    .filter-subsection,
    .language-selector,
    .filter-chip {
        min-width: 0;
        max-width: 100%;
    }

    .language-filter-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .language-filter-step .filter-chip {
        min-width: 0;
    }

    .language-filter-step .filter-chip span {
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 7px 9px;
        font-size: 0.9rem;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .preferences-filter-step,
    .schedule-price-filter-step {
        padding: 13px 16px;
    }

    .preferences-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 7px;
    }

    .preferences-grid .filter-subsection + .filter-subsection,
    .schedule-price-grid .filter-subsection + .filter-subsection {
        margin: 0;
        padding-top: 0;
        padding-left: 0;
        border-top: 1px solid #dce4ed;
        border-left: 0;
    }

    .schedule-price-grid {
        gap: 0;
    }

    .mobile-filter-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #173f73;
        cursor: pointer;
        font-size: 0.94rem;
        font-weight: 650;
        line-height: 1.3;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-filter-summary::after {
        display: grid;
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        place-items: center;
        border-radius: 50%;
        background: #eaf3fc;
        color: #2165b2;
        content: "+";
        font-size: 1.15rem;
        font-weight: 600;
        line-height: 1;
    }

    .filter-disclosure.is-open > .mobile-filter-summary::after {
        content: "−";
    }

    .filter-disclosure:not(.is-open) > .filter-disclosure-content {
        display: none;
    }

    .filter-disclosure.is-open > .filter-disclosure-content {
        display: block;
        padding-bottom: 12px;
    }

    .filter-disclosure-content > .filter-subsection-title,
    .filter-disclosure-content > .filter-step-intro .filter-step-title {
        display: none;
    }

    .filter-disclosure-content > .filter-step-intro {
        margin: -2px 0 8px;
    }

    .filter-disclosure-content > .filter-step-intro p {
        font-size: 0.8rem;
    }

    .filter-chip-group {
        padding: 0;
    }

    .filter-chip {
        flex: initial;
    }

    .filter-chip span {
        justify-content: center;
        width: 100%;
    }

    .filter-choice-panel .form-check {
        min-width: 100%;
    }

    .search-submit-area {
        flex-direction: column;
        gap: 8px;
    }

    .search-submit-area .live-match-count {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .price-histogram {
        height: 44px;
    }
}

@media screen and (max-width: 480px) {
    .search-form {
        padding: 16px 12px;
        border-radius: 15px;
    }

    .search-form h1 {
        font-size: 1.4rem;
    }

    .search-form select,
    .search-form input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .time-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Wizard Button Styles */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Footer Responsive Styles */
@media screen and (max-width: 767px) {
    .footer-third {
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-half {
        width: 50%;
        float: left;
    }

    .footer-newsletter {
        clear: both;
        padding-top: 1rem;
    }
}

/* Back to top button styling */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
}

.back-to-top:hover {
    opacity: 1;
    color: white;
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 1.5rem;
}

/* Mobile Text Alignment Override */
@media screen and (max-width: 768px) {

    /* Override center alignment for better mobile readability */
    .hero-section h1,
    .hero-section p,
    .hero-section .lead,
    .section-title,
    .content-section h2,
    .content-section h3,
    .content-section p,
    .card-body h3,
    .card-body p,
    .feature-text,
    .description-text {
        text-align: left !important;
    }

    /* Keep center alignment for specific UI elements that look better centered */
    .hero-section .btn,
    .cta-section,
    .pricing-section,
    .testimonial-section,
    .contact-form,
    .footer-section,
    .stat-cards,
    .button-container {
        text-align: center !important;
    }
}
