﻿/* Hospitals Swiper Styles */

/* Import Roobert font (same as main project) */

/* CSS Variables matching the main project */
:root {
    --primary-color: #25b8c5;
    --secondary-color: #042d59;
    --secondary-dark-color: #031b34;
    --primary-hover-color: #1dabb7;
    --white: #fff;
    --text-color: #042d5999;
    --gray-color: #042d5939;
    --border-gray: #042d5915;
    --shadow: #042d5955;
    --page-title-bg: linear-gradient(117deg, #edf6ff, #baddff);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hospitals Section */
.hospitals-section {
    padding-bottom: 80px;
    padding-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title-area {
    text-align: left;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
}

    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 4px;
        background: var(--primary-color);
        border-radius: 2px;
    }

.section-header p {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* View All Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    .view-all-btn::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .view-all-btn span {
        display: inline-block;
        margin-left: 8px;
        transition: transform 0.3s ease;
        font-size: 18px;
    }

    .view-all-btn:hover {
        color: var(--secondary-color);
    }

        .view-all-btn:hover::after {
            background-color: var(--secondary-color);
        }

        .view-all-btn:hover span {
            transform: translateX(5px);
        }

/* Swiper Container */
.hospitals-swiper-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hospitals-swiper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.swiper-slide {
    flex-shrink: 0;
    width: calc(20% - 16px); /* 5 slides by default */
    margin-right: 20px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .swiper-slide:last-child {
        margin-right: 0;
    }

    .swiper-slide.active {
        opacity: 1;
        transform: scale(1);
    }

/* Hospital Card */
.hospital-card {
    background: var(--white);
    box-shadow: 0px 0px 4px rgb(4 45 89 / 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

    .hospital-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(37, 184, 197, 0.05), rgba(4, 45, 89, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .hospital-card:hover {
        transform: translateY(-8px);
        box-shadow: -2px 2px 18px rgba(4, 45, 89, 0.15);
    }

        .hospital-card:hover::before {
            opacity: 1;
        }

.hospital-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .hospital-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

.hospital-card:hover .hospital-image img {
    transform: scale(1.05);
}

.hospital-info {
    padding: 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    z-index: 2;
}

    .hospital-info h3 {
        font-size: 12px;
        font-weight: 600;
        color: var(--secondary-color);
        margin: 0;
        transition: color 0.3s ease;
    }

.hospital-card:hover .hospital-info h3 {
    color: var(--primary-color);
}

/* Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(4, 45, 89, 0.1);
}

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 24px rgba(37, 184, 197, 0.3);
    }

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

    .swiper-button-prev.disabled,
    .swiper-button-next.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Pagination */
.swiper-pagination {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    border: none;
    outline: none;
}

    .swiper-pagination-bullet:hover {
        background: var(--primary-hover-color);
        transform: scale(1.2);
        opacity: 0.8;
    }

    .swiper-pagination-bullet.active {
        background: var(--primary-color);
        opacity: 1;
        transform: scale(1.3);
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .swiper-slide {
        width: calc(25% - 15px); /* 4 slides */
    }

    .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .swiper-slide {
        width: calc(50% - 10px); /* 2 slides */
    }

    .hospitals-swiper-container {
        padding: 0 50px;
    }

    .hospital-image {
        height: 160px;
    }

    .hospital-info {
        padding: 16px;
    }

        .hospital-info h3 {
            font-size: 16px;
        }
}

@media (min-width: 992px) {
    .swiper-wrapper {
        margin: 20px 0;
    }

    .swiper-button-prev {
        left: -60px;
    }

    .swiper-button-next {
        right: -60px;
    }
}


@media (max-width: 768px) {
    .hospitals-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .section-header h2::after {
        display: none;
    }

    .section-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-title-area {
        text-align: center;
        width: 100%;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .view-all-btn {
        align-self: center;
        font-size: 14px;
    }

    .hospitals-swiper-container {
        padding: 0 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev {
        left: 5px;
    }

    .swiper-button-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .swiper-slide {
        width: 100%; /* 1 slide on mobile */
        margin-right: 0;
    }

    .hospitals-swiper-container {
        padding: 0 20px;
    }
    .hospital-image img{
        width:240px;
        margin:auto
    }

    .hospital-image {
        height: 150px;
    }

    .hospital-info {
        padding: 20px;
    }

        .hospital-info h3 {
            font-size: 18px;
        }

    .section-header h2 {
        font-size: 28px;
        margin: 5px 0
    }

    .swiper-pagination {
        bottom: -40px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hospital-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.hospitals-swiper.loading {
    opacity: 0.7;
    pointer-events: none;
}

    .hospitals-swiper.loading .hospital-card {
        transform: scale(0.95);
    }

/* Focus states for accessibility */
.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.swiper-pagination-bullet:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
