/* Mae Moh Hospital Website Custom Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Athiti', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
#header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    color: #0d6efd !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #0d6efd;
    color: white;
}

/* Main Content */
.main-content {
    margin-top: 0px; /* Account for fixed header */
}

/* Complaints Page Header */
.page-header {
    background: linear-gradient(145deg, #0d6efd 0%, #0056b3 10%, #004085 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
}

.page-header .lead {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.6;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.page-header i.fa-comments {
    animation: fadeInScale 1s ease-out 0.5s both;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Cards */
.contact-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.contact-icon-wrapper {
    position: relative;
    display: inline-block;
}

.contact-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon-circle::before {
    width: 120px;
    height: 120px;
}

.contact-card:hover .contact-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.contact-card .card-title {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.contact-card .card-text strong {
    font-size: 1.1rem;
    color: #2c3e50 !important;
}

/* Footer Styles Enhancement */
.hospital-info-section .lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
}

.social-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-link:hover::before {
    width: 60px;
    height: 60px;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.2);
    border: 2px solid rgba(24, 119, 242, 0.3);
}

.social-link.facebook img {
    position: relative;
    top: 1px; /* Fine-tune vertical centering */
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.line:hover {
    background: #00c300;
}

.contact-info-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.contact-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.contact-text span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 500px;
}

.hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: center;
}

.carousel-caption h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Quick Info Section */
.quick-info {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.quick-info i {
    opacity: 0.9;
}

.quick-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* News Section */
.news-section {
    background-color: white;
}

.nav-pills .nav-link {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.nav-pills .nav-link:not(.active) {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-color: transparent;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-image {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    z-index: 10;
    clear: both;
}

footer h5 {
    color: #3498db !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #3498db !important;
    transform: translateX(5px);
}

footer .row {
    margin-bottom: 0;
}

footer .col-md-4,
footer .col-md-6 {
    margin-bottom: 1.5rem;
}

footer .col-md-4:last-child,
footer .col-md-6:last-child {
    margin-bottom: 0;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) !important;
    color: #3498db !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .hero-slider .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .quick-info .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Utility Classes */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    footer {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        color: #000;
        background: white;
    }
}

/* === News Widget Section V3 === */
.news-widget-section {
    background-color: #f8f9fa;
}

.news-widget-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.news-widget-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.news-widget-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.news-widget-body {
    padding: 0.5rem 0;
}

.news-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-widget-item {
    margin: 0;
}

.news-widget-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid #f5f5f5;
}

.news-widget-item:last-child .news-widget-link {
    border-bottom: none;
}

.news-widget-link:hover {
    background-color: #f8f9fa;
}

.news-widget-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.news-widget-link:hover .news-item-title {
    color: #0d6efd;
}

.news-widget-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6c757d;
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: 1rem;
}

.news-item-date {
    font-size: 0.85rem;
}

.arrow-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.news-widget-link:hover .arrow-icon {
    transform: translateX(5px);
}

.news-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: #fff;
}

/* Category Badge Colors */
.news-category-badge[data-category="general-pr"] { background-color: #0d6efd; }
.news-category-badge[data-category="tender-quotation"] { background-color: #0d6efd; }
.news-category-badge[data-category="job-application"] { background-color: #0dcaf0; color: #212529; }
.news-category-badge[data-category="financial-reports"] { background-color: #ffc107; color: #212529; }
.news-category-badge[data-category="procurement-plans"] { background-color: #6c757d; }
/* Add a default color */
.news-category-badge { background-color: #6c757d; }


.news-widget-footer {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* === Hospital Network Page Styles === */
.hospital-network {
    background-color: #f8f9fa;
}

.section-title-underline {
    display: inline-block;
    border-bottom: 4px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.h-network-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.h-network-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.h-network-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.h-network-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.h-network-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #fff; /* Change background to white or transparent */
    border-radius: 50%;
    padding: 5px; /* Add some padding around the logo */
    margin-right: 1rem;
    border: 1px solid #e0e0e0; /* Add a subtle border */
}

.h-network-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use contain to ensure the whole logo is visible */
}

.h-network-title .card-title {
    font-weight: 700;
    color: #343a40;
    font-size: 1.25rem;
}

.badge.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0056b3;
    font-weight: 600;
}

.h-network-card-content .card-text {
    display: flex;
    align-items: flex-start;
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.h-network-card-content .card-text i {
    margin-top: 4px; /* Align icon with first line of text */
}

.h-network-card-footer {
    padding: 0 1.75rem 1.75rem;
    background-color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* === History Section Styles === */
.history-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%);
    border-radius: 20px;
    z-index: -1;
}

.history-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.history-card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    padding: 2rem;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.history-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.history-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.history-card:hover .history-card-icon::before {
    width: 120px;
    height: 120px;
}

.history-card-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.history-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.history-content {
    padding: 3rem;
}

.history-timeline {
    position: relative;
}

.timeline-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: #0d6efd;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-item p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
}

.timeline-item:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .history-card h1 {
        font-size: 2rem;
    }

    .history-card-icon {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }

    .history-card-icon i {
        font-size: 2rem;
    }

    .history-content {
        padding: 2rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item p {
        font-size: 1.1rem;
    }
}

/* === New Service Schedule Card Styles === */
.service-schedule-section .container {
    max-width: 1200px;
}

.schedule-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e9ecef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.schedule-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.schedule-card.schedule-sun .schedule-card-header { background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.schedule-card.schedule-mon .schedule-card-header { background: linear-gradient(135deg, #fef9c3, #fef08a); }
.schedule-card.schedule-tue .schedule-card-header { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.schedule-card.schedule-wed .schedule-card-header { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.schedule-card.schedule-thu .schedule-card-header { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.schedule-card.schedule-fri .schedule-card-header { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.schedule-card.schedule-sat .schedule-card-header { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.schedule-card .day-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.schedule-card .day-time {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.schedule-card .today-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.schedule-card.today {
    border: 2px solid #2563eb;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.schedule-card.today .schedule-card-header {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.schedule-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.clinic-list {
    margin: 0;
    padding: 0;
}

.clinic-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #334155;
}

.clinic-list li:last-child {
    margin-bottom: 0;
}

.clinic-list li i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 0.75rem;
    color: #94a3b8;
}

/* Add colors to icons from bootstrap text colors */
.clinic-list li .text-primary { color: #2563eb !important; }
.clinic-list li .text-secondary { color: #64748b !important; }
.clinic-list li .text-success { color: #16a34a !important; }
.clinic-list li .text-danger { color: #dc2626 !important; }
.clinic-list li .text-warning { color: #f59e0b !important; }
.clinic-list li .text-info { color: #0ea5e9 !important; }

/* Gallery Modal Navigation Styles */
#galleryModal .modal-body {
    padding: 2rem;
}

#galleryModal #prevBtn,
#galleryModal #nextBtn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#galleryModal #prevBtn:hover,
#galleryModal #nextBtn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#galleryModal #prevBtn i,
#galleryModal #nextBtn i {
    color: #333;
}