@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* --- GLOBAL STYLES --- */
:root {
    --main-blue: #003366;    /* น้ำเงินเข้ม (Navy) */
    --accent-blue: #0056b3;  /* น้ำเงินกลาง */
    --light-blue: #e3f2fd;   /* ฟ้าอ่อน */
    --text-dark: #333333;
    --bg-color: #f4f6f9;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & TOP BAR --- */
.top-bar {
    background-color: #fff;
    border-bottom: 3px solid var(--light-blue);
}

.logo-text h4 {
    color: var(--main-blue);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}
.logo-text small {
    color: #6c757d;
    font-weight: 400;
}

/* --- NAVBAR --- */
.navbar-custom {
    background: linear-gradient(90deg, var(--main-blue) 0%, #004080 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 1rem 1.2rem;
    transition: all 0.3s;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

.navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ffd700; /* แถบสีทองไฮไลท์ */
}

/* Dropdown Menu */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 3px solid var(--accent-blue);
}
.navbar-custom .dropdown-item:hover {
    background-color: var(--light-blue);
    color: var(--main-blue);
}

/* --- COMPONENTS --- */
.section-header {
    border-left: 5px solid var(--main-blue);
    padding-left: 15px;
    margin-bottom: 1.5rem;
    color: var(--main-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title-banner {
    background-color: var(--main-blue);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Card Styles */
.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
    height: 100%;
    background: #fff;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.news-card .badge-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--main-blue);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Tabs & Sidebar */
.nav-pills-custom .nav-link {
    color: var(--main-blue);
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    text-align: left;
}
.nav-pills-custom .nav-link.active {
    background-color: var(--main-blue);
    color: #fff;
}

.sidebar-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
    color: var(--text-dark);
    transition: all 0.2s;
}
.sidebar-menu .list-group-item:hover {
    background-color: var(--light-blue);
    color: var(--main-blue);
    padding-left: 20px;
}

.form-table-header {
    background-color: var(--light-blue);
    color: var(--main-blue);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    margin-top: auto;
}
footer h5 {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #fff;
}
.bg-footer-bottom {
    background-color: #000;
    padding: 15px 0;
}