 @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Sintony:wght@400;700&display=swap');

    /* Layout v2.3 - Fixed for new background */
    .home-hero {
        background: url(https://m.edarabia.com/wp-content/uploads/2026/03/Group-269-1.png) no-repeat right center;
        background-size: cover;
        height: 100vh;
        position: relative;
        padding: 64px 0 140px !important;
        color: #fff;
        display: flex;
        align-items: flex-start !important;
        font-family: 'Roboto', sans-serif;
        overflow: hidden;
    }

    .hero-content h1 {
        font-family: 'Sintony', sans-serif;
        font-size: 50px !important;
        font-weight: 700;
        margin-bottom: 19px !important;
        color: #fff;
        width: 524px;
        max-width: 100%;
        line-height: 1.05;
    }

    .hero-content p.subtitle {
        font-family: 'Roboto', sans-serif;
        font-size: 18px;
        margin-bottom: 0px !important;
        color: #FFFFFF;
        opacity: 0.95;
        font-weight: 400;
    }

    .hero-features {
        display: flex;
        gap: 50px;
        margin-top: 104px !important;
    }

    .feature-item {
        text-align: center;
        width: 130px;
    }

    .feature-item svg,
    .feature-item img {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-item span {
        display: block;
        font-size: 15px;
        line-height: 1.3;
        color: #71B3E1;
        opacity: 0.9;
        font-weight: 400;
        text-align: center;
    }

    /* Custom Search Form Styles */
    .hero-search-container {
        position: relative;
        margin-top: -120px;
        z-index: 100;
        padding: 0 15px;
    }

    .custom-search-box {
        background: #fff;
        border-radius: 20px;
        padding: 30px 45px;
        /* margin: 51px auto 0 !important; */
        margin-top: -14.5%;
    }

    .custom-search-box h3 {
        color: #444;
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 25px;
        font-weight: 700;
        text-align: left;
    }

    .search-flex {
        display: flex;
        align-items: center;
        background: #FAFAFA;
        border-radius: 60px;
        padding: 0 6px;
        border: 1px solid #E5E5E5;
        height: 75px;
        margin: 0 auto;
    }

    .search-input-group {
        flex: 1;
        padding: 8px 30px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .search-input-group:first-child {
        flex: 1.5;
    }

    .search-input-group::after {
        content: "";
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: #E5E7EB;
    }

    .search-input-group:last-of-type::after {
        display: none;
    }

    .search-input-group label {
        font-family: 'Roboto', sans-serif;
        font-size: 16px;
        color: #444444;
        margin-bottom: 2px;
        font-weight: 500;
        /* Roboto Medium */
        text-transform: none;
    }

    .search-input-group input,
    .search-input-group select {
        border: none;
        background: transparent;
        font-size: 16px;
        color: #444444;
        width: 100%;
        outline: none;
        padding: 0;
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        /* Roboto Regular */
    }

    .search-input-group input::placeholder {
        color: #444444;
        opacity: 0.6;
    }

    /* Custom Dropdown Styling */
    .custom-select-wrapper {
        position: relative;
        width: 100%;
    }

    .custom-select {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .custom-select-trigger {
        font-size: 16px;
        color: #444444;
        font-family: 'Roboto', sans-serif;
    }

    .custom-select-arrow {
        font-size: 12px;
        color: #9CA3AF;
        transition: transform 0.3s ease;
    }

    .custom-select.open .custom-select-arrow {
        transform: rotate(180deg);
    }

    .custom-options {
        position: absolute;
        top: calc(100% + 15px);
        left: -30px;
        right: -30px;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        display: none;
        z-index: 1000;
        overflow: hidden;
        border: 1px solid #f1f1f1;
        padding-bottom: 5px;
    }

    .custom-options-header {
        display: flex;
        border-bottom: 1px solid #f1f1f1;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .options-btn {
        flex: 1;
        padding: 12px;
        text-align: center;
        font-size: 13px;
        color: #666;
        cursor: pointer;
        border: none;
        background: transparent;
        transition: all 0.2s;
        font-weight: 500;
    }

    .options-btn:first-child {
        border-right: 1px solid #f1f1f1;
    }

    .options-btn:hover {
        background: #F9FAFB;
        color: #005E7A;
    }

    .custom-options.open {
        display: block;
        animation: fadeInDown 0.2s ease-out;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .custom-option {
        padding: 12px 30px;
        font-size: 15px;
        color: #444;
        transition: all 0.2s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .custom-option:hover {
        background: #F9FAFB;
        color: #005E7A;
        padding-left: 35px;
    }

    /* Suggestions List Styling */
    .suggestions-list {
        position: absolute;
        top: calc(100% + 15px);
        left: -30px;
        right: -30px;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        display: none;
        z-index: 1000;
        overflow: hidden;
        border: 1px solid #f1f1f1;
        padding: 5px 0;
    }

    .suggestions-list.open {
        display: block;
        animation: fadeInDown 0.2s ease-out;
    }

    .suggestion-item {
        padding: 12px 30px;
        font-size: 15px;
        color: #444;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .suggestion-item:hover {
        background: #F9FAFB;
        color: #005E7A;
        padding-left: 35px;
    }

    .custom-option .check-icon {
        display: none;
        color: #005E7A;
        font-size: 14px;
    }

    .custom-option.selected .check-icon {
        display: block;
    }

    .custom-select-trigger {
        font-size: 16px;
        color: #444444;
        font-family: 'Roboto', sans-serif;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .search-btn {
        background: linear-gradient(135deg, #005E7A 0%, #004D71 100%);
        color: #fff;
        border: none;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
        box-shadow: 0 4px 10px rgba(0, 77, 113, 0.2);
    }

    .search-btn i {
        font-size: 20px;
        color: #FFFFFF;
    }

    .search-btn:hover {
        background: linear-gradient(135deg, #004D71 0%, #003650 100%);
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 77, 113, 0.3);
    }

    .popular-searches {
        margin: 25px auto 0;
        font-size: 13px;
        color: #9CA3AF;
        text-align: center;
        max-width: 982px;
    }

    .popular-searches a {
        color: #6B7280;
        margin: 0 4px;
        text-decoration: none;
    }

    .popular-searches span.label {
        color: #9CA3AF;
        padding: 0;
        font-weight: 400;
        font-size: 13px;
    }

    /* Secondary Cards Styles */
    /* .icons-button {
        background: #fff;
        display: flex;
        padding: 22px 20px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
        text-decoration: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        margin-bottom: 30px;
        align-items: center;
        gap: 15px;
    }

    .icons-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #005E7A 0%, #004D71 100%);
    }

    .icons-button:hover span,
    .icons-button:hover {
        color: #fff !important;
    }

    .icons-button:hover img {
        filter: brightness(0) invert(1);
    }

    .icons-button img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .icons-button span {
        font-size: 12px;
        color: #9CA3AF;
        display: block;
        margin-bottom: 1px;
    } */
    .hero-search-container-mobile {
        display: none;
    }

    @media (max-width: 991px) {
        .specialties-overlay {
            padding: 40px 0 !important;
        }

        .hero-search-container-mobile {
            display: block;
            margin-top: 310px;
            margin-bottom: 30px;
            padding: 0 15px;
        }

        .hero-features {
            margin-top: 0 !important;
            gap: 15px;
            justify-content: center;
        }

        .hero-features .feature-item {
            width: auto;
            flex: 1;
        }

        .hero-features .feature-item img,
        .hero-features .feature-item svg {
            width: 45px;
            height: 45px;
            margin-bottom: 10px;
        }

        .hero-features .feature-item span {
            color: #71B3E1;
            text-align: center;
            font-family: Roboto;
            font-size: 12px;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
        }

        .home-hero {
            display: block;
            height: 100% !important;

            /* Top padding for title */
            text-align: center;
            background: url(https://m.edarabia.com/wp-content/uploads/2026/04/home-page-hero-section.png) no-repeat top center;
            background-size: 100% 100%;
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .hero-content h1 {
            width: 100%;
            font-size: 32px !important;
            margin-bottom: 10px !important;
            text-align: center;
        }

        .hero-content p.subtitle {
            text-align: center;
            font-size: 16px;
            margin-bottom: 30px !important;
        }

        .search-flex {
            flex-direction: column;
            border-radius: 20px;
            padding: 15px;
            height: auto;
        }

        .search-input-group {
            width: 100%;
            padding: 12px 0;
            text-align: left;
            height: auto;
        }

        .search-input-group::after {
            display: none;
        }

        .search-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            margin-top: 0;
            margin-left: 10px;
            flex-shrink: 0;
        }

        .hero-search-container-mobile .search-flex {
            flex-direction: row;
            align-items: center;
            border-radius: 60px;
            padding: 8px;
            border: 1px solid #E5E5E5;
            background: #FAFAFA;
            height: 65px;
        }

        .hero-search-container-mobile .search-input-group {
            padding: 0 15px;
            background: transparent;
            border: none;
        }

        .hero-search-container-mobile .search-input-group input {
            color: #444;
            font-family: Roboto;
            font-size: 14px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }

        .hero-search-container-mobile .search-input-group input::placeholder {
            color: #444;
            font-family: Roboto;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            opacity: 1;
            /* Ensure color is not faded */
        }

        .hero-search-container-mobile .search-input-group label {
            font-size: 14px;
            margin-bottom: 0px;
        }

        .hero-search-container-mobile .custom-search-box {
            padding: 20px 20px;
            border-radius: 12px;
            box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
            margin-top: 0;
            margin-bottom: 30px;
        }

        .hero-search-container-mobile .custom-search-box h3 {
            color: #444;
            font-family: Sintony;
            font-size: 14px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            text-align: left;
            margin-bottom: 20px;
        }

        .hero-search-container-mobile .popular-searches {
            text-align: left;
            font-size: 11px;
            margin-top: 20px;
        }

        .hero-search-container-mobile .popular-searches a,
        .hero-search-container-mobile .popular-searches span.label {
            color: #444;
            font-family: Roboto;
            font-size: 10px;
            font-style: normal;
            font-weight: 400;
            line-height: 16px;
            /* 160% */
        }



        .hero-search-container {
            display: none;
            margin-top: -40px;
            margin-bottom: 40px;
        }

        .popular-searches {
            padding-left: 0;
            text-align: center;
            margin-top: 15px;
        }

        .custom-options {
            left: 0;
            right: 0;
        }
    }


        /* News Redesign Overrides */
        .slide-items {
            padding-left: 0 !important;
        }

        .slide-items .owl-wrapper {
            display: flex !important;
        }

        .slide-items .owl-item {
            display: flex !important;
            height: auto !important;
        }

        .slide-items .box {
            display: flex !important;
            flex-direction: column;
            flex: 1;
            height: auto !important;
            margin-bottom: 30px;
        }

        .slide-items .box h5 {
            height: auto !important;
            flex-grow: 1;
            margin-bottom: 0 !important;
            padding: 20px 15px !important;
            display: flex;
            align-items: center;
        }

        .slide-items .box h5 a {
            display: block;
            line-height: 1.4;
        }

        .slide-items .customNavigation {
            display: none;
        }



    /* Specialties Redesign Section */
    .specialties-section {
        background: url('https://m.edarabia.com/wp-content/uploads/2026/03/Group-276.png') no-repeat center center;
        background-size: cover;
        position: relative;
        color: #fff;
    }

    .specialties-overlay {
        padding: 80px 0;
    }

    .specialties-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .specialties-header p {
        font-family: "Sintony", sans-serif;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 15px;
        color: #fff;
    }

    .specialties-header h2 {
        font-family: "Sintony", sans-serif;
        font-weight: 700;
        font-size: 48px;
        margin-top: 0;
        color: #fff;
    }

    .specialty-card {
        background: #fff;
        color: #444;
        padding: 20px 25px;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        height: 100%;
        min-height: 65px;
        cursor: pointer;
    }

    .specialty-card:hover,
    .specialty-card.active {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        background: #f9fafb;
    }

    .specialty-card span {
        font-family: inherit;
        font-weight: 700;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
        margin-right: 10px;
        color: #444;
    }

    .specialty-card i {
        color: #187aab;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .specialty-card.active i {
        transform: rotate(180deg);
    }

    .specialty-wrapper {
        position: relative;
    }

    .locations-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding: 10px 0;
        max-height: 250px;
        overflow-y: auto;
    }

    .locations-dropdown.open {
        display: block;
        animation: fadeInDown 0.2s ease-out;
    }
     .location-link {
        display: block;
        padding: 10px 25px;
        color: #187aab;
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none !important;
        transition: background 0.2s;
    }

    .location-link:hover {
        background: #f9fafb;
        color: #005E7A;
    }

    @media (max-width: 991px) {
        .specialties-header h2 {
            font-size: 36px;
        }

        .mb30-mobile {
            margin-bottom: 20px;
        }
    }

    /* Doctor Carousel Sections */
    .doctor-carousel-section {
        padding: 60px 0 30px 0;
        background: #fff;
        margin-bottom: 20px;
    }

    .carousel-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        /* Corrected to flex-start for custom centering with margin */
        margin: 40px 0 25px 0;
    }

    .carousel-title-group h2 {
        color: #187AAB;
        font-family: Sintony;
        font-size: 48px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 3px;
    }

    .carousel-subtitle {
        color: #444;
        font-family: Roboto;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .carousel-nav-group {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-top: 15px;
        /* Visually centers with the 50px heading text */
    }

    .see-all-link {
        color: #444;
        font-family: 'Roboto', sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-decoration: underline !important;
        text-underline-offset: 4px;
        margin-right: 15px;
        /* Gap between link and arrows */
    }

    .carousel-controls {
        display: flex;
        gap: 10px;
    }

    .carousel-controls a {
        width: 35px;
        height: 35px;
        border: 1.5px solid #187aab;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #187aab;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-controls a:hover {
        background: #187aab;
    }

    .carousel-controls a:hover i {
        color: #fff !important;
        /* Force white icon on hover */
    }

    /* Doctor Card Styling */
    .doctor-card {
        background: #fff;
        border: 1px solid #E5E7EB;
        border-radius: 4px;
        padding: 20px;
        height: 320px;
        /* Increased to accommodate 4-line description */
        margin: 0 12px;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .owl-carousel .owl-wrapper-outer {
        margin: 0 -12px;
        width: auto !important;
    }

    /* Enforce text limits */
    .doctor-meta h3,
    .doctor-spec,
    .doctor-location span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .doctor-card:hover {
        border-color: #187AAB;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .doctor-card-header {
        display: flex;
        gap: 12px;
        margin-bottom: 12px;
    }

    .doctor-avatar img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }

    .doctor-meta h3 {
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: rgb(0, 44, 119);
        margin: 0 0 1px 0;
        line-height: normal;
        letter-spacing: 0;
    }

    .doctor-meta h3:hover {
        color: #187AAB !important;
    }

    .doctor-meta h3 a {
        color: inherit;
        text-decoration: none;
    }

    .doctor-meta h3 a:hover {
        color: inherit;
    }

    .doctor-spec {
        font-family: 'Roboto', sans-serif;
        color: #444;
        font-size: 11px;
        font-weight: 400;
        margin: 6px 0 7px 0;
        line-height: normal;
        letter-spacing: 0;
    }

    .doctor-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-family: 'Roboto', sans-serif;
        font-size: 10px;
        color: #000000;
        margin-bottom: 12px;
        line-height: normal;
        letter-spacing: 0;
    }

    .doctor-rating i {
        color: #F8CC30;
        font-size: 10px;
    }

    .doctor-location {
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: 'Roboto', sans-serif;
        font-size: 10px;
        font-weight: 400;
        color: #000000;
        margin-bottom: 15px;
        line-height: normal;
        letter-spacing: 0;
    }

    .doctor-location span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .doctor-location i {
        font-size: 14px;
        color: #187AAB;
        flex-shrink: 0;
    }

    .doctor-highlights {
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: #000;
        margin: 0 0 15px 0;
        line-height: 18px !important;
        height: 72px !important;
        /* Force exactly 72px total (4 lines) */
        letter-spacing: 0;
        flex-grow: 0;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .doctor-btn-inquire {
        display: block;
        width: 100%;
        background: #00BC22;
        color: #FFFFFF !important;
        text-align: center;
        padding: 12px;
        border-radius: 4px;
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none !important;
        transition: all 0.3s ease;
        line-height: normal;
        letter-spacing: 0;
        margin-top: auto;
    }

    .doctor-card:hover .doctor-btn-inquire {
        background: #187AAB;
    }

    .doctor-btn-inquire:hover {
        opacity: 0.9;
        color: #fff;
    }

    /* Helper for multi-line ellipsis if needed */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    @media (max-width: 991px) {
        .home .container {
            padding-left: 15px;
            padding-right: 15px;
        }

        .carousel-title-group h2 {
            font-size: 32px;
        }

        .custom-search-box {
            padding: 25px 20px;
        }
    }

    @media (max-width: 767px) {

        .doctor-carousel-section {
            padding: 40px 15px !important;
            overflow: hidden;
        }

        .owl-carousel .owl-wrapper-outer {
            margin: 0;
        }

        .doctor-carousel-section .owl-wrapper-outer {
            margin: 0 -10px !important;
            padding-bottom: 15px;
        }

        .doctor-card {
            margin: 0 10px;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }

        .carousel-header {
            flex-direction: column;
            align-items: flex-start;

        }

        .carousel-title-group {
            width: 100%;
        }

        .carousel-title-group h2 {
            font-size: 24px;
            line-height: 1.3;
            margin-bottom: 8px;
        }

        .carousel-subtitle {
            font-size: 14px;
            line-height: 1.4;
        }

        .carousel-nav-group {
            width: 100%;
            justify-content: flex-end;
            gap: 25px;
            margin-top: 10px;
            padding-top: 15px;
        }

        .see-all-link {
            font-size: 14px;
            margin-right: 0;
            display: flex;
            align-items: center;
        }
    }