/* Reset và biến CSS */
.sanko-custom-template {
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent: #3b82f6;
    --accent-rgb: 59, 130, 246;
    --accent-dark: #2563eb;
    --border-dark: #3f3f46;
    --border-light: #52525b;
    --card-bg: #27272a;
    --header-height: 80px;
    
    /* Mobile-specific variables */
    --mobile-bg-primary: #2a2a2e;
    --mobile-bg-secondary: #3a3a3e;
    --mobile-overlay-opacity: 0.2;
}

.sanko-custom-template * {
    all: revert;
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}

.sanko-custom-template  {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.sanko-custom-template .container {
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 20px;
}

.sanko-custom-template a {
    text-decoration: none;
    color: inherit;
}

.sanko-custom-template ul {
    list-style: none;
}

/* Các class utility */
.sanko-custom-template .section-padding {
    padding: 80px 0;
}

.sanko-custom-template .text-center {
    text-align: center;
}

.sanko-custom-template .full-width {
    width: 100%;
}

.sanko-custom-template .two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

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

.sanko-custom-template .animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes maskReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes maskRevealUp {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.sanko-custom-template .mask-reveal {
    animation: maskReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    clip-path: inset(0 100% 0 0);
}

.sanko-custom-template .mask-reveal-up {
    animation: maskRevealUp 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    clip-path: inset(100% 0 0 0);
}

.sanko-custom-template .mask-reveal-delay-100 {
    animation-delay: 100ms;
}

.sanko-custom-template .mask-reveal-delay-200 {
    animation-delay: 200ms;
}

.sanko-custom-template .mask-reveal-delay-300 {
    animation-delay: 300ms;
}

/* Parallax backgrounds */
.sanko-custom-template .parallax-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.sanko-custom-template .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
    will-change: transform;
}

.sanko-custom-template .parallax-bg.loaded {
    animation: fadeInBg 1s ease forwards;
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.6;
    }
}

/* Buttons */
.sanko-custom-template .btn {
    display: inline-flex!;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.sanko-custom-template .btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
}

.sanko-custom-template .btn-primary:hover {
    background-color: var(--accent-dark);
}

.sanko-custom-template .btn-outline {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.sanko-custom-template .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.sanko-custom-template .btn i {
    margin-left: 8px;
    font-size: 18px;
}

.sanko-custom-template .icon-button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sanko-custom-template .icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sanko-custom-template .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sanko-custom-template .nav-btn:hover {
    background-color: var(--border-light);
    transform: translateY(-2px);
}

.sanko-custom-template .nav-btn:active {
    transform: translateY(0);
}

.sanko-custom-template .nav-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s;
}

.sanko-custom-template .nav-btn:active::after {
    transform: scale(2);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

/* Header */
.sanko-custom-template .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.sanko-custom-template .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.sanko-custom-template .logo-text {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.05em;
}

.sanko-custom-template .navigation {
    display: none;
}

.sanko-custom-template .header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sanko-custom-template .header-icons {
    display: flex;
    align-items: center;
}

.sanko-custom-template .menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.sanko-custom-template .mobile-menu {
    display: none;
    padding: 16px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
}

.sanko-custom-template .mobile-menu.active {
    display: block;
}

.sanko-custom-template .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sanko-custom-template .mobile-link {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .sanko-custom-template .navigation {
        display: flex;
        gap: 32px;
    }
    
    .sanko-custom-template .nav-link {
        font-weight: 500;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }
    
    .sanko-custom-template .nav-link:hover {
        opacity: 0.8;
    }
    
    .sanko-custom-template .menu-toggle {
        display: none;
    }
}

/* Background chung cho toàn bộ trang sau hero */
.sanko-custom-template .global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    filter: blur(3px);
    opacity: 0.6;
    transform: translateZ(0); /* Tăng performance cho fixed element */
}

/* Lớp phủ màu đen cho global background */
.sanko-custom-template .global-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.247); /* Lớp phủ màu đen độ trong suốt 0.5 */
    z-index: 1;
    pointer-events: none; /* Không chặn tương tác với các element phía trên */
}

/* Hero Section */
.sanko-custom-template .hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    z-index: 20;
}

.sanko-custom-template .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 5;
    pointer-events: none;
}

.sanko-custom-template .hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Video background cho desktop */
.sanko-custom-template .hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sanko-custom-template .hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1; /* Đặt video ở trên fallback */
}

/* Image background cho mobile */
.sanko-custom-template .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('wp-content/themes/flatsome-child/custom-templates/home/assets/showroom%20%283%29.jpg');
    background-size: cover;
    background-position: center 30%;
}

/* Video luôn hiển thị trên cả desktop và mobile */
.sanko-custom-template .hero-video-bg {
    display: block;
}

/* Image chỉ là fallback khi video không load được */
.sanko-custom-template .hero-bg {
    display: none; /* Ẩn mặc định, chỉ hiện khi video lỗi */
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    /* Vẫn hiển thị video trên mobile */
    .sanko-custom-template .hero-video-bg {
        display: block;
    }
    
    /* Tối ưu video cho mobile */
    .sanko-custom-template .hero-video-bg video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Tăng độ mờ overlay trên mobile để text dễ đọc hơn */
    .sanko-custom-template .hero-overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    /* Fallback image chỉ hiện khi video error */
    .sanko-custom-template .hero-bg {
        display: none;
    }
    
    /* Hiện fallback khi video container có class error */
    .sanko-custom-template .hero-video-bg.video-error + .hero-bg {
        display: block;
    }
}

/* Tối ưu performance cho video */
.sanko-custom-template .hero-video-bg video {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Desktop optimizations */
@media (min-width: 769px) {
    /* Giảm overlay opacity trên desktop */
    .sanko-custom-template .hero-overlay {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Mobile video performance optimizations */
@media (max-width: 768px) {
    .sanko-custom-template .hero-video-bg video {
        /* Tối ưu cho mobile */
        will-change: auto; /* Tắt will-change trên mobile để tiết kiệm GPU */
        backface-visibility: hidden;
        
        /* Giảm quality trên mobile nếu cần */
        image-rendering: optimizeSpeed;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        
        /* Đảm bảo video fit đúng trên mobile */
        object-fit: cover;
        object-position: center;
    }
}

/* Fallback background - CHỈ hiển thị khi video chưa load hoặc lỗi */
.sanko-custom-template .hero-video-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('wp-content/themes/flatsome-child/custom-templates/home/assets/showroom%20%281%29.png');
    background-size: cover;
    background-position: center 30%;
    z-index: 0; /* Đặt dưới video */
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Ẩn fallback khi video đã load thành công */
.sanko-custom-template .hero-video-bg.video-loaded::before {
    opacity: 0;
}

/* Hiển thị fallback khi video bị lỗi */
.sanko-custom-template .hero-video-bg.video-error::before {
    opacity: 1;
}

.sanko-custom-template .hero-video-bg.video-error video {
    display: none;
}

.sanko-custom-template .hero-content {
    position: relative;
    z-index: 10;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.sanko-custom-template .hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.sanko-custom-template .hero-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.sanko-custom-template .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sanko-custom-template .scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.sanko-custom-template .scroll-icon {
    width: 32px;
    height: 48px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.sanko-custom-template .scroll-dot {
    width: 4px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    margin-top: 8px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@media (min-width: 768px) {
    .sanko-custom-template .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .sanko-custom-template .hero-title {
        font-size: 56px;
    }
}

/* Intro Section */
.sanko-custom-template .intro-section {
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.sanko-custom-template .intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.sanko-custom-template .intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 1;
}

.sanko-custom-template .intro-section .container {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .intro-section .parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    opacity: 0.8;
    will-change: transform;
}

.sanko-custom-template .intro-section .section-header {
    margin-bottom: 40px;
}

.sanko-custom-template .intro-section .section-title {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.sanko-custom-template .intro-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.sanko-custom-template .intro-content {
    /* background-color: rgba(39, 39, 42, 0.7); */
    padding: 32px;
    /* border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px; */
}

.sanko-custom-template .info-card {
    background-color: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.sanko-custom-template .video-placeholder {
    position: relative;
    background-color: rgba(39, 39, 42, 0.5);
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Intro Image Container */
.sanko-custom-template .intro-image-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sanko-custom-template .intro-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sanko-custom-template .intro-demo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sanko-custom-template .intro-image-container:hover .intro-demo-image {
    transform: scale(1.05);
}

.sanko-custom-template .intro-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    opacity: 0.9;
}

.sanko-custom-template .intro-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: white;
}

.sanko-custom-template .intro-image-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sanko-custom-template .intro-image-content p {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sanko-custom-template .service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sanko-custom-template .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(var(--accent-rgb), 0.2);
    background-color: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
}

.sanko-custom-template .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: var(--accent);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 6px 12px rgba(var(--accent-rgb), 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.sanko-custom-template .service-card:hover .service-icon {
    transform: scale(1.15) rotate(-10deg);
    background-color: var(--accent-dark);
}

.sanko-custom-template .service-icon i {
    font-size: 28px;
}

.sanko-custom-template .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    display: inline-block;
}

.sanko-custom-template .section-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sanko-custom-template .intro-section .btn-primary {
    margin-bottom: 2em;
}

.sanko-custom-template .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sanko-custom-template .feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sanko-custom-template .feature-list li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.sanko-custom-template .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
}

.sanko-custom-template .video-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.sanko-custom-template .video-content i {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 8px;
}

.sanko-custom-template .service-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 64px;
}

.sanko-custom-template .service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sanko-custom-template .service-text {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .sanko-custom-template .service-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sanko-custom-template .service-highlights {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Features Section */
.sanko-custom-template .features-section {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .features-section .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.sanko-custom-template .features-section .container {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .features-section .parallax-bg {
    opacity: 0;  /* Bắt đầu với opacity 0 */
    height: 130%; 
    filter: brightness(0.7) contrast(1.2);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sanko-custom-template .features-section .parallax-bg.loaded {
    opacity: 0.35;  /* Tăng độ hiển thị khi tải xong */
    animation: gradualReveal 1.5s ease forwards;
}

@keyframes gradualReveal {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
}

.sanko-custom-template .features-content {
    position: relative;
    z-index: 2;
    background-color: rgba(39, 39, 42, 0.7);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sanko-custom-template .sub-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--accent);
}

.sanko-custom-template .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .sanko-custom-template .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }
    
    /* Feature thứ 3 tràn full width */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) {
        grid-column: 1 / -1; /* Span toàn bộ chiều rộng */
        max-width: none;
        
        /* Styling đặc biệt cho feature full width */
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
        border: 2px solid rgba(59, 130, 246, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    /* Hiệu ứng đặc biệt cho feature thứ 3 */
    .sanko-custom-template .features-grid .feature-card:nth-child(3)::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 ease;
    }
    
    .sanko-custom-template .features-grid .feature-card:nth-child(3):hover::before {
        left: 100%;
    }
    
    /* Icon lớn hơn cho feature thứ 3 */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) .feature-content i {
        font-size: 24px;
        color: var(--accent);
    }
    
    /* Text lớn hơn cho feature thứ 3 */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) .feature-title {
        font-size: 18px;
        font-weight: 700;
    }
    
    .sanko-custom-template .features-grid .feature-card:nth-child(3) .feature-description {
        font-size: 15px;
        opacity: 0.9;
    }
}

.sanko-custom-template .feature-showcase {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Solutions Section */
.sanko-custom-template .solutions-section {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .solutions-section .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.sanko-custom-template .solutions-section .container {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .solutions-section .parallax-bg {
    opacity: 0;  /* Bắt đầu với opacity 0 */
    height: 130%; 
    filter: brightness(0.7) contrast(1.2);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sanko-custom-template .solutions-section .parallax-bg.loaded {
    opacity: 0.35;  /* Tăng độ hiển thị khi tải xong */
    animation: gradualRevealSolution 1.5s ease forwards;
}

@keyframes gradualRevealSolution {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
}

.sanko-custom-template .solutions-section .solution-nav {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.sanko-custom-template .solutions-section .solution-card {
    position: relative;
    z-index: 2;
    background-color: rgba(39, 39, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sanko-custom-template .solutions-section .solution-showcase {
    position: relative;
    height: 500px;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sanko-custom-template .solution-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.sanko-custom-template .solution-image-container.animate__animated {
    animation-duration: 0.8s;
}

.sanko-custom-template .solution-image-container.hiding {
    opacity: 0;
    z-index: 1;
}

.sanko-custom-template .solution-image-container.showing {
    opacity: 1;
    z-index: 2;
}

.sanko-custom-template .nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.sanko-custom-template .solution-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sanko-custom-template .solution-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sanko-custom-template .solution-subtitle {
    font-weight: 600;
    margin-bottom: 12px;
}

.sanko-custom-template .solution-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Products Section */
.sanko-custom-template .products-section {
    background-color: rgba(24, 24, 27, 0.8);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.sanko-custom-template .product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 32px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.sanko-custom-template .product-carousel::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Stats Section */
.sanko-custom-template .stats-section {
    background-color: var(--bg-secondary);
    padding: 64px 0;
    position: relative;
    z-index: 10;
}

.sanko-custom-template .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.sanko-custom-template .stat-item {
    text-align: center;
    position: relative;
}

.sanko-custom-template .stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sanko-custom-template .stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .sanko-custom-template .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sanko-custom-template .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        height: 48px;
        width: 1px;
        background-color: var(--border-light);
    }
}

/* Testimonials Section */
.sanko-custom-template .testimonials-section {
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.sanko-custom-template .testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.sanko-custom-template .testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    padding: 32px;
    border-radius: 16px;
    position: relative;
    margin-bottom: 24px;
}

.sanko-custom-template .testimonial-icon {
    position: absolute;
    top: 32px;
    left: 32px;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.2;
}

.sanko-custom-template .testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sanko-custom-template .testimonial-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    flex-shrink: 0;
}

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

.sanko-custom-template .quote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.sanko-custom-template .testimonial-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sanko-custom-template .testimonial-role {
    font-size: 14px;
    color: var(--text-secondary);
}

.sanko-custom-template .testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sanko-custom-template .testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sanko-custom-template .testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
}

.sanko-custom-template .testimonial-dots .dot.active {
    background-color: var(--accent);
}

@media (min-width: 768px) {
    .sanko-custom-template .testimonial-content {
        flex-direction: row;
        text-align: left;
        gap: 32px;
    }
    
    .sanko-custom-template .testimonial-avatar {
        margin-bottom: 0;
    }
}

/* Testimonial Author Header & Play Video Button */
.sanko-custom-template .testimonial-author-header {
    display: flex;
    justify-content: space-between; /* Căn tên và nút ra hai bên */
    align-items: center;
    margin-bottom: 4px; /* Điều chỉnh khoảng cách nếu cần */
}

.sanko-custom-template .testimonial-name {
    margin-bottom: 0; /* Ghi đè margin-bottom mặc định nếu có */
}

.sanko-custom-template .play-testimonial-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent; /* Hoặc màu nền bạn muốn */
    color: var(--accent); /* Màu chữ/icon */
    border: 1px solid var(--accent); /* Viền nút */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sanko-custom-template .play-testimonial-video-btn:hover {
    background-color: var(--accent);
    color: var(--text-primary);
}

.sanko-custom-template .play-testimonial-video-btn i {
    font-size: 18px;
}

/* Testimonial Video Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Nền mờ đậm hơn */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Đảm bảo lightbox ở trên cùng */
    padding: 20px;
}

.lightbox-content {
    position: relative;
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    max-width: 900px; /* Giới hạn chiều rộng lightbox */
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-close-btn {
    position: absolute;
    top: -15px; /* Điều chỉnh vị trí nút đóng */
    right: -15px;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.lightbox-close-btn:hover {
    background-color: var(--accent-dark);
}

.lightbox-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
}

.lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px; /* Bo góc nhẹ cho video */
}

/* Gallery Section */
.sanko-custom-template .gallery-section {
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.sanko-custom-template .gallery-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.sanko-custom-template .gallery-carousel {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 32px;
    display: flex;
    gap: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 32px;
    padding-right: 100vw;
}

.sanko-custom-template .gallery-carousel::-webkit-scrollbar {
    display: none;
}

/* Contact Section */
.sanko-custom-template .contact-section {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

/* Tất cả chữ trong contact section màu trắng */
.sanko-custom-template .contact-section * {
    color: #ffffff !important;
}

.sanko-custom-template .contact-section .sub-heading,
.sanko-custom-template .contact-section .section-title,
.sanko-custom-template .contact-section .section-text,
.sanko-custom-template .contact-section .contact-text h4,
.sanko-custom-template .contact-section .contact-text p,
.sanko-custom-template .contact-section label,
.sanko-custom-template .contact-section input,
.sanko-custom-template .contact-section textarea {
    color: #ffffff !important;
}

.sanko-custom-template .contact-section input::placeholder,
.sanko-custom-template .contact-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.sanko-custom-template .contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.sanko-custom-template .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sanko-custom-template .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sanko-custom-template .contact-icon i {
    font-size: 20px;
}

.sanko-custom-template .contact-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.sanko-custom-template .contact-text p {
    color: var(--text-secondary);
}

.sanko-custom-template .contact-form-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-dark);
    padding: 32px;
    border-radius: 16px;
}

.sanko-custom-template .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.sanko-custom-template .form-group {
    margin-bottom: 16px;
}

.sanko-custom-template .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.sanko-custom-template .form-group input,
.sanko-custom-template .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.sanko-custom-template .form-group input:focus,
.sanko-custom-template .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.sanko-custom-template .form-group input::placeholder,
.sanko-custom-template .form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

@media (min-width: 640px) {
    .sanko-custom-template .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.sanko-custom-template .footer {
    background-color: black;
    padding: 48px 0;
}

.sanko-custom-template .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.sanko-custom-template .footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}

.sanko-custom-template .footer-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sanko-custom-template .social-links {
    display: flex;
    gap: 16px;
}

.sanko-custom-template .social-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.sanko-custom-template .social-link:hover {
    color: var(--text-primary);
}

.sanko-custom-template .social-link i {
    font-size: 20px;
}

.sanko-custom-template .footer-title {
    font-weight: 600;
    margin-bottom: 20px;
}

.sanko-custom-template .footer-links,
.sanko-custom-template .footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sanko-custom-template .footer-links a,
.sanko-custom-template .footer-info a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.sanko-custom-template .footer-links a:hover,
.sanko-custom-template .footer-info a:hover {
    color: var(--text-primary);
}

.sanko-custom-template .footer-info li {
    color: var(--text-secondary);
}

.sanko-custom-template .footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sanko-custom-template .copyright {
    color: var(--text-secondary);
}

.sanko-custom-template .footer-legal {
    display: flex;
    gap: 24px;
}

.sanko-custom-template .footer-legal a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.sanko-custom-template .footer-legal a:hover {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .sanko-custom-template .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sanko-custom-template .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .sanko-custom-template .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sanko-custom-template .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 48px;
}

.sanko-custom-template .section-header .section-title {
    margin-top: 12px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.sanko-custom-template .section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

/* Jarallax video container */
.sanko-custom-template .jarallax {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sanko-custom-template .jarallax > .jarallax-img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.sanko-custom-template .jarallax-video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -100;
    background-color: #000;
}

/* Solution Item Link Hover Effect */
.sanko-custom-template .solution-item-link {
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.sanko-custom-template .solution-item-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Solution Tabs Styling */
.sanko-custom-template .solution-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sanko-custom-template .solution-tab {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: transparent;
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sanko-custom-template .solution-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
}

.sanko-custom-template .solution-tab.active {
    color: var(--text-primary);
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

/* Showroom Map Section Styling */
.sanko-custom-template .showroom-map-section {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .showroom-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('/wp-content/themes/flatsome-child/custom-templates/home/assets/anh-nen-home.jpg'); THAY THẾ URL ẢNH CỦA BẠN VÀO ĐÂY */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Đây là chìa khóa cho hiệu ứng parallax đứng yên */
    z-index: -2; /* Đặt ảnh nền phía sau tất cả */
    opacity: 1.15; /* Điều chỉnh độ mờ của ảnh nền, có thể thay đổi */
    filter: blur(3px);
}

/* Đảm bảo .overlay của section này hoạt động đúng cách với ::before */
.sanko-custom-template .showroom-map-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Điều chỉnh màu và độ mờ của lớp phủ nếu cần */
    z-index: -1; /* Lớp phủ nằm trên ảnh nền parallax nhưng dưới nội dung */
}

/* Đảm bảo nội dung trong .container của section này hiển thị trên lớp phủ và ảnh nền */
.sanko-custom-template .showroom-map-section .container {
    position: relative;
    z-index: 2; /* Nội dung phải có z-index cao hơn lớp phủ và ảnh nền */
}

.sanko-custom-template .showroom-map-section .column-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa nội dung theo chiều dọc */
}

.sanko-custom-template .showroom-description-title {
    font-size: 24px; /* Kích thước tiêu đề mô tả */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sanko-custom-template .showroom-map-section .section-text {
    margin-bottom: 32px; /* Khoảng cách dưới đoạn văn bản */
}

.sanko-custom-template .column-map {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: 8px;
}

.sanko-custom-template .vietnam-map-image {
    width: 100%;
    max-width: 600px; /* Giới hạn chiều rộng tối đa của bản đồ */
    height: auto;
    border-radius: 12px; /* Bo góc nhẹ cho ảnh */
    display: block; /* Loại bỏ khoảng trống thừa dưới ảnh */
    margin: 0 auto; /* Căn giữa ảnh nếu cột rộng hơn ảnh */
    object-fit: contain;
}

/* Responsive adjustments for showroom map section */
@media (max-width: 767px) {
    .sanko-custom-template .showroom-map-section .two-columns {
        grid-template-columns: 1fr; /* Chuyển sang một cột trên mobile */
    }
    .sanko-custom-template .showroom-map-section .column-map {
        order: -1; /* Đưa bản đồ lên trên phần chữ trên mobile */
        margin-bottom: 30px;
    }
    .sanko-custom-template .showroom-map-section .column-text {
        text-align: center; /* Căn giữa chữ trên mobile */
        align-items: center;
    }
    .sanko-custom-template .vietnam-map-image {
        max-width: 90%; /* Điều chỉnh kích thước bản đồ trên mobile */
    }
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Giảm padding section trên mobile */
    .sanko-custom-template .section-padding {
        padding: 40px 0; /* Giảm từ 80px xuống 40px */
    }
    
    /* Tối ưu container padding */
    .sanko-custom-template .container {
        padding: 0 16px; /* Giảm từ 20px xuống 16px */
    }
    
    /* Thay đổi background cho mobile - sáng hơn */
    .sanko-custom-template {
        --bg-primary: var(--mobile-bg-primary);
        --bg-secondary: var(--mobile-bg-secondary);
    }
    
    /* Làm sáng global background trên mobile */
    .sanko-custom-template .global-background {
        opacity: 0.8; /* Tăng từ 0.6 lên 0.8 để sáng hơn */
        filter: blur(2px) brightness(1.2); /* Thêm brightness để sáng hơn */
    }
    
    /* Typography tối ưu cho mobile */
    .sanko-custom-template .hero-title {
        font-size: 28px !important; /* Giảm từ 36px */
        line-height: 1.1;
        margin-bottom: 16px; /* Giảm từ 24px */
    }
    
    .sanko-custom-template .hero-text {
        font-size: 16px; /* Giảm từ 18px */
        margin-bottom: 24px; /* Giảm từ 32px */
    }
    
    .sanko-custom-template .section-title {
        font-size: 24px; /* Giảm từ 32px */
        margin-bottom: 16px; /* Giảm từ 24px */
    }
    
    .sanko-custom-template .section-text {
        font-size: 16px; /* Giảm từ 18px */
        margin-bottom: 16px; /* Giảm từ 24px */
    }
    
    .sanko-custom-template .sub-heading {
        font-size: 12px; /* Giảm từ 14px */
        margin-bottom: 8px; /* Giảm từ 12px */
    }
    
    /* Tối ưu spacing cho two-columns */
    .sanko-custom-template .two-columns {
        gap: 20px; /* Giảm từ 40px */
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    /* Intro Section specific optimizations */
    .sanko-custom-template .intro-section .two-columns {
        gap: 16px; /* Tighter gap for intro section */
    }
    
    .sanko-custom-template .intro-section .column {
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Prevent overflow */
        overflow: hidden; /* Hide any overflow */
    }
    
    /* Ẩn service highlights trên mobile */
    .sanko-custom-template .service-highlights {
        display: none;
    }
    
    /* Service cards đã được ẩn cùng với service-highlights */
    
    /* Làm sáng các overlay trên mobile */
    .sanko-custom-template .hero-overlay {
        background-color: rgba(0, 0, 0, 0.2); /* Giảm từ 0.4 để sáng hơn */
    }
    
    .sanko-custom-template .intro-overlay,
    .sanko-custom-template .features-section .overlay,
    .sanko-custom-template .solutions-section .overlay {
        background-color: rgba(0, 0, 0, var(--mobile-overlay-opacity)); /* Sáng hơn */
    }
    
    /* Làm sáng các card backgrounds */
    .sanko-custom-template .intro-content,
    .sanko-custom-template .info-card,
    .sanko-custom-template .features-content,
    .sanko-custom-template .solution-card {
        background-color: rgba(58, 58, 62, 0.8); /* Sáng hơn từ rgba(39, 39, 42, 0.7) */
        padding: 20px; /* Giảm padding */
    }
    
    .sanko-custom-template .video-placeholder,
    .sanko-custom-template .feature-showcase,
    .sanko-custom-template .solution-showcase {
        height: 250px; /* Giảm height trên mobile */
    }
    
    /* Compact buttons */
    .sanko-custom-template .btn {
        padding: 10px 20px; /* Giảm từ 12px 24px */
        font-size: 14px; /* Giảm từ 16px */
    }
    
    .sanko-custom-template .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 12px; /* Giảm gap */
    }
    
    .sanko-custom-template .hero-buttons .btn {
        width: 100%; /* Full width buttons */
        justify-content: center;
    }
    
    /* Stats section mobile optimization */
    .sanko-custom-template .stats-section {
        padding: 40px 0; /* Giảm từ 64px */
    }
    
    .sanko-custom-template .stats-grid {
        gap: 20px; /* Giảm từ 32px */
    }
    
    .sanko-custom-template .stat-number {
        font-size: 28px; /* Giảm từ 36px */
    }
    
    .sanko-custom-template .stat-label {
        font-size: 12px; /* Giảm từ 14px */
    }
    
    /* Testimonial mobile optimization */
    .sanko-custom-template .testimonial-card {
        padding: 20px; /* Giảm từ 32px */
        margin-bottom: 16px;
    }
    
    .sanko-custom-template .testimonial-avatar {
        width: 64px; /* Giảm từ 96px */
        height: 64px;
        margin-bottom: 16px;
    }
    
    .sanko-custom-template .quote {
        font-size: 16px; /* Giảm từ 18px */
        margin-bottom: 16px;
    }
    
    .sanko-custom-template .testimonial-name {
        font-size: 16px; /* Giảm từ 18px */
    }
    
    /* Contact form mobile optimization */
    .sanko-custom-template .contact-form-card {
        padding: 20px; /* Giảm từ 32px */
    }
    
    .sanko-custom-template .contact-info {
        gap: 16px; /* Giảm từ 24px */
        margin-top: 24px; /* Giảm từ 40px */
    }
    
    .sanko-custom-template .contact-icon {
        width: 40px; /* Giảm từ 48px */
        height: 40px;
    }
    
    .sanko-custom-template .contact-icon i {
        font-size: 16px; /* Giảm từ 20px */
    }
    
    /* Showroom map section mobile */
    .sanko-custom-template .showroom-map-section::before {
        background-attachment: scroll; /* Thay fixed thành scroll cho mobile performance */
        filter: brightness(1.3); /* Thêm brightness */
    }
    
    .sanko-custom-template .showroom-map-section .overlay {
        background-color: rgba(0, 0, 0, 0.1); /* Giảm độ tối của overlay */
    }
    
    .sanko-custom-template .showroom-description-title {
        font-size: 20px; /* Giảm từ 24px */
        margin-bottom: 12px;
    }
    
    /* Gallery carousel mobile optimization */
    .sanko-custom-template .gallery-carousel {
        padding-left: 16px; /* Giảm từ 32px */
        gap: 16px; /* Giảm từ 24px */
    }
    
    .sanko-custom-template .product-carousel {
        gap: 16px; /* Giảm từ 24px */
        padding-left: 16px; /* Giảm từ 20px */
        padding-right: 16px;
        margin: 0 -16px; /* Điều chỉnh theo padding mới */
    }
    
    /* Navigation buttons mobile */
    .sanko-custom-template .nav-btn {
        width: 36px; /* Giảm từ 40px */
        height: 36px;
    }
    
    /* Section headers mobile */
    .sanko-custom-template .section-header {
        margin-bottom: 32px; /* Giảm từ 48px */
    }
    
    .sanko-custom-template .section-header .section-title::after {
        width: 60px; /* Giảm từ 80px */
        height: 2px; /* Giảm từ 3px */
        bottom: -8px; /* Điều chỉnh vị trí */
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .sanko-custom-template .section-padding {
        padding: 32px 0; /* Giảm thêm cho màn hình rất nhỏ */
    }
    
    .sanko-custom-template .container {
        padding: 0 12px; /* Giảm padding thêm */
    }
    
    .sanko-custom-template .hero-title {
        font-size: 24px !important; /* Giảm thêm */
    }
    
    .sanko-custom-template .section-title {
        font-size: 20px; /* Giảm thêm */
    }
    
    /* Duy trì 2 cột ngay cả trên màn hình rất nhỏ */
    /* Service highlights đã được ẩn trên mobile */
}

/* MOBILE PERFORMANCE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Disable complex animations on mobile for better performance */
    .sanko-custom-template .mask-reveal,
    .sanko-custom-template .mask-reveal-up {
        animation: none;
        clip-path: none;
        opacity: 1;
    }
    
    /* Simplified parallax for mobile */
    .sanko-custom-template .global-background {
        background-attachment: scroll; /* Better performance than fixed on mobile */
        transform: none; /* Disable transform for better performance */
    }
    
    /* Touch-friendly elements */
    .sanko-custom-template .btn,
    .sanko-custom-template .nav-btn,
    .sanko-custom-template .solution-tab {
        min-height: 44px; /* iOS recommended touch target size */
        min-width: 44px;
    }
    
    /* Optimize images for mobile */
    .sanko-custom-template img {
        max-width: 100%;
        height: auto;
        image-rendering: -webkit-optimize-contrast; /* Better image rendering on mobile */
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .sanko-custom-template * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Mobile-specific hover states (remove hover effects) */
    .sanko-custom-template .service-card:hover {
        transform: none; /* Remove hover transform on mobile */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Keep original shadow */
    }
    
    .sanko-custom-template .service-card:hover .service-icon {
        transform: none; /* Remove icon transform on mobile */
    }
    
    /* Optimize text for mobile reading */
    .sanko-custom-template .section-text,
    .sanko-custom-template .hero-text {
        line-height: 1.5; /* Better line height for mobile reading */
        text-align: left; /* Left align for better mobile reading */
    }
    
    /* Compact hero section for mobile */
    .sanko-custom-template .hero {
        min-height: 70vh; /* Giảm từ 90vh để fit mobile screen better */
    }
    
    .sanko-custom-template .hero-content {
        height: 70vh; /* Điều chỉnh theo hero height */
        justify-content: flex-start; /* Align content to top */
        padding-top: 20vh; /* Add some top padding */
    }
    
    /* Scroll indicator adjustments */
    .sanko-custom-template .scroll-indicator {
        bottom: 20px; /* Move closer to bottom */
    }
    
    /* Mobile-friendly form elements */
    .sanko-custom-template .form-group input,
    .sanko-custom-template .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px; /* Larger touch targets */
    }
    
    /* Optimize carousels for mobile */
    .sanko-custom-template .product-carousel,
    .sanko-custom-template .gallery-carousel {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Mobile-specific z-index management */
    .sanko-custom-template .hero {
        z-index: 15; /* Reduce z-index for better layering */
    }
    
    /* Compact footer for mobile */
    .sanko-custom-template .footer {
        padding: 32px 0; /* Giảm từ 48px */
    }
    
    .sanko-custom-template .footer-content {
        gap: 24px; /* Giảm từ 40px */
        margin-bottom: 32px; /* Giảm từ 48px */
    }
    
    /* Mobile typography scale */
    .sanko-custom-template h1 { font-size: 24px; }
    .sanko-custom-template h2 { font-size: 20px; }
    .sanko-custom-template h3 { font-size: 18px; }
    .sanko-custom-template h4 { font-size: 16px; }
    .sanko-custom-template h5 { font-size: 14px; }
    .sanko-custom-template h6 { font-size: 12px; }
}

/* MOBILE UTILITY CLASSES */
@media (max-width: 768px) {
    .sanko-custom-template .mobile-hidden {
        display: none !important;
    }
    
    .sanko-custom-template .mobile-visible {
        display: block !important;
    }
    
    .sanko-custom-template .mobile-text-center {
        text-align: center !important;
    }
    
    .sanko-custom-template .mobile-text-left {
        text-align: left !important;
    }
    
    .sanko-custom-template .mobile-full-width {
        width: 100% !important;
    }
    
    .sanko-custom-template .mobile-margin-sm {
        margin: 8px !important;
    }
    
    .sanko-custom-template .mobile-padding-sm {
        padding: 8px !important;
    }
    
    .sanko-custom-template .mobile-margin-md {
        margin: 16px !important;
    }
    
    .sanko-custom-template .mobile-padding-md {
        padding: 16px !important;
    }
}

/* MOBILE 2-COLUMN LAYOUT OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Tối ưu Contact Info thành 3 dòng với icon và chữ cùng hàng */
    .sanko-custom-template .contact-info {
        display: flex;
        flex-direction: column;
        gap: 16px; /* Khoảng cách giữa các dòng */
        margin-top: 24px;
    }
    
    .sanko-custom-template .contact-item {
        flex-direction: row; /* Icon và text cùng hàng */
        text-align: left; /* Căn trái */
        gap: 16px; /* Khoảng cách giữa icon và text */
        align-items: center; /* Căn giữa theo chiều dọc */
    }
    
    .sanko-custom-template .contact-text h4 {
        font-size: 14px; /* Smaller title */
        margin-bottom: 4px;
    }
    
    .sanko-custom-template .contact-text p {
        font-size: 13px; /* Slightly larger text for better readability */
        line-height: 1.3;
    }
    
    /* Tối ưu Features Grid thành 2 cột ngay trên mobile */
    .sanko-custom-template .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 12px; /* Reduce gap */
    }
    
    /* Ẩn description trong features trên mobile nhưng giữ icon */
    .sanko-custom-template .feature-description {
        display: none;
    }
    
    /* Giữ icon tick trên mobile */
    .sanko-custom-template .feature-content i {
        display: block;
        font-size: 16px; /* Smaller icon on mobile */
        margin-right: 8px; /* Adjust spacing */
        color: var(--accent);
        flex-shrink: 0;
    }
    
    .sanko-custom-template .feature-title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Đảm bảo feature content layout tốt trên mobile */
    .sanko-custom-template .feature-content {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sanko-custom-template .feature-content > div {
        flex: 1;
    }
    
    /* Feature thứ 3 trên mobile */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) {
        /* Reset desktop styles */
        background: rgba(39, 39, 42, 0.5);
        border: 1px solid #3f3f46;
        position: relative;
        overflow: visible;
        
        /* Span toàn bộ chiều rộng như trên desktop */
        grid-column: 1 / -1;
    }
    
    .sanko-custom-template .features-grid .feature-card:nth-child(3)::before {
        display: none; /* Ẩn hiệu ứng shine trên mobile */
    }
    
    /* Consistent icon size trên mobile */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) .feature-content i {
        font-size: 16px; /* Same as other features */
    }
    
    /* Consistent text size trên mobile */
    .sanko-custom-template .features-grid .feature-card:nth-child(3) .feature-title {
        font-size: 12px; /* Same as other features */
        font-weight: 600;
    }
    
    /* Tối ưu Solution Items thành 1 cột */
    .sanko-custom-template .solution-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .sanko-custom-template .solution-items li {
        font-size: 14px; /* Slightly larger text for better readability */
        width: 100%; /* Ensure full width */
    }
    
    .sanko-custom-template .solution-item-link {
        display: flex;
        align-items: center;
        gap: 8px; /* Slightly larger gap for better spacing */
        padding: 6px 0; /* More padding for better touch targets */
        width: 100%; /* Ensure full width */
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden; /* Hide overflow */
        text-overflow: ellipsis; /* Show ... if text is too long */
    }
    
    /* Testimonial Navigation và Dots cải thiện */
    .sanko-custom-template .testimonial-nav {
        gap: 12px; /* Reduce gap */
        margin-bottom: 12px;
    }
    
    .sanko-custom-template .testimonial-dots {
        gap: 6px; /* Smaller gap */
    }
    
    .sanko-custom-template .testimonial-dots .dot {
        width: 10px; /* Smaller dots */
        height: 10px;
    }
    
    /* Form Row luôn 2 cột trên mobile */
    .sanko-custom-template .form-row {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 12px; /* Reduce gap */
    }
    
    .sanko-custom-template .form-group {
        margin-bottom: 12px; /* Reduce margin */
    }
    
    .sanko-custom-template .form-group label {
        font-size: 13px; /* Smaller labels */
        margin-bottom: 6px;
    }
    
    .sanko-custom-template .form-group input,
    .sanko-custom-template .form-group textarea {
        padding: 12px 14px; /* Slightly smaller padding */
        font-size: 15px; /* Slightly smaller but still prevents zoom */
    }
    
    /* Footer Content 2 cột optimization */
    .sanko-custom-template .footer-content {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 20px;
    }
    
    .sanko-custom-template .footer-title {
        font-size: 16px; /* Smaller footer titles */
        margin-bottom: 12px;
    }
    
    .sanko-custom-template .footer-links,
    .sanko-custom-template .footer-info {
        gap: 6px; /* Tighter spacing */
    }
    
    .sanko-custom-template .footer-links a,
    .sanko-custom-template .footer-info a,
    .sanko-custom-template .footer-info li {
        font-size: 13px; /* Smaller text */
    }
    
    /* Navigation buttons alignment */
    .sanko-custom-template .nav-buttons,
    .sanko-custom-template .gallery-nav,
    .sanko-custom-template .testimonial-nav {
        justify-content: center; /* Center align nav buttons */
    }
    
    /* Social links in footer - compact layout */
    .sanko-custom-template .social-links {
        gap: 12px; /* Reduce gap */
        justify-content: center; /* Center social links */
    }
    
    .sanko-custom-template .social-link i {
        font-size: 18px; /* Slightly smaller icons */
    }
    
    /* Hero buttons optimization for 2-column feel */
    .sanko-custom-template .hero-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        flex-direction: unset; /* Override previous column direction */
    }
    
    .sanko-custom-template .hero-buttons .btn {
        width: auto; /* Reset width */
        padding: 12px 16px; /* Adjust padding */
        font-size: 13px; /* Slightly smaller */
        text-align: center;
    }
    
    /* Stats grid optimization - keep 2x2 layout */
    .sanko-custom-template .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Maintain 2x2 */
        gap: 16px; /* Compact gap */
    }
    
    .sanko-custom-template .stat-item {
        padding: 16px 8px; /* Add some padding */
        border-radius: 8px; /* Add border radius */
        background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
    }
    
    /* Remove desktop-specific border separators on mobile */
    .sanko-custom-template .stat-item::after {
        display: none; /* Hide dividers on mobile */
    }
}

/* EXTRA OPTIMIZATIONS FOR VERY SMALL SCREENS */
@media (max-width: 480px) {
    /* Contact info remains 2 columns but more compact */
    .sanko-custom-template .contact-info {
        gap: 8px;
    }
    
    .sanko-custom-template .contact-icon {
        width: 36px; /* Even smaller icons */
        height: 36px;
    }
    
    .sanko-custom-template .contact-icon i {
        font-size: 14px;
    }
    
    /* Hero buttons stack on very small screens */
    .sanko-custom-template .hero-buttons {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 10px;
    }
    
    .sanko-custom-template .hero-buttons .btn {
        width: 100%; /* Full width on very small screens */
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Footer becomes single column on very small screens */
    .sanko-custom-template .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Form adjustments for very small screens */
    .sanko-custom-template .form-row {
        grid-template-columns: 1fr; /* Single column forms on very small screens */
        gap: 8px;
    }
}

/* MOBILE OPTIMIZATIONS - INTRO SECTION */
@media (max-width: 768px) {
    /* Intro Content optimizations */
    .sanko-custom-template .intro-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px; /* Giảm từ 20px */
        margin-bottom: 16px; /* Giảm từ 30px */
    }

    .sanko-custom-template .info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px; /* Giảm từ 20px */
    }

    .sanko-custom-template .card-title {
        font-size: 16px; /* Giảm từ 18px */
        margin-bottom: 12px; /* Giảm từ 16px */
        line-height: 1.3; /* Tighter line height */
    }

    .sanko-custom-template .feature-list li {
        font-size: 14px; /* Smaller text */
        margin-bottom: 4px; /* Tighter spacing */
    }

    /* Video placeholder optimizations */
    .sanko-custom-template .video-placeholder {
        width: 100%;
        max-width: 100%;
        height: 200px; /* Giảm từ 250px */
        box-sizing: border-box;
        margin-top: 0; /* Remove any top margin */
    }

    /* Intro image container mobile optimizations */
    .sanko-custom-template .intro-image-container {
        width: 100%;
        max-width: 100%;
        height: 200px; /* Same height as video placeholder */
        box-sizing: border-box;
        margin-top: 0;
    }

    .sanko-custom-template .intro-image-content {
        padding: 16px; /* Smaller padding on mobile */
    }

    .sanko-custom-template .intro-image-content h4 {
        font-size: 16px; /* Smaller font on mobile */
        margin-bottom: 6px;
    }

    .sanko-custom-template .intro-image-content p {
        font-size: 13px; /* Smaller font on mobile */
    }

    .sanko-custom-template .video-content p {
        font-size: 14px; /* Smaller text */
        text-align: center;
        padding: 0 16px; /* Add horizontal padding */
    }

    .sanko-custom-template .video-content i {
        font-size: 48px; /* Smaller icon */
    }
    
    /* Container and section overflow fixes */
    .sanko-custom-template .intro-section .container,
    .sanko-custom-template .features-section .container,
    .sanko-custom-template .solutions-section .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal overflow */
        padding: 0 16px; /* Override default padding */
        box-sizing: border-box;
    }
    
    /* All sections with two-columns mobile optimization */
    .sanko-custom-template .features-section .two-columns,
    .sanko-custom-template .solutions-section .two-columns {
        grid-template-columns: 1fr; /* Single column */
        gap: 16px;
    }
    
    .sanko-custom-template .features-content,
    .sanko-custom-template .solution-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px; /* Consistent padding */
    }
    
    .sanko-custom-template .feature-showcase,
    .sanko-custom-template .solution-showcase {
        width: 100%;
        max-width: 100%;
        height: 200px; /* Consistent height */
        box-sizing: border-box;
    }
    
    /* Section headers mobile optimization */
    .sanko-custom-template .section-header {
        margin-bottom: 24px; /* Giảm từ 32px */
        padding: 0 16px; /* Add padding to prevent text overflow */
        box-sizing: border-box;
    }
    
    .sanko-custom-template .section-title {
        word-wrap: break-word; /* Handle long titles */
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .sanko-custom-template .section-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: justify; /* Better text distribution */
    }
    
    /* Button optimizations */
    .sanko-custom-template .intro-section .btn-primary {
        width: 100%; /* Full width button */
        margin-bottom: 16px; /* Reduce margin */
        font-size: 14px; /* Smaller font */
        padding: 12px 16px; /* Adjust padding */
    }
}

/* INTRO SECTION SMALL SCREEN OPTIMIZATIONS */
@media (max-width: 480px) {
    .sanko-custom-template .intro-section .container {
        padding: 0 12px; /* Even smaller padding */
    }
    
    .sanko-custom-template .intro-content,
    .sanko-custom-template .info-card {
        padding: 12px; /* More compact padding */
        margin-bottom: 12px;
    }
    
    .sanko-custom-template .card-title {
        font-size: 15px; /* Slightly smaller */
        margin-bottom: 8px;
    }
    
    .sanko-custom-template .feature-list li {
        font-size: 13px; /* Even smaller text */
        margin-bottom: 3px;
    }
    
    .sanko-custom-template .video-placeholder {
        height: 160px; /* Smaller video area */
    }

    .sanko-custom-template .intro-image-container {
        height: 160px; /* Same as video placeholder */
    }
    
    .sanko-custom-template .video-content i {
        font-size: 40px; /* Smaller icon */
    }
    
    .sanko-custom-template .video-content p {
        font-size: 13px; /* Smaller text */
        padding: 0 12px;
    }
    
    .sanko-custom-template .intro-section .btn-primary {
        font-size: 13px; /* Smaller button text */
        padding: 10px 14px;
    }
    
    .sanko-custom-template .section-header {
        padding: 0 12px; /* Smaller padding */
        margin-bottom: 20px;
    }
    
    .sanko-custom-template .intro-section .two-columns {
        gap: 12px; /* Tighter gap */
    }
}

/* CONTACT FORM 7 STYLING */
/* Fix màu sắc cho Contact Form 7 */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form {
    width: 100%;
}

/* Styling cho input fields */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="text"],
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="tel"],
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="email"],
.sanko-custom-template .cf7-form-wrapper .wpcf7-form textarea,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form select {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
}

/* Focus state */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="text"]:focus,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="tel"]:focus,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="email"]:focus,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form textarea:focus,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form select:focus {
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Placeholder styling */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input::placeholder,
.sanko-custom-template .cf7-form-wrapper .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic !important;
}

/* Select dropdown đặc biệt */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    min-height: 48px !important;
}

/* Option trong select */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px !important;
}

/* Submit button */
.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="submit"] {
    background-color: var(--accent) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 16px !important;
    transition: all 0.3s ease !important;
}

.sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background-color: var(--accent-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Form note styling */
.sanko-custom-template .cf7-form-wrapper .form-note {
    text-align: center;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.sanko-custom-template .cf7-form-wrapper .form-note small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
}

/* Form validation messages */
.sanko-custom-template .cf7-form-wrapper .wpcf7-validation-errors,
.sanko-custom-template .cf7-form-wrapper .wpcf7-mail-sent-ok,
.sanko-custom-template .cf7-form-wrapper .wpcf7-mail-sent-ng {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin: 16px 0 !important;
}

.sanko-custom-template .cf7-form-wrapper .wpcf7-mail-sent-ok {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.sanko-custom-template .cf7-form-wrapper .wpcf7-validation-errors,
.sanko-custom-template .cf7-form-wrapper .wpcf7-mail-sent-ng {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Responsive cho form CF7 */
@media (max-width: 768px) {
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="text"],
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="tel"],
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="email"],
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form textarea,
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form select {
        padding: 10px 14px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px !important;
    }
    
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form select {
        min-height: 44px !important;
        padding-right: 36px !important;
    }
    
    .sanko-custom-template .cf7-form-wrapper .wpcf7-form input[type="submit"] {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

.feature-image-container {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.feature-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.feature-image-content h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Feature Video Styling */
.feature-video-container {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-video-container:hover .feature-video {
    transform: scale(1.05);
}

.feature-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.feature-video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feature-video-content h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.video-play-indicator {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    margin-left: 16px;
    transition: all 0.3s ease;
}

.feature-video-container:hover .video-play-indicator {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile optimizations for feature videos */
@media (max-width: 768px) {
    .feature-video-content {
        padding: 16px;
    }
    
    .feature-video-content h4 {
        font-size: 16px;
    }
    
    .video-play-indicator {
        font-size: 20px;
        margin-left: 8px;
    }
    
    .feature-video-container:hover .feature-video {
        transform: none; /* Disable scale on mobile */
    }
}

/* Solutions Section */
.sanko-custom-template .solutions-section {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .solutions-section .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.sanko-custom-template .solutions-section .container {
    position: relative;
    z-index: 10;
}

.sanko-custom-template .solutions-section .parallax-bg {
    opacity: 0;  /* Bắt đầu với opacity 0 */
    height: 130%; 
    filter: brightness(0.7) contrast(1.2);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sanko-custom-template .solutions-section .parallax-bg.loaded {
    opacity: 0.35;  /* Tăng độ hiển thị khi tải xong */
    animation: gradualRevealSolution 1.5s ease forwards;
}

@keyframes gradualRevealSolution {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
}

.sanko-custom-template .solutions-section .solution-nav {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.sanko-custom-template .solutions-section .solution-card {
    position: relative;
    z-index: 2;
    background-color: rgba(39, 39, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sanko-custom-template .solutions-section .solution-showcase {
    position: relative;
    height: 500px;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile optimizations cho Solutions */
@media (max-width: 768px) {
    .sanko-custom-template .solutions-section .two-columns {
        grid-template-columns: 1fr; /* Single column trên mobile */
        gap: 0; /* Không cần gap vì showcase sẽ bị ẩn */
    }
    
    /* Ẩn solution-showcase trên mobile */
    .sanko-custom-template .solutions-section .solution-showcase {
        display: none;
    }
    
    /* Solution card trở thành background image trên mobile */
    .sanko-custom-template .solutions-section .solution-card {
        position: relative;
        min-height: 400px; /* Tăng chiều cao để hiển thị background */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 24px;
        overflow: hidden;
    }
    
    /* Thêm overlay đậm hơn cho solution card trên mobile */
    .sanko-custom-template .solutions-section .solution-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.3) 0%, 
            rgba(0, 0, 0, 0.6) 50%, 
            rgba(0, 0, 0, 0.8) 100%
        );
        z-index: 1;
        border-radius: inherit;
    }
    
    /* Đảm bảo content hiển thị trên overlay */
    .sanko-custom-template .solutions-section .solution-card > * {
        position: relative;
        z-index: 2;
    }
    
    /* Ẩn solution-text trên mobile */
    .sanko-custom-template .solution-text {
        display: none;
    }
    
    /* Tối ưu title và subtitle */
    .sanko-custom-template .solution-title {
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        margin-bottom: 16px;
        font-size: 20px;
    }
    
    .sanko-custom-template .solution-subtitle {
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        margin-bottom: 12px;
        font-size: 16px;
    }
    
    /* Tối ưu solution items */
    .sanko-custom-template .solution-items {
        margin-top: 16px;
    }
    
    .sanko-custom-template .solution-items li {
        margin-bottom: 8px;
    }
    
    .sanko-custom-template .solution-item-link {
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        font-weight: 500;
    }
    
    .sanko-custom-template .solution-item-link:hover {
        color: var(--accent);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    }
    
    /* Dot styling cho mobile */
    .sanko-custom-template .solution-items .dot {
        background-color: white;
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    /* Solution tabs tối ưu cho mobile */
    .sanko-custom-template .solution-tabs-container {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .sanko-custom-template .solution-tab {
        flex: 1;
        min-width: calc(50% - 4px); /* 2 tabs per row trên mobile */
        padding: 8px 12px;
        font-size: 13px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .sanko-custom-template .solution-tab.active {
        background-color: var(--accent);
        border-color: var(--accent);
        color: white;
    }
    .privacy-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        font-size: 12px;
        color: var(--text-secondary);
    }






    /* Ẩn chữ trên mobile */
    .features-content .section-text{
        display: none;
    }
    .features-content .features-grid{
        margin-top: 0px;
    }


    .solution-subtitle{
        display: none;
    }
    .solution-items{
        display: none!important;
    }
    .solution-actions {
        margin-top: 250px!important;
        padding-top: 16px!important;
    }


    .products-section .section-text{
        display: none;
    }
    .showroom-map-section .section-text{
        display: none;
    }

}