@font-face {
    font-family: 'FC Sound';
    src: url('../assets/font/FCSound-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'FC Sound', sans-serif;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
    text-align: center;
}

/*---------------------------- style ---------------------------------*/
.container_dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: #cacaca solid 1px;
    border-radius: 10px;
    padding: 7%;
    margin-bottom: 2%;
}

.container {
    border: #cacaca solid 1px;
    border-radius: 10px;
    padding: 7%;
    margin-bottom: 2%;
    text-align: left;
}

h1 {
    color: rgb(45, 174, 224);
    margin: 5% 0 5% 0;
}

h2 {
    color: rgb(255, 120, 194);
    margin: 0 0 1% 0;
}

/*---------------------------- deopdown ---------------------------------*/
.accordion,
.accordion_nopanel {
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    border-radius: 10px;
    transition: 0.3s;
}

.container_dropdown .accordion {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion_nopanel {
    cursor: default;
}

.accordion.active,
.accordion:hover {
    background-color: #ffffff;
}

.panel {
    padding: 0px 20px 20px 20px;
    background-color: white;
    display: none;
    overflow: hidden;
    text-align: left;
    border-radius: 10px;
}

.panel a {
    display: inline-block;
    color: #0077cc;
    text-decoration: underline;
}

/*---------------------------- scroll up ---------------------------------*/
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: none;
    font-size: 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

#scrollTopBtn:hover {
    background-color: #444;
}

/*---------------------------- video ---------------------------------*/
.category-filter {
    margin: 1% 0 2% 0;
    font-size: 16px;
}

.category-filter select {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    width: 100%;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ส่วนกล่องหมวดวิดีโอ */
.video_category {
    width: 100%;
    margin: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

.video_category .title {
    font-size: 18px;
    margin: 1% 0;
    font-weight: bold;
    color: #064c9f;
}

/* กล่องวิดีโอ */
.video_container {
    margin: 3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5%;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    transition: 0.3s;
}

.video_container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video_frame iframe {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

.video_title {
    font-size: 16px;
    padding: 12px;
    color: #222;
}

/*---------------------------- FAQ ---------------------------------*/
.question_card {
    color: #000000;
    border: 1px solid #ccc;
    text-align: left;
    transition: 0.3s;
    width: 100%;
    margin: 3% 0;
    border-radius: 10px;
}

.question_card h3 {
    color: #000000;
    font-size: 16px;
}

/*---------------------------- Website ---------------------------------*/
@media screen and (min-width: 1024px) {
    main {
        padding: 3%;
    }

    .container,
    .container_dropdown {
        padding: 3%;
    }

    .container_dropdown {
        width: 80%;
    }

    .images {
        width: 40%;
        margin: 0 2% 0 2%;
    }

    h1 {
        color: rgb(45, 174, 224);
        margin: 0 0 2% 0;
    }

    /*---------------------------- video ---------------------------------*/
    .video_title {
        width: 90%;
        padding: 3%;
    }

    .video_category {
        width: 100%;
        margin: 2%;
        display: flex;
        flex-direction: row;
    }

    .video_container {
        width: 40%;
        margin: 1.5%;
        display: flex;
        flex-direction: row;
        text-align: left;
    }

    .video_frame {
        width: 100%;
    }

    /*---------------------------- video ---------------------------------*/
    .question_card {
        margin: 1% 0;
    }

    .question_card h3 {
        font-size: 18px;
    }
}