
:root {
    --primary-color: #B2A9DF; /* Darker Lavender for better readability */
    --secondary-color: #F5F5F5; /* Light Gray - Per design */
    --accent-color: #B8860B; /* Elegant Gold/Bronze - Per design */
    --text-color: #4A4A4A; /* Darker gray for better readability */
    --white: #ffffff;
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7; /* Increased line-height for better readability */
    background-color: var(--white);
}

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

/* --- Header & Navigation --- */
.header {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem; /* Slightly reduced padding */
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px; /* Adjusted logo size */
    width: 60px;
    border-radius: 50%; /* Bo tròn logo */
    object-fit: cover; /* Giữ tỷ lệ ảnh không bị méo */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Enhanced shadow */
}

.nav-logo-text {
    font-family: 'Great Vibes', cursive; /* Phông chữ viết tay thanh lịch */
    font-size: 2.2rem; /* Tăng kích thước chữ */
    font-weight: 400; /* Phông chữ này không cần quá đậm */
    color: var(--accent-color);
    margin-left: 12px;
    /* Điều chỉnh vị trí một chút để thẳng hàng với logo */
    transform: translateY(4px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-item .nav-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px; /* Pill shape */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-item .nav-button:hover {
    background-color: #a5790a; /* Darker gold on hover */
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* --- Hero Banner --- */
.hero-banner {
    height: 80vh; /* Trở lại chiều cao cố định cho màn hình lớn */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* background-color: transparent; */ /* Xóa để trở về ban đầu */
    background-position: center;
    opacity: 0; /* Ẩn tất cả các slide */
    transition: opacity 2s ease-in-out;
}

.hero-banner-slide:first-child {
    opacity: 1; /* Hiển thị slide đầu tiên */
}

.hero-content {
    /* Đặt hero-content ra ngoài luồng của slider và đảm bảo nó ở trên cùng */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Add text shadow for readability */
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    border: 2px solid transparent;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.cta-button:hover {
    background-color: #b59445;
    border-color: #b59445;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.pillar-content .cta-button-secondary,
.home-cta .cta-button-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* --- General Sections --- */
section {
    padding: 60px 0;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px; /* Reduced margin */
    color: #333;
}

.intro-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 80px 0;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Adjusted margin */
    font-size: 1.1rem;
    color: #666;
}

.hero-feature {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}
.hero-feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.hero-feature h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.pillar-row--reverse {
    flex-direction: row-reverse;
}

.pillar-image {
    flex: 1;
    min-width: 300px;
}

.pillar-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pillar-content {
    flex: 1.2; /* Cho phần text rộng hơn một chút */
}

.pillar-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    color: #333;
    align-items: center;
}

.pillar-content h3 i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.pillar-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

.pillar-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.pillar-content li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.pillar-content li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.home-cta {
    background-color: var(--secondary-color);
    text-align: center;
}

/* --- Services Page --- */
.page-main {
    padding: 40px 0;
}
.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.service-section {
    margin-bottom: 50px;
}

.service-section h2 {
    text-align: left;
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.service-section h2 i {
    margin-right: 15px;
}

.service-notes {
    background-color: #fffaf0; /* Màu nền kem nhẹ (FloralWhite) */
    border-left: 4px solid var(--accent-color); /* Đường viền vàng bên trái */
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}
.service-notes p {
    margin-bottom: 5px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1rem;
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-table thead {
    background-color: #f9f9f9;
}

.price-table th {
    font-weight: 700;
    color: #333;
}

.price-table tr:nth-child(even) {
    background-color: var(--white);
}
.price-table tr:nth-child(odd) { background-color: #fcfcfc; }

.price-table td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}
.price-table td:last-child:not(:nth-child(2)) {
    font-style: italic;
    color: #777;
}

.action-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link--delete {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #d9534f;
    /* Màu đỏ cho hành động xóa */
    font-size: inherit;
    /* Kế thừa kích thước font từ .price-table */
}

/* --- About & Contact Page Specifics --- */
.about-content, .contact-container {
    max-width: 1100px; /* Giới hạn độ rộng tối đa của nội dung */
    margin-left: auto;
    margin-right: auto;
}

/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr; /* Mặc định 1 cột cho di động */
    gap: 30px;
    text-align: center;
}

/* Trên màn hình vừa, hiển thị 2 cột */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Trên màn hình lớn, hiển thị 4 cột */
@media (min-width: 992px) {
    .about-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-section i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.about-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-section p {
    font-size: 1rem;
    color: #666;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Đổi tên .contact-info thành .contact-left cho khớp với HTML */
.contact-left, .contact-form {
    flex: 1;
    min-width: 300px;
}
.contact-info h3, .contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.contact-left p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
.contact-left i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
    margin-top: 4px;
}
.map-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}
.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}
.form-error {
    color: #d9534f; /* Bootstrap's danger color */
    font-size: 0.9rem;
    margin-top: 5px;
}
.form-success-message {
    background-color: #f0fff0; /* Honeydew */
    border-left: 5px solid #28a745; /* Bootstrap's success color */
    padding: 20px;
    border-radius: 8px;
}
.form-success-message h3 {
    color: #28a745;
    margin-top: 0;
}
.form-success-message .cta-button-secondary {
    color: #28a745;
    border-color: #28a745;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: left;
    padding: 20px 0;
    margin-top: 40px;
}
.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media(max-width: 768px) {
    .nav-logo img {
        height: 50px;
        width: 50px;
    }

    .nav-logo-text {
        font-size: 1.8rem; /* Giảm kích thước chữ trên di động */
        margin-left: 10px; /* Giảm khoảng cách với logo */
        transform: translateY(2px); /* Điều chỉnh lại vị trí */
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px; /* Should match header height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item .nav-button {
        padding: 10px 25px;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    
    .hero-banner {
        /* Đặt chiều cao của banner bằng 60% chiều cao của màn hình thiết bị. */
        /* Đây là một giá trị linh hoạt và responsive. */
        height: 30vh;
    }

    .hero-content h1 {
        /* Điều chỉnh lại kích thước chữ cho phù hợp với màn hình di động */
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 0.9rem; /* Giảm kích thước chữ mô tả */
        margin-bottom: 1.5rem; /* Giảm khoảng cách dưới */
    }

    .pillar-row, .pillar-row--reverse {
        flex-direction: column;
        gap: 2rem;
    }

    /* Responsive Table to Card Layout */
    .price-table {
        border: none;
        box-shadow: none;
    }
    .price-table thead {
        display: none; /* Ẩn tiêu đề bảng trên di động */
    }
    .price-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        background: var(--white);
    }
    .price-table td {
        display: block;
        text-align: right; /* Căn phải nội dung */
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    .price-table td:last-child {
        border-bottom: none;
    }
    .price-table td::before {
        content: attr(data-label); /* Lấy nội dung từ data-label */
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
        color: #333;
    }

    /* --- Tối ưu hiển thị Tên Dịch Vụ & Giá trên di động --- */
    /* Bọc 2 ô đầu tiên trong một flex container ảo */
    .price-table tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    /* Các ô không còn là block nữa, bỏ padding mặc định */
    .price-table td { display: contents; }

    /* Định dạng cho tên dịch vụ và giá */
    .price-table td:first-child, .price-table td:nth-child(2) { display: block; }
    .price-table td:first-child::before,
    .price-table td:nth-child(2)::before { display: none; }
    .price-table td:first-child { flex-grow: 1; text-align: left; padding-right: 10px; }
    .price-table td:nth-child(2) { flex-shrink: 0; text-align: right; }

    .contact-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột trên di động */
    }
}

/* --- Standalone Form (Login, Edit) --- */
.standalone-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.standalone-form--small {
    max-width: 450px;
}

@media(max-width: 768px) {
    .standalone-form {
        padding: 20px;
    }
}

/* --- Admin Table Specifics --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    /* Giúp bo góc thead */
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table thead {
    background-color: #f9f9f9;
}

.admin-table th {
    font-weight: 700;
    color: #333;
}

.admin-table tbody tr:hover {
    background-color: #f5f5f5;
}

.admin-table td[data-label="Họ và Tên"] {
    font-weight: 600;
    color: var(--primary-color);
}

/* Bọc bảng trong một div để có thể cuộn ngang trên màn hình nhỏ nếu cần */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Cuộn mượt hơn trên iOS */
}

/* --- Responsive Admin Table (Card Layout) --- */
@media(max-width: 992px) {
    .admin-table {
        border: none;
        box-shadow: none;
    }

    .admin-table thead {
        display: none;
        /* Ẩn tiêu đề bảng trên di động */
    }

    .admin-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: var(--white);
    }

    .admin-table td {
        display: flex;
        /* Sử dụng flexbox để căn chỉnh label và value */
        justify-content: space-between;
        align-items: center;
        text-align: right;
        /* Căn phải nội dung */
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .admin-table td::before {
        content: attr(data-label);
        /* Lấy nội dung từ data-label */
        font-weight: bold;
        text-align: left;
        color: #333;
        padding-right: 15px;
        /* Khoảng cách giữa label và value */
    }

    .admin-table td:last-child {
        border-bottom: none;
    }
}