@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* Custom stylesheet for Ly & Báo Pet Shop */
/* Style theme: Premium Modern Cartoon (Kawaii Soft Modernism) */

:root {
    --primary: #a63ef7;
    --primary-dark: #63286b;
    --secondary: #e5aab6;
    --secondary-light: #fbe5e9;
    --bg-warm: #fff1eb;
    --white: #ffffff;
    --dark: #2d2d2d;
    --gray-light: #f8f9fa;

    /* Modern Soft Cartoon Border & Shadow variables */
    --border-color: rgba(99, 40, 107, 0.08);
    --border-width: 2px;
}

@font-face {
    font-family: 'Cadena';
    src: local('#9Slide07 Cadena Regular'),
        local('#9Slide07 Cadena'),
        local('9Slide07 Cadena'),
        local('Cadena'),
        url('../fonts/%239Slide07%20Cadena.ttf') format('truetype'),
        url('../fonts/9Slide07-Cadena.ttf') format('truetype'),
        url('../fonts/9Slide07%20Cadena.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Reset & Body Styles */
body {
    background-color: var(--bg-warm);
    color: var(--dark);
    font-family: 'Nunito', 'Lexend', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Headings optimization: Normal font-weight on Cadena to prevent Vietnamese diacritics distortion */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    color: var(--primary-dark);
    font-weight: normal;
    /* Tránh faux-bold gây lỗi hiển thị dấu tiếng Việt */
}

/* Modern Rounded Cartoon Card */
.brutal-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(99, 40, 107, 0.04), 0 4px 10px rgba(99, 40, 107, 0.01);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.brutal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(166, 62, 247, 0.08), 0 6px 15px rgba(166, 62, 247, 0.02);
    border-color: rgba(166, 62, 247, 0.2);
}

/* Duolingo-style 3D Cartoon Clickable Buttons */
.brutal-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: 30px;
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: normal;
    padding: 12px 30px;
    /* box-shadow: 0 5px 0px #8222d3, 0 8px 20px rgba(166, 62, 247, 0.15); */
    transition: all 0.15s ease;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: 0;
}

.brutal-btn:hover {
    background-color: #b556ff;
    transform: translateY(-2px);
    box-shadow: 0 7px 0px #8222d3, 0 10px 22px rgba(166, 62, 247, 0.2);
}

.brutal-btn:active {
    top: 4px;
    box-shadow: 0 1px 0px #8222d3, 0 4px 10px rgba(166, 62, 247, 0.1);
}

.brutal-btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark) !important;
    /* box-shadow: 0 5px 0px #d48e9c, 0 8px 20px rgba(229, 170, 182, 0.15); */
}

.brutal-btn-secondary:hover {
    background-color: #f1bdc7;
    transform: translateY(-2px);
    box-shadow: 0 7px 0px #d48e9c, 0 10px 22px rgba(229, 170, 182, 0.2);
}

.brutal-btn-secondary:active {
    top: 4px;
    box-shadow: 0 1px 0px #d48e9c, 0 4px 10px rgba(229, 170, 182, 0.1);
}

/* Soft Rounded Cartoon Badges */
.brutal-badge {
    background-color: var(--secondary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(229, 170, 182, 0.5);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Header & Glassmorphic Navigation */
.custom-header {
    position: relative;
    background-color: rgba(255, 241, 235, 0.85);
    border-bottom: 1px solid rgb(99 40 107 / 11%);
    padding: 16px 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.custom-header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 241, 235, 0.92);
    box-shadow: 0 8px 30px rgba(99, 40, 107, 0.04);
    padding: 12px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.1) rotate(-6deg);
}

.nav-link-custom {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 25px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after {
    width: 80%;
}

/* Modern Rounded Input Box */
.search-container {
    position: relative;
    border: 1.5px solid rgba(99, 40, 107, 0.12);
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 62, 247, 0.12);
}

.search-input {
    border: none;
    padding: 8px 18px;
    outline: none;
    width: 200px;
    font-size: 0.95rem;
    /* font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif; */
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    padding: 8px 14px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--primary);
}

/* Profile Icon & Shopping Cart */
.cart-icon-wrapper {
    position: relative;
    font-size: 1.35rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(166, 62, 247, 0.04);
}

.cart-icon-wrapper:hover {
    transform: scale(1.08);
    color: var(--primary);
    background-color: rgba(166, 62, 247, 0.08);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(166, 62, 247, 0.2);
}

/* Offcanvas Sidebar Mobile */
.offcanvas-custom {
    background-color: var(--bg-warm);
    border-left: var(--border-width) solid var(--border-color);
}

.offcanvas-header {
    border-bottom: 1.5px solid var(--border-color);
}

/* 2. Full-Width Hero Slideshow */
.hero-section {
    /* padding-top: 72px; */
    /* offset for fixed header */
    position: relative;
    width: 100%;
}

/* Hero carousel takes full width, no container restriction */
#heroCarousel {
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide img.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transition: transform 0.8s ease;
}

#heroCarousel .carousel-item.active .slide-bg,
#heroCarousel .carousel-item .slide-bg:hover {
    transform: scale(1.03);
}

/* Gradient overlay for text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(99, 40, 107, 0.72) 0%,
            rgba(99, 40, 107, 0.45) 40%,
            rgba(99, 40, 107, 0.05) 75%,
            transparent 100%);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6% 0 7%;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: 'Cadena', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
    width: fit-content;
}

.hero-title {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.18;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: normal;
    text-shadow: 0 2px 24px rgba(50, 0, 80, 0.18);
}

.hero-title span {
    color: #f8c5d8;
}

.hero-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.12rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    max-width: 480px;
    text-shadow: 0 1px 8px rgba(50, 0, 80, 0.15);
}

/* Carousel controls - modern floating arrows */
.hero-carousel-controls {
    position: absolute;
    bottom: 36px;
    right: 5%;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-ctrl-btn:hover {
    background: rgba(166, 62, 247, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Carousel indicators - slim dots at bottom */
#heroCarousel .carousel-indicators {
    bottom: 38px;
    left: 7%;
    right: auto;
    margin: 0;
    justify-content: flex-start;
    gap: 6px;
}

#heroCarousel .carousel-indicators button {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    transition: all 0.3s ease;
    opacity: 1;
}

#heroCarousel .carousel-indicators button.active {
    width: 52px;
    background-color: #ffffff;
}

/* Smooth fade transition */
#heroCarousel .carousel-item {
    transition: transform 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Polaroid Collage (Modern Curved Cartoon Photo Frames) */
.polaroid-collage {
    position: relative;
    height: 440px;
    width: 100%;
    z-index: 2;
}

.polaroid-item {
    position: absolute;
    background-color: var(--white);
    padding: 12px 12px 22px 12px;
    border: 1px solid rgba(99, 40, 107, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(99, 40, 107, 0.05), 0 4px 10px rgba(99, 40, 107, 0.01);
    width: 230px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-item img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.04);
    border-radius: 16px;
}

.polaroid-caption {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 1.05rem;
    text-align: center;
    margin-top: 10px;
    color: var(--primary-dark);
}

.polaroid-1 {
    top: 12%;
    left: 4%;
    transform: rotate(-6deg);
}

.polaroid-2 {
    top: 6%;
    right: 4%;
    transform: rotate(5deg);
}

.polaroid-3 {
    bottom: 6%;
    left: 28%;
    transform: rotate(-2deg);
}

.polaroid-collage:hover .polaroid-item {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 45px rgba(166, 62, 247, 0.1);
    z-index: 10;
}

/* 3. Best Sellers Section */
.section-title-wrapper {
    margin-bottom: 45px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.6rem;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '🐾';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    filter: drop-shadow(0 4px 8px rgba(99, 40, 107, 0.18));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-title:hover::after {
    transform: translateX(-50%) scale(1.2) rotate(12deg);
}

/* Decorative Floating Icons (Diverse Colors & Integrated Style) */
.deco-icon {
    display: inline-block;
    font-size: 1.8rem;
    position: absolute;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(2px 5px 8px rgba(99, 40, 107, 0.12));
    animation: floatAnimation 4s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.deco-icon.text-primary {
    color: var(--primary) !important;
}

.deco-icon.text-secondary {
    color: var(--secondary) !important;
}

.deco-icon.text-warning {
    color: #ffb703 !important;
    /* Sweet orange-gold */
}

.deco-icon.text-info {
    color: #219ebc !important;
    /* Calm cyan */
}

.deco-icon.text-danger {
    color: #ff5e7e !important;
    /* Soft rose red */
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-12px) rotate(15deg);
    }
}

.float-1 {
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.float-2 {
    animation-delay: 0.7s;
    animation-duration: 4.2s;
    animation-name: floatAnimationAlt;
}

.float-3 {
    animation-delay: 1.4s;
    animation-duration: 4.8s;
}

.float-4 {
    animation-delay: 2.1s;
    animation-duration: 3.9s;
    animation-name: floatAnimationAlt;
}

@keyframes floatAnimationAlt {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-8px) rotate(-12deg);
    }
}


/* Optimized Staggered Grid for Cartoon Layout */
.staggered-col {
    transition: transform 0.3s ease;
}

/* @media (min-width: 992px) {
    .staggered-col:nth-child(odd) {
        transform: translateY(18px);
    }

    .staggered-col:nth-child(even) {
        transform: translateY(-18px);
    }
} */

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    border-bottom: 1px solid rgba(99, 40, 107, 0.05);
    height: 220px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    transition: color 0.2s ease;
}

.product-name:hover {
    color: var(--primary);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: auto;
}

/* 4. Charity Campaign Section */
.charity-section {
    background-color: var(--white);
    border-top: 1px solid rgba(99, 40, 107, 0.06);
    border-bottom: 1px solid rgba(99, 40, 107, 0.06);
    padding: 80px 0;
    position: relative;
}

.charity-dashboard {
    background-color: var(--bg-warm);
    border: 1px solid rgba(99, 40, 107, 0.08);
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 15px 40px rgba(99, 40, 107, 0.03);
}

/* Modern Rounded Progress Bar */
.progress-container-custom {
    position: relative;
    height: 16px;
    background-color: var(--white);
    border: 1px solid rgba(99, 40, 107, 0.1);
    border-radius: 30px;
    margin: 35px 0;
    overflow: visible;
}

.progress-bar-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 30px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(166, 62, 247, 0.2);
}

.progress-paw-marker {
    position: absolute;
    top: -13px;
    right: -14px;
    font-size: 1.8rem;
    color: var(--primary-dark);
    transform: rotate(15deg);
}

.stat-box {
    text-align: center;
    padding: 24px 20px;
    border: 1.5px dashed rgba(99, 40, 107, 0.15);
    border-radius: 20px;
    background-color: var(--white);
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
}

/* 3D Soft Countdown Block */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.countdown-box {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 72px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(99, 40, 107, 0.12);
}

.countdown-number {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
}

/* 4.2 Event Cards Layout */
.event-card-custom {
    background-color: var(--white);
    border: 2px solid rgba(99, 40, 107, 0.08);
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 40, 107, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.event-card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(166, 62, 247, 0.08);
    border-color: rgba(166, 62, 247, 0.2);
}

.event-card-custom.active-event {
    border: 2.5px solid var(--primary);
    background-color: rgba(255, 241, 235, 0.3);
    box-shadow: 0 18px 40px rgba(166, 62, 247, 0.12), inset 0 0 10px rgba(166, 62, 247, 0.03);
}

.event-countdown-mini {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.event-countdown-mini .mini-box {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 10px;
    padding: 6px 8px;
    min-width: 48px;
    text-align: center;
}

.event-countdown-mini .mini-number {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.1;
}

.event-countdown-mini .mini-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-view-products-link {
    font-family: 'Cadena', '#9Slide07 Cadena Regular', '#9Slide07 Cadena', 'Lexend', -apple-system, sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-weight: normal;
}

.event-view-products-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.event-card-custom:hover .event-view-products-link i {
    transform: translateX(4px);
}

/* Event Products Wrapper */
.event-products-wrapper {
    scroll-margin-top: 90px;
}

.tab-content-custom {
    display: none;
}

.tab-content-custom.active-content {
    display: block;
    animation: fadeInTab 0.35s ease-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nhu yếu phẩm needed grid */
.charity-item-card {
    background-color: var(--white);
    border: 1.5px solid rgba(99, 40, 107, 0.08);
    border-radius: 20px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(99, 40, 107, 0.02);
    transition: all 0.3s ease;
}

.charity-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 40, 107, 0.06);
}

.charity-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid rgba(99, 40, 107, 0.04);
    border-radius: 12px;
    margin-bottom: 12px;
}

.charity-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.charity-progress-bar {
    height: 8px;
    background-color: var(--bg-warm);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.charity-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #d96fd6);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Stage: Đang Tiến Triển (Early / Normal) → Teal */
.progress-fill-normal {
    background: linear-gradient(90deg, #0097a7, #4dd0e1) !important;
}

/* Stage: Đang Diễn Ra (Active / Mid) → Primary Purple */
.progress-fill-active {
    background: linear-gradient(90deg, var(--primary), #c46fd6) !important;
}

/* Stage: Sắp Kết Thúc / Khẩn Cấp (Urgent) → Orange → Red */
.progress-fill-urgent {
    background: linear-gradient(90deg, #e65100, #ff6d00, #ff9800) !important;
    animation: urgentPulse 1.8s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* Countdown mini-box stage colors */
.mini-box-normal {
    background-color: #00838f !important;
}
.mini-box-active {
    background-color: var(--primary-dark) !important;
}
.mini-box-urgent {
    background-color: #bf360c !important;
}


/* 5. Footer Layout Optimization */
.custom-footer {
    background-color: var(--primary-dark);
    color: var(--bg-warm);
    border-top: 1px solid rgba(99, 40, 107, 0.05);
    padding: 70px 0 35px 0;
    border-radius: 40px 40px 0 0;
    /* Bo cong cạnh trên tạo hiệu ứng hoạt hình mềm mại */
}

.custom-footer h5 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-link {
    color: var(--bg-warm);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(4px);
    opacity: 1;
}

.social-icons-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 170, 182, 0.2);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .polaroid-collage {
        margin-top: 45px;
        height: 380px;
    }

    .polaroid-item {
        width: 180px;
    }

    .polaroid-item img {
        height: 130px;
    }

    .polaroid-1 {
        left: 10%;
    }

    .polaroid-2 {
        right: 10%;
    }

    .polaroid-3 {
        left: 28%;
        bottom: 0%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .polaroid-collage {
        height: 310px;
    }

    .polaroid-item {
        width: 135px;
        padding: 8px 8px 18px 8px;
    }

    .polaroid-item img {
        height: 90px;
    }
}