/* Couple Group theme - shared custom CSS (Tailwind CDN covers utility classes) */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-effect,
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.shadow-premium {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}
.bento-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.transition-standard {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-image {
    transform: scale(1.05);
}

/* Header shrink-on-scroll state, toggled by assets/theme.js */
header.site-header.is-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Entrance + floating animations (v2 content) */
.hero-title-entrance {
    animation: ctxFadeInUp 1s ease-out forwards;
}
@keyframes ctxFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.editorial-text {
    letter-spacing: -0.01em;
}
@keyframes ctxFloating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.float-1 { animation: ctxFloating 6s ease-in-out infinite; }
.float-2 { animation: ctxFloating 7s ease-in-out infinite; animation-delay: 1s; }
.float-3 { animation: ctxFloating 8s ease-in-out infinite; animation-delay: 0.5s; }
.hero-img-container { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hero-img-container:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 20;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.15));
}
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
}
.content-shadow {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 64, 128, 0.22) 0%, rgba(0, 64, 128, 0.08) 55%, rgba(0, 64, 128, 0.02) 100%);
}
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.card-hover:hover .card-icon {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Second carousel variant (van-hoa gallery) - ported verbatim from source */
.carousel-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
}
.carousel-viewport:active {
    cursor: grabbing;
}
.carousel-viewport .carousel-track {
    display: flex;
    transition: transform 600ms ease-in-out;
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 70%;
    padding: 0 16px;
    user-select: none;
}
@media (min-width: 768px) {
    .carousel-slide { flex: 0 0 60%; }
}
@media (min-width: 1024px) {
    .carousel-slide { flex: 0 0 45%; }
}

/* Drag/auto-scroll carousel (foundation gallery, van-hoa gallery) - ported verbatim from source */
.carousel-container {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    position: relative;
}
.carousel-container:active {
    cursor: grabbing;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.carousel-item {
    flex: 0 0 auto;
    padding: 0 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-item img {
    border-radius: 32px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
@media (hover: hover) {
    .carousel-item:hover {
        transform: scale(1.02);
    }
    .carousel-item:hover img {
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }
}
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(12px); opacity: 1; }
}
.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}
.prose p {
    white-space: normal;
}

.prose p img {
    display: inline-block;
    vertical-align: top;
}
/* Gallery Văn hóa */
/* Desktop */
.culture-carousel .carousel-item {
    width: 42% !important;
}

.culture-carousel .carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .culture-carousel .carousel-item img {
        height: 280px;
    }
}
/* Mobile */
@media (max-width: 767px) {
    .culture-carousel .carousel-item {
        width: 90% !important;
    }

    .culture-carousel .carousel-item img {
        height: 150px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .culture-carousel .carousel-item {
        width: 60% !important;
    }

    .culture-carousel .carousel-item img {
        height: 240px;
    }
}