/* Image Placeholders với gradient xanh phù hợp chủ đề Pha Đin Top */

/* Slider: giữ khung và nền mặc định trước khi ảnh load xong */
.active-blog-slider {
    min-height: 100vh;
}
.active-blog-slider .owl-stage-outer,
.active-blog-slider .owl-stage,
.active-blog-slider .owl-item,
.active-blog-slider .item-slider {
    min-height: 100vh;
}
.slider-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Màu nền mặc định khi chưa load xong ảnh (ảnh load xong sẽ phủ lên) */
    background-color: #2d8659;
}

/* Chỉ hiển thị gradient khi không có ảnh */
.slider-placeholder:not([style*="url("]) {
    background: linear-gradient(135deg, #2d8659 0%, #43a078 50%, #5a7a6b 100%);
}

.slider-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 0;
}

/* Ẩn shimmer effect khi có ảnh */
.slider-placeholder[style*="url("]::before {
    display: none;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder cho about image - núi rừng */
.about-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Chỉ hiển thị gradient khi không có ảnh (fallback) */
.about-placeholder:not(:has(img)) {
    background: linear-gradient(180deg, #87c5a4 0%, #2d8659 50%, #1a4d3a 100%);
}

/* Đảm bảo ảnh hiển thị trên cùng */
.about-placeholder img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 2 !important;
    opacity: 1 !important;
    display: block !important;
}

.about-placeholder::after {
    content: '🏔️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Ẩn emoji khi có ảnh */
.about-placeholder img ~ ::after,
.about-placeholder:has(img)::after {
    display: none;
}

/* Đảm bảo ảnh trong info-thumb hiển thị đúng */
.info-thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    opacity: 1 !important;
    display: block !important;
}

/* Placeholder cho gallery images */
.gallery-placeholder {
    background: linear-gradient(135deg, #5a7a6b 0%, #2d8659 50%, #43a078 100%);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    height: 100%;
    width: 100%;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Đảm bảo gallery items có kích thước đồng đều */
.gallery-area .single-gallery {
    height: 300px !important;
    overflow: hidden;
    position: relative;
    display: block;
}

.gallery-area .single-gallery,
.gallery-area .owl-item .single-gallery {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
}

.gallery-area .single-gallery a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-decoration: none !important;
    z-index: 10 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.gallery-area .single-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: relative;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-area .single-gallery a:hover img {
    opacity: 0.9;
}

.gallery-area .pattern-overlay {
    pointer-events: none !important;
    z-index: 1 !important;
}

.gallery-area .gallery-placeholder {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
}

/* Responsive cho gallery */
@media (max-width: 768px) {
    .gallery-area .single-gallery,
    .gallery-area .gallery-placeholder {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .gallery-area .single-gallery,
    .gallery-area .gallery-placeholder {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

/* Placeholder cho video background */
.video-bg-placeholder {
    background: linear-gradient(135deg, #1a4d3a 0%, #2d8659 50%, #5a7a6b 100%);
    position: relative;
}

.video-bg-placeholder::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: rgba(255,255,255,0.3);
    z-index: 2;
}

.video-bg-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Pattern overlay cho texture */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    opacity: 0.5;
}

/* Mây mù effect */
.cloud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 70%, rgba(255,255,255,0.08) 0%, transparent 40%);
    animation: cloudMove 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes cloudMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(-10px); }
}

