:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #2d3748;
    --text-muted: #64748b;
    --gradient-green: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(167, 243, 208, 0.3) 100%);
    --gradient-orange: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(253, 186, 116, 0.3) 100%);
    --gradient-blue: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(147, 197, 253, 0.3) 100%);
    --bg-gradient: linear-gradient(135deg, #e8ebf0 0%, #c8d0d8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--text-main);
    background: var(--bg-gradient) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-x: hidden;
}

body::before, body::after {
    content: ''; position: fixed; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(90px); z-index: -1; opacity: 0.5;
}
body::before { background: #ffffff; top: -150px; left: -150px; opacity: 0.4; }
body::after { background: #dce4f0; bottom: -150px; right: -150px; opacity: 0.6; }

.main-container {
    width: 100%; max-width: 1400px;
    margin: 0 auto; padding: 10px 60px 40px;
    display: flex; flex-direction: column;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; margin-top: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 100px;
    box-shadow: var(--glass-shadow);
    position: relative; z-index: 100;
}
.logo img { height: 36px; width: auto; }

.nav-menu-group { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    padding: 8px 18px; border-radius: 40px; font-size: 0.9rem; font-weight: 500; transition: 0.3s;
}
.nav-links a:hover { color: var(--text-main); background: rgba(0,0,0,0.03); }
.nav-links a.active { background-color: rgba(255,255,255,0.8); color: var(--text-main); font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.btn-glass {
    background: #2d3748; color: #fff;
    padding: 6px 6px 6px 20px; border-radius: 30px;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap; display: inline-flex; align-items: center; gap: 12px;
    transition: transform 0.2s ease;
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

.admin-badge {
    background: #241f1f; color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem; font-weight: 400; text-transform: lowercase;
    padding: 2px 10px; border-radius: 20px; line-height: 1;
}

.hamburger { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; padding: 5px; }

.section-header { margin-bottom: 25px; padding-left: 10px; }
.section-title { font-size: 1.75rem; font-weight: 700; color: #1a202c; }
.section-subtitle { font-size: 1rem; color: #718096; margin-top: 5px; }

.cards-container {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 20px; width: 100%;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 24px;
    position: relative;
    transition: all 0.3s ease; cursor: pointer;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: var(--glass-shadow);
    min-height: 160px;
}
.card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }

.card-green { background: var(--gradient-green); }
.card-orange { background: var(--gradient-orange); }
.card-blue { background: var(--gradient-blue); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }

.batch-badge {
    font-size: 0.85rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    color: var(--text-muted);
}

.card-icon { font-size: 1.8rem; color: var(--text-main); opacity: 0.8; }

.card-year {
    font-size: 1.8rem; font-weight: 700; color: var(--text-main);
    line-height: 1.1; margin-bottom: 15px;
}
.card-year span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); display: block; margin-bottom: 2px; }

.card-stats {
    margin-top: auto; padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
}

.stat-group { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: #2d3748; line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: #64748b; font-weight: 400; }
.stat-highlight { color: #f97316; }

@media (max-width: 1366px) {
    .main-container { padding: 10px 30px; }
    .cards-container { grid-template-columns: repeat(4, 1fr); }
    .hamburger { display: block; }
    .nav-menu-group {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; gap: 15px; padding: 30px;
        border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.8);
        opacity: 0; transform: translateY(-20px); pointer-events: none;
        transition: all 0.3s ease; z-index: 99;
    }
    .nav-menu-group.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 10px; }
    .nav-links a { display: block; width: 100%; }
    .btn-glass { width: 100%; justify-content: center; }
}

@media (max-width: 992px) {
    .cards-container { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .main-container { padding: 10px 20px; }
    .cards-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .section-title { font-size: 1.5rem; }
    .card { min-height: 140px; padding: 20px; }
    .card-year { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .cards-container { grid-template-columns: 1fr; }
}
