/* --- CORE --- */
.az-pc-container {
    position: relative; width: 100%; overflow: hidden; background: #000;
}

/* LAYERS */
.az-pc-bg-layer, .az-pc-bg-old {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; background-position: center;
    pointer-events: none; will-change: transform, opacity;
}
.az-pc-bg-old { z-index: 2; opacity: 0; }
.az-pc-bg-layer { z-index: 1; opacity: var(--az-opacity-normal, 0.4); }

/* ANIMATION */
@keyframes azZoomFadeOut {
    0% { transform: scale(1); opacity: var(--az-opacity-normal, 0.4); }
    100% { transform: scale(1.3); opacity: 0; }
}
@keyframes azZoomFadeIn {
    0% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: var(--az-opacity-normal, 0.4); }
}
.az-anim-out { animation: azZoomFadeOut 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.az-anim-in { animation: azZoomFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

/* --- FLATSOME OVERRIDES --- */

/* Đảm bảo slider viewport nhận height cài đặt từ PHP */
.layout-slider-native .flickity-viewport,
.layout-slider-native .slider {
    height: 100% !important;
}

/* ITEM STYLES */
/* Vì ta đã dùng class .col của Flatsome, nó sẽ lo phần width/padding */
.az-pc-item {
    height: 100%; 
    padding-bottom: 0 !important; /* Fix lỗi padding bottom của Flatsome col */
}

/* .col-inner là wrapper ta thêm vào để styling border/background */
.az-pc-item .col-inner {
    position: relative;
    height: 100%;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    background: transparent; /* Để nhìn xuyên thấu xuống bg-layer */
    transition: background 0.2s ease;
}

/* Hiệu ứng Hover vào từng ô */
.az-pc-item .col-inner:hover,
.az-pc-item.active .col-inner {
    background-color: #1e1e1e75 !important;
    border-color: rgba(255,255,255,0.3);
}

/* TEXT & BUTTON */
.az-pc-link { display: block; width: 100%; height: 100%; text-decoration: none; position: relative; }
.az-pc-content-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; pointer-events: none; z-index: 5; }
.valign-top { justify-content: flex-start; } .valign-middle { justify-content: center; } .valign-bottom { justify-content: flex-end; }
.halign-left { align-items: flex-start; text-align: left; } .halign-center { align-items: center; text-align: center; } .halign-right { align-items: flex-end; text-align: right; }
.az-pc-title { font-size: 20px; weight: 800; text-transform: uppercase; margin: 0 0 5px; line-height: 1.2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.az-pc-count { font-size: 11px; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.az-pc-btn-wrap { position: absolute; z-index: 10; padding: 20px; transition: all 0.4s ease; opacity: 0; transform: translateY(10px); }
.az-pc-item:hover .az-pc-btn-wrap, .az-pc-item.active .az-pc-btn-wrap { opacity: 1; transform: translate(0, 0); }
.az-pc-btn { font-size: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid; padding-bottom: 3px; display: inline-block; }
.btn-v-top { top: 0; bottom: auto; } .btn-v-middle { top: 50%; bottom: auto; transform: translateY(-50%); } .btn-v-bottom { top: auto; bottom: 0; }
.btn-h-left { left: 0; right: auto; } .btn-h-center { left: 50%; right: auto; transform: translateX(-50%); } .btn-h-right { left: auto; right: 0; }
.btn-v-middle.btn-h-center { transform: translate(-50%, -50%); }
.az-pc-item:hover .btn-v-middle.btn-h-center, .az-pc-item.active .btn-v-middle.btn-h-center { transform: translate(-50%, -50%) !important; }