/**
 * Main CSS file cho theme Vidowebs
 * 
 * @package Vidowebs
 * @version 1.0.0
 */

/* ===================================
   CUSTOM FONTS
   =================================== */

@font-face {
    font-family: 'Vladimir';
    src: url('../font/VLADIMIR.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   RESET & GLOBAL STYLES
   =================================== */

:root {
    --color-primary: #b2733b;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
}

@supports (overflow: clip) {
    body {
        overflow-x: clip;
    }
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* Fix icon sizes in header */
.header-topbar img {
    width: 20px !important;
    height: 20px !important;
    max-width: none !important;
}

/* Fix only info icons (Address, Phone, Email) in footer */
.footer-content img[alt="Address"],
.footer-content img[alt="Phone"],
.footer-content img[alt="Email"] {
    width: 20px !important;
    height: 20px !important;
    max-width: none !important;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===================================
   HEADER STYLES
   =================================== */

.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-topbar p{
    margin-bottom: 0;
} 

section.gallery-feed-section.py-5 {
    min-height: 250px;
}

/* Logo Row */
.logo-row {
    /* Desktop: center, Mobile: left (sẽ override bên dưới) */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
}

/* Desktop Menu */
.nav-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu-list li {
    display: inline-block;
    margin: 10px 15px;
}

.nav-menu-list li a {
    color: #333333 !important;
    font-size: 28px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    padding: 10px 0;
    display: inline-block;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.nav-menu-list li a:hover {
    color: var(--color-primary) !important;
    border-bottom: 4px solid var(--color-primary);
    transform: translateY(-5px);
}

.nav-menu-list li a.active {
    color: var(--color-primary) !important;
}

/* Mobile Menu Styles */
.mobile-menu-wrapper {
    position: relative;
}

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

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

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 1999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    font-size: 28px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.mobile-nav-list li a:hover {
    background: #E9DFD3;
    color: var(--color-primary);
    padding-left: 30px;
}

/* ===================================
   FOOTER STYLES
   =================================== */

/* Fixed Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.action-btn.booking-btn {
    padding: 10px 20px;
}

/* Back to Top Button */
.back-to-top {
    transition: all 0.3s ease;
    opacity: 0.5;
}

.back-to-top:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* ===================================
   MAIN CONTENT STYLES
   =================================== */

.site-main {
    min-height: calc(100vh - 400px);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Mobile - logo bên trái, to như desktop, sticky header */
@media (max-width: 991.98px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Add padding-top to main to prevent overlap with fixed header */
    main {
        padding-top: 160px;
    }
    
    .logo-row {
        justify-content: flex-start !important;
        height: 150px !important;
    }
    
    .header-logo {
        height: 130px !important;
    }
    
    .nav-menu-list li a {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .header-topbar {
        display: none !important;
    }
    
    .logo-row {
        justify-content: flex-start !important;
        height: 150px !important;
    }
    
    .header-logo {
        height: 130px !important;
    }
    
    /* Hide fixed buttons on mobile (link-bottom replaces them) */
    .fixed-action-buttons {
        display: none !important;
    }
    
    .action-btn {
        font-size: 15px;
        padding: 8px 12px;
    }
    
    .back-to-top {
        display: none !important;
    }
    
    /* Add margin to footer to prevent overlap with link-bottom */
    .site-footer {
        margin-bottom: 55px;
    }
}

@media (max-width: 575.98px) {
    .mobile-nav-list li a {
        font-size: 22px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Luôn hiển thị scrollbar */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   HOME PAGE STYLES
   =================================== */

/* Hero Slider Section */
.hero-slider-section {
    width: 100%;
    position: relative;
}

.hero-slider-section .swiper {
    height: auto !important;
    position: relative;
}

.hero-slider-section .swiper-wrapper {
    position: relative;
}

.hero-slider-section .swiper-slide {
    height: auto !important;
    position: relative;
}

.hero-slide-img {
    position: relative;
    width: 100%;
    height: auto;
}

.hero-slide-img img {
    aspect-ratio: 27/10;
    object-fit: cover;
    display: block;
    width: 100%;
}

.slider-button-next,
.slider-button-prev {
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 20px;
}

.hero-slider-section:hover .slider-button-next,
.hero-slider-section:hover .slider-button-prev {
    opacity: 1;
}

.slider-button-next:hover,
.slider-button-prev:hover {
    opacity: 0.7 !important;
}

/* Hero Pagination */
.hero-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.hero-slider-section:hover .hero-pagination {
    opacity: 1;
}

.hero-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background: #c1c4c3;
    border: 4px solid hsla(0, 0%, 90%, 0.8);
    margin: 3px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet:hover {
    background: #242424;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #242424e0;
}

/* Section Titles */
.custom-title {
    font-family: vladimir;
    font-size: 60px;
    font-weight: 300;
    line-height: 66px;
    position: relative;
    text-align: center;
    width: 100%;
    color: #000;
}

.custom-title:after,
.custom-title:before {
    content: '';
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
}

.custom-title:before {
    background: var(--color-primary);
    bottom: -11px;
    height: 4px;
    width: 74px;
    z-index: 2;
}

.custom-title:after {
    background: #e1e1e1;
    bottom: -10px;
    height: 2px;
    width: 250px;
}

/* About Section */
.about-text {
    text-align: justify;
}

.btn-read-more {
    font-size: 13px;
    text-align: center;
    background: white;
    border: 1px solid #555555;
    padding: 7px 15px;
    color: #555;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: #E9DFD3;
    color: white;
}

/* Services Section */
.services-section {
    background-size: cover;
    background-position: center;
}

.services-slider-wrapper {
    margin-top: 60px;
}

.services-button-next {
    right: -40px !important;
}

.services-button-prev {
    left: -40px !important;
}

.services-button-next,
.services-button-prev {
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.services-button-next:hover,
.services-button-prev:hover {
    opacity: 0.7 !important;
}

.service-img {
    overflow: hidden;
}

.service-img .ratio {
    border: 13px solid hsla(0, 0%, 100%, 0.42);
    overflow: hidden;
}

.service-img img {
    transition: transform 0.5s ease;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.service-name {
    font-size: 20px;
    line-height: 22px;
}

/* Gallery Section */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-overlay {
    background: rgba(178, 115, 59, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-title {
    font-size: 14px;
    color: #fff;
}

.gallery-subtitle {
    font-size: 14px;
    color: #fff;
}

.btn-view-more {
    font-size: 16px;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */

/* Hero Section */
.about-hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-title-service {
    font-family: vladimir;
    font-size: 60px;
    font-weight: 300;
    line-height: 66px;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

/* Content Section */
.about-content-section {
    padding: 30px 0;
}

.about-page-title {
    text-align: center;
}

.page-title-text {
    color: #333333;
    font-weight: bold;
}

.about-description {
    text-align: justify;
    line-height: 1.4;
}

.about-description p {
    margin-bottom: 2px;
}

.about-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Responsive About Page */
@media (max-width: 991.98px) {
    .custom-title-service {
        font-size: 48px;
        line-height: 54px;
    }
    
    .about-hero-section,
    .about-hero-overlay {
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .about-hero-section,
    .about-hero-overlay {
        height: 80px;
    }
    
    .custom-title-service {
        font-size: 32px;
        line-height: 38px;
    }
    
    .about-description {
        font-size: 14px !important;
    }
}

/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* Hero Section */
.services-hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services List */
.services-list {
    background-color: rgb(245, 245, 245);
}

.services-list .container {
    background-color: rgb(255, 255, 255);
}

.service-item {
    padding: 0;
    border-bottom: none;
    padding-top: 25px;
}
.service-item .row.g-4.align-items-start {
    padding-bottom: 25px;
}

.service-item:last-child {
    border-bottom: none;
}

/* Service Image */
.service-image {
    overflow: hidden;
    border: 3px solid #000;
    aspect-ratio: 1/1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Service Title */
.service-title {
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fec168;
    border-bottom: 1px solid #fec168;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

/* Service Description */
.service-description {
    font-size: 15px;
    line-height: 22px;
    color: #111111;
    text-align: justify;
    font-style: italic;
    font-weight: 600;
}

.service-description p {
    margin-bottom: 12px;
}

.service-description ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-description ul li {
    padding-left: 20px;
    margin-bottom: 0px;
    position: relative;
    margin-left: 25px;
}

.service-description ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fec168;
    font-weight: bold;
}

/* Responsive Services */
@media (max-width: 991.98px) {
    .services-hero-section,
    .services-hero-overlay {
        height: 100px;
    }
    
    .custom-title-service {
        font-size: 48px;
        line-height: 54px;
    }
    
    .service-title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .services-hero-section,
    .services-hero-overlay {
        height: 80px;
    }
    
    .custom-title-service {
        font-size: 32px;
        line-height: 38px;
    }
    
    .service-item {
        padding: 20px 0;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .service-image {
        margin-top: 15px;
    }
}

/* ===================================
   CONTACT PAGE STYLES
   =================================== */

/* Hero Section */
.contact-hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form Section */
.contact-form-section {
    padding: 40px 0;
    position: relative;
}

.contact-form-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* Trong suốt hoàn toàn */
    z-index: 1;
}

.contact-form-section .container {
    z-index: 2;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-title {
    font-family: vladimir;
    font-size: 60px;
    font-weight: 300;
    line-height: 66px;
    text-align: center;
    color: #ffffff; /* Màu trắng */
    margin-bottom: 30px;
}

/* Contact Form 7 Styling */
.contact-form-container .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

/* Reset thẻ <p> mà CF7 tự động thêm */
.contact-form-container .form-row p {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-form-container .form-row {
    display: flex;
    flex-direction: column;
}

.contact-form-container .form-row-full {
    grid-column: 1 / -1;
}

.contact-form-container .wpcf7-form > p:last-of-type {
    grid-column: 1 / -1;
    text-align: center;
}

.contact-form-container label {
    display: block;
    font-weight: 500;
    margin-bottom: 0px;
    color: #ffffff; /* Màu trắng */
    font-size: 14px;
}

.contact-form-container .required {
    color: #ff0000;
    margin-left: 3px;
}

.contact-form-container .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-container p .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: inherit;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(178, 115, 59, 0.1);
}

.contact-form-container textarea {
    resize: vertical;
    height: 120px; /* Chiều cao tương đương 5 rows */
    min-height: 120px;
    line-height: 1.6;
}

/* Submit Button */
.contact-form-container .wpcf7-submit {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    display: inline-block;
}

.contact-form-container .wpcf7-submit:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form-container .wpcf7-submit:active {
    transform: translateY(2px);
}

/* CF7 Messages */
.wpcf7-form .wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    grid-column: 1 / -1;
}

.wpcf7-form .wpcf7-validation-errors {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #060;
}

/* Custom File Upload Styling */
.contact-form-container .wpcf7-form-control.wpcf7-file {
    display: none; /* Ẩn input file mặc định */
}

.contact-form-container .file-upload-wrapper {
    width: 100%;
    padding: 36px 20px;
    background-color: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-container .file-upload-wrapper:hover {
    border-color: var(--color-primary);
    background-color: #f3f4f6;
}

.contact-form-container .file-upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.contact-form-container .file-upload-icon svg {
    width: 100%;
    height: 100%;
}

.contact-form-container .file-upload-text {
    text-align: center;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.contact-form-container .file-upload-instructions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.contact-form-container .file-upload-instructions span {
    text-align: center;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.contact-form-container .file-upload-button {
    padding: 9px 20px;
    background-color: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-container .file-upload-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form-container .file-name-display {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    text-align: center;
    display: none; /* Ẩn ban đầu, hiện khi có file */
}

.contact-form-container .file-name-display.active {
    display: block;
}

/* Contact Map Section */
.contact-map-section {
    background-color: #ffffff;
}

.contact-map-wrapper iframe {
    width: 100%;
    border: none;
}

/* Gallery Page Styles */
.gallery-hero-section {
    height: 116px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gallery-hero-section .custom-title-service {
    color: #ffffff;
}

/* Gallery Feed Section */
.gallery-feed-section {
    background-color: #ffffff;
}

.gallery-instagram-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-instagram-wrapper .instagram-feed-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Responsive Gallery */
@media (max-width: 991.98px) {
    .gallery-hero-section,
    .gallery-hero-overlay {
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero-section,
    .gallery-hero-overlay {
        height: 80px;
    }
    
    .gallery-feed-section {
        padding: 30px 0;
    }
}

/* Link Bottom - Mobile Navigation Bar */
.link-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998; /* Below header */
    display: none;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    width: calc(100% - (100vw - 100%)); /* Fix for scrollbar */
}

.b-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}

.b-wrapper p {
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.b-wrapper a i {
    font-size: 1.3rem;
    color: #ffffff;
}

.b-wrapper a {
    flex: 1;
    text-align: center;
    color: #ffffff;
    background-color: var(--color-primary);
    padding: 8px 5px;
    font-size: 10px;
    line-height: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    margin: 0;
}

.b-wrapper a:hover {
    background-color: #9a5d31;
    opacity: 0.9;
}

.b-call-text-label-offset,
.b-email-text-label-offset,
.b-search-text-label-offset,
.b-menu-text-label-offset {
    display: block;
    margin-bottom: 3px;
}

/* Show Link Bottom on Mobile */
@media only screen and (max-width: 768px) {
    .link-bottom {
        display: block;
    }
}

/* Responsive Contact */
@media (max-width: 991.98px) {
    .contact-hero-section,
    .contact-hero-overlay {
        height: 100px;
    }
    
    .contact-form-title {
        font-size: 48px;
        line-height: 54px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero-section,
    .contact-hero-overlay {
        height: 80px;
    }
    
    .contact-form-title {
        font-size: 32px;
        line-height: 38px;
    }
    
    .contact-form-section {
        padding: 30px 0;
    }
    
    .contact-form-container .wpcf7-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-container .wpcf7-submit {
        width: 100%;
    }
}

/* Responsive cho home page */
@media (max-width: 991.98px) {
    .custom-title {
        font-size: 48px;
        line-height: 54px;
    }
    
    .hero-slide-img img {
        /* aspect-ratio: 16/9; */
        object-fit: contain;
    }
    
    .hero-slide-img {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-slider-section .swiper {
        position: relative !important;
        height: auto !important;
    }
    
    .hero-slider-section .swiper-slide {
        position: relative !important;
        height: auto !important;
    }
    
    /* Pagination nhỏ hơn trên mobile */
    .hero-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 30 !important;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        border: 2px solid hsla(0, 0%, 90%, 0.8);
        margin: 2px;
    }
    
    .services-button-next {
        right: 0 !important;
    }
    
    .services-button-prev {
        left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .custom-title {
        font-size: 36px;
        line-height: 42px;
    }
    
    .about-text {
        font-size: 16px !important;
    }
    
    .service-name {
        font-size: 16px;
    }
    
    /* Gallery mobile: 1 ảnh/dòng với gap 7px */
    .gallery-grid .row {
        row-gap: 7px !important;
    }
    
    .gallery-grid .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   POPUP STYLES
======================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-content a {
    display: block;
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.popup-image-mobile {
    display: none;
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--color-primary, #b67627);
    color: #fff;
    transform: rotate(90deg);
}

.popup-close i {
    pointer-events: none;
}

body.popup-open {
    overflow: hidden;
}

/* ===================================
   CONTAINER MAX-WIDTH
   =================================== */

@media (min-width: 1140px) {
    .container {
        max-width: 1140px;
    }
}

/* Mobile Popup Styles */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 15px;
    }
    
    .popup-container {
        max-width: 400px;
    }
    
    .popup-image-desktop {
        display: none;
    }
    
    .popup-image-mobile {
        display: block;
    }
    
    .popup-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
