/* Journals Page Styles */
/* Global */

body { font-family: 'Mulish', sans-serif; transition: background-color 0.4s ease; }
.no-scrollbar::-webkit-scrollbar { display: none; }
/* Gradient overlay for hero images */

/* .hero-img-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8,26,54,0.72) 0%, rgba(8,26,54,0.32) 40%, rgba(8,26,54,0.0) 100%);
    transition: background 0.5s;
} */

/* Bo tròn nút trong hero panel */
.hero-panel a {
    border-radius: 999px !important;
}
/* Custom utilities for this template */
.font-sans-lato { font-family: "Quicksand", "Mulish", sans-serif; }
.font-serif-playfair { font-family: "Playfair Display", serif; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.image-zoom-container { overflow: hidden; }
.image-zoom-container img { transition: transform 0.5s ease; }
.image-zoom-container:hover img { transform: scale(1.05); }

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-panel-fade { animation: panelFadeIn 0.6s ease-out forwards; }

/* --- Custom: Dark mode navy background --- */
.dark main {
    background-color: #081A36 !important;
}
.dark .bg-black {
    background-color: #081A36 !important;
}
.dark .dark\:bg-black {
    background-color: #081A36 !important;
}
.dark .bg-stone-900,
.dark .dark\:bg-stone-900 {
    background-color: #081A36 !important;
}

/* --- Custom: Tab button text color in dark mode --- */
.dark .hero-tab-btn {
    color: #fff !important;
}
.dark .hero-tab-btn.active {
    color: #fff !important;
}
.dark .hero-tab-btn .tab-indicator {
    background-color: #cf9726 !important;
}


/* --- Custom: Panel button text color in dark mode (main action button only) --- */
.dark .hero-panel a:not(.readmore),
.dark .hero-panel a:not(.readmore) span {
    color: #fff !important;
}
.dark .hero-panel a:not(.readmore) {
    background-color: #cf9726 !important;
    border: none;
}
.dark .hero-panel a:not(.readmore):hover {
    background-color: #aa8c2c !important;
}

/* Dark mode for 'Xem thêm' button */
.dark .readmore {
    background-color: #22304a !important;
    color: #60a5fa !important;
    border: 1px solid #60a5fa !important;
    box-shadow: none !important;
}
.dark .readmore:hover {
    background-color: #1e293b !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

/* Sticky tab bar effect for hero-tabs-bottom */
/* #hero-tabs-bottom {
    background: rgba(255,255,255,0.5);
    transition: background 0.3s, box-shadow 0.3s;
}
.dark #hero-tabs-bottom {
    background: rgba(8,26,54,0.5);
} */
    /* Tab button colors - light mode */
    .hero-tab-btn-bot {
        color: #22304a; /* navy */
        transition: color 0.2s;
    }
    .hero-tab-btn-bot.active {
        color: #d4af37 !important; /* yellow */
    }
    .hero-tab-btn-bot:hover:not(.active) {
        color: #60a5fa; /* black/navy dark */
    }
    /* Tab button colors - dark mode */
    .dark .hero-tab-btn-bot {
        color: #fff; /* blue-400 */
    }
    .dark .hero-tab-btn-bot.active {
        color: #d4af37 !important; /* yellow */
    }
    .dark .hero-tab-btn-bot:hover:not(.active) {
        color: #60a5fa;
    }
#hero-tabs-bottom.sticky {
    position: fixed !important;
    top: 8px;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 1000;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    border-radius: 18px;
    margin: 0 auto;
    padding: 1rem 0;
}
.dark #hero-tabs-bottom.sticky {
    background: rgba(8,26,54,0.7);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
@media (max-width: 1024px) {
    #hero-tabs-bottom.sticky {
    max-width: 100vw;
    width: 100vw;
    left: 0;
    transform: none !important;
    border-radius: 0;
    }
}

/* New components */
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CATEGORY TABS STYLES --- */
.ev-tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(-50%);
}

.ev-tab-btn:hover, .ev-tab-btn.is-active {
    transform: scale(1.15);
}

.ev-tab-btn:hover::after, .ev-tab-btn.is-active::after {
    width: 60%;
}

/* Colors for Tabs */
.tab-all { color: #000; }
.dark .tab-all { color: #facc15; }
.tab-current { color: #15803d; }
.dark .tab-current { color: #4ade80; }
.tab-upcoming { color: #b45309; }
.dark .tab-upcoming { color: #facc15; }
.tab-past { color: #b91c1c; }
.dark .tab-past { color: #f87171; }

/* --- STREAMLINED SEARCH & FILTER --- */
.filter-select {
    appearance: none;
    background-color: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0.8rem;
}

/* --- ARTICLE CARD NEW STYLES --- */
.article-card {
    display: flex;
    border-radius: 1.5rem;
    overflow: hidden;
    background: white;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}
.dark .article-card { background: #1e293b; }

/* Types Border & Glow */
.card-current { border-color: #4ade80; box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.3); }
.card-upcoming { border-color: #facc15; box-shadow: 0 10px 30px -10px rgba(250, 204, 21, 0.3); }
.card-past { border-color: #f87171; box-shadow: 0 10px 30px -10px rgba(248, 113, 113, 0.3); }

.article-card:hover { transform: translateY(-5px); }
.card-current:hover { box-shadow: 0 15px 40px -10px rgba(74, 222, 128, 0.5); }
.card-upcoming:hover { box-shadow: 0 15px 40px -10px rgba(250, 204, 21, 0.5); }
.card-past:hover { box-shadow: 0 15px 40px -10px rgba(248, 113, 113, 0.5); }

/* --- CALENDAR STYLES --- */
.calendar-day {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
}

.ev-day-current { background-color: #15803d; color: white; }
.ev-day-current:hover { background-color: #4ade80; color: black; }
.ev-day-upcoming { background-color: #b45309; color: white; }
.ev-day-upcoming:hover { background-color: #facc15; color: black; }
.ev-day-past { background-color: #b91c1c; color: white; }
.ev-day-past:hover { background-color: #f87171; color: black; }

.dark .ev-day-current { background-color: #4ade80; color: black; }
.dark .ev-day-current:hover { background-color: #15803d; color: white; }
.dark .ev-day-upcoming { background-color: #facc15; color: black; }
.dark .ev-day-upcoming:hover { background-color: #b45309; color: white; }
.dark .ev-day-past { background-color: #f87171; color: black; }
.dark .ev-day-past:hover { background-color: #b91c1c; color: white; }

.event-popper {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    height: 140px;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    border-radius: 16px;
    overflow: hidden;
}

.calendar-day:hover .event-popper {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.glow-current { border: 2px solid #4ade80; box-shadow: 0 0 20px rgba(74, 222, 128, 0.4); }
.glow-upcoming { border: 2px solid #facc15; box-shadow: 0 0 20px rgba(250, 204, 21, 0.4); }
.glow-past { border: 2px solid #f87171; box-shadow: 0 0 20px rgba(248, 113, 113, 0.4); }
