/* หน้างานหลักสูตร (pages/curriculum.php) — hero อยู่ใน page-hero.css
 * ลำดับหมวดคงตามโค้ดเดิม */

/* ══ ลิงก์ด่วน + แถบตัวเลข ═════════════════════════════════ */
/* Gradient Quick Links */
.quick-link-gradient {
    border-radius: 16px;
    padding: 25px 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.quick-link-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.quick-link-gradient:hover::before { opacity: 1; }
.quick-link-gradient:hover { transform: translateY(-8px); }

.ql-blue { background: linear-gradient(135deg, #003366 0%, #0066cc 100%); }
.ql-purple { background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%); }
.ql-green { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
.ql-orange { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }

/* Counter Section */
.counter-section-curr {
    background: linear-gradient(135deg, #003366 0%, #001a33 50%, #002244 100%);
}
.counter-card-curr {
    text-align: center;
    padding: 25px;
}
.counter-icon-curr {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #003366;
}
.counter-number-curr {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}
.counter-label-curr { color: #ffd700; font-weight: 600; }
.counter-sublabel-curr { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ══ ตารางประกาศ/แบบฟอร์ม/หลักสูตร + แท็บ ══════════════════════ */
.bg-soft-blue { background-color: #eef4fb; }   /* เข้มกว่าใน style.css เล็กน้อย */

/* Curriculum list: search, level chips, faculty group rows */
.curr-search { max-width: 420px; }
.curr-level-chips { gap: 6px; }
.curr-level-chips .btn { border-radius: 999px; }
.curr-faculty-row th {
    background: #eef4fb !important;
    color: var(--npu-blue);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Stack table rows on phones so titles get the full width */
@media (max-width: 767.98px) {
    .curr-table thead { display: none; }
    .curr-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 14px 16px;
        border-bottom: 1px solid #e5e7eb;
    }
    .curr-table td {
        display: block;
        border: 0;
        padding: 0 !important;
        text-align: left !important;
    }
    .curr-table td:first-child,
    .curr-table .curr-faculty-row th { flex: 0 0 100%; }
    .curr-table .curr-faculty-row { padding: 0; }
    .curr-table .curr-faculty-row th { padding: 10px 16px !important; }
    .curr-table td:last-child { margin-left: auto; }
    .curr-table td:last-child .d-inline-flex { justify-content: flex-start !important; }
}

/* Empty curriculum list */
.curr-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}
.curr-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: #eef4fb;
    color: var(--npu-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Modern Tab Styling */
.nav-pills-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 8px;
}
.nav-pills-modern .nav-link {
    color: #475569;
    background: transparent;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}
.nav-pills-modern .nav-link:hover {
    background: rgba(0, 51, 102, 0.1);
    color: var(--npu-blue);
    transform: translateY(-2px);
}
.nav-pills-modern .nav-link.active {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    transform: translateY(-2px);
}
.nav-pills-modern .nav-link.active i {
    color: #ffd700;
}

