    :root {
        --primary-color: #3498db;
        --secondary-color: #2980b9;
        --dark-color: #343a40;
        --light-color: #f8f9fa;
        --border-radius: 10px;
        --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
    }
        .wrapper {
            max-width: 1300px;
            margin: 20px auto;
            padding: 0 20px;
        }

    body {
        font-family: 'Kanit', sans-serif;
        line-height: 1.6;
        background-color: #f5f6fa;
    }

    .bg-primary {
        background-color: var(--primary-color) !important;
    }

    .text-primary {
        color: var(--primary-color) !important;
    }

    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-primary:hover {
        background-color: #0096c7;
        border-color: #0096c7;
    }

    .dropdown-menu {
        border-radius: var(--border-radius);
        border: none;
        box-shadow: var(--box-shadow);
    }

    .dropdown-item:hover {
        background-color: var(--secondary-color);
        color: white;
    }

    .news-card {
        border: none;
        border-radius: var(--border-radius);
        overflow: hidden;
        transition: var(--transition);
        height: 100%;
        background: white;
        box-shadow: var(--box-shadow);
        margin-bottom: 1rem;
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 180, 216, 0.2);
    }

    .news-card img {
        height: 220px;
        object-fit: cover;
        transition: var(--transition);
    }

    .news-card:hover img {
        transform: scale(1.05);
    }

    .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .quick-link-item {
        background: white;
        padding: 2.5rem 1.5rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
        text-decoration: none;
        color: inherit;
        display: block;
        border: 1px solid #eee;
        text-align: center;
        height: 100%;
    }

    .quick-link-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
        border-color: var(--primary-color);
    }

    .quick-link-item i {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .card {
        transition: transform 0.3s ease;
        border: none;
        border-radius: 10px;
        overflow: hidden;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
    }

    .social-links a {
        color: white;
        margin-right: 1.5rem;
        font-size: 1.5rem;
        transition: var(--transition);
    }

    .social-links a:hover {
        opacity: 0.8;
        color: var(--secondary-color);
    }

    .navbar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-brand {
        font-weight: 500;
    }

    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
            url('uploads/news_images/66f56f2514e86_307129179_465286832310545_745277.jpeg');
        background-size: cover;
        background-position: center;
        min-height: 50vh;
        position: relative;
        color: white;
        padding: 2rem 0;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: linear-gradient(transparent, white);
    }

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-content p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .card-body {
        padding: 1.5rem;
    }

    .news-meta {
        font-size: 0.9rem;
        color: #666;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .badge {
        padding: 0.5em 1em;
        font-weight: 500;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
        position: relative;
    }

    .section-header:after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background: var(--primary-color);
        margin: 1rem auto;
    }

    footer {
        background: var(--dark-color);
        color: white;
        padding: 4rem 0 2rem;
    }

    footer h5 {
        color: var(--secondary-color);
        margin-bottom: 1.5rem;
        font-weight: 500;
    }

    .hero-slider {
        height: 100%;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }

    .hero-slide.active {
        opacity: 1;
    }

    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-content {
        position: relative;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-controls {
        position: absolute;
        width: 100%;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 2rem;
        z-index: 10;
    }

    .hero-controls button {
        background: rgba(255, 255, 255, 0.3);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .hero-controls button:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .hero-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: var(--transition);
    }

    .hero-dot.active {
        background: white;
    }

    .news-card h5 {
        font-size: 1.1rem;
        font-weight: 500;
        line-height: 1.4;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-meta {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bg-pink {
        background-color: #ffcccc !important;
        /* Soft pastel pink */
        color: white !important;
        /* Ensure text is readable */
    }

    .bg-orange {
        background-color: #ffcc99 !important;
        /* Light orange */
        color: white !important;
        /* Ensure text is readable */
    }

    .badge {
        border-radius: 10px;
        /* Rounded badges for a softer appearance */
        font-weight: bold;
    }
.wrapper-2column {
    display: grid;
    grid-template-columns: 3fr 1fr; /* แบ่งเป็น 2 คอลัมน์ อัตราส่วน 3:1 */
    gap: 20px;
    align-items: start; /* จัดให้เนื้อหาชิดบนสุด */
    max-width: 1300px;
    margin: 0 auto;
    padding: 0px;
    padding: 8px;

}
   .column1-content,
    .column2-content {
        grid-column: span 1; /* ให้แสดงในคอลัมน์เดียวกัน */
    }

.sidebar-card {
    background: rgba(0, 0, 0, 0.3);
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
        margin-top: 20px;
}

.sidebar-card-header {
    background:var(--primary-color);
    padding: 15px;
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: #3969f8;
    color: #fff;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}


.table_personal {
   font-family: 'Kanit', sans-serif;
   border-collapse: separate; 
   border-spacing: 0;
   width: 100%;
   background: #fff;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
   margin: 20px 0;
}

.table_personal thead {
   background: #2f4c6e;
   color: white;
}

.table_personal th {
   padding: 16px 20px;
   font-weight: 500;
   text-align: left;
   letter-spacing: 0.3px;
   border-bottom: 2px solid rgba(255,255,255,0.1);
}

.table_personal td {
   padding: 14px 20px;
   color: #2c3e50;
   border-bottom: 1px solid #edf2f7;
   transition: all 0.2s;
}

.table_personal tbody tr {
   transition: all 0.2s ease-in-out;
}

.table_personal tbody tr:hover {
   background: rgba(47, 76, 110, 0.03);
   transform: translateY(-1px);
}

.table_personal tbody tr:nth-child(even) {
   background: #f8fafc;
}

.table_personal tbody tr:last-child td {
   border-bottom: none;
}

.btn-edit,
.btn-delete {
   border: none;
   padding: 8px 16px;
   border-radius: 6px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.2s;
}

.btn-edit {
   background: #2f4c6e;
   color: white;
}

.btn-delete {
   background: #fee2e2;
   color: #dc2626;
}

.btn-edit:hover {
   background: #1e3b5a;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(47, 76, 110, 0.15);
}

.btn-delete:hover {
   background: #fecaca;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

@media (max-width: 768px) {
   .table_personal {
       font-size: 14px;
   }
   
   .table_personal th,
   .table_personal td {
       padding: 12px 16px;
   }
   
   .btn-edit,
   .btn-delete {
       padding: 6px 12px;
       font-size: 13px;
   }
}

    @media (max-width: 768px) {
        .hero-section {
            min-height: 50vh;
        }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

        .hero-content h1 {
            font-size: 2rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

        footer h5 {
            margin-top: 1.5rem;
        }

        .quick-link-item {
            padding: 1.5rem;
        }

        .news-card img {
            height: 180px;
        }
    }

    @media (max-width: 576px) {
        body {
            font-size: 0.95rem;
        }

        .container {
            padding-left: 1.2rem;
            padding-right: 1.2rem;
        }

        .navbar-brand {
            font-size: 1.2rem;
        }

        .quick-links .col-md-3 {
            margin-bottom: 1rem;
        }
    }