﻿
/* Enhanced CSS */
:root {
    --primary-color: #4DB6AC;
    --secondary-color: #26A69A;
    --accent-color: #00796B;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    height: 100%;
    margin: 0;
    font-size: 14px;
}

body {
    margin: 0 0 60px 0; /* Gộp margin */
    height: 100%;
    padding-top: 70px; /* điều chỉnh theo chiều cao header thực tế */
}

footer {
    position: relative; /* Hoặc fixed *relative nếu bạn muốn footer luôn hiển thị */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 270px; /* Chiều cao của footer */
    background-color: #343a40; /* Màu nền của footer */
    color: white; /* Màu chữ */

    padding: 0px 0; /* Padding cho footer */
}

.carousel-item video {
    
}

/*Fỏm đặt lịch */
form .form-label {
    font-weight: 600;
}

form .form-control, form .form-select {
    border-radius: .5rem;
}

form .btn {
    padding: .75rem 2rem;
}
/*sua nav*/
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
}

    .navbar-nav .nav-link:hover {
        /*color: #0d6efd;*/
    }
/*Điều chinh nav*/
.navbar-light .navbar-nav .nav-link:hover {
    color: #4CAF50 !important; /* xanh lá cây mềm giống Logo */
    text-decoration: underline;
}
/*tim bac si edit*/
.mt-custom {
    margin-top: 0px; /* Thay đổi giá trị */
}

/*Sua doi them*/
/* Hero Section */
/*them dau*/
.hero-section {
    position: relative;
}



.carousel-item video {
    width: 100%;
    /*height: 520px;*/ /* hoặc chiều cao bạn muốn */
    object-fit: cover;
    height: 85vh;
    min-height: 600px;
}

.hero-main-content h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-main-content h2 {
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.contact-grid {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-category h6 {
    font-size: 0.9rem;
}

.contact-item {
    padding: 2px 0;
}

.online-booking-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.qr-code {
    border: 2px solid white;
    border-radius: 8px;
    padding: 5px;
    background: white;
}
/* Quick Action Bar */
.quick-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(50%);
}

.quick-action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .quick-action-item:hover {
        transform: translateY(-3px);
        color: var(--primary-color);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .quick-action-item.emergency {
        background: #dc3545;
        color: white;
    }

        .quick-action-item.emergency:hover {
            background: #c82333;
            color: white;
        }

    .quick-action-item i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

/* Stats Counter */
.stats-counter-section {
    margin-top: 80px;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-weight: 800;
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(77,182,172,0.9), rgba(38,166,154,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 2rem;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

    .service-link:hover {
        color: var(--accent-color);
    }

/* Doctor Search Section */
.doctor-search-section {
    margin: 100px 0;
}

.search-banner {
    background-image: url('/Images/timbs1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

    .search-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(77,182,172,0.9), rgba(38,166,154,0.8));
    }

.min-vh-60 {
    min-height: 60vh;
}

.search-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.search-form-container {
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.search-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.doctor-search-form .form-control,
.doctor-search-form .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .doctor-search-form .form-control:focus,
    .doctor-search-form .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(77,182,172,0.25);
    }

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dividers */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}




/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*them cuoi*/
.hero-section .carousel-caption {
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 80%;
    max-width: 800px;
}

    .hero-section .carousel-caption h2 {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        font-size: 2.5rem;
    }

/* About Us Section */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(77, 182, 172, 0.1);
}

/* Doctor Search Banner */
.doctor-search-banner {
    background-image: url('/Images/timbs1.jpg');
    background-position: center;
    background-size: cover;
    height: 460px;
    padding-top: 80px;
    margin-top: 80px;
    position: relative;
}

/* Hover Effect */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

/* Emergency Section */
.bg-primary-light {
    background-color: rgba(77, 182, 172, 0.1);
}

.text-overlay {
    padding: 2rem;
    transform: translateY(-20px);
    margin-bottom: 310px;
}


.text-stroke {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 8px rgba(0,0,0,0.5); /* Viền đen dày và đổ bóng đen */
    letter-spacing: 0.5px; /* Giãn chữ để dễ đọc */
}
/* Nếu muốn thêm nền trong suốt phía sau */
.text-overlay-2 {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    border: 2px solid white;
}
/*sua Dich vu*/
/* Container cho ảnh nền dịch vụ */
.service-img-container {
    height: 180px; /* Chiều cao cố định */
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    position: relative;
}

/* Hiệu ứng overlay khi hover */
.card:hover .service-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(77, 182, 172, 0.3); /* Màu overlay khi hover */
    transition: all 0.3s ease;
}

/* Điều chỉnh khoảng cách giữa ảnh và nội dung */
.card-body {
    padding-top: 1.5rem;
}

/*Dieu chinh anh danh gia*/
/* Testimonials Section */
.testimonial-card {
    transition: all 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.testimonial-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4DB6AC;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-content {
    position: relative;
    padding-bottom: 20px;
}

    .testimonial-content::before {
        content: '"';
        font-size: 80px;
        font-family: Georgia, serif;
        color: rgba(77, 182, 172, 0.1);
        position: absolute;
        left: -15px;
        top: -40px;
        line-height: 1;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {

    .carousel-caption-news {
        padding: 1.5rem;
    }
    .hero-section .carousel-caption {
        bottom: 10%;
        width: 90%;
        padding: 1rem;

    }
    

    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    html {
        font-size: 16px;
    }

    .testimonial-content::before {
        font-size: 60px;
        top: -30px;
    }
    .text-stroke {
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        font-size: 1.8rem; /* Giảm kích thước chữ trên mobile */
    }

    .text-overlay p.text-stroke {
        font-size: 1.1rem;
    }

    .hero-section .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .hero-section .carousel-caption p {
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }

    /* news section adjustments */
    #home-news .card .card-title {
        font-size: 1.125rem;
    }

    #home-news .card .card-text {
        font-size: 0.95rem;
    }

    /* trên máy nhỏ, cho tin lớn nằm trên và tin nhỏ xếp dọc */
    #home-news .col-lg-7, #home-news .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #home-news img.card-img-top {
        height: 220px !important;
    }

    .carousel-item video {
        height: 400px;
        min-height: auto;
    }

    .hero-main-content h1 {
        font-size: 1.8rem;
    }

    .hero-main-content h2 {
        font-size: 1.3rem;
    }

    .quick-action-bar {
        position: relative;
        transform: none;
        margin-top: -40px;
    }

    .quick-action-item {
        margin-bottom: 1rem;
    }

    .search-form-wrapper {
        padding: 1.5rem;
        margin: 0 15px;
    }

    .service-icon {
        margin: -40px auto 1rem;
    }
       
    }



    

