@charset "utf-8";

* { font-family: 'Bai Jamjuree', sans-serif; }

/* Banner */
.header-parallax {
    height: 40vh;
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; justify-content: center; align-items: center; text-align: center;
    position: relative; margin-bottom: 40px;
}
.header-parallax::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
}
.header-con { 
    position: relative; z-index: 1; color: #fff; padding: 30px;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.5); border-radius: 10px; 
}
.header-con h1 { font-size: 2rem; font-weight: 700; margin-bottom: 5px; color: #FFD700; }
.header-con p { font-size: 1.1rem; color: #ddd; margin: 0; }

/* Section & Card */
.oit-section { margin-bottom: 40px; }
.oit-card {
    background: #fff; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.05);
}
.card-header-badge {
    background: linear-gradient(135deg, #5A0000, #3a0000);
    padding: 15px 30px; border-bottom: 4px solid #FFD700;
}
.card-header-badge h3 { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 700; }
.card-header-badge i { margin-right: 10px; color: #FFD700; }
.card-body-content { padding: 30px; }

/* --- Modern List Design --- */
.stat-list-header {
    background: #f8f9fa; padding: 15px 20px;
    font-weight: 700; color: #555;
    border-bottom: 2px solid #5A0000;
    display: none; /* ซ่อนในมือถือ */
}
@media(min-width: 768px) { .stat-list-header { display: block; } }

.stat-list-container {
    display: flex; flex-direction: column;
}

.stat-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 15px 20px; border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.stat-row:hover { background: #fffdf5; }
.stat-row:last-child { border-bottom: none; }

.stat-date {
    font-size: 1.1rem; font-weight: 600; color: #333;
    display: flex; align-items: center; gap: 10px;
}

.badge-new {
    background: #FFD700; color: #5A0000; font-size: 0.75rem;
    padding: 3px 8px; border-radius: 4px; font-weight: 700;
}

.stat-actions {
    display: flex; gap: 10px;
}

/* Buttons (Pill Shape) */
.btn-action {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 500; text-decoration: none;
    transition: all 0.2s; min-width: 100px;
}
.btn-action i { margin-right: 5px; }

.pdf { background: #fff5f5; color: #c62828; border: 1px solid #ffcdd2; }
.pdf:hover { background: #c62828; color: #fff; border-color: #c62828; }

.excel { background: #f1f8e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.excel:hover { background: #2e7d32; color: #fff; border-color: #2e7d32; }

/* Images */
.responsive-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #eee; }

/* Responsive */
@media (max-width: 768px) {
    .stat-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .stat-actions { width: 100%; justify-content: flex-start; }
    .btn-action { flex: 1; }
    .header-con h1 { font-size: 1.6rem; }
}