


/* Pagination Styles */
#doctor-pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination {
    display: inline-block;
}

.pagination a,
.pagination span {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active,
.pagination span.current-page {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.pagination .ellipsis {
    padding: 8px 16px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #doctor-search-form {
        flex-direction: column;
    }

    #doctor-search-form input[type="text"],
    #doctor-search-form select,
    #doctor-search-form button {
        width: 100%;
    }
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}
@media (max-width: 600px) {
    #doctor-search-form {
        flex-direction: column;
    }
    
    #doctor-search-input,
    #doctor-speciality-filter,
    #doctor-city-filter,
    #doctor-search-form button {
        width: 100%;
    }
}

/* Doctor Details */
/* General styles */
.doctor-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Doctor details */
.doctor-details {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doctor-details h1 {
    color: #0073aa;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.doctor-details p {
    margin-bottom: 10px;
}

.doctor-details strong {
    font-weight: bold;
    color: #555;
}

/* Responsive design */
@media (max-width: 600px) {
    .doctor-details-container {
        padding: 10px;
    }

    .doctor-details h1 {
        font-size: 20px;
    }

    .doctor-details p {
        font-size: 14px;
    }
}
 .doctor-image {
        float: right;
        width: 100px;
        height: 100px;
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .doctor-image svg {
        width: 100%;
        height: 100%;
    }
    @media (max-width: 600px) {
        .doctor-image {
            float: none;
            margin: 0 auto 20px;
            display: block;
        }
    }
/* General styles */



/* Doctor list styles */
.doctors-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.doctor-item {
    background-color: #ffffff;
    border: 1px solid rgba(224, 224, 224, 0.7);
    border-radius: 15px; /* Softer corners */
    margin-bottom: 15px; /* More compact spacing */
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Softer shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Helvetica', sans-serif; /* Clean font */
}

.doctor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Slightly enhanced on hover */
}

.doctor-item h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: 600;
}

.doctor-item p {
    margin: 8px 0;
    font-size: 0.95em;
    color: #7f8c8d;
}

.doctor-item .speciality {
    font-style: italic;
    color: #95a5a6;
    margin-bottom: 5px;
}

.doctor-item .address {
    font-size: 0.9em;
    color: #7f8c8d;
}

.doctor-item strong {
    font-weight: 600;
    color: #34495e;
}

.doctor-item .maps-link {
    margin-top: 10px;
   /* Align link to the right for cleaner layout */
}

.doctor-item .maps-link a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px; /* Rounded buttons */
    font-size: 0.85em;
    transition: background-color 0.3s ease;
}

.doctor-item .maps-link a:hover {
    background-color: #2980b9;
}

/* Responsive design */
@media (max-width: 600px) {
    .doctor-item {
        padding: 10px 15px; /* Adjust padding for smaller screens */
    }

    .doctor-item h2 {
        font-size: 1.15em;
    }

    .doctor-item p {
        font-size: 0.85em;
    }

    .doctor-item .maps-link a {
        padding: 6px 10px; /* Smaller buttons */
        font-size: 0.8em;
    }
}



.reviews {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.reviews h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.qii404-highlight {
    color: #d35400;
    font-weight: bold;
}

.reviews .rating {
    font-size: 14px;
    color: #f39c12;
}

.reviews .review {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.reviews .author {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.reviews .text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-top: 5px;
    flex-basis: 100%;
}

.reviews .review:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .reviews {
        padding: 10px;
    }

    .reviews h3 {
        font-size: 18px;
    }

    .reviews .author, .reviews .rating, .reviews .text {
        font-size: 13px;
    }

    .reviews .review {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* CSS styles for the new classes */
.header-title {
    font-size: 2em; /* Adjust the font size as needed */
    font-weight: bold; /* Make the title bold */
    margin-bottom: 10px; /* Add some space below the title */
    text-align: center;
}

.arabic-paragraph {
    font-size: 1.2em; /* Adjust the font size for Arabic text */
    color: #333; /* Change the text color if needed */
        text-align: center;

}

.french-paragraph {
        text-align: center;

    font-size: 1.2em; /* Adjust the font size for French text */
    color: #555; /* Change the text color if needed */
    margin: 10px 0; /* Add vertical spacing */
}


/*style add new doc form */
#add-doctor-form {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#add-doctor-form label {
    display: block;
    margin-bottom: 5px;
}

#add-doctor-form input[type="text"],
#add-doctor-form textarea,
#add-doctor-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#add-doctor-form input[type="submit"] {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-doctor-form input[type="submit"]:hover {
    background-color: #45a049; /* Darker green */
}

#railway-doctors-search {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#doctor-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-group, .select-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
}

.search-group input, .select-wrapper select {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
    background-color: transparent;
}

.search-group i, .select-wrapper i {
    color: #888;
    margin-left: 8px;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

button[type="submit"] i {
    color: #fff;
}

@media (max-width: 768px) {
    #railway-doctors-search {
        padding: 15px;
    }

   
    input, select, button[type="submit"] {
        font-size: 14px;
    }
}

select {
    text-align: center; /* Center the text */
    text-align-last: center; /* Center the text of the selected option */
}

/* cards and rating */
/* Main container styling */


/* Heading style */
.doctor-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.doctor-card h3 a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.doctor-card h3 a:hover {
    color: #0056b3;
}

/* Paragraph and phone styling */
.doctor-card p {
    margin: 5px 0;
    color: #555;
}

.doctor-phone {
    font-weight: bold;
    color: #333;
}

/* Rating display styling */
.rating-display {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: #555;
}





/* Review container styling */
.reviews-container {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}


/* Pagination styling */
#doctor-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#doctor-pagination .pagination .current-page {
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
}

#doctor-pagination .pagination .page-number {
    text-decoration: none;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: background-color 0.3s, color 0.3s;
}

#doctor-pagination .pagination .page-number:hover {
    background-color: #007bff;
    color: #fff;
}

#doctor-pagination .pagination .next-page {
    text-decoration: none;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: background-color 0.3s, color 0.3s;
}

#doctor-pagination .pagination .next-page:hover {
    background-color: #007bff;
    color: #fff;
}




.rating-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #2a9d8f; /* Highlight color for the rating */
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.rating-value {
    font-size: 2em;
    color: #e76f51; /* Make the rating value more eye-catching */
    margin-right: 5px;
}

.votes-count {
    font-size: 1em;
    color: #6c757d; /* Subtle color for the vote count */
    margin-left: 5px;
}

.show-reviews-btn {
    margin-left: auto;
    background-color: #264653;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.show-reviews-btn:hover {
    background-color: #1b3a4b;
}


/* City filter input styling */
.city-filter {
    width: 100%;
    font-size: 16px;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.city-filter:focus {
    border-color: #009688; /* Accent color on focus */
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
    outline: none;
    background-color: #e0f7fa; /* Light background on focus */
}

.city-filter:hover {
    border-color: #00796b;
    background-color: #f1f1f1;
}

/* Choices.js styling */
.choices {
    width: 100% !important;
    max-width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 15px;
    background-color: #ffffff;
    display: block;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.choices:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #b2dfdb;
}

/* Inner input container */
.choices__inner {
    border: none!important;
    background: #ffffff!important;
    padding: 2px 6px;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.choices__inner:focus-within {
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
}

.choices__inner:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


.choices__list--dropdown:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Selectable item styling */
.choices__item--selectable {
    text-align: center;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, font-size 0.2s;
}

.choices__item--selectable:hover {
    color: #1e1f1f;
}

.choices__item--selectable:focus {
    outline: none;
    background-color: #b2dfdb;
    color: #004d40;
}

/* Highlight selected option */
.choices__item--selectable.is-highlighted {
    background-color: #80cbc4;
    color: #004d40;
}

.choices__placeholder {
    opacity: 1!important;
}

/* Accessibility improvements */
.city-filter:focus,
.choices__inner:focus-within,
.choices__item--selectable:focus {
    outline: 2px solid #009688; /* High contrast outline for focus */
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .city-filter,
    .choices {
        font-size: 14px;
        padding: 10px 14px;
    }

    .choices__item--selectable {
        font-size: 14px;
        padding: 1px 2px;
    }
}

@media (max-width: 480px) {
    .city-filter,
    .choices {
        font-size: 12px;
        padding: 1px 12px;
    }

    .choices__item--selectable {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* result message*/


.reultmessage {
    color: #333; /* Neutral dark color for readability */
    font-weight: 500; /* Semi-bold to emphasize the text */
    font-size: 18px; /* Slightly larger text for better visibility */
    line-height: 1.6; /* Comfortable spacing between lines */
    text-align: center; /* Center-align the text */
    margin: 10px 0; /* Add spacing above and below */
    font-family: 'Arial', sans-serif; /* Clean and modern font */
    background-color: #f9f9f9; /* Light gray background for contrast */
    padding: 10px 15px; /* Padding for better visual spacing */
    border-radius: 10px; /* Rounded corners for a modern feel */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/* General Styles */
.doctors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}



select, #city-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
}

select:focus, #city-search:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

/* Dropdown Styles */
#city-dropdown-wrapper, .multi-select-dropdown {
    position: relative;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-options li {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-options li:hover {
    background-color: #f0f0f0;
}

/* Checkbox Styles */
.city-checkbox, .phone-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.phone-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.doctor-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #2c3e50;
}

.doctor-specialty {
    color: #2980b9;
    font-size: 16px;
    margin: 5px 0;
}

.doctor-address, .doctor-city {
    color: #555;
    font-size: 14px;
    margin: 5px 0;
}

.doctor-phone a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

.doctor-phone a:hover {
    text-decoration: underline;
    color: #c0392b;
}



.rating-value {
    margin-left: 5px;
    font-size: 1.5em;
}

.votes-count {
    font-size: 0.9em;
    color: #666;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #FFD700;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .current-page {
    background-color: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* Loading Spinner */
#loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin: 20px auto;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.doctors-list {
    transition: opacity 0.3s ease;
}

#doctors-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* No Results Message */
.no-doctors {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .specialty-filter {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .pagination a {
        width: 100%;
        text-align: center;
    }
}

/* */

/* General Styles */
.doctors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}



select, #city-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
}

select:focus, #city-search:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

/* Dropdown Styles */
#city-dropdown-wrapper, .multi-select-dropdown {
    position: relative;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-options li {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-options li:hover {
    background-color: #f0f0f0;
}

/* Checkbox Styles */
.city-checkbox, .phone-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.phone-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    #doctors-content {
        max-width: 100%;
        padding: 10px;
    }
}

/* Rating Stars */


.rating-value {
    margin-left: 5px;
    font-size: 1.5em;
}

.votes-count {
    font-size: 0.9em;
    color: #666;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #FFD700;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a {
        margin-top: auto; /* Pushes it to the bottom */

    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .current-page {
    background-color: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* Loading Spinner */
#loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin: 20px auto;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.doctors-list {
    transition: opacity 0.3s ease;
}

#doctors-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

#doctors-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* No Results Message */
.no-doctors {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .specialty-filter {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .pagination a {
        width: 100%;
        text-align: center;
    }
}

.no-doctors-found {
    text-align: center;          /* Center the text horizontally */
    color: #666;                 /* Neutral gray color for the text */
    font-size: 16px;             /* Appropriate font size */
    background: #f9f9f9;         /* Light gray background for contrast */
    border-radius: 8px;          /* Rounded corners for the box */
    padding: 20px;               /* Space inside the box */
    margin: 20px auto;           /* Add spacing around and center it horizontally */
    max-width: 600px;            /* Limit the width of the message */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: 'Arial', sans-serif; /* Consistent font with your design */
}


.specialty-filter {
    display: flex;
    flex-wrap: wrap; /* Ensure responsiveness */
    gap: 16px;
    padding: 20px;
    max-width: 825px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specialty-filter label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.specialty-filter select,
#city-search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-options {
    display: none; /* Initially hidden */
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-options li {
    margin-bottom: 8px;
}

.dropdown-options li:last-child {
    margin-bottom: 0;
}

.city-checkbox {
    margin-right: 8px;
}

.phone-checkbox {
    width: 100%;
}

#phone-checkbox {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .specialty-filter {
        flex-direction: column;
        gap: 20px;
    }

    .multi-select-dropdown {
        width: 100%;
    }
}

.no-doctors-found {
    color: #ff4d4f; /* Bright red for emphasis */
    background-color: #ffe8e8; /* Light red background for contrast */
    border: 1px solid #ff4d4f; /* Border matching the text color */
    padding: 15px 12px; /* Space around the text */
    padding-bottom: 15px!important;
    border-radius: 8px; /* Rounded corners */
    text-align: center; /* Center-align the text */
    font-size: 16px; /* Base font size for readability */
    font-weight: bold; /* Bold text for prominence */
    margin: 10px auto; /* Space around and center alignment */
    max-width: 400px; /* Limit width for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for a modern look */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .no-doctors-found {
        font-size: 14px; /* Slightly smaller text on smaller screens */
        padding: 10px; /* Reduce padding for better fit */
    }
}

.toggle-button {
    display: inline-block;
    margin-bottom: 7px;
    padding: 10px 20px; /* Comfortable padding for better usability */
    font-size: 16px; /* Clear, readable font size */
    font-weight: bold; /* Emphasized text */
    color: #333333; /* Dark gray text for good contrast */
    background-color: #e0e0e0; /* Soft gray for harmony with #f9f9f9 */
    border: 1px solid #cccccc; /* Subtle border to define the button */
    border-radius: 8px; /* Modern rounded corners */
    cursor: pointer; /* Pointer cursor for interactivity */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: background-color 0.3s, transform 0.2s; /* Smooth hover effect */
}

/* Hover Effects */
.toggle-button:hover {
    background-color: #d6d6d6; /* Slightly darker gray on hover */
    border-color: #bfbfbf; /* Enhance the border on hover */
    transform: scale(1.02); /* Slight enlargement */
}

/* Focus Styles */
.toggle-button:focus {
    outline: 2px solid #bfbfbf; /* Subtle focus indicator */
    outline-offset: 2px;
}

/* Active State */
.toggle-button:active {
    transform: scale(0.98); /* Slight shrink when clicked */
    background-color: #c9c9c9; /* Darker gray for active state */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .toggle-button {
        font-size: 14px; /* Slightly smaller font size */
        padding: 8px 16px; /* Adjusted padding for smaller screens */
    }
}


.doctor-rating {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
@media (max-width: 767px) {
    .doctor-rating {
        padding: 5px;
    }
}

.doctor-rating .rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
}

.doctor-rating .votes-count {
    font-size: 14px;
    color: #777;
    margin-left: 10px;
}

.review-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-item .review-header strong {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.review-item .review-rating {
    font-size: 16px;
    color: #f39c12;
    margin-left: 10px;
}

.review-item .review-date {
    font-size: 12px;
    color: #999;
}

.review-item .review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}

/* Add a hover effect for reviews */
.review-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Best Rated Doctor Badge - Enhanced Styling */
.best-rated-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 25%, #FF8F00 50%, #FF6F00 75%, #E65100 100%);
    color: #1a1a1a;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 100;
    border: 2px solid #B8860B;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: badgePulse 2.5s ease-in-out infinite;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}


.best-rated-badge .badge-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    animation: iconBounce 2s ease-in-out infinite;
}

.best-rated-badge .badge-text {
    white-space: nowrap;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes badgePulse {
    0% {
        transform: rotate(-2deg) scale(1);
        box-shadow:
            0 4px 15px rgba(255, 215, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: rotate(-1deg) scale(1.02);
        box-shadow:
            0 6px 20px rgba(255, 215, 0, 0.6),
            0 4px 12px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: rotate(-2deg) scale(1);
        box-shadow:
            0 4px 15px rgba(255, 215, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.1);
    }
}

/* Enhanced styling for best rated doctor card */
.doctor-card.best-rated-doctor,
.doctor-item.best-rated-doctor {
    position: relative;
    border: 3px solid #FFD700 !important;
    margin-bottom: 22px;
    box-shadow:
        0 6px 20px rgba(255, 215, 0, 0.4),
        0 2px 10px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #fffbf0, #fff);
    z-index: 5;
}

.doctor-card.best-rated-doctor::before,
.doctor-item.best-rated-doctor::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD700, #FFC107, #FF8F00);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(3px);
}


/* Responsive adjustments for badge */
@media (max-width: 768px) {
    .best-rated-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 12px;
        display: inline-flex;
        font-size: 12px;
        padding: 10px 14px;
        transform: rotate(-1deg);
        border-radius: 20px;
    }


    .doctor-card.best-rated-doctor,
    .doctor-item.best-rated-doctor {
        transform: scale(1.02);
        border-width: 4px !important;
        box-shadow:
            0 4px 15px rgba(255, 215, 0, 0.3),
            0 2px 8px rgba(255, 140, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .doctor-card.best-rated-doctor::before,
    .doctor-item.best-rated-doctor::before {
        opacity: 0.4;
    }

}

@media (max-width: 480px) {
    .best-rated-badge {
        font-size: 11px;
        padding: 8px 12px;
        gap: 6px;
        margin-bottom: 8px;
    }

    .best-rated-badge .badge-icon {
        font-size: 14px;
    }

    .best-rated-badge .badge-text {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .doctor-card.best-rated-doctor,
    .doctor-item.best-rated-doctor {
        border-width: 3px !important;
        transform: scale(1.01);
        margin-bottom: 22px;
    }

    .doctor-card.best-rated-doctor::before,
    .doctor-item.best-rated-doctor::before {
        opacity: 0.3;
    }
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffd700;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.stats {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* Header Metadata Container */
.header-metadata {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Last Updated */
.last-updated {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.last-updated small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
}

.last-updated small::before {
    content: '🕒';
    font-size: 0.85rem;
}

/* Medical Disclaimer */
.medical-disclaimer {
    margin: 0;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.medical-disclaimer::before {
    content: 'ℹ️';
    margin-right: 8px;
    font-size: 1rem;
}

/* Table of Contents Navigation - Minimized */
.page-toc {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    max-height: 45px;
    overflow: hidden;
}

.page-toc:hover {
    max-height: 500px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-toc p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-toc p::after {
    content: '▼';
    font-size: 0.7rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.page-toc:hover p::after {
    transform: rotate(180deg);
}

.page-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.page-toc:hover ul {
    opacity: 1;
    max-height: 500px;
    margin-top: 8px;
}

.page-toc li {
    margin: 0;
}

.page-toc a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.page-toc a::before {
    content: '→';
    margin-right: 6px;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.page-toc a:hover {
    background: #e7f3ff;
    border-color: #007bff;
    transform: translateX(4px);
    color: #0056b3;
}

.page-toc a:hover::before {
    transform: translateX(2px);
}


/* Arabic Intro Section */
.arabic-intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 17px 10px;    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid #6068d3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.arabic-intro .arabic-paragraph {
    font-family: 'Amiri', 'Noto Kufi Arabic', 'Cairo', 'Arial', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2c3e50;
    margin: 0;
    text-align: right;
    direction: rtl;
}

.arabic-intro .arabic-paragraph strong {
    color: #6068d3;
    font-weight: 700;
    background: rgba(96, 104, 211, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Arabic Specialty Info Sections */
.arabic-specialty-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arabic-specialty-name {
    font-family: 'Amiri', 'Noto Kufi Arabic', 'Cairo', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3d72;
    margin: 0 0 16px 0;
    text-align: right;
    direction: rtl;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(96, 104, 211, 0.2);
}

.arabic-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.arabic-conditions,
.arabic-when-to-visit {
    background: rgba(255, 255, 255, 0.6);
    padding: 11px 5px;
        border-radius: 8px;
    margin-top: 12px;
}

.arabic-section-title {
    font-family: 'Amiri', 'Noto Kufi Arabic', 'Cairo', 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #6068d3;
    margin: 0 0 10px 0;
    text-align: right;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arabic-section-title::before {
    content: '📋';
    font-size: 1.1rem;
}

.arabic-when-to-visit .arabic-section-title::before {
    content: '⏰';
}

.arabic-conditions .arabic-paragraph,
.arabic-when-to-visit .arabic-paragraph {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

/* French Paragraph */
.french-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    text-align: left;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.french-paragraph strong {
    color: #007bff;
    font-weight: 700;
    background: rgba(0, 123, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-listing-header {
        padding: 10px 20px;
        margin-bottom: 10px;
    }

    .doctor-listing-header .header-title {
        font-size: 1.8rem;
    }

    .header-metadata {
        padding: 16px;
    }

    .page-toc {
        padding: 6px 10px;
        max-height: 40px;
    }

    .page-toc:hover {
        padding: 10px 14px;
        max-height: 400px;
    }

    .intro-section {
        padding: 5px;
    }

    .arabic-intro {
        padding: 17px 10px;
        }

    .arabic-intro .arabic-paragraph {
        font-size: 1rem;
    }

    .french-paragraph {
        font-size: 1rem;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .doctor-listing-header {
        padding: 24px 16px;
    }

    .doctor-listing-header .header-title {
        font-size: 1.5rem;
    }

    .doctor-listing-header .header-title strong {
        display: block;
        margin: 8px 0;
    }

    .page-toc {
        padding: 5px 8px;
        max-height: 35px;
    }

    .page-toc:hover {
        padding: 8px 12px;
        max-height: 350px;
    }

    .page-toc a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* =============================================
   ENHANCED DOCTOR LISTING STYLES
   ============================================= */

/* ========== Base Typography ========== */
h1, h2 {
    color: #0b3c5d;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    letter-spacing: -0.5px;
}

h2 {
    letter-spacing: -0.3px;
}

p {
    margin: 0 0 15px 0;
    line-height: 1.7;
    color: #444;
}

/* ========== Header ========== */
.doctor-listing-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 40px 30px;
    border-bottom: 2px solid #e3e6ea;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
}

.doctor-listing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0b3c5d 0%, #3282b8 50%, #0b3c5d 100%);
    opacity: 0.9;
}

.doctor-listing-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0b3c5d;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.medical-disclaimer {
    font-size: 14px;
    color: #666;
    max-width: 900px;
    margin: 15px auto 0;
    padding: 12px 20px;
    background: #fff9e6;
    border-right: 4px solid #ffc107;
    border-radius: 6px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.medical-disclaimer::before {
    content: 'ℹ️';
    margin-left: 8px;
    font-size: 16px;
}

/* ========== Intro Section ========== */
.intro-section {
    max-width: 1100px;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 1.8;
    color: #495057;
    direction: rtl;
    text-align: right;
}

.intro-section p {
    margin-bottom: 12px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* ========== Doctors List ========== */
.doctor-list {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    direction: rtl;
    text-align: right;
}

/* ========== Doctor Card ========== */
.doctor-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    direction: rtl;
    text-align: right;
}

.doctor-card h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #0b3c5d;
    font-weight: 700;
    line-height: 1.4;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

/* ========== Doctor Info List ========== */
.doctor-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

/* Fix for phone number line breaks */
.doctor-card ul li.phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    direction: rtl;
    text-align: right;
}

/* Ensure children don't cause breaks */
.doctor-card ul li.phone-item br {
    display: none;
}

.doctor-card ul li.phone-item .info-label {
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.doctor-card ul li.phone-item .phone-number {
    direction: ltr;
    unicode-bidi: embed;
    color: #3282b8;
    text-decoration: none;
    font-weight: 600;
}

.doctor-card ul li.phone-item .phone-number:hover {
    text-decoration: underline;
}

/* General list item spacing */
.doctor-card ul li {
    margin-bottom: 8px;
    font-size: 14.5px;
    color: #333;
    line-height: 1.6;
}

.doctor-card ul li strong {
    color: #000;
    font-weight: 600;
    margin-left: 6px;
}


/* ========== Doctor Description ========== */
.doctor-card p {
    font-size: 15px;
    color: #555;
    margin-top: 14px;
    line-height: 1.7;
    padding-top: 14px;
    border-top: 1px solid #f0f4f8;
}


/* ========== Footer ========== */
.page-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 2px solid #e3e6ea;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.page-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b3c5d 0%, #3282b8 50%, #0b3c5d 100%);
    opacity: 0.8;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .doctor-listing-header {
        padding: 30px 20px;
    }

    .doctor-listing-header h1 {
        font-size: 24px;
    }

    .medical-disclaimer {
        font-size: 13px;
        padding: 10px 16px;
        margin: 12px 15px 0;
    }

    .intro-section {
        margin: 20px auto;
        font-size: 15px;
    }

    .doctor-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .doctor-card {
        padding: 22px;
    }

    .doctor-card h2 {
        font-size: 20px;
    }

    .page-footer {
        padding: 24px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .doctor-listing-header h1 {
        font-size: 20px;
    }

    .doctor-card {
        padding: 18px;
    }

    .doctor-card h2 {
        font-size: 18px;
    }

    .intro-section {
        padding: 10px 6px;
        font-size: 14px;
    }
}

/* ========== Accessibility Improvements ========== */
@media (prefers-reduced-motion: reduce) {
    .doctor-card,
    .doctor-card h2 {
        transition: none;
    }
}

/* ========== Print Styles ========== */
@media print {
    .doctor-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================
   PHARMACIES DE GARDE SECTION STYLES
   ============================================= */

/* ========== Main Section ========== */
.pharmacies-garde-section {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ========== Section Title ========== */
.pharmacies-garde-title, .laboratoires-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #0b3c5d;
    margin-bottom: 20px;
    text-align: center;
}

.qii404-highlight {
    color: #3282b8;
    font-weight: 600;
}

/* ========== Neighborhood Availability ========== */
.pharmacy-neighborhood-availability {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.pharmacy-neighborhood-availability h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b3c5d;
    margin-bottom: 15px;
}

.pharmacy-neighborhood-availability h2 .fas {
    color: #3282b8;
    margin-left: 8px;
}

.neighborhood-availability-content {
    margin-top: 10px;
}

.pharmacy-availability-highlight {
    background: #e8f5e9;
    padding: 15px;
    border-right: 3px solid #4caf50;
    margin-bottom: 10px;
}

.pharmacy-availability-highlight p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.pharmacy-availability-highlight p:last-child {
    margin-bottom: 0;
}

.pharmacy-availability-highlight strong {
    color: #1a7f37;
    font-weight: 600;
}

/* ========== Pharmacies Grid ========== */
.pharmacies-grid, .laboratoires-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ========== Pharmacy Card ========== */
pharmacy-card, .laboratoire-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ========== Pharmacy Name ========== */
.pharmacy-name {
    font-size: 18px;
    font-weight: 600;
    color: #0b3c5d;
    margin-bottom: 10px;
}

.pharmacy-name strong {
    color: #0b3c5d;
}

/* ========== Pharmacy Status ========== */
.pharmacy-status {
    font-size: 14px;
    font-weight: 600;
    color: #1a7f37;
    background: #e8f5e9;
    padding: 6px 12px;
    margin-bottom: 12px;
    display: inline-block;
}

/* ========== Pharmacy Address ========== */
.pharmacy-address {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ========== Pharmacy Quartier ========== */
.pharmacy-quartier {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* ========== Pharmacy Actions ========== */
.pharmacy-actions, .laboratoire-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.pharmacy-actions a, .laboratoire-actions a {
    display: inline-block;
    padding: 8px 16px;
    background: #3282b8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.pharmacy-actions a:hover {
    background: #0b3c5d;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .pharmacies-garde-section {
        padding: 0 15px;
        margin: 20px auto;
    }

    .laboratoires-section-title, pharmacies-garde-title {
        font-size: 20px;
    }

    .pharmacy-neighborhood-availability {
        padding: 15px;
    }

    .pharmacies-grid, .laboratoires-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    pharmacy-card, .laboratoire-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .laboratoires-section-title, pharmacies-garde-title {
        font-size: 18px;
    }

    pharmacy-card, .laboratoire-card {
        padding: 12px;
    }
}

/* =============================================
   DOCTOR PATIENT TIPS SECTION
   ============================================= */

.doctor-patient-tips {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    direction: rtl;
    text-align: right;
}

.doctor-patient-tips h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b3c5d;
    margin-bottom: 15px;
}

.doctor-patient-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .doctor-patient-tips {
        padding: 15px;
        margin: 20px auto;
    }

    .doctor-patient-tips h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .doctor-patient-tips {
        padding: 12px;
        margin: 15px auto;
    }

    .doctor-patient-tips h2 {
        font-size: 15px;
    }
}

h2.doctor-list-title {
    padding-top: 5px;
    text-align: center;
    direction: rtl !important;
}

/* ==========================================================================
   1. Container & Global Card Styles
   ========================================================================== */
.doctor-list {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #334155;
}

.doctor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

/* Header with Blue Underline */
.doctor-card-header {
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #3b82f6;
}

.doctor-card-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #1e293b;
}

.doctor-card-header span {
    color: #64748b;
    display: block;
    margin-top: 5px;
    font-weight: 400;
    font-size: 0.85em;
}

/* ==========================================================================
   2. Card Body & Grid Layout
   ========================================================================== */
.doctor-card-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 30px;
    direction: rtl; 
}

/* RIGHT COLUMN: Contact & Hours */
.doctor-card-contact {
    margin-bottom: 20px;
}

.doctor-card-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #334155;
}

.doctor-card-phone-primary {
    display: block;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    margin-bottom: 8px;
}

.doctor-card-address {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 5px;
}

/* Centered Hours Table */
.doctor-card-hours-table {
    margin: 0 auto; 
    width: 90%; 
    max-width: 300px;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #334155;
}

.doctor-card-hours-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.doctor-card-hours-table td:first-child {
    text-align: right;
    font-weight: 500;
}

.doctor-card-hours-table td:last-child {
    text-align: left;
    color: #475569;
}

.doctor-card-hours-table .closed td {
    color: #ef4444; 
    font-weight: bold;
}

/* LEFT COLUMN: Enhanced Rating & Buttons */
.doctor-card-rating {
    background: #fffbeb; 
    border: 1px solid #fef3c7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
    height: 100%; 
    text-align: center;
    margin-bottom: 20px;
}

.doctor-card-rating-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #d97706;
    line-height: 1;
    margin-bottom: 10px;
}

.doctor-card-rating span:not(.doctor-card-rating-value) {
    color: #64748b;
    font-size: 0.95rem;
    margin: 2px 0;
}

/* Action Buttons */
.doctor-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.doctor-card-btn-primary {
    background-color: #2563eb;
    color: white;
}

.doctor-card-btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

/* ==========================================================================
   3. Patient Description & Tips
   ========================================================================== */
.doctor-card-description {
    grid-column: 1 / -1; 
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.doctor-patient-tips {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.doctor-patient-tips h2 {
    color: #1e293b;
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.doctor-patient-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-patient-tips li {
    line-height: 1.8;
    color: #475569;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.doctor-patient-tips li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   4. Media Queries
   ========================================================================== */
@media (max-width: 600px) {
    .doctor-card-body {
        grid-template-columns: 1fr;
    }
}

/* --- Tips Section Container --- */
.doctor-patient-tips {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    direction: rtl; /* Ensures Right-to-Left flow for Arabic */
}

/* --- Section Heading --- */
.doctor-patient-tips h2 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

/* Decorative blue line under the title */
.doctor-patient-tips h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background-color: #3b82f6;
}

/* --- List Styling --- */
.doctor-patient-tips ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
}

.doctor-patient-tips li {
    position: relative;
    padding-right: 35px; /* Space for the custom icon on the right */
    margin-bottom: 18px;
    line-height: 1.7;
    color: #475569;
    font-size: 1rem;
}

/* --- Custom Medical Icon (The Dot/Check) --- */
.doctor-patient-tips li::before {
    content: "✓"; /* You can use a bullet "•" or icon */
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: #eff6ff; /* Light blue background for the icon */
    color: #3b82f6; /* Blue icon color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Hover effect for interactive feel */
.doctor-patient-tips li:hover {
    color: #1e293b;
    transform: translateX(-5px); /* Gentle slide to the left on hover */
    transition: all 0.2s ease-in-out;
}
a.doctor-card-phone-primary.phone-link.call-button {
    direction: ltr;
}