/* Initial styles from resources/css/app.css */
/* Design System: Research Institute (Green Theme) */
:root {
    /* Color Palette - Emerald & Sage (Trustworthy, Nature, Growth) */
    --color-primary: #047857;
    /* Emerald 700 - Main Brand Color */
    --color-primary-hover: #065f46;
    /* Emerald 800 */
    --color-secondary: #10b981;
    /* Emerald 500 - Accents */
    --color-accent: #d1fae5;
    /* Emerald 100 - Background Highlights */

    --color-text-main: #1f2937;
    /* Gray 800 - Contrast 12.8:1 */
    --color-text-muted: #4b5563;
    /* Gray 600 */
    --color-text-light: #9ca3af;
    /* Gray 400 */

    --color-bg-body: #f9fafb;
    /* Gray 50 */
    --color-bg-card: #ffffff;

    --color-border: #e5e7eb;
    /* Gray 200 */
    --color-danger: #ef4444;

    /* Spacing System (4px Grid) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */

    /* Typography */
    --font-sans: 'IBM Plex Sans Thai', system-ui, -apple-system, sans-serif;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Elevations */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: var(--leading-normal);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-accent);
}

.card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header/Navbar */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    font-size: 1.08rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #064e3b;
    color: white;
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
}

.footer a {
    color: #a7f3d0;
}

/* Utils */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.block {
    display: block !important;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    font-weight: 600;
}

.text-2xl {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-3xl {
    font-size: 1.875rem;
    font-weight: 700;
}

.text-muted {
    color: var(--color-text-muted);
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.grid {
    display: grid;
    gap: var(--space-6);
}

/* Home Page Specific Styles */
.hero-section {
    background: radial-gradient(circle at 20% 30%, #065f46 0%, #047857 50%, #02472f 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 3rem 0;
    border-bottom: 4px solid #f59e0b;
    /* Golden accent line */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png');
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-carousel {
    position: relative;
}

.hero-carousel-inner {
    display: flex;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-item {
    min-width: 100%;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

/* Missing Utility Classes for Footer and Layout */

/* Grid System */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-1 {
    gap: 0.25rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Colors */
.text-warning {
    color: #f59e0b;
}

.text-success {
    color: #10b981;
}

.bg-success {
    background-color: #047857;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.border-green-600 {
    border-color: #059669;
}

/* Spacing */
.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Borders & Radius */
.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
    border-style: solid;
}

/* Typography */
.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

/* Flex alignment */
.items-start {
    align-items: flex-start;
}

/* Footer Column Specifics */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

/* Survey Box & Social Styles */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.inline-block {
    display: inline-block;
}

.transition-colors {
    transition: color 0.2s ease;
}

.hover\:text-white:hover {
    color: #ffffff;
}

/* Social Buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
}

.social-btn.youtube:hover {
    background-color: #ff0000;
}

.social-btn.line:hover {
    background-color: #00c300;
}

/* Rockstar/GTA Style Hero Banner (Banner 1) */
.hero-gta-style {
    padding: 0;
    margin: 0;
    height: auto;
    background: #f4f4f4;
    border-bottom: none;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-item {
    height: auto;
    aspect-ratio: 21 / 7;
    min-height: 350px;
    position: relative;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.hero-bg-deep {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.6);
    z-index: 1;
}

.hero-bg-image .hero-fg-art {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.hero-content-overlay {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
}

.hero-text-content {
    max-width: 600px;
    text-align: left;
}

.hero-gta-badge {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #fca5a5;
    margin-bottom: 0.5rem;
}

.hero-gta-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.hero-gta-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 450px;
}

.hero-gta-actions {
    display: flex;
    gap: 1rem;
}

.gta-btn {
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gta-btn-primary {
    background: #fca5a5;
    /* Pinkish/Coral GTA style */
    color: #000;
}

.gta-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.gta-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.gta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* GTA Progress Indicators */
.gta-progress-container {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gta-play-pause {
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.gta-bars {
    display: flex;
    gap: 0.5rem;
}

.gta-bar-wrapper {
    position: relative;
    width: 60px;
    height: 3px;
    cursor: pointer;
}

.gta-bar-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.gta-bar-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.gta-bar-fill.is-active {
    width: 100%;
    transition: width 5s linear;
}



.hero-empty-msg h2 {
    color: #fff;
}

.hero-text-side {
    flex: 1;
    padding-right: 2rem;
}

.hero-h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 100%;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn {
    display: inline-block;
    margin-top: 1rem;
    background: white;
    color: #047857;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-image-side {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-border-box {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    background: white;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transform-origin: center 20%;
}

.hero-dots-nav {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.hero-empty-container {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-empty-msg {
    text-align: center;
    opacity: 0.3;
}

/* News Section */
.news-bg-wrapper {
    background-color: #ffffff;
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-news {
    padding-bottom: 0;
}

.section-header-h2 {
    color: var(--color-primary);
    position: relative;
    padding-left: 1rem;
    border-left: 5px solid var(--color-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-bg-wrapper-dark {
    background: #f8fafc;
    padding: 6rem 0;
    color: #1f2937;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.news-main-h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    margin: 0;
    color: #064e3b;
}

.news-h2-underline {
    height: 4px;
    width: 50px;
    background: #047857;
    margin-top: 0.75rem;
    display: block;
}

.news-premium-view-all {
    color: #047857;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.news-premium-view-all:hover {
    color: #065f46;
    letter-spacing: 1.5px;
}

.rockstar-news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Featured Side */
.news-featured-card-new {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-featured-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-featured-img-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f1f5f9;
}

.news-featured-img-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.news-featured-wrap:hover img {
    transform: scale(1.05);
}

.news-featured-text-block {
    padding: 1.5rem;
}

/* List Side */
.news-list-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-list-card-new {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1rem;
    margin: 0 -1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.news-list-card-new:hover {
    background: rgba(4, 120, 87, 0.03);
    transform: translateX(5px);
}

.news-list-card-new:last-child {
    border-bottom: none;
}

.news-list-wrap {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.news-list-img-container {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-list-img-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

.news-list-wrap:hover img {
    transform: scale(1.1);
}

.news-list-content {
    display: flex;
    flex-direction: column;
}

/* Common Typography */
.news-premium-category {
    display: inline-block;
    background: rgba(4, 120, 87, 0.1);
    color: #047857;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.news-featured-h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #0f172a;
    transition: color 0.3s;
}

.news-list-h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #1e293b;
    transition: color 0.3s;
}

.news-featured-wrap:hover .news-featured-h3,
.news-list-wrap:hover .news-list-h3 {
    color: #047857;
}

.news-premium-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Empty State */
.news-empty-wrapper-dark {
    padding: 10rem 0;
    text-align: center;
    background: #0a0a0a;
    border-radius: 30px;
}

@media (max-width: 1024px) {
    .rockstar-news-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .news-featured-h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .news-main-h2 {
        font-size: 2.5rem;
    }

    .news-list-wrap {
        flex-direction: row;
        gap: 1.5rem;
    }

    .news-list-img-container {
        width: 100px;
        height: 100px;
    }
}

/* Rockstar/GTA Event Poster Style (Activities) */
.activities-premium-wrapper {
    background: #ffffff;
    padding: 6rem 0;
    position: relative;
}

.activity-poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.activity-poster-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #000;
}

.activity-poster-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    position: relative;
}

.activity-poster-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.activity-poster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.activity-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #047857;
    font-size: 3rem;
}

.activity-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
    transition: all 0.5s ease;
}

.activity-poster-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.activity-poster-info {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.activity-poster-category {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

.activity-poster-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.activity-poster-footer {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1) 0.1s;
}

.activity-poster-btn {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 0.85rem 2.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.activity-poster-link:hover .activity-poster-overlay {
    background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.95) 100%);
}

.activity-poster-link:hover .activity-poster-info,
.activity-poster-link:hover .activity-poster-footer {
    opacity: 1;
    transform: translateY(0);
}

.activity-poster-link:hover .activity-poster-img img {
    transform: scale(1.15) rotate(1deg);
}

.activity-poster-btn:hover {
    transform: scale(1.05);
    background: #047857;
    color: #ffffff;
}

@media (max-width: 1199px) {
    .activity-poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .activity-poster-grid {
        grid-template-columns: 1fr;
    }

    .activity-poster-card {
        aspect-ratio: 1 / 1;
    }
}



/* Calendar Styles */
.calendar-outer-wrapper {
    background: #ffffff;
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 10;
}

.calendar-section-wrapper {
    margin: 0 auto;
}

.calendar-section-header {
    margin-bottom: 5rem;
}

.calendar-main-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .calendar-main-box {
        grid-template-columns: 1.6fr 1fr;
        gap: 4rem;
    }
}

.calendar-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.calendar-month-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--color-bg-body);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
    text-align: center;
}

.day-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem;
}

.day-sun {
    color: #ef4444;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    position: relative;
    border: 1px solid transparent;
    min-height: 45px;
    overflow: hidden;
}

.calendar-day:hover {
    background-color: var(--color-bg-body);
    border-color: var(--color-border);
}

.calendar-day.is-today {
    background-color: #047857 !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.calendar-day.has-event {
    position: relative;
}

.calendar-event-container {
    display: none !important;
}

/* If we want a simple dot indicator instead of full text for home page */
.calendar-day.has-event::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #f59e0b;
    border-radius: 50%;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.calendar-day.is-today.has-event::after {
    background-color: white;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    justify-content: flex-end;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-today {
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 4px;
}

.legend-event {
    width: 8px;
    height: 8px;
    background-color: var(--color-warning, #f59e0b);
    border-radius: 50%;
}

.calendar-sidebar {
    padding-top: 0;
}

.upcoming-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2.25rem;
    padding-left: 1rem;
    border-left: 5px solid var(--color-primary);
    color: #1e293b;
    letter-spacing: -0.5px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

/* Activity Mini Table for Sidebar */
.activity-mini-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.activity-mini-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.activity-mini-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.activity-mini-table tr:hover td {
    background-color: #f8fafc;
}

.activity-mini-table tr:last-child td {
    border-bottom: none;
}

.activity-mini-table .date-cell {
    text-align: center;
    border-right: 1px solid #f1f5f9;
    width: 60px;
}

.activity-mini-table .act-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}

.activity-mini-table .act-month {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.activity-mini-table .act-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-mini-table .act-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.up-empty {
    background: #f8fafc;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.up-empty-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.upcoming-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.upcoming-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-body);
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
}

.up-month {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.up-day {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-primary);
}

.up-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.download-section-wrapper {
    background-color: #f8fafc;
    padding: 6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
    /* Adjusted to be clickable */
}

.download-grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .download-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .download-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dl-home-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dl-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dl-home-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
}

.dl-home-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.dl-home-body {
    padding: 1rem;
    flex: 1;
}

.dl-home-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dl-home-list li {
    margin-bottom: 0.75rem;
}

.dl-home-item {
    display: flex;
    align-items: center;
    color: var(--color-text-main);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.dl-home-item:hover {
    color: var(--color-primary);
}

.dl-home-icon {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--color-text-light);
}

.dl-home-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-home-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: right;
    background: #f8fafc;
}

.dl-home-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dl-home-more:hover {
    text-decoration: underline;
}

/* Online Systems - Standard Background */
.systems-outer-wrapper {
    background-color: var(--color-bg-body, #f9fafb);
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.systems-logo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.system-logo-card {
    background: white !important;
    border-radius: 12px;
    padding: 1rem;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    aspect-ratio: 2.2 / 1;
    position: relative;
    overflow: hidden;
}

.system-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(4, 120, 87, 0.3);
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    display: block;
}

.logo-hover-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #047857;
    color: white;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    transition: bottom 0.3s ease;
}

.system-logo-card:hover .logo-hover-info {
    bottom: 0;
}

@media (max-width: 1024px) {
    .systems-logo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .systems-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .systems-logo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* End of Online Systems Section */

/* Footer Styles */
footer {
    background-color: #1a202c;
    /* Dark background */
    color: #cbd5e1;
    /* Light text */
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: auto;
}

.footer-title {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-warning, #f59e0b);
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-warning, #f59e0b);
    padding-left: 5px;
}

.developer-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.dev-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary, #047857);
    color: white;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.visitor-counter {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.counter-box span {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    background: #0f172a;
    border-color: #334155 !important;
}

.survey-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #f59e0b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.social-links {
    margin-top: 2rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-btn:hover {
    background: var(--color-primary, #047857);
    color: white;
    transform: translateY(-3px);
}

.social-btn.facebook:hover {
    background: #1877f2;
}

.social-btn.youtube:hover {
    background: #ff0000;
}

.social-btn.line:hover {
    background: #00b900;
}


.hero-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Sub Banner Ultimate Premium Redesign (Banner 2) - Compact Version */
.sub-banner-wrapper-outer {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, #f0fdf4 0px, transparent 50%),
        radial-gradient(at 100% 100%, #ecfdf5 0px, transparent 50%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.sub-banner-wrapper-outer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.03;
    pointer-events: none;
}

.sub-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    /* Allow shadows to bleed */
}

.sub-carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.sub-item {
    min-width: 100%;
    padding: 2rem;
    /* Add breathing room for the shadow */
}

.sub-content-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    box-shadow:
        0 20px 40px rgba(0, 71, 47, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(4, 120, 87, 0.1);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.sub-content-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sub-content-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(0, 71, 47, 0.12);
}

.sub-text-side {
    flex: 1.2;
    z-index: 10;
    position: relative;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sub-h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.sub-p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 440px;
    font-weight: 400;
}

.sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px -5px rgba(4, 120, 87, 0.3);
    font-size: 0.9rem;
}

.sub-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(4, 120, 87, 0.6);
    color: white;
}

.sub-image-side {
    flex: 0 0 220px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.sub-image-side::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: sub-pulse 4s ease-in-out infinite;
}

@keyframes sub-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.sub-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    opacity: 0.15;
    filter: blur(20px);
    z-index: 1;
}

.sub-image-border-box {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: sub-float 6s ease-in-out infinite;
}

@keyframes sub-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.sub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.sub-dots-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sub-dot {
    width: 12px;
    height: 12px;
    border-radius: 100px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.4s;
    border: 3px solid transparent;
}

.sub-dot:hover {
    background: #94a3b8;
}

.sub-dot.is-active {
    background: #047857;
    width: 30px;
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.3);
}

@media (max-width: 1199px) {
    .sub-image-side {
        width: 360px;
        height: 360px;
    }

    .sub-h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .sub-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
        padding: 3rem 2rem;
    }

    .sub-text-side {
        padding: 0;
    }

    .sub-p {
        margin-left: auto;
        margin-right: auto;
    }

    .sub-image-side {
        width: 100%;
        max-width: 340px;
        height: 340px;
    }

    .sub-btn {
        width: 100%;
        justify-content: center;
    }
}



.sub-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    position: relative;
}

.sub-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

.sub-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sub-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #047857;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.sub-arrow-left {
    left: -1.5rem;
}

.sub-arrow-right {
    right: -1.5rem;
}

.sub-nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.sub-thumb-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 30;
    padding: 0 1rem;
}

.sub-thumb-flex {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
    scrollbar-width: none;
}

.sub-thumb-item {
    min-width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    position: relative;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.sub-empty-container {
    background: #f8fafc;
    border-radius: 30px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e2e8f0;
}

.sub-empty-content {
    text-align: center;
    color: #94a3b8;
}

.sub-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* Sections */
.section-header-h2 {
    border-left: 5px solid var(--color-primary);
    padding-left: 1rem;
    color: var(--color-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #047857;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: #047857;
    font-weight: 600;
    text-decoration: none;
}

.news-empty-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    opacity: 0.6;
}

.news-empty-msg {
    text-align: center;
}

.news-empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Activities Section */
.activities-bg-wrapper {
    background-color: #f0fdf4;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid #d1fae5;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.activity-card {
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.activity-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.activity-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #047857;
}

.activity-date-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #047857;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-body {
    padding: 1.5rem;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.activity-info {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.activity-info p {
    margin-bottom: 0.25rem;
}

.activity-btn {
    display: block;
    text-align: center;
    background: #047857;
    color: white !important;
    padding: 0.6rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.activity-btn:hover {
    background: #065f46;
}

/* Consolidated at top */

.download-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dl-cat-card {
    display: flex;
    flex-direction: column;
    opacity: 0.6;
}

.dl-cat-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dl-cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dl-cat-title {
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #9ca3af;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.dl-cat-empty {
    font-size: 0.8rem;
    color: #d1d5db;
}

/* Consolidated at top */

.systems-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.system-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 120px;
}

.system-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #047857;
}

.system-logo-box {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    border: none;
}

.system-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.system-name-h4 {
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-top: 0.5rem;
}

/* Marquee News */
.marquee-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8fafc;
    border-top: 2px solid #047857;
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.marquee-container {
    display: flex;
    align-items: center;
}

.marquee-label {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.marquee-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    position: relative;
    padding-left: 1rem;
    background-color: #f8fafc;
}

.marquee-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 1.5rem;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    position: absolute;
    animation: marquee-scroll 40s linear infinite;
    gap: 3rem;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.marquee-item:hover {
    color: #047857;
    text-decoration: underline;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .calendar-main-box {
        grid-template-columns: 1fr;
    }

    .download-grid-4,
    .systems-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .download-grid-4,
    .systems-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Missing Classes for Home Page */
.sub-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.3s;
}

.sub-thumb-item.active .sub-img-thumb {
    opacity: 1;
}

.sub-thumb-item.active {
    border-color: #047857;
    transform: scale(1.05);
}

.cat-green {
    color: #10b981;
}

.cat-orange {
    color: #f59e0b;
}

.cat-blue {
    color: #3b82f6;
}

/* Download Category Dashboard (index view) */
.download-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-cat-link {
    text-decoration: none;
    transition: transform 0.3s;
}

.download-cat-link:hover {
    transform: translateY(-10px);
}

.download-cat-card {
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.download-cat-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.download-cat-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.download-cat-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

/* Download File List Systems (dl- classes) */
.dl-hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.dl-hero-internal,
.dl-hero-ff,
.dl-hero-external,
.dl-hero-others {
    background: linear-gradient(135deg, #047857, #064e3b);
}

.dl-section {
    background-color: #f9fafb;
    min-height: 80vh;
    padding: 4rem 0;
}

.dl-summary-bar {
    background-color: white;
    border-radius: 15px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.dl-count {
    font-weight: 600;
    color: #4b5563;
    font-size: 1rem;
}

.dl-count span {
    font-weight: 800;
    color: #047857;
}

.dl-sort-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f59e0b;
}

.dl-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {}

.dl-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dl-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
    background-color: #f8fafc;
}

.dl-badge {
    min-width: 36px;
    height: 36px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

.dl-icon-box {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dl-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
    word-break: break-all;
}

.dl-action {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #dcfce7;
    transition: all 0.2s;
}

.dl-card:hover .dl-action {
    background: #047857 !important;
    color: white !important;
}

/* Page Headers & Hero Banners */
.page-hero-banner {
    background: linear-gradient(135deg, #047857, #064e3b);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-banner-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero-banner-subtitle {
    opacity: 0.8;
}

.section-container {
    padding: 4rem 0;
}

/* Article List Components (News & Activities) */
.article-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-article-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-card-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.article-card-date-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #047857;
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.article-card-meta-row {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-card-meta-icon {
    color: #047857;
}

.article-card-desc {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-more-btn {
    color: #047857;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.article-card-more-btn:hover {
    gap: 0.75rem;
}

/* Empty State Styles */
.empty-state-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 0;
    opacity: 0.6;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-state-content {
    text-align: center;
}

.empty-state-icon {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: #6b7280;
}

.empty-state-text {
    color: #9ca3af;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Article Show/Detail Page Components */
.article-show-wrapper {
    background: white;
    min-height: 80vh;
    padding-bottom: 5rem;
}

.article-show-header {
    background: #f0fdf4;
    padding: 4rem 0;
    border-bottom: 1px solid #d1fae5;
}

.article-breadcrumb {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #047857;
}

.article-breadcrumb-spacer {
    margin: 0 0.5rem;
}

.article-breadcrumb-current {
    color: #047857;
    font-weight: 500;
}

.article-show-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.3;
}

.article-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.article-show-container {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.article-show-max-width {
    max-width: 900px;
    margin: 0 auto;
}

.article-show-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.article-show-img-box {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.article-show-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-show-content-box {
    padding: 3.5rem;
}

.article-show-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0fdf4;
}

.article-show-body {
    line-height: 1.8;
    color: #374151;
    font-size: 1.1rem;
    font-family: 'Sarabun', sans-serif !important;
}

.article-back-btn-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #047857;
    color: white !important;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.article-back-btn:hover {
    background: #065f46;
    transform: translateY(-2px);
}

/* Full Screen Image Modal */
.image-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.6s ease;
}

.image-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    animation: zoom 0.6s ease;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    color: #bbb;
}

.clickable-image-container {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.clickable-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80vh;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media only screen and (max-width: 700px) {
    .image-modal-content {
        width: 100%;
    }
}

/* Login Page Styles */
.login-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    padding: 2rem 0;
}

.login-form-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #d1fae5;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #047857;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(4, 120, 87, 0.3);
}

.login-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.login-field-group {
    margin-bottom: 1.5rem;
}

.login-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.login-input:focus {
    border-color: #047857;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.login-btn-submit {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.85rem;
    background: #047857;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2);
}

.login-btn-submit:hover {
    background: #065f46;
    transform: translateY(-2px);
}

/* Custom CSS extracted from layouts/app.blade.php */
#loadingPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #047857, #064e3b);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo-wrapper {
    margin-bottom: 2rem;
}

.loading-logo-svg {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-title {
    color: white;
    font-family: 'Kanit', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Kanit', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: loadingDot 1s ease-in-out infinite;
}

.dot-2 {
    animation-delay: 0.15s;
}

.dot-3 {
    animation-delay: 0.3s;
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes loadingDot {

    0%,
    80%,
    100% {
        transform: scale(0.4);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.98rem;
    transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block !important;
    animation: dropdownSlide 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: #f0fdf4 !important;
    color: #047857 !important;
    padding-left: 1.5rem !important;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Admin Tabs Navigation */
.admin-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.admin-tab-link {
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab-link:hover {
    color: var(--admin-primary);
}

.admin-tab-link.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

/* Admin Banner Cards */
.admin-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-banner-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-banner-img-box {
    position: relative;
    height: 160px;
}

.admin-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.admin-banner-status-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.admin-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.admin-status-badge-active {
    background: #ecfdf5;
    color: #047857;
    border-color: #d1fae5;
}

.admin-status-badge-inactive {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.admin-banner-body {
    padding: 1.25rem;
    flex: 1;
}

.admin-banner-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.admin-banner-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.admin-banner-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    border-radius: 50px;
    background: white;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background: #047857;
    color: white;
    border-color: #047857;
}

.page-item .page-link:hover:not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #047857;
}

.page-item.disabled .page-link {
    color: #cbd5e1;
    pointer-events: none;
    background: #f8fafc;
    border-color: #f1f5f9;
    box-shadow: none;
}

/* Force Global Font */
html,
body,
*,
button,
input,
textarea,
select {
    font-family: 'Kanit', sans-serif !important;
}

/* Footer Additional Styles */
.footer-links {
    list-style: none;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Admin Dashboard Styles extracted from layouts/admin.blade.php */
:root {
    --admin-primary: #047857;
    --admin-secondary: #064e3b;
    --admin-bg: #f8fafc;
    --sidebar-width: 260px;
}

.admin-body {
    background-color: var(--admin-bg);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-primary);
    text-decoration: none;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.nav-item:hover,
.nav-item.active {
    background: #f0fdf4 !important;
    color: var(--admin-primary) !important;
}

.nav-item.active {
    font-weight: 600;
}

/* Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-nav {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-content {
    padding: 2.5rem;
}

.admin-page-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-size: 0.9rem;
    color: #64748b;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: #94a3b8;
}

/* Shared Dashboard Components */
.admin-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Kanit', sans-serif;
}

.admin-btn-primary {
    background: var(--admin-primary);
    color: white;
}

.admin-btn-primary:hover {
    background: var(--admin-secondary);
    transform: translateY(-2px);
}

/* Admin Pagination */
.admin-pagination .page-item .page-link {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-pagination .page-item.active .page-link {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.3);
}

.admin-alert-success {
    background: #ecfdf5;
    color: #047857;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #d1fae5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Admin Dashboard Components */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-blue {}

.stat-card-purple {}

.stat-card-amber {}

.stat-card-emerald {}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-icon-box {
    padding: 0.5rem;
    border-radius: 10px;
}

.icon-blue {
    background: #e0f2fe;
    color: #0ea5e9;
}

.icon-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.icon-amber {
    background: #fffbeb;
    color: #f59e0b;
}

.icon-emerald {
    background: #ecfdf5;
    color: #10b981;
}

.admin-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-link-more {
    font-size: 0.85rem;
    color: var(--admin-primary);
    font-weight: 600;
    text-decoration: none;
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-item-content {
    flex: 1;
    padding-right: 1rem;
}

.admin-item-title {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-item-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
}

.admin-status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published {
    background: #ecfdf5;
    color: #047857;
}

.badge-draft {
    background: #f1f5f9;
    color: #64748b;
}

/* Admin Table Styles */
.admin-table-container {
    padding: 0;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    padding: 1.25rem;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 1.25rem;
    color: #1e293b;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr {
    transition: background 0.2s;
}

.admin-table tr:hover {
    background: #f8fafc;
}

.admin-table-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.admin-table-img-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.25rem;
}

.admin-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-flex-end {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: #f1f5f9;
    color: #64748b;
}

.btn-edit:hover {
    background: #e2e8f0;
    color: var(--admin-primary);
}

.btn-delete {
    background: #fef2f2;
    color: #ef4444;
}

.btn-delete:hover {
    background: #fee2e2;
}

.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-status-published {
    background: #ecfdf5;
    color: #047857;
    border-color: #d1fae5;
}

.badge-status-draft {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.admin-pagination-wrapper {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.admin-date-highlight {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-primary);
}

.admin-settings-label {
    margin-top: 3rem;
    padding: 0 1rem;
    opacity: 0.5;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Admin Form Framework */
.admin-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-label {
    display: block;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.admin-input[type="file"] {
    padding: 0.5rem;
}

.admin-form-img-preview {
    width: auto;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Utility Classes */
.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.text-slate-500 {
    color: #64748b !important;
}

.text-slate-800 {
    color: #1e293b !important;
}

.text-emerald-600 {
    color: #059669 !important;
}

.admin-icon-primary {
    color: var(--admin-primary) !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mt-16 {
    margin-top: 4rem !important;
}

.m-0 {
    margin: 0 !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

/* Loading Page */
#loadingPage {
    transition: opacity 0.5s, visibility 0.5s;
}

#loadingPage.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Image Modal */
.image-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-overlay.is-active {
    display: block;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    animation-name: zoom;
    animation-duration: 0.6s;
    border-radius: 10px;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.image-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.image-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1rem;
}

/* Global Utilities */
.justify-content-center {
    justify-content: center !important;
}

.border-0 {
    border: 0 !important;
}

.text-3 {
    font-size: 3rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-base {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.text-1-2 {
    font-size: 1.2rem !important;
}

.text-1-4 {
    font-size: 1.4rem !important;
}

.text-2 {
    font-size: 2rem !important;
}

.flex-1 {
    flex: 1 !important;
}

.min-w-0 {
    min-width: 0 !important;
}

.relative {
    position: relative !important;
}

.z-10 {
    z-index: 10 !important;
}

/* Download Icon Types */
.dl-icon-box-pdf {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.dl-icon-box-word {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.dl-icon-box-excel {
    background: #f0fdf4 !important;
    color: #10b981 !important;
}

/* Category Colors */
.bg-green-soft {
    background: #f0fdf4 !important;
    color: #047857 !important;
}

.bg-orange-soft {
    background: #fff7ed !important;
    color: #f59e0b !important;
}

.bg-blue-soft {
    background: #eff6ff !important;
    color: #3b82f6 !important;
}

.bg-purple-soft {
    background: #f5f3ff !important;
    color: #8b5cf6 !important;
}

/* Carousels & Sliders Active States */
.hero-dot.is-active {
    background: #fff !important;
    width: 30px !important;
}

.sub-thumb-item.is-active {
    border-color: #047857 !important;
    transform: scale(1.1);
}

.sub-thumb-item.is-active img {
    opacity: 1 !important;
}

/* Page Hero Banner */
.page-hero-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.page-hero-banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

.section-container {
    padding: 4rem 0;
}

.min-w-300 {
    min-width: 300px !important;
}

.admin-btn-outline-danger {
    background: white;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}

.admin-btn-outline-danger:hover {
    background: #fef2f2;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.admin-section-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.admin-btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
}

.admin-btn-light {
    background: #f1f5f9;
    color: #64748b;
}

.admin-btn-light:hover {
    background: #e2e8f0;
    color: var(--admin-primary);
}

.admin-btn-danger {
    background: #fef2f2;
    color: #ef4444;
}

.admin-btn-danger:hover {
    background: #fee2e2;
}

@media (max-width: 640px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Download System Admin Styles */
.admin-dl-icon {
    font-size: 1.25rem;
}

.admin-dl-icon-pdf {
    color: #ef4444;
}

.admin-dl-icon-word {
    color: #2563eb;
}

.admin-badge-category {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    color: #475569;
}

/* Calendar System Styles */
.cal-container {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-primary);
}

.cal-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.2s;
}

.cal-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2);
}

.cal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.cal-weekday {
    text-align: center;
    font-weight: 700;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.cal-weekday-sun {
    color: #ef4444;
    background: #fef2f2;
}

.cal-weekday-sat {
    color: #3b82f6;
    background: #eff6ff;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    padding: 0.5rem;
    min-height: 100px;
    border-radius: 10px;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cal-day:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.cal-day-empty {
    background: #f8fafc;
    border: none;
}

.cal-day-today {
    background: #f0fdf4;
    border: 2px solid var(--color-primary);
}

.cal-day-num {
    font-size: 1rem;
    color: #475569;
    text-align: right;
    margin-bottom: 0.25rem;
}

.cal-day-num-sun {
    color: #ef4444;
}

.cal-day-num-sat {
    color: #3b82f6;
}

.cal-day-num-today {
    color: var(--color-primary);
    font-weight: 700;
}

.cal-today-badge {
    font-size: 0.65rem;
    background: var(--color-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 4px;
    vertical-align: middle;
}

.cal-event-tag {
    display: block;
    background: #dcfce7;
    color: #166534;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid var(--color-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-event-tag:hover {
    background: #bbf7d0;
    transform: translateX(2px);
}

.cal-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cal-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cal-modal.active {
    display: flex;
    opacity: 1;
}

.cal-modal.active .cal-modal-content {
    transform: scale(1);
}

.cal-modal-header {
    background: var(--color-primary);
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cal-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.cal-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cal-modal-body {
    padding: 1.5rem;
}

.cal-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cal-weekday {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .cal-day {
        min-height: 80px;
    }

    .cal-title {
        font-size: 1.25rem;
    }

    .cal-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Archive Marquee Styling - Light Mode */
.archive-marquee-outer {
    background: #f1f5f9;
    padding: 6rem 0;
    color: #1f2937;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.02);
}

.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #064e3b;
}

.archive-line {
    height: 5px;
    width: 60px;
    background: #047857;
}

.archive-marquee-wrapper {
    display: flex;
    white-space: nowrap;
    position: relative;
    user-select: none;
    padding: 2px 0;
}

.archive-marquee-wrapper::before,
.archive-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 15;
    pointer-events: none;
}

.archive-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.archive-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

.archive-marquee-content {
    display: flex;
    animation: archive-scroll 50s linear infinite;
    gap: 4px;
}

.archive-marquee-content.archive-reverse {
    animation: archive-scroll-reverse 50s linear infinite;
}

.archive-item {
    flex: 0 0 220px;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Removed grayscale, showing full color */
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%);
    opacity: 0.8;
    transition: opacity 0.4s;
}

.archive-item-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 1;
    /* Always visible for better context in color mode */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.4s;
}

.archive-item:hover {
    transform: scale(1.05);
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.archive-item:hover .archive-item-overlay {
    opacity: 0.4;
}

.archive-item:hover .archive-item-label {
    transform: translateY(-5px);
}

@keyframes archive-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes archive-scroll-reverse {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.archive-footer-text {
    margin-top: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }

    .archive-item {
        flex: 0 0 140px;
        height: 180px;
    }
}