/* 
* Điện Lạnh Anh Trần - Main Stylesheet
* Author: Claude 3.7 - 2023
* Description: Core CSS file for the Điện Lạnh Anh Trần website
*/

/*------------------------------
 * Global Styles
 ------------------------------*/
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --body-font: 'Roboto', sans-serif;
    --heading-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-heading h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    transform: translateX(-50%);
}

/*------------------------------
 * Header Styles
 ------------------------------*/
.header-top {
    font-size: 0.9rem;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/*------------------------------
 * Hero Section Styles
 ------------------------------*/
.hero-section {
    position: relative;
}

.carousel-item {
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    object-fit: cover;
    height: 50vh;
    min-height: 350px;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

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

.hero-gradient-bg {
    background: linear-gradient(120deg, #4f8cff 0%, #a6e1fa 100%);
    min-height: 240px;
    border-radius: 0;
    position: relative;
    width: 100%;
    box-shadow: 0 4px 24px rgba(79, 140, 255, 0.15);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .hero-gradient-bg {
        min-height: 140px;
        border-radius: 0;
    }
    .hero-gradient-bg h1 {
        font-size: 1.5rem;
    }
    .hero-gradient-bg p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Hiển thị duy nhất slide active; tránh chồng lên nhau */
    #homeCarousel .carousel-item{display:none;height:auto;min-height:auto;}
    #homeCarousel .carousel-item.active{display:block;}
    .hero-gradient-bg{
        min-height:200px;
        overflow:visible;
        padding:16px 12px 16px;
        align-items:center;
        justify-content:flex-start;
        border-radius: 0;
    }
    .hero-gradient-bg h1{line-height:1.25;text-align:center;font-size:1.15rem;margin-bottom:.5rem;}
    .hero-gradient-bg p{font-size:.9rem;margin-bottom:0;}
    .carousel-control-prev, .carousel-control-next{top:50%;transform:translateY(-50%);opacity:0.7;}
    .hero-gradient-bg a.btn{
        background:#0d6efd;
        color:#fff;
        border:none;
        padding:.55rem 1.1rem;
        font-size:.9rem;
        margin-top:12px;
    }
    /* Ẩn chỉ báo slide để tránh che nút */
    #homeCarousel .carousel-indicators{display:none;}
}

/*------------------------------
 * USP Section Styles
 ------------------------------*/
.usp-section .card {
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.usp-section .card:hover {
    transform: translateY(-5px);
}

.usp-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Enhanced USP Cards */
.usp-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
    position: relative;
}

.usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.usp-card:hover::before {
    left: 100%;
}

.usp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

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

.usp-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.usp-card:hover .usp-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.stats-item {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stats-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.stats-number {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .usp-icon {
        width: 60px;
        height: 60px;
    }
    
    .usp-card {
        margin-bottom: 20px;
    }
}

/*------------------------------
 * Services Section Styles
 ------------------------------*/
.service-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

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

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

/* Giới hạn mô tả chỉ 3 dòng */
.service-card .service-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service card image uniform 4:3 aspect ratio */
.service-card .service-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* End service card image style */

/*------------------------------
 * CTA Section Styles
 ------------------------------*/
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #ff8a80 100%);
    z-index: 0;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/cta-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.cta-content {
    z-index: 2;
    position: relative;
}

.cta-buttons {
    z-index: 2;
    position: relative;
}

.cta-phone {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333 !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.cta-phone:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    color: #333 !important;
}

.cta-booking {
    background: rgba(255, 255, 255, 0.95);
    color: #333 !important;
    border: 2px solid #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-booking:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    color: #333 !important;
}

@media (max-width: 768px) {
    .cta-buttons {
        text-align: center !important;
    }
    
    .cta-phone,
    .cta-booking {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/*------------------------------
 * Booking Section Styles
 ------------------------------*/
.booking-section {
    position: relative;
}

.booking-section .form-control {
    border-radius: 0.25rem;
}

.feature-icon {
    min-width: 40px;
    font-size: 2rem;
}

/*------------------------------
 * Latest Posts Section Styles
 ------------------------------*/
.blog-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

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

.blog-card .post-meta {
    font-size: 0.8rem;
}

.blog-card .card-footer {
    border-top: none;
    background-color: transparent;
}

/*------------------------------
 * Testimonials Section Styles
 ------------------------------*/
.testimonial-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar img {
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.1;
}

#testimonialCarousel .carousel-control-prev, 
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: 5%;
}

#testimonialCarousel .carousel-control-next {
    right: 5%;
}

/*------------------------------
 * Footer Styles
 ------------------------------*/
.footer {
    position: relative;
    background-color: #343a40;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/footer-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li a {
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    padding-left: 5px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-contact li {
    margin-bottom: 15px;
}

.footer-contact li i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/*------------------------------
 * Back to Top Button
 ------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0a58ca;
}

/*------------------------------
 * Fixed Contact Buttons
 ------------------------------*/
.fixed-contact {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
}

.fixed-contact a {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fixed-contact a:hover {
    transform: translateX(5px);
    background-color: #0a58ca;
    color: #fff;
}

.fixed-contact a i,
.fixed-contact a img {
    margin-right: 8px;
}

/*------------------------------
 * Service Detail Page
 ------------------------------*/
.service-detail-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.service-detail-img img {
    width: 100%;
    height: auto;
}

.price-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.process-step {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/*------------------------------
 * Blog/Post Pages
 ------------------------------*/
.blog-list-img {
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.post-detail-img {
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar .card {
    border-radius: 10px;
    margin-bottom: 2rem;
}

.blog-sidebar h4 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.blog-sidebar h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.recent-post {
    display: flex;
    margin-bottom: 15px;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/*------------------------------
 * Booking Page
 ------------------------------*/
.booking-form-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/*------------------------------
 * Contact Page
 ------------------------------*/
.contact-info-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.contact-info-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/*------------------------------
 * Responsive Styles
 ------------------------------*/
@media (max-width: 992px) {
    .carousel-item {
        height: 30vh;
        min-height: 250px;
    }
    
    .carousel-item img {
        height: 30vh;
        min-height: 250px;
    }
    
    .carousel-caption {
        max-width: 80%;
    }
    
    .fixed-contact {
        left: 20px;
        bottom: 20px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption {
        max-width: 100%;
        padding: 10px;
    }
    
    .carousel-caption h1, 
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 20vh;
        min-height: 150px;
    }
    
    .carousel-item img {
        height: 20vh;
        min-height: 150px;
    }
    
    .carousel-caption {
        max-width: 95%;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .fixed-contact span {
        display: none;
    }
    
    .fixed-contact a {
        width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
    }
    
    .fixed-contact a i,
    .fixed-contact a img {
        margin-right: 0;
    }
}

/* Custom Service List Card Styles */
.services .service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.services .service-card:hover {
    transform: translateY(-5px);
}
.services .service-card img.card-img-top {
    height: 240px;
    object-fit: cover;
    width: 100%;
}
.services .service-card .card-body {
    padding: 1rem;
}

/*------------------------------
 * Filter Modal btn-check Toggles Fix
 ------------------------------*/
#filterModal .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}
#filterModal input.btn-check + label.btn {
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
}
#filterModal input.btn-check:checked + label.btn {
    color: var(--primary) !important;
    background-color: #e7f1ff !important;
    border-color: var(--primary) !important;
}
#filterModal input.btn-check:focus + label.btn,
#filterModal input.btn-check:active + label.btn {
    outline: none !important;
    box-shadow: none !important;
}

/*------------------------------
 * Product List Image Container (restore)
 ------------------------------*/
.image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f8f8;
}
.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/*------------------------------
 * Hero Carousel Override (ensure slide height matches content)
 ------------------------------*/
#homeCarousel .carousel-item{
    height:auto !important;
    min-height:0 !important;
}

/* Ensure hero carousel controls stay above content */
#homeCarousel .carousel-control-prev,
#homeCarousel .carousel-control-next{
    z-index: 5;
}

/*------------------------------
 * Modern Navigation Styles
 ------------------------------*/
/* Navbar hiện đại với gradient background */
.modern-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modern-navbar.scrolled {
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.modern-navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.modern-navbar .navbar-brand img {
    height: 45px;
    margin-right: 10px;
    filter: brightness(1.1);
}

.modern-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 2px;
}

.modern-navbar .navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modern-navbar .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Dropdown menu hiện đại */
.modern-navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 250px;
    white-space: nowrap;
}

/* Dropdown hover states handled in media query below */

/* Prevent dropdown from closing when moving cursor */
@media (min-width: 992px) {
    .modern-navbar .dropdown {
        position: relative;
    }
    
    .modern-navbar .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        z-index: 1050;
    }
    
    .modern-navbar .dropdown:hover .dropdown-menu,
    .modern-navbar .dropdown-menu:hover {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Auto-adjust position for dropdowns near screen edge */
    .modern-navbar .dropdown:last-child .dropdown-menu,
    .modern-navbar .dropdown:nth-last-child(2) .dropdown-menu {
        left: auto;
        right: 0;
        transform: translateY(-10px);
    }
    
    .modern-navbar .dropdown:last-child:hover .dropdown-menu,
    .modern-navbar .dropdown:nth-last-child(2):hover .dropdown-menu,
    .modern-navbar .dropdown:last-child .dropdown-menu:hover,
    .modern-navbar .dropdown:nth-last-child(2) .dropdown-menu:hover {
        transform: translateY(0);
    }
    
    /* Create hover area to prevent dropdown closing */
    .modern-navbar .dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 5px;
        background: transparent;
        z-index: 1049;
    }
}

.modern-navbar .dropdown-item {
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.modern-navbar .dropdown-item i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
    font-size: 13px;
}

.modern-navbar .dropdown-item:hover i {
    color: #fff;
}

/* CTA Button hiện đại */
.modern-navbar .btn-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff !important;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.modern-navbar .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
}

/* Mobile Sidebar CTA Button */
.mobile-sidebar-nav .btn-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff !important;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 20px 20px 10px 20px;
    width: calc(100% - 40px);
}

.mobile-sidebar-nav .btn-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
    color: #fff !important;
    text-decoration: none;
    animation: mobileCTAPulse 2s infinite;
}

.mobile-sidebar-nav .btn-cta i {
    margin-right: 8px;
    font-size: 13px;
}

/* CTA Button Container */
.mobile-sidebar-nav .nav-item:last-child {
    margin-top: 20px;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.mobile-sidebar-nav .nav-item:last-child::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.mobile-sidebar-nav .btn-cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.mobile-sidebar-nav .btn-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.1s ease;
}

/* Pulse animation for mobile CTA button */
@keyframes mobileCTAPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
}



/* Mobile Sidebar Navigation */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.mobile-sidebar-header .brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.mobile-sidebar-header .brand img {
    height: 35px;
    margin-right: 10px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-sidebar-nav {
    padding: 10px 0 20px 0;
    overflow-y: auto;
    flex: 1;
    max-height: none;
}

.mobile-sidebar-nav .nav-item {
    margin: 1px 0;
    position: relative;
    clear: both;
}

.mobile-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-sidebar-nav .nav-link:hover,
.mobile-sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #fff;
    transform: translateX(5px);
}

.mobile-sidebar-nav .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.mobile-sidebar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 5px 0 0 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    border: none;
    box-shadow: none;
    position: static;
    width: 100%;
    transform: scaleY(0);
    transform-origin: top;
    display: block;
}

.mobile-sidebar-nav .dropdown-menu.show {
    max-height: 300px;
    padding: 8px 0;
    opacity: 1;
    transform: scaleY(1);
}

.mobile-sidebar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 35px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 12px;
    font-size: 13px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    width: calc(100% - 24px);
    box-sizing: border-box;
}

.mobile-sidebar-nav .dropdown-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    text-decoration: none;
}

.mobile-sidebar-nav .dropdown-item i {
    width: 16px;
    margin-right: 12px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}

.mobile-sidebar-nav .dropdown-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sidebar-nav .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    border: none;
    font-size: 12px;
}

.mobile-sidebar-nav .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.mobile-sidebar-nav .dropdown-toggle {
    position: relative;
    width: 100%;
    justify-content: space-between;
}

.mobile-sidebar-nav .dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}

.mobile-sidebar-nav .dropdown {
    width: 100%;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.mobile-sidebar-nav .dropdown.show {
    z-index: 2;
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle .hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
}

.mobile-nav-toggle .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle .hamburger span:nth-child(1) {
    transform-origin: 0% 0%;
}

.mobile-nav-toggle .hamburger span:nth-child(2) {
    margin: 6px 0;
}

.mobile-nav-toggle .hamburger span:nth-child(3) {
    transform-origin: 0% 100%;
}

.mobile-nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
}

.mobile-nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* Category Navigation */
.category-nav {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
    position: relative;
    z-index: 999;
    margin: 0;
}

.category-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-nav:hover::before {
    opacity: 1;
}

.category-nav .container {
    padding: 0 15px;
}

.category-nav .nav {
    margin: 0;
    padding: 0;
    gap: 0;
}

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

.category-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 2px;
    border: 1px solid transparent;
    text-decoration: none !important;
    display: inline-block;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.category-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: #fff !important;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.category-nav .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-nav .nav-link.active:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .modern-navbar .navbar-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .modern-navbar .container {
        position: relative;
    }
    
    /* Hide dropdowns on mobile - use sidebar instead */
    .modern-navbar .dropdown-menu {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Adjust dropdown width for medium screens */
    .modern-navbar .dropdown-menu {
        min-width: 180px;
        max-width: 220px;
    }
    
    .modern-navbar .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Category nav for medium screens */
    .category-nav .nav-link {
        padding: 7px 14px;
        font-size: 12px;
        margin: 0 1px;
    }
}

@media (min-width: 1200px) {
    /* Optimize for large screens */
    .category-nav .container {
        max-width: 1200px;
    }
    
    .category-nav .nav {
        justify-content: center;
    }
    
    .category-nav .nav-link {
        margin: 0 3px;
    }
}

@media (max-width: 575.98px) {
    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.1rem;
    }
    
    .modern-navbar .navbar-brand img {
        height: 35px;
    }
    
    /* Category nav responsive */
    .category-nav {
        padding: 6px 0;
    }
    
    .category-nav .nav-link {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 1px;
        border-radius: 18px;
    }
    
    /* Mobile sidebar CTA button responsive */
    .mobile-sidebar-nav .btn-cta {
        padding: 12px 16px;
        font-size: 13px;
        margin: 15px 15px 10px 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .category-nav {
        padding: 6px 0;
    }
    
    .category-nav .nav {
        justify-content: flex-start !important;
        padding: 0 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }
    
    .category-nav .nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-nav .nav-link {
        font-size: 12px;
        padding: 6px 14px;
        margin: 0 2px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .category-nav .nav-link {
        padding: 5px 10px;
        font-size: 11px;
        margin: 0 1px;
    }
    
    /* Extra small mobile CTA button */
    .mobile-sidebar-nav .btn-cta {
        padding: 10px 14px;
        font-size: 12px;
        margin: 15px 12px 10px 12px;
        width: calc(100% - 24px);
    }
    
    .mobile-sidebar-nav .nav-item:last-child {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* Enhanced Booking Form */
.booking-card {
    border-radius: 20px !important;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Disabled hover effect for booking card */
.booking-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.booking-card .card-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border: none;
}

.booking-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Disabled hover effect for booking submit button */
.booking-submit:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: none;
    box-shadow: none;
}

/* Ensure no hover effects on submit booking button */
#submitBooking:hover,
.booking-submit.btn-primary:hover,
#quickBookingForm .btn-primary:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.form-floating label i {
    color: #6c757d;
}

/* Form Select Optimization */
#home_service_type,
#home_date,
#home_time,
#service_type,
#date,
#time {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#home_service_type:focus,
#home_date:focus,
#home_time:focus,
#service_type:focus,
#date:focus,
#time:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

/* Remove hover effects from form inputs */
#home_service_type:hover,
#home_date:hover,
#home_time:hover,
#service_type:hover,
#date:hover,
#time:hover,
#name:hover,
#phone:hover,
#address:hover,
#message:hover,
.form-control:hover,
.form-select:hover {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Select dropdown styling */
.form-select {
    font-size: 14px;
}

.form-select option {
    padding: 8px 12px;
    font-size: 14px;
}

/* Mobile select optimization */
@media (max-width: 768px) {
    #home_service_type,
    #home_date,
    #home_time,
    #service_type,
    #date,
    #time {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .form-select {
        font-size: 13px;
    }
}

/* Global override - Remove all hover effects from booking form */
#quickBookingForm *:hover,
.booking-card *:hover {
    transition: none !important;
}

#quickBookingForm:hover,
.booking-card:hover {
    transition: none !important;
} 