/* Reset default margin and padding */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

/* Ensure all elements stay within the viewport width */
body {
    box-sizing: border-box;
    /* Include padding and border in the element's total width */
    max-width: 100vw;
    /* Ensure body does not exceed viewport width */
    min-width: 100vw;
    /* Prevent body from shrinking below viewport width */
}

/* Apply box-sizing to all elements */
*,
*::before,
*::after {
    box-sizing: inherit;
    /* Inherit box-sizing from body */
}

/* Optional: Add padding or margins to body if needed */
body {
    padding: 0;
    /* Remove extra padding */
}

/* Ensure images and other elements do not overflow */
img,
video,
iframe,
object,
embed {
    max-width: 100%;
    /* Prevent images and media from overflowing */
    height: auto;
    /* Maintain aspect ratio */
}

/* Fix any other potential issues with elements overflowing */
* {
    margin: 0;
    padding: 0;
}

/* Optional: Add a universal reset for margins and paddings */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}


@-ms-viewport {
    width: device-width;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}


/* Import Cairo font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

.navbar {
    background-color: white;
    padding: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Calibri', sans-serif;
}

/* Ensure the container is aligned properly */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Brand (راه درمان) on the left */
.navbar-brand {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ffc107;
    display: flex;
    align-items: center;
    margin-right: auto;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-size: contain;
}

/* Navbar Items */
.navbar-nav {
    margin-right: 0;
}

.navbar-nav .nav-item .nav-link {
    font-size: 1.2rem;
    padding: 10px;
    color: #333;
    font-weight: 500;
}

/* Active Link */
.navbar-nav .nav-item .nav-link.active {
    color: #006AB0 !important;
}

/* On Hover */
.navbar-nav .nav-item .nav-link:hover {
    color: #006AB0;
}

/* Style the navbar image */
.navbar-logo {
    height: 40px;
    width: auto;
    margin-left: 10px;
    border-radius: 8px;
}

/* Style the dropdown menu */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 60px !important;
    right: 0;
    left: auto;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* Ensure dropdown parent is positioned correctly */
.nav-item.dropdown {
    position: relative;
}

/* Style dropdown items */
.dropdown-menu .dropdown-item {
    color: #333;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
}

/* Change dropdown item color on hover */
.dropdown-menu .dropdown-item:hover {
    color: #006AB0 !important;
    background-color: #f8f9fa !important;
    padding-left: 25px;
}



.custom-container {
    border-radius: 15px;
    padding: 30px;
    color: white;
    /* Text remains readable */
    height: 250px;
    /* Background gradient - blending brown/orange to dark blue/purple */
    background: linear-gradient(to left, #1c1c6b, #5c3b2e);
    /* Dark blue to brown */
}

/* For small screens (mobile), cover 90% width */
@media (max-width: 767px) {
    .custom-container {
        width: 95%;
        margin: 0 auto;
    }
}

/* For tablets and desktops, cover 70% width */
@media (min-width: 768px) {
    .custom-container {
        width: 70%;
        margin: 0 auto;
    }
}

/* Style the input fields and buttons for a modern look */
.input-group .form-control {
    border-radius: 8px;
    padding: 12px;
}

.btn-warning {
    border-radius: 8px;
    font-weight: bold;
}


.custom-input-group .form-control {
    height: 35px;
    /* Adjust the height of input fields */
    padding: 5px 10px;
    /* Adjust padding to make the input shorter */
}

.custom-input-group .btn {
    height: 35px;
    /* Match the height of the button to input */
    padding: 5px 10px;
    /* Adjust button padding */
}




/* For small screens (mobile), cover 90% width */
@media (max-width: 767px) {
    .custom-container2 {
        width: 98%;
        margin: 0 auto;
        text-align: center;
    }
}

/* For tablets and desktops, cover 70% width */
@media (min-width: 768px) {
    .custom-container2 {
        width: 70%;
        margin: 0 auto;
    }
}


@media (min-width: 768px) {
    .hidebigscreen {
        display: none;
    }
}

/* Card and Image styling */
/* Card and Image styling */
.card {
    padding-top: 5px;
    border-radius: 15px;
    /* Rounded corners for the card */
    overflow: hidden;
    /* Ensures content doesn't overflow */
    margin-bottom: 10px;
    /* Adjust space between cards */
    width: 100%;
    /* Ensure cards take full width of the column */
}

/* Ensure the image fits well within the card */
.card-img-top {
    object-fit: cover;
    object-position: center top;
    /* Adjust as needed */
    height: 200px;
}

/* Hide extra content (other than title) on phone mode */
@media (max-width: 576px) {
    .card-extra {
        display: none;
        /* Hide the text in phone mode */
    }
}


/* Remove underline from links and apply custom background */
.custom-link {
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Use the default color of the title */
    font-weight: bold;
    padding: 2px;
    /* Padding for better appearance */
    border-radius: 5px;
    /* Optional: round the corners */
}

/* Format the title and remove extra spacing */
.card-title {
    font-size: 1rem;
    /* Adjust font size as needed */
    margin-bottom: 0.5rem;
    /* Reduce margin at the bottom */
}

/* Adjust card text spacing */
.card-text {
    line-height: 1;
    /* Adjust the line height to remove extra space */
    margin-bottom: 0.5rem;
    /* Reduce the margin between paragraphs */
}

.hero-section {
    background: linear-gradient(to left, #4a148c, #880e4f);
    padding: 50px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
}

.search-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.icon-box img {
    width: 50px;
    height: 50px;
}

.icon-box p {
    margin-top: 10px;
    font-size: 16px;
}

.specialties_section {
    text-align: center;
    font-size: clamp(14px, 3vw, 18px);
}



/* Custom Column Width for Large Screens */
@media (min-width: 992px) {

    /* Large devices (desktops) */
    .col-lg-1-5 {
        flex: 0 0 12.5%;
        /* 1.5 columns out of 12 (12.5% width) */
        max-width: 12.5%;
        /* 1.5 columns out of 12 (12.5% width) */
    }
}

/* Responsive Image Size */
.responsive-img {
    width: 20vw;
    /* Adjust based on viewport width */
    height: 20vw;
    /* Maintain aspect ratio */
    max-width: 100px;
    /* Limit maximum size */
    max-height: 100px;
    /* Limit maximum size */
    transition: transform 0.3s ease;
    /* Smooth scaling on hover */
}

/* Hover Effect: Scale Image Bigger */
.card-link:hover .responsive-img {
    transform: scale(1.1);
    /* Scale image 10% bigger */
}

/* Responsive Font Size with Roboto Font */
.responsive-text {
    font-family: Calibri;
    font-size: clamp(14px, 3vw, 18px);
    /* Fluid font size */
    margin-top: 10px;
    /* Spacing between image and text */
    color: inherit;
    /* Inherit color from parent */
    text-decoration: none;
    /* Remove underline */
}

/* Ensure <a> tag covers the entire content and remove underline */
.card-link {
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit text color */
    display: block;
    /* Make the link cover the entire area */
}

/* Media Queries for Fine-Tuning */
@media (max-width: 576px) {

    /* Small devices (phones) */
    .responsive-img {
        width: 25vw;
        height: 25vw;
    }

    .responsive-text {
        font-size: clamp(12px, 4vw, 16px);
    }
}

@media (min-width: 768px) {

    /* Medium devices (tablets) */
    .responsive-img {
        width: 15vw;
        height: 15vw;
    }

    .responsive-text {
        font-size: clamp(14px, 2.5vw, 18px);
    }
}

@media (max-width: 767px) {
    .custom-font-display {
        width: 99%;
        margin: 0 auto;
        text-align: right;
        padding: 0%;
        padding-right: 4%;

    }
}

/* For tablets and desktops, cover 70% width */
@media (min-width: 768px) {
    .custom-font-display {
        width: 72%;
        margin: 0 auto;
        text-align: right;
        padding: 0%;

    }
}

.responsive-text-fontdisplay {
    font-family: Calibri;
    color: black;
    font-size: clamp(14px, 3vw, 18px);
    /* Fluid font size */
    margin-top: 10px;
    /* Spacing between image and text */
    color: inherit;
    /* Inherit color from parent */

}

/* crusor  */

.crusor-card {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.crusor-card:hover {
    transform: scale(1.05);
}

/* General Card Styling */
.custom-card {
    width: 18rem;
    height: 400px;
    /* Default height */
    border-radius: 0;
    /* Sharp edges */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

/* Responsive Height Adjustment */
@media (max-width: 768px) {
    .custom-card {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .custom-card {
        height: 320px;
    }
}

.custom-card:hover {
    transform: scale(1.05);
}

/* Image Section (25%) */
.custom-card .card-img-top {
    height: 25%;
    object-fit: cover;
}

/* Card Body (50%) */
.custom-card .card-body {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Footer (25%) */
.custom-card .card-footer {
    height: 25%;
    border-top: 1px solid #ddd;
    /* Thin separator line */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    /* Light grey */
    font-weight: bold;
}

/* Title Styling */
.our-partners-title {
    font-family: Calibri, sans-serif;
    font-size: 2rem;
    /* Adjust size as needed */
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
    /* Dark color */
    position: relative;
}

/* Underline Effect */
.our-partners-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    /* Blue underline */
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .our-partners-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .our-partners-title {
        font-size: 1.5rem;
    }
}


/* hospital */

/* Custom CSS for the card and layout */
.custom-container2 {
    padding: 20px;
}

.custom-card-hospital {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ddd;
    /* Optional: Add a border for better visibility */
    border-radius: 0;
    /* Sharp corners (no radius) */
    overflow: hidden;
    /* Ensure the image doesn't overflow */
    cursor: pointer;
    /* Change cursor to a hand pointer */

}

.custom-card-hospital:hover {
    transform: translateY(-2px);
    /* Slight lift on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Very low shadow */
}

.card-img-top-hospital {
    width: 100%;
    height: 180px;
    /* Adjust image height to fit within the card */
    object-fit: cover;
    /* Ensure the image covers the area without distortion */
}

.card-body-hospital {
    padding: 10px;
    text-align: center;
}

.responsive-text {
    font-size: 1.25rem;
    margin: 0;
    /* Remove default margin */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .responsive-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .responsive-text {
        font-size: 1rem;
    }
}

/*  crusor part */
/* Custom container for the carousel */
.custom-container2 {
    font-family: Calibri, sans-serif;
    max-width: 1200px;
    /* Adjust the width as needed */
    margin: 0 auto;
    /* Center the carousel */
    border-radius: 7px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensure the images don't overflow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

}

/* Swiper Container */
.swiper-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Ensure navigation buttons are contained */
}

/* Swiper Wrapper */
.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    /* Smooth slide transition */
}

/* Swiper Slide */
.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* For caption positioning */
}

/* Swiper Slide Image */
.swiper-slide img {
    width: 100%;
    height: auto;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Swiper Caption */
.swiper-caption {
    position: absolute;
    font-family: Calibri, sans-serif;
    width: 85%;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.swiper-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.swiper-caption p {
    font-size: 1rem;
    margin: 5px 0 0;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
    /* Ensure buttons are above slides */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.swiper-button-next {
    right: 10px;
    /* Position next button on the right */
}

.swiper-button-prev {
    left: 10px;
    /* Position prev button on the left */
}

/* Hide navigation buttons on small screens */
@media (max-width: 767.98px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Swiper Pagination */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* Ensure pagination is above slides */
}

.swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}


/*  */

.card-img-top-hospital2 {
    height: 125px;
}

.custom-container3 {
    font-family: Calibri, sans-serif;
    max-width: 1200px;
    /* Adjust the width as needed */
    margin: 0 auto;
    /* Center the carousel */
    border-radius: 7px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensure the images don't overflow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to left, #1c1c6b, #5c3b2e);

    /* Add a subtle shadow */
}

@media (max-width: 767px) {
    .custom-container3 {
        width: 98%;
        margin: 0 auto;
        text-align: center;
    }
}

/* For tablets and desktops, cover 70% width */
@media (min-width: 768px) {
    .custom-container3 {
        width: 50%;
        margin: 0 auto;
    }
}

@keyframes scalePulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.5);
    }

    50% {
        transform: scale(1);
    }
}

.scaling-image {
    animation: scalePulse 2s infinite;
    width: 25px;
    height: 25px;
    display: inline-block;
}

/* Force all icons to be the same size */
.social-icon {
    width: 24px !important;
    /* Fixed width */
    height: 24px !important;
    /* Fixed height */
    display: inline-block;
    /* Prevents inline spacing issues */
}

/* Optional: Add a transparent background to debug alignment */
.social-link {
    background: rgba(255, 0, 0, 0.1);
    /* Remove this after testing */
    display: inline-flex;
    /* Better vertical alignment */
    align-items: center;
    /* Centers icon vertically */
    justify-content: center;
    /* Centers icon horizontally */
    padding: 8px;
    /* Adds clickable area */
}


/* */

.doctorsearch_youclass .doctor-card {
    border-radius: 16px;
    transition: transform 0.1s ease;
    position: relative;
    background-color: #ffffff;
}

.doctorsearch_youclass .doctor-card:hover {
    transform: translateY(-5px);
}

/* Default image style for non-doctors */
.doctorsearch_youclass .doctor-img {
    width: 300px;
    height: 175px;
    object-fit: cover;
}

/* Special style for doctor images */
.doctorsearch_youclass .doctor-img.rounded-circle {
    width: 150px;
    height: 150px;
    border: 3px solid #006AB0;
    border-radius: 50%;
}

.doctorsearch_youclass .rating {
    color: #f1c40f;
    font-size: 1.2rem;
}






/* */





.responsive-text-doctorsearch {
    font-size: 12px;
    /* Default font size for phones */
}

@media (min-width: 576px) {
    .responsive-text-doctorsearch {
        font-size: 18px;
        /* Font size for small screens */
    }
}

@media (min-width: 768px) {
    .responsive-text-doctorsearch {
        font-size: 20px;
        /* Font size for tablets */
    }
}

@media (min-width: 992px) {
    .responsive-text-doctorsearch {
        font-size: 22px;
        /* Font size for laptops */
    }
}

@media (min-width: 1200px) {
    .responsive-text-doctorsearch {
        font-size: 24px;
        /* Font size for desktops */
    }
}



.doctor-box {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.doctor-box:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateX(-5px);
    color: white;
    text-decoration: none;
}


