.banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    filter: brightness(0.8);
}

.caption {
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    max-width: 900px;
    padding: 0 20px;
}

.welcome-banner-image {
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.welcome-text-centered { 
    text-align: center; 
    padding: 40px 0;
}

.caption-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-family: 'Be Vietnam Pro', sans-serif;
}

.caption-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-family: 'Quicksand', sans-serif;
}

.btn-banner-cta {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-banner-cta:hover {
    background-color: #E64A19;
}

.prev-btn, .next-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none;
    padding: 15px; 
    cursor: pointer; 
    font-size: 18px; 
    z-index: 10;
    transition: background 0.3s;
}

.next-btn { right: 0; }
.prev-btn { left: 0; }
.prev-btn:hover, .next-btn:hover { background: rgba(0,0,0,0.8); }

@media (max-width: 768px) {
    .caption-title { 
        font-size: 36px; 
    }
    .caption-subtitle { 
        font-size: 16px; 
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.doctor-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; 
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header p {
    font-size: 1.1em;
    color: #555;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.doctor-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.doctor-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 133.33%;
}

.doctor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.doctor-info {
    padding: 15px;
    text-align: center;
}

.doctor-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.doctor-degree {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.view-more-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.doctor-card:hover .view-more-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px); 
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.btn i {
    margin-left: 8px;
    transition: transform 0.2s;
}

.primary-btn {
    background-color:  #0056b3;
    color: white;
    border: 2px solid  #0056b3;
}

.primary-btn:hover {
    background-color:  #0056b3;
    border-color:  #0056b3;
}

.secondary-btn {
    background-color: white;
    color:  #0056b3;
    border: 2px solid #0056b3;
}

.secondary-btn:hover {
    background-color: #e9f5ff;
    color: #0056b3;
}

.btn:hover i {
    transform: translateX(3px);
}

.welcome-text-header {
    text-align: center; 
    padding-top: 50px;
    padding-bottom: 20px;
}

.welcome-text-body {
    text-align: center; 
    padding-top: 20px;
    padding-bottom: 50px;
}

.welcome-text-header h2, .welcome-text-body p {
    text-align: center;
    color: #0056b3; 
    max-width: 800px;
    margin: 15px auto 0 auto;
}

.welcome-banner-container {
    width: 100%;
    max-width: 1200%;
    margin: 0 auto;
    overflow: hidden;
}

.welcome-banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.welcome-text-centered h2 {
    text-align: center;
    color: #0056b3; 
}

.welcome-text-centered p {
    max-width: 800px;
    margin: 15px auto 0 auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-header img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-header-info h2 {
    margin: 0;
    font-size: 1.6em;
}

.modal-body h3 {
    margin-top: 20px;
    color:  #0056b3;
}

.modal-body ul {
    padding-left: 20px;
}

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

.btn-doctor-detail {
    display: inline-block;
    border: 2px solid #0056b3; 
    color: #0056b3;
    padding: 10px 25px;
    margin-top: 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-doctor-detail:hover {
    background-color: #0056b3;
    color: white;
}

.section-services-highlight, .section-promo {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}

.wide-image {
    width: 90%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    margin: 0 auto 30px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.section-services-highlight h2 {
    color: #0056b3;
}

.btn-main-accent {
    display: inline-block;
    background: #0056b3;
    color: white;
    padding: 12px 30px;
    margin-top: 20px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid #0056b3;
    transition: all 0.3s;
}

.btn-main-accent:hover {
    background: white;
    color: #0056b3;
    border: 2px solid #0056b3;
}

.section-promo h2, .section-promo .promo-highlight {
    color: #ee7f6d;
}

.btn-book-now {
    display: inline-block;
    background: #ee7f6d;
    color: white;
    padding: 12px 30px;
    margin-top: 20px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid #ee7f6d;
    transition: all 0.3s;
}

.btn-book-now:hover {
    background: white;
    color: #ee7f6d;
    border: 2px solid #ee7f6d;
}

.service-item i,
.service-item svg {
    font-size: 3rem;
    margin-bottom: 10px;
    height: 3rem;
    width: 3rem;
}

.service-item svg {
    fill: none;
    stroke: #0056b3;
    stroke-width: 20;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
    display: block;
    margin: 0 auto 10px auto; 
}

.service-item i {
    color: #0056b3; 
}

.service-item:hover svg {
    stroke: #E64A19;
}

.service-item:hover p {
    color: #E64A19;
}

.section-services .section-title {
    color: #0056b3; 
}

.section-services {
    background-color: #b7c7e0; 
    padding: 60px 0;
    text-align: center;
}

.section-services .section-title {
    color: #0056b3; 
}

.btn-service-more {
    background-color: #0056b3;
}

.section-services {
    background-color: #b7c7e0;
    padding: 60px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.service-item {
    background-color: white;
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item i {
    font-size: 3rem;
    color: #E64A19;
    margin-bottom: 10px;
}

.service-item p {
    font-weight: 600;
    color: #0056b3;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-service-more {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-service-more:hover {
    background-color: #004494;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card {
        min-width: calc(100% / 2);
    }
}

@media (max-width: 768px) {
    .caption-title { font-size: 36px; }
    .caption-subtitle { font-size: 16px; }

    .doctor-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .news-card {
        min-width: 100%;
    }
    .news-controls {
        justify-content: center;
    }
}
