/*
Theme Name: Tổ Ấm Đẹp Theme Clone
Theme URI: https://toamdep.vn/
Author: toamdep.vn
Author URI: https://toamdep.vn/
Description: Giao diện clone trang chủ toamdep.vn thiết kế thi công nội thất chuẩn SEO, nhẹ, mượt và responsive 100%. Tương thích tốt với các tính năng gốc của WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toamdep-theme
*/

/* ----------------------------------------------------
   1. CSS RESET & FONTS
   ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Dancing+Script:wght@700&display=swap');

:root {
    --primary-color: #ffc814;
    --primary-dark: #e0ae0b;
    --text-color: #414549;
    --heading-color: #1c1e21;
    --bg-light: #fffae8;
    --bg-white: #ffffff;
    --bg-gray: #f9f9f9;
    --border-color: #eeeeee;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --font-primary: 'Montserrat', sans-serif;
    --font-handwritten: 'Dancing Script', cursive;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ----------------------------------------------------
   2. CORE UTILITY CLASSES
   ---------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }

.grid {
    display: grid;
    gap: 20px;
}

@media(min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media(min-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Section Common */
section {
    padding: 70px 0;
}

.section-title-wrap {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
}

.section-title .cursive {
    font-family: var(--font-handwritten);
    font-size: 42px;
    color: var(--primary-color);
    display: block;
    margin-bottom: -5px;
    font-weight: normal;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 200, 20, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}

.btn-outline:hover {
    background-color: var(--heading-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-black {
    background-color: var(--heading-color);
    color: #fff;
}

.btn-black:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Micro-animations */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ----------------------------------------------------
   3. HEADER
   ---------------------------------------------------- */
.header-wrapper {
    background-color: var(--bg-white);
    position: relative;
    z-index: 99;
}

.header-wrapper .container {
    max-width: 1400px;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Logo */
.logo {
    flex-shrink: 0;
    white-space: nowrap;
}

.logo img {
    height: 42px;
    width: auto;
}

/* Search Bar */
.search-form-wrap {
    flex: 0 1 450px;
    margin: 0 20px;
}

.search-form-wrap form {
    display: flex;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.search-form-wrap input[type="text"] {
    width: 100%;
    padding: 10px 15px 10px 42px; /* Left padding for search button */
    border: none;
    background: transparent;
    color: var(--text-color);
}

.search-form-wrap button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form-wrap button:hover {
    color: var(--primary-color);
}

/* Quick Nav Icons */
.quick-nav {
    display: flex;
    align-items: center;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 25px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-nav-item:hover {
    color: var(--primary-color);
}

.quick-nav-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    stroke: #888;
    fill: none;
    transition: var(--transition);
}

.quick-nav-item:hover svg {
    stroke: var(--primary-color);
    transform: translateY(-2px);
}

/* Sofa Badge */
.sofa-badge {
    background: linear-gradient(135deg, #ffe380, var(--primary-color));
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 20px;
    font-weight: 700;
    font-size: 11px;
    color: var(--heading-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sofa-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30px;
    height: 200%;
    background: rgba(255,255,255,0.4);
    transform: rotate(30deg);
    animation: shine 4s infinite ease-in-out;
}

@keyframes shine {
    0% { left: -60%; }
    15% { left: 130%; }
    100% { left: 130%; }
}

/* Header Bottom / Main Nav */
.header-bottom {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.main-navigation {
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
}

/* Standard WP Menu structure compatibility */
.main-navigation ul.menu > li,
.main-navigation ul > li {
    position: relative;
}

.main-navigation ul.menu > li > a,
.main-navigation ul > li > a {
    display: block;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-color);
    letter-spacing: 0.5px;
}

.main-navigation ul.menu > li:hover > a,
.main-navigation ul > li:hover > a,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Dropdown styling */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-color);
    padding: 10px 0;
    z-index: 99;
    list-style: none;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.main-navigation ul li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 24px;
}

/* Level 3 child dropdowns */
.main-navigation ul li ul.sub-menu li {
    position: relative;
}

.main-navigation ul li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%; /* Position to the right of parent */
    border-top: none;
    border-left: 3px solid var(--primary-color);
    margin-top: -10px; /* Align with parent top padding */
    box-shadow: 4px 4px 15px rgba(0,0,0,0.12);
}

/* Right-facing chevron for sub-menu parents */
.main-navigation ul li ul.sub-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    float: right;
    margin-top: 6px;
    border-left: 4px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}

/* Hover style for mega menu headers */
.main-navigation ul li ul.sub-menu li.mega-menu-col2:hover > a {
    color: var(--primary-color) !important;
}

/* 2-Column Mega-menu Grid Layout for Level 3 */
.main-navigation ul li ul.sub-menu li.mega-menu-col2 > ul.sub-menu {
    width: 480px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
    padding: 20px;
    border-radius: 0 4px 4px 4px;
}

.main-navigation ul li ul.sub-menu li.mega-menu-col2:hover > ul.sub-menu {
    display: grid;
    animation: fadeIn 0.2s ease;
}

.main-navigation ul li ul.sub-menu li.mega-menu-col2 > ul.sub-menu li {
    width: 100%;
}

.main-navigation ul li ul.sub-menu li.mega-menu-col2 > ul.sub-menu li a {
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
}

.main-navigation ul li ul.sub-menu li.mega-menu-col2 > ul.sub-menu li a:hover {
    padding-left: 6px;
    background: transparent;
    border-bottom-color: var(--primary-color);
}

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

/* Sticky Header styling */
.header-bottom.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Burger Mobile Menu */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
}

/* ----------------------------------------------------
   4. HERO / BANNER
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    max-height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    color: #fff;
}


.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-left {
    flex: 1 1 600px;
}

.hero-title-main {
    font-size: 5vw;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #fffae8; /* Cream/Beige tone */
}

@media(min-width: 1200px) {
    .hero-title-main { font-size: 56px; }
}

.hero-title-script {
    font-family: var(--font-handwritten);
    font-size: 4.2vw;
    color: var(--primary-color);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    font-weight: normal;
    padding-left: 20px;
}

@media(min-width: 1200px) {
    .hero-title-script { font-size: 48px; }
}

.hero-right {
    flex: 0 1 350px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

@media(max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero-right {
        margin-bottom: 0;
    }
}

/* ----------------------------------------------------
   5. SERVICES SECTION (DỊCH VỤ TRỌN GÓI)
   ---------------------------------------------------- */
.services-section {
    background-size: cover;
    background-position: center;
    position: relative;
}

.services-grid-wrap {
    align-items: center;
}

.services-intro {
    padding-right: 30px;
}

.services-intro h3 {
    font-family: var(--font-handwritten);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: normal;
}

.services-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 35px 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    opacity: 0.8;
}

/* ----------------------------------------------------
   6. PROJECTS SECTION (CÁ NHÂN HÓA KHÔNG GIAN)
   ---------------------------------------------------- */
.projects-section {
    background-color: var(--bg-white);
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.project-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-bg {
    transform: scale(1.08);
}

/* Watermark logo on top-left of cards */
.project-watermark {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.project-watermark svg {
    margin-right: 5px;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 1;
}

/* Menu Dropdown Indicators */
.main-navigation ul.menu > li.menu-item-has-children > a::after,
.main-navigation ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}

.main-navigation ul.menu > li.menu-item-has-children:hover > a::after,
.main-navigation ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    color: #fff;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.projects-more-btn {
    text-align: center;
    margin-top: 40px;
}

/* ----------------------------------------------------
   6.5. IMAGE CONTENT & MEDIA GRID (MISSING HOME SECTIONS)
   ---------------------------------------------------- */
.br-image-content-v3 {
    background-color: #fbf9f4;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.br-image-content-v3__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.br-image-content-v3__col.content {
    flex: 1 1 450px;
}

.br-image-content-v3__col.image {
    flex: 1 1 450px;
    text-align: center;
}

.br-image-content-v3__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.br-image-content-v3__image img:hover {
    transform: translateY(-3px);
}

.br-media-grid-v3__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.br-media-grid-v3__media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}

.br-media-grid-v3__media:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ----------------------------------------------------
   7.5. VIDEO SLIDER SECTION
   ---------------------------------------------------- */
.br-video-slider {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.br-video-slider__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.br-video-slider__content {
    flex: 1 1 250px;
}

.br-video-slider__video {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.br-video-slider__iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.br-video-slider__iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.br-video-slider__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.br-video-slider__video-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    aspect-ratio: 16/9;
}

.br-video-slider__video-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 200, 20, 0.4);
}

.br-video-slider__image {
    width: 100%;
    height: 100%;
}

.br-video-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.br-video-slider__video-item:hover .br-video-slider__image img {
    transform: scale(1.05);
}

@media(max-width: 991px) {
    .br-image-content-v3 {
        padding: 40px 20px;
    }
    .br-media-grid-v3__images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ----------------------------------------------------
   7. SHOWCASE & VIDEO SECTION
   ---------------------------------------------------- */
.showcase-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.showcase-content {
    padding-right: 40px;
}

.showcase-content .title-accent {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.showcase-content p {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.showcase-video-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    aspect-ratio: 16/9;
}

.showcase-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------------------------------
   8. TESTIMONIALS (ĐÁNH GIÁ KHÁCH HÀNG)
   ---------------------------------------------------- */
.testimonials-section {
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin: 10px;
    border: 1px solid var(--border-color);
}

@media(min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media(min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color);
}

.testimonial-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-screenshot {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ----------------------------------------------------
   9. BLOG / ARTICLES SECTION
   ---------------------------------------------------- */
.blog-section {
    background-color: var(--bg-white);
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--heading-color);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.blog-meta-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .blog-meta-title {
    opacity: 1;
}

.blog-meta-title h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
}

/* ----------------------------------------------------
   10. FOOTER
   ---------------------------------------------------- */
.footer-container {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    font-size: 13px;
    color: var(--text-color);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

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

.footer-column p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-color);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Social icons & map */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-map-wrap {
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
    height: 150px;
}

.footer-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* ----------------------------------------------------
   11. FLOATING CHAT BUTTONS
   ---------------------------------------------------- */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.float-btn.fb { background-color: #0084ff; }
.float-btn.zalo { background-color: #0068ff; }
.float-btn.phone { background-color: #4caf50; }

.float-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.float-tooltip {
    position: absolute;
    right: 65px;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pulse animation for phone */
.float-btn.phone::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    z-index: -1;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ----------------------------------------------------
   12. MOBILE MENU DRAWER
   ---------------------------------------------------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
}

.mobile-drawer-search {
    margin-bottom: 20px;
}

.mobile-drawer-search form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.mobile-drawer-search input {
    flex-grow: 1;
    padding: 8px 12px;
    border: none;
    font-size: 13px;
}

.mobile-drawer-search button {
    background: #eee;
    border: none;
    padding: 0 12px;
    cursor: pointer;
}

.mobile-drawer-menu {
    overflow-y: auto;
    flex-grow: 1;
}

/* Mobile sub-menus */
.mobile-drawer-menu ul li {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-drawer-menu ul li a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--heading-color);
}

.mobile-drawer-menu ul li ul.sub-menu {
    padding-left: 15px;
    background: #fafafa;
    border-left: 2px solid var(--primary-color);
}

.mobile-drawer-menu ul li ul.sub-menu li a {
    font-weight: 500;
    font-size: 13px;
    padding: 8px 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* ----------------------------------------------------
   13. RESPONSIVE DESIGN ADJUSTMENTS
   ---------------------------------------------------- */
@media(max-width: 1180px) {
    .header-top {
        padding: 10px 0;
    }
    .logo img {
        height: 32px;
    }
    .search-form-wrap {
        flex: 1;
        margin: 0 10px;
    }
    .quick-nav {
        display: none;
    }
    .header-bottom {
        display: none; /* Hide main horizontal navigation on tablet/mobile */
    }
    .mobile-nav-toggle {
        display: block;
    }
}

@media(max-width: 767px) {
    section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .section-title .cursive {
        font-size: 32px;
    }
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    .hero-side-text {
        margin-top: 15px;
        margin-left: 0;
        font-size: 14px;
    }
    .services-intro {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    .showcase-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .search-form-wrap {
        display: none; /* Hide top search bar on small mobiles, search is in drawer */
    }
}
