/* หน้าค่าธรรมเนียมการศึกษา (pages/fees.php) — ส่วน hero อยู่ใน page-hero.css */

/* ── การ์ดสรุปจำนวนหลักสูตร ─────────────────────────────── */
.summary-card {
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.summary-card:hover::before { opacity: 1; }
.summary-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.card-ug { background: linear-gradient(135deg, #003366 0%, #0066cc 100%); }
.card-grad { background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%); }
.card-voc { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }

.summary-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.summary-icon i { font-size: 1.8rem; color: #ffd700; }
.summary-count { font-size: 2.5rem; font-weight: 700; color: white; }
.summary-label { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ── แท็บเลือกระดับ ─────────────────────────────────────── */
#feeTabs .nav-link {
    background: rgba(0,51,102,0.05);
    border: 2px solid transparent;
    color: #003366;
    font-weight: 600;
    padding: 14px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
#feeTabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
#feeTabs .nav-link:hover::before {
    left: 100%;
}
#feeTabs .nav-link:hover {
    background: rgba(0,51,102,0.1);
    border-color: rgba(0,51,102,0.2);
    transform: translateY(-2px);
}
#feeTabs .nav-link.active {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%) !important;
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0,51,102,0.3);
}
#feeTabs .nav-link.active i {
    color: #ffd700 !important;
}
#feeTabs .nav-link i {
    transition: transform 0.3s ease;
}
#feeTabs .nav-link:hover i,
#feeTabs .nav-link.active i {
    transform: scale(1.2);
}

/* ── ตารางค่าธรรมเนียม ──────────────────────────────────── */
.fees-table tbody tr {
    transition: all 0.3s ease;
}
.fees-table tbody tr:hover {
    background: rgba(0, 51, 102, 0.05);
    transform: scale(1.01);
}
.fees-table thead th {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: white;
    font-weight: 600;
    border: none;
}

/* ── กล่องหมายเหตุท้ายหน้า ──────────────────────────────── */
.info-banner {
    background: linear-gradient(135deg, #003366 0%, #0a1628 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.info-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: infoPulse 5s ease-in-out infinite;
}
@keyframes infoPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}
