/* Reset some default styles */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

/* Make h1 to h4 elements bold */
h1, h2, h3, h4  , h5{
    font-weight: 700;
}

/* body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
} */

/* Container */
.container {
    margin: 0 auto;
}

/* Header */
header {
    background: #006666;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Navigation */
nav.nav_menu{
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav.navigation  {
    background: #fff;
    color: #333;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-size: 1.1em;
}

/* Main Section */
.main-section {
    background: #f9f9f9;
    padding: 20px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: #fff;
    font-size: 1em;
}

a {
    color: #14213D;
    text-decoration: none;
}

/* Change link color on hover to bright orange */
a:hover {
    text-decoration: none;
    color: #FFA500;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead th {
    background-color: #333 !important;
    color: #fff !important;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #333;
    color: #fff;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #333;
    border: 1px solid #ddd;
}

.pagination .page-item.active .page-link {
    background-color: #666;
    border-color: #333;
}

.pagination .page-item .page-link:hover {
    background-color: #ddd;
    border-color: #ddd;
}

.card-header{
    font-weight: bold;
}



.card-header.bg-regis-1 {
    background-color: #142850;
    color: white; /* Adjust text color as needed */
}

.card-header.bg-regis-2 {
    background-color: #27496D;
    color: white; /* Adjust text color as needed */
}

.card-header.bg-regis-3 {
    background-color: #0C7B93;
    color: white; /* Adjust text color as needed */
}

.card-header.bg-regis-4 {
    background-color: #00A8CC;
    color: black; /* Adjust text color as needed */
}

.card-header.bg-regis-5 {
    background-color: #C1DADF;
    color: black; /* Adjust text color as needed */
}

.small-gray-text {
    font-size: 80%;
    color: gray;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-left li, .nav-right li {
    margin-right: 20px;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left li a, .nav-right li a {
    text-decoration: none;
    color: #fff;
}

.nav-left li a:hover, .nav-right li a:hover {
    color: #FFA500;
}

.volunteer-calendar-page-tabs{
    padding: 10px 20px !important;
}


.mgL-2 {
    margin-left: 20px;
}

.bordered-heading {
    
    border-radius: 5px; /* Adjust the radius as needed */
    padding: 10px; /* Adjust the padding as needed */
    display: inline-block; /* Ensures the border wraps tightly around the content */
    width: 100%; /* Ensures the border takes the full width of the containing div */
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
}

.bordered-heading.bg-regis-1 {
    background-color: #142850;
    color: white; /* Adjust text color as needed */
}

.bordered-heading.bg-regis-2 {
    background-color: #27496D;
    color: white; /* Adjust text color as needed */
}

.bordered-heading.bg-regis-3 {
    background-color: #0C7B93;
    color: white; /* Adjust text color as needed */
}

.bordered-heading.bg-regis-4 {
    background-color: #00A8CC;
    color: black; /* Adjust text color as needed */
}

.bordered-heading.bg-regis-5 {
    background-color: #C1DADF;
    color: black; /* Adjust text color as needed */
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 5px; /* Padding ซ้าย-ขวาเพื่อไม่ให้ชิดขอบจอ */
    }
    
    body, html {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* เพิ่มการตั้งค่าสำหรับองค์ประกอบอื่นๆ ที่อาจมีปัญหา */
}