
    nav {
        display: flex;
        align-items: center;
        padding: 1em 1em;
        gap: 1em;
    }

    #homelink ul {
        display: flex;
        margin: 0;
        padding: 0;

        li {
            list-style: none;

            a {
                text-decoration: none;
            }
        }
    }

    #link ul {
        display: flex;
        gap: 1em;
        margin: 0;
        padding: 0;

        li {
            list-style: none;

            a {
                text-decoration: none;
                color: gray;

            }
        }
    }

    #officelink {
        flex-grow: 1;
    }

    #officelink ul {
        display: flex;
        gap: 1em;
        margin: 0;
        padding-left: 90%;

        li {
            list-style: none;

            a {
                text-decoration: none;
                color: gray;
            }
        }
    }

    body {
        font-family: "Kanit", sans-serif;
        font-weight: 100;
        font-style: normal;
        height: 90vh;
        background-color: #141414;
        overflow-x: hidden;
        color: #ffffff;
    }

    .hero-section {
        /* min-height: 100%; */
        /* padding: 2rem; */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 24px;
        width: 100%;
    }

    .card__bg {
        position: relative;
        height: 50vh;
        min-width: 100%;
        background-size: cover;
        background-position: center center;
        border-radius: 1rem;
        overflow: hidden;
        transform: scale(1);
        transition: all 0.5s ease-out;
    }

    @media (max-width: 580px) {
        .carousel img {

            text-align: center;
            height: 55vh;
            /* Adjust this value as needed */

        }
    }

    /* Media Query for small devices */
    @media (max-width: 768px) {
        .card-grid {
            grid-template-columns: 1fr;
        }

        .card__bg {
            min-width: 100%;
        }

        .col-md-4 {
            margin-top: 20px !important;
        }
    }

    /* Media Query for medium devices */
    @media (min-width: 769px) and (max-width: 992px) {
        .card-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .card__bg {
            min-width: 100%;
        }

        .col-md-4 {
            margin-top: 20px !important;
        }
    }

    /* Media Query for large devices */
    @media (min-width: 993px) {
        .card-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .card__bg {
            min-width: 100%;
        }

        .col-md-4 {
            margin-top: 20px !important;
        }
    }


    .col-md-4 {
        margin-top: 20px !important;
        margin-left: 5px;
    }

    .card {
        list-style: none;
        position: relative;
        transition: all 0.5s ease-out;
    }



    .card__bg::after {
        content: "";
        background-image: linear-gradient(360deg, black, transparent);
        height: 150px;
        bottom: 0;
        width: 100%;
        position: absolute;
    }

    .card__content {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
    }

    .card__category {
        font-size: 10px;
        text-transform: uppercase;
        font-weight: bold;
        color: #acacac;
    }

    .card__head {
        color: #ffffff;
    }


    .card:hover {
        transform: scale(1.02);
        filter: drop-shadow(0px 0px 100px #acacac);
    }

    .card-grid:hover>.card:not(:hover).card {
        filter: brightness(0.8) grayscale(0.6) contrast(1.2) blur(10px);
    }

    /* Styles for carousel image and centered text */
    .carousel img {
        height: 55vh;
        /* Adjust this value as needed */
        object-fit: cover;
    }

    .carousel-caption {
        text-align: center;
    }

    .custom-carousel-caption {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        bottom: initial;
    }

    #home-nav {
        background-color: #007bff;
        /* Choose the color you want */
        opacity: 80%;
        padding: 10px 15px;
        /* Adjust the padding as needed */
        color: #ffffff;
        /* Set the color of the text. Choose a color that will contrast with the background color */
    }

    .mt-card {
        margin-top: 10px !important;

    }

    h1 {
        color: white !important;
        font-size: 70px !important;
    }

    div p {
        color: white !important;
    }


    /* stat */
    .modal-title {
        color: black;
    }

    #demo img {
        max-height: 220px;
    }

    .card__bg {
        max-width: 300px !important;
        height: 300px;
    }

    /* Ensure that images in the carousel scale properly and don't overflow their container */
    .carousel-inner img {
        width: 100%;
        /* Scale to the width of the container */
        height: auto;
        /* Maintain aspect ratio */
    }

    /* This ensures that the carousel image will cover the available space and will be clipped to fit */
    .carousel-item {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    /* Media Query for different screen sizes */
    @media (max-width: 768px) {

        /* Adjust settings for tablets */
        .carousel-inner img {
            height: auto;
            /* Adjust height for tablets */
        }
    }

    @media (max-width: 576px) {

        /* Adjust settings for mobile phones */
        .carousel-inner img {
            height: auto;
            /* Adjust height for mobiles */
        }
    }

