.background {
    justify-content: center;
    padding: 80px 15px;
    font-family: "Lexend", sans-serif;
}

/* Search Section Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    font-family: "Lexend", sans-serif;
}
.hos-main-layout.sidebar-collapsed .hos-sidebar {
    display: none;
}
.search-section {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: white;
}

.top-search {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    background: #007681;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0e7490;
}

.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.all-filters-btn {
    background: #007681;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    align-self: end;
}

.all-filters-btn:hover {
    background: #0e7490;
}

/* Hospital Content Area */
.hos-container {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.hos-main-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Sidebar Styles */
.hos-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.hos-sidebar-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.hos-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.hos-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 20px 20px 16px 20px;
    margin: 0;
}

.hos-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    margin: 0;
}

.hos-filter-checkbox {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.hos-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #0891b2;
    cursor: pointer;
}

.hos-filter-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.hos-filter-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Hospital Cards Container */
.hos-cards-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hospital Card Styles */
.hospital-card {
    background: white;
    border-radius: 12px;
    padding: 20px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1.3fr 1.1fr auto;
    gap: 10px;
    align-items: start;
    min-height: 230px;
}

.grid-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.hospital-info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hospital-image {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.hospital-details {
    flex: 1;
}

.hospital-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hospital-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.hospital-type-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.hospital-type,
.hospital-location {
    color: #666;
    font-size: 14px;
}

.hospital-location i {
    margin-right: 4px;
}

.hospital-landmark {
    font-size: 14px;
    color: #333;
    font-weight: 800;
    margin-bottom: 4px;
}

.hospital-distance {
    font-size: 13px;
    color: #666;
}

/* Doctor Slider Styles */
.doctors-slider-container {
    display: flex;
    align-items: center;
    gap: 0px;
    width: 460px; 
    max-width: 100%;
    box-sizing: border-box;
    margin-right: 0px; /* Add white space on the right */
}

.doctors-viewport {
    flex-grow: 1; 
    overflow: hidden;
    min-width: 0;
}

.doctors-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
}

.doctors-slider-container.has-slider .doctors-section {
    transition: transform 0.4s cubic-bezier(0.70, 0, 0.50, 1);
    will-change: transform;
}

.doctor-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-shrink: 0;
    box-sizing: border-box;
}

.doctor-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.doctor-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.doctor-specialty {
    font-size: 12px;
    color: #666;
}

.doctor-details {
    text-align: center;
}

.doctor-experience {
    font-size: 11px;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.2;
}

.doctor-rating {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.slider-arrow.next-arrow {
    background: white;
    border-radius: 50%;
    width: 33px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #007681;
    font-size: 20px;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0px;
    margin: 0px;
}

.slider-arrow.next-arrow:hover {
    background: #f0f9ff;
    border-color: #0891b2;
}

.doctors-slider-container.no-slider .slider-arrow.next-arrow {
    display: none;
}

/* Grid 2 - Stats and About */
.grid-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 5px;
}

.hospital-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-bottom: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 60px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #007681;
    display: block;
    line-height: 1;
}

.about-section {
    background: transparent;
}

.about-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.about-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Grid 3 - Action Buttons */
.grid-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 170px;
    justify-content: center;
    margin: auto 0;
}

.book-button,
.inquiry-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.book-button {
    background: #007681;
    color: white;
    font-weight: bold;
    font-family: "Lexend", sans-serif;
}

.book-button:hover {
    background: #067e8b;
}

.inquiry-button {
    background: white;
    font-family: "Lexend", sans-serif;
    color: #007681;
font-weight: bold;
    border: 1px solid #007681;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inquiry-button:hover {
    background: #f0f9ff;
    border-color: #067e8b;
}

.phone-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: #007681;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 10px 0;
    display: none;
    width: fit-content;
    margin-left: auto;
}

.sidebar-toggle:hover {
    background: #0e7490;
}

/* Responsive Design */

/* Large Tablets (≤1024px) */
@media screen and (max-width: 1024px) {
    .container, .hos-container {
        max-width: 100%;
        padding: 10px;
}

.hos-main-layout {
    flex-direction: row;
        gap: 15px;
}

.hos-sidebar {
        width: 200px;
    }

    .hospital-card {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .grid-1 {
        padding: 0;
    }

    .grid-3 {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        margin: 0;
    }

    .book-button, .inquiry-button {
        flex: 1;
    }

    .doctors-slider-container {
        width: var(--slider-width, 460px);
        max-width: calc(100% - 20px); /* Account for right margin */
        margin-right: 20px;
    }

    .doctors-section {
        gap: 8px;
    }

    .doctor-card {
        min-width: 140px;
        padding: 8px;
    }

    .doctor-image {
        width: 45px;
        height: 45px;
    }

    .doctor-name {
        font-size: 13px;
    }

    .doctor-specialty {
        font-size: 11px;
    }

    .doctor-experience, .doctor-rating {
        font-size: 10px;
    }

    .slider-arrow.next-arrow {
        width: 30px;
        height: 22px;
        font-size: 18px;
    }

    .filter-section {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .hospital-image {
        width: 80px;
        height: 60px;
    }

    .hospital-name {
        font-size: 15px;
    }

    .hospital-type, .hospital-location, .hospital-landmark, .hospital-distance {
        font-size: 13px;
    }

    .stat-number {
        font-size: 16px;
    }

    .about-text {
        font-size: 12px;
    }
}

/* Mobile Devices (≤768px) */
@media screen and (max-width: 768px) {
    .hos-main-layout {
    flex-direction: column;
    }

    .hos-sidebar {
        width: 100%;
        display: none;
    }

    .hos-main-layout.sidebar-collapsed .hos-sidebar {
        display: none;
    }

    .sidebar-toggle {
        display: block;
    }

    .hospital-card {
        grid-template-columns: 1fr;
        padding: 15px;
        min-height: auto;
    }

    .grid-1, .grid-2, .grid-3 {
        gap: 12px;
    }

    .grid-1 {
        padding: 0;
    }

    .grid-3 {
        /* flex-direction: column; */
        align-items: stretch;
        min-width: auto;
    }

    .book-button, .inquiry-button {
        width: 100%;
    }

    .top-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-section {
        grid-template-columns: 1fr;
    }

    .all-filters-btn {
        width: 100%;
        align-self: stretch;
    }

    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px); /* Account for right margin */
        margin-right: 20px;
}

.doctors-section {
        gap: 6px;
}

.doctor-card {
        min-width: 120px;
        padding: 6px;
}

.doctor-image {
        width: 40px;
        height: 40px;
}

.doctor-name {
    font-size: 12px;
    }

    .doctor-specialty, .doctor-experience, .doctor-rating {
        font-size: 10px;
}

.slider-arrow.next-arrow {
        width: 28px;
        height: 20px;
        font-size: 16px;
    }

    .hospital-image {
        width: 70px;
        height: 50px;
    }

    .hospital-name {
        font-size: 14px;
    }

    .hospital-type, .hospital-location, .hospital-landmark, .hospital-distance {
        font-size: 12px;
}

.stat-item {
        min-width: 50px;
}

.stat-label {
        font-size: 12px;
}

.stat-number {
        font-size: 14px;
}

.about-title {
        font-size: 14px;
}

.about-text {
        font-size: 11px;
    }
}

/* Small Mobile Devices (≤480px) */
@media screen and (max-width: 480px) {
    .search-section {
        padding: 15px;
    }

    .search-input {
        padding: 10px 0px 10px 10px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px;
        font-size: 13px;
    }

    .filter-label {
        font-size: 12px;
    }

    .filter-select {
        font-size: 13px;
        padding: 8px 10px;
        padding-right: 30px;
        background-size: 14px;
    }

    .all-filters-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .hos-sidebar {
        padding: 10px;
    }
    
    .hos-sidebar-title {
        font-size: 14px;
        padding: 15px 15px 10px 15px;
    }

    .hos-filter-label, .hos-filter-count {
        font-size: 13px;
    }

    .hos-filter-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .hospital-card {
        padding: 10px;
    }

    .hospital-info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .hospital-image {
        width: 100%;
        height: auto;
        max-height: 100px;
    }

    .hospital-name {
        font-size: 13px;
    }

    .hospital-type, .hospital-location, .hospital-landmark, .hospital-distance {
        font-size: 11px;
    }

    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px); /* Account for right margin */
        margin-right: 0px;
    }

    .doctors-section {
        gap: 5px;
    }

    .doctor-card {
        min-width: 100px;
        padding: 5px;
    }

    .doctor-card-top {
        gap: 8px;
    }

    .doctor-image {
        width: 35px;
        height: 35px;
    }

    .doctor-name {
        font-size: 11px;
    }

    .doctor-specialty, .doctor-experience, .doctor-rating {
        font-size: 9px;
    }

    .slider-arrow.next-arrow {
        width: 20px;
        height: 18px;
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-number {
        font-size: 13px;
    }

    .about-title {
        font-size: 13px;
    }

    .about-text {
        font-size: 10px;
    }

    .book-button, .inquiry-button {
        font-size: 12px;
        padding: 8px 15px;
    }

    .phone-icon {
        width: 14px;
        height: 14px;
    }
}

/* Very Small Mobile Devices (≤360px) */
@media screen and (max-width: 360px) {
    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px); /* Account for right margin */
        margin-right: 20px;
    }
    
    .doctors-section {
        gap: 4px;
    }
    
    .doctor-card {
        min-width: 90px;
        padding: 4px;
    }

    .doctor-card-top {
        gap: 6px;
    }

    .doctor-image {
        width: 30px;
        height: 30px;
    }

    .doctor-name {
        font-size: 10px;
    }

    .doctor-specialty, .doctor-experience, .doctor-rating {
        font-size: 8px;
    }

    .slider-arrow.next-arrow {
        width: 22px;
        height: 16px;
        font-size: 12px;
    }
}