

  @media (max-width: 576px) {
    .custom-container {
      margin: 0 !important;
      padding: 0 !important;
      max-width: 100% !important;
      width: 100% !important;
    }
  }


.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-menu {
    text-align: center;
    margin-bottom: 40px;
}

.services-menu ul {
    list-style: none;
    padding: 0;
}

.services-menu ul li {
    display: inline-block;
    margin: 0 15px;
}

.services-menu ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #007bff;
    transition: color 0.3s ease;
}

.services-menu ul li a:hover {
    color: #0056b3;
}

.service-item {
    margin-bottom: 40px;
}

.service-item h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}



.profile-picture {
   width: 30px;
   height: 30px;
   object-fit: cover;
   border-radius: 50%;
}


.gallery .img-thumbnail {
    height: auto;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* เพิ่มแอนิเมชัน */
}

.gallery .img-thumbnail:hover {
    transform: scale(1.05); /* ขยายเล็กน้อยเมื่อ hover */
}

@media (min-width: 576px) {
    .gallery .col-md-3 {
        padding: 0 2px; /* เพิ่ม padding ให้รูปแยกออกจากกันมากขึ้นในจอใหญ่ */
    }
}


.thumbnail-container {
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 10px;
}

.thumbnail-row {
    display: inline-flex;
}

.thumbnail-item {
    margin-right: 10px;
    width: 60px;  /* ขนาดเล็กลงสำหรับการจิ้ม */
    height: 60px;
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
}



.badge-blue {
    background-color: blue;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
}


.badge-red {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
}



.badge {
    padding: 0.5em;
    font-size: 0.75rem;
}


.container.mt-2 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;  /* เพิ่มระยะห่างจากด้านบน */
}


a {
        text-decoration: none;
}

body {
    font-family: 'Chakra Petch', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    bottom: 0;
    width: 100%;
}
.text-dark-blue {
    color: #00008b; /* สีน้ำเงินเข้ม */
}



/* Navbar styles */
.navbar {
    background-color: #0056b3; /* Navy Blue */
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: #ffcc00; /* Light Yellow */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff;
}

.navbar-brand:hover {
    color: #ffcc00; /* Light Yellow */
}

.post-btn {
    background-color: #ff6600; /* Bright Orange */
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
}

.post-btn:hover {
    background-color: #cc5200; /* Darker Orange */
    color: #ffffff;
}

/* Loading Overlay CSS */
.loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black background with opacity */
    z-index: 9999;
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-family: 'Chakra Petch', sans-serif;
}

.loading-overlay .loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



        .search-container {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            margin-top: 20px;
        }

        .search-container input {
            height: 60px;
            font-size: 18px;
            border: 2px solid #0056b3;
            border-radius: 8px;
            width: 100%;
        }

/* Search Results styles */
.search-results {
    margin-top: 15px;
    position: absolute;
    width: 80%;
    max-width: 80%;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.search-results .list-group-item {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-results img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}



    .category-card {
        height: 100px;
        background-size: cover;
        background-position: center;
        color: white;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
    }
    .category-card .card-body {
        background-color: rgba(0, 0, 0, 0.5); /* Black overlay on the image */
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .category-card h5 {
        font-size: 1.0rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    .category-card .card-footer {
        background-color: rgba(0, 0, 0, 0.7);
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 2px;
    }
    .category-card:hover {
        transform: scale(1.05); /* Zoom effect on hover */
        transition: transform 0.3s ease;
    }


        /* Center the form */
        .form-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f8f9fa;
        }

        /* Styling the label and checkbox container */
        .checkbox-container {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        /* Hide the default checkbox */
        .checkbox-container input {
            display: none;
        }

        /* Custom checkbox */
        .checkbox-custom {
            width: 24px;
            height: 24px;
            background-color: white;
            border: 2px solid #007bff;
            border-radius: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.2s;
        }

        /* The checkmark inside the custom checkbox */
        .checkbox-custom::after {
            content: '';
            width: 12px;
            height: 12px;
            display: none;
            background-color: #007bff;
            border-radius: 3px;
        }

        /* When checkbox is checked */
        .checkbox-container input:checked ~ .checkbox-custom::after {
            display: block;
        }

        /* Hover and touch effects */
        .checkbox-container input:hover ~ .checkbox-custom,
        .checkbox-container input:active ~ .checkbox-custom {
            background-color: #e2e6ea;
        }

        /* Label styling */
        .checkbox-label {
            margin-left: 10px;
            font-size: 18px;
            user-select: none;
            color: #343a40;
        }

        /* Submit button */
        .submit-btn {
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        /* Button hover */
        .submit-btn:hover {
            background-color: #0056b3;
        }

        /* For touch devices */
        @media (hover: none) {
            .submit-btn {
                background-color: #007bff;
            }
        }

        .article-card {
            position: relative;
            margin-bottom: 20px;
        }
        .article-card-img {
            height: 200px;
            object-fit: cover;
        }
        .article-category-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            color: #fff;
            padding: 5px 10px;
            font-size: 12px;
            border-radius: 3px;
        }

        /* สีของหมวดหมู่บทความ */
        .article-category-badge.article-tech {
            background-color: #1E90FF; /* สีฟ้า */
        }
        .article-category-badge.article-marketing {
            background-color: #FF6347; /* สีส้ม */
        }
        .article-category-badge.article-business {
            background-color: #32CD32; /* สีเขียว */
        }
        .article-category-badge.article-lifestyle {
            background-color: #FF69B4; /* สีชมพู */
        }
        .article-category-badge.article-health {
            background-color: #FFD700; /* สีทอง */
        }
        .article-category-badge.article-variety {
            background-color: #9370DB; /* สีม่วง */
        }
        .article-category-badge.article-self-development {
            background-color: #20B2AA; /* สีเขียวมิ้นท์ */
        }
        .article-category-badge.article-travel {
            background-color: #FF4500; /* สีส้มเข้ม */
        }
        .article-category-badge.article-fashion {
            background-color: #FF1493; /* สีชมพูเข้ม */
        }
        .article-category-badge.article-gaming {
            background-color: #8A2BE2; /* สีม่วงเข้ม */
        }
        .article-category-badge.article-default {
            background-color: #000; /* สีดำ */
        }


.favorite-button.active {
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
    border: 2px solid #ff4757;
}

