:root {
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #2d3748;
    --text-muted: #64748b;
    --bg-gradient: linear-gradient(135deg, #f9f9f9 0%, #edf1f4 100%);
}

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

#dot-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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;
    display: flex; justify-content: center;
}

body::before, body::after {
    content: ''; position: fixed; width: 700px; height: 700px; border-radius: 50%;
    filter: blur(120px); z-index: -1;
}
body::before { background: rgba(255, 235, 220, 0.4); top: -200px; left: -200px; opacity: 0.6; }
body::after { background: rgba(240, 245, 255, 0.4); bottom: -200px; right: -200px; opacity: 0.5; }

.main-container {
    width: 100%; max-width: 1400px;
    margin: 0 auto; padding: 10px 60px 40px;
    display: flex; flex-direction: column; min-height: 85vh;
    position: relative; z-index: 1;
}

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: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    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; }

.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 {
    font-size: 2.2rem; font-weight: 600; margin-bottom: 5px;
    background: linear-gradient(135deg, #1e293b 0%, #64748b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-header p { font-size: 1rem; color: #64748b; font-weight: 300; }

.section-title {
    text-align: center; font-size: 0.8rem; font-weight: 700;
    color: var(--text-muted); letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 22px; position: relative;
    display: flex; align-items: center; gap: 14px; justify-content: center;
}
.section-title::before, .section-title::after {
    content: ''; width: 40px; height: 1px; background: rgba(0,0,0,0.12);
}

.exec-section { margin-bottom: 30px; }
.exec-row {
    display: flex; justify-content: center; gap: 15px;
    margin-bottom: 15px; flex-wrap: wrap;
}
.exec-row .member-card {
    width: 100%; max-width: 400px;
    background: rgba(255,255,255,0.85);
}

.member-img-placeholder {
    width: 94px; height: 94px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.member-img-placeholder svg { width: 47px; height: 47px; fill: #94a3b8; }

.committee-list-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px; padding: 28px 32px;
    margin-bottom: 40px;
}
.committee-list-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.committee-list-col { padding: 0 22px; }
.committee-list-col:not(:last-child) { border-right: 1px solid rgba(0,0,0,0.07); }
.committee-list-col:first-child { padding-left: 0; }
.committee-list-col:last-child { padding-right: 0; }

.committee-list-item {
    display: flex; align-items: baseline; gap: 8px;
    padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.committee-list-item:last-child { border-bottom: none; }
.cl-num {
    font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
    min-width: 20px; text-align: right;
}
.cl-name { font-size: 0.88rem; color: var(--text-main); font-weight: 500; }

.member-card {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.member-card:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }

.member-img {
    width: 94px; height: 94px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.8);
}

.member-info { display: flex; flex-direction: column; overflow: hidden; width: 100%; }

.role-badge {
    display: inline-block; width: fit-content;
    padding: 3px 10px; font-size: 0.75rem; border-radius: 7px;
    font-weight: 700; margin-bottom: 4px; letter-spacing: 0.3px;
    border: none !important;
}

.role-president { background: #f3e8ff; color: #7e22ce; }
.role-vice { background: #e0f2fe; color: #0369a1; }
.role-treasurer { background: #dcfce7; color: #15803d; }
.role-sec { background: #ffedd5; color: #c2410c; }
.role-general { background: #f1f5f9; color: #64748b; }

.member-name {
    font-size: 1.1rem; font-weight: 600; color: #334155;
    margin-bottom: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.member-email {
    font-size: 0.75rem; color: #94a3b8; font-weight: 400;
    display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.member-email i { font-size: 0.85rem; }

.main-footer { margin-top: auto; text-align: center; color: #94a3b8; font-size: 0.85rem; font-weight: 400; padding-top: 20px; }

@media (max-width: 1366px) {
    .main-container { padding: 10px 30px 40px; }
    .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: 768px) {
    .main-container { padding: 10px 20px 30px; }
    .exec-row { flex-direction: column; align-items: center; }
    .exec-row .member-card { max-width: 100% !important; }
    .committee-list-card { padding: 20px 16px; }
    .committee-list-grid { grid-template-columns: 1fr; }
    .committee-list-col { padding: 0; border-right: none !important; }
    .committee-list-col:not(:last-child) {
        padding-bottom: 12px; margin-bottom: 8px;
        border-bottom: 1px solid rgba(0,0,0,0.07);
    }
}
