/* Reset & Base Styles */
:root {
    --primary: #2563EB;
    --primary-light: #EFF5FF;
    --secondary: #10B981;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	scroll-behavior: smooth; /* Tạo hiệu ứng scroll mượt */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1D4ED8;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    border: 1px solid var(--gray);
    color: var(--dark);
    padding: 10px 20px;
	margin-top: 10px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
	padding-top:10px;
}

.logo span {
    color: var(--dark);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    padding: 0 10px;
	margin: 0;
	align-items: center;
}
.navbar ul li {
    margin: 0 12px;
}
.navbar ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--primary);
}

/* Nút Hotline */
.hotline-btn {
    margin-left: 20px;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
	border: solid;
	border-color: #2563EB;
	border-width: 2px;
	border-radius: 3px;
    width: 32px;
    height: 32px;
	align-items: center;
    justify-content: center;
}
.menu-toggle i {
    position: absolute;
    top: 6px;
    left: 7px;
    transition: all 0.3s ease;
}

.menu-toggle .fa-times {
    opacity: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    pointer-events: none; /* Tắt sự kiện cho slide */
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
	z-index:0;
}
.hero-slide .container {
    pointer-events: auto; /* Bật lại cho nội dung */
}
.hero-content {
    position: relative;
    display: inline-block; /* Hoặc width phù hợp */
    padding: 40px;
    border-radius: 8px;
    z-index: 2;
    margin: 20px; /* Khoảng cách với viền slide */
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.9;
    border-radius: inherit;
    z-index: -1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Tuỳ chọn thêm đổ bóng */
}
/* Navigation Arrows */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}
.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
	color: #2563EB;
}

.hero p {
    font-size: 18px;
    color: var(--blue);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Services Section */
.services {
    padding: 40px 0;
    background-color: var(--light);
}
.services h2 {
	color: var(--primary);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

    .service-card a {
        text-decoration: none;
        color: var(--primary);
    }

/* News Section */
.news {
    padding: 40px 0;
    background-color: var(--white);
}
.news h2 {
	color: var(--primary);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-date {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* News Section */
.main-news {
    margin-bottom: 40px;
}

.main-news-card {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-news-card:hover,
.sub-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main-news-card img {
    width: 50%;
    height: auto;
    object-fit: cover;
}
.main-news-card a{
	text-decoration: none;	
}

.main-news-card .news-content {
    padding: 30px;
    width: 50%;
}

.main-news-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.main-news-card .news-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
}

.highlight {
    background: var(--primary);
    color: white !important;
}

/* Tin phụ */
.sub-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sub-news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sub-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sub-news-card a{
	text-decoration: none;	
}

.sub-news-card .news-content {
    padding: 20px;
}

.read-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Doctors Section */
.doctors {
    padding: 0 0;
}

    .doctors h2 {
        color: var(--primary);
    }

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
}

    .doctor-card img {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 20px;
        border: 5px solid var(--primary-light);
    }

    .doctor-card h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .doctor-card p {
        color: var(--gray);
        margin-bottom: 15px;
    }

/* Stats Section */
.stats {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Appointment Section */
.appointment {
    padding: 40px 0;
    background-color: var(--primary-light);
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.appointment-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.appointment-form form {
    display: grid;
    gap: 20px;
}

.appointment-form input,
.appointment-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.appointment-form button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s;
            text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 14px;
}
/* Stats Section */
.stats {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    transition: all 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        transition: left 0.3s;
		order:4;
    }

    .navbar.active {
        left: 0;
    }
	.navbar.active ~ .menu-toggle .fa-bars {
    opacity: 0;

	}
	.navbar.active ~ .menu-toggle .fa-times {
    opacity: 1;
	}
	.navbar.active ~ .container .menu-toggle .fa-bars {
    opacity: 0;
    transform: rotate(90deg);
	}

	.navbar.active ~ .container .menu-toggle .fa-times {
    opacity: 1;
    transform: rotate(0deg);
	}
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        margin: 8px 0;
        width: 100%;
        text-align: left;
    }
    .hotline-btn {
        margin: 15px auto 0;
        width: 80%;
        text-align: center;
        order: 1; /* Đưa lên trên cùng */
    }
	
    .menu-toggle {
        display: flex;
		order: 2; /* Đưa hamburger lên sau logo */
        margin-left: auto; /* Căn phải */
    }
	.toggle-icon {
    position: absolute;
    font-size: 32px;
    color: #2563EB;
    transition: all 0.3s ease;

	}
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .hero {
        height: 500px;
    }
    .hero-content::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .hero-content {
        padding: 25px;
        margin: 15px;
        width: auto;
    }  
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
	    .header .container {
        flex-wrap: wrap; /* Cho phép xuống dòng */
        height: auto;
        padding: 10px 20px;
    }

    .logo img {
        width: 300px; /* Giảm kích thước logo mobile */
        height: auto;
    }

    .btn-primary {
        order: 3; /* Đẩy nút hotline xuống dưới */
        width: 100%;
        margin-top: 10px;
        text-align: center;
    
}