* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Kanit", sans-serif;
}

/* .container{
    --bs-gutter-x:1.5rem;
    --bs-gutter-y:0;
    width:100%;
    padding-right:calc(var(--bs-gutter-x) * .5);
    padding-left:calc(var(--bs-gutter-x) * .5);
    margin-right:auto;
    margin-left:auto

} */

:root {
    --white: #fff;
    --white-567: #F5F6F7;
    --blue: #002DEB;
    --red: #ED1C24;
    --padding-top-banner: 2rem;
    --text-white: #FFFFFF;
    --text-black: #000000;
    --text-blue: #002DEB;
    --text-red: #ED1C24;
    --text-sub-blue: #AFEBFF;
}

.seagame-date {
    background-color: var(--white);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: max-content;
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.16);

    p {
        padding: 0.5rem 1.5rem;
        font-size: 1.5rem;
        font-weight: 500;
        color: #282650;
    }

    div {
        height: 100%;
        padding: 0.75rem 1.25rem;
        background: var(--red);
    }
    
    svg {
        height: 1.75rem;
        width: 1.75rem;
    }

    path {
        fill: var(--white);
    }
}

.calendar-banner-box {
    /* background: url(../img/calendar/bg-01.jpg) no-repeat top center; */
    background: linear-gradient(rgba(2, 25, 121, 0.61), rgba(2, 25, 121, 0.61)), 
                url(../img/calendar/stadium-01.jpg) no-repeat center;
    background-size: cover;
    padding: var(--padding-top-banner);
    width: 100%;
}

.calendar-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.calendar-track {
    display: flex;
    width: 100%;
    transition: transform .8s ease-in-out;
}

.calendar-banner {
    margin-top: calc(120px - (var(--padding-top-banner) * 2 / 3));
    width: 100%;
    flex: 0 0 100%;
    display: block;  
    border-radius: 0.5rem;
}


.section-news {
    background-color: var(--white-567);
    padding-top: 20px;
}

.section-competition {
    /* background: url(../img/calendar/bg-02.jpg) no-repeat center; */
    background: url(../img/slider/slider01.jpg) no-repeat center;
    background-size: cover;
}

.section-competition-detail {
    max-width: 100dvw;
    min-height: 200px;
}

.section-information {
    font-size: 2rem;
}

.competition-box {
    grid-template-columns: auto 1fr;
}

.competition-date-box {
    height: auto;
    width: 100%;
    background-color: var(--blue);
    padding: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}
.competition-date-box p, .competition-date-box h1 {
    display: block;
    color: var(--text-white);
}

.competition-date-box p {
    font-size: 1.5rem;
    font-weight: 200;
}

.competition-date-box h1 {
    font-size: 5.25rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
}

.competition-date-box h2 {
    font-size: 2.5rem;
    color: var(--text-sub-blue);
}

.competition-venues-box {
    height: 100%;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url(../img/calendar/stadium-01.jpg) no-repeat center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem;
    gap: 0rem;
}

.competition-venues-box h2 {
    display: block;
    color: var(--text-white);
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    text-align: center;
}

.competition-venues-box p {
    color: var(--text-white);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-align: center;
    font-weight: 300;
}

.competition-venues-box a {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    background-color: var(--red);
    padding: 0.5rem 0.75rem;
    color: var(--text-white);
    fill: var(--text-white);
    gap: 0.25rem;
}

.competition-venues-box a svg {
    height: 70%;
    width: auto;

}

.competition-venues-box a span {
    font-size: 1rem;
    white-space: nowrap;
}

.competition-menu {
    position: relative;
    width: 100%;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.competition-menu::-webkit-scrollbar {
    display: none;
}

.competition-menu ul {
    width: max-content;  
    min-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem; 
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.competition-menu li {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.competition-menu li.active {
    color: var(--text-red);
    scale: 1.05;
}

.competition-menu li.active:first-child {
    transform: translateX(6px);
}

.competition-menu li.active:last-child {
    transform: translateX(-6px);
}


.competition-menu .competition-menu-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 0;
    background: var(--text-red);
    transition: all 0.3s ease;
}

.title-header {
    width: 100%;
}

.title-header h2 {
    width: 100%;
    font-size: 3.5rem;
    font-weight: 500;
}

.title-header-underline {
    width: 120px;
    height: 6px;
    margin-top: 5px;
    border-radius: 2px;
    background-color: var(--red);
}

#main-title {
    white-space: normal;
}

.list-section {
    --padding-section: 10rem;
    padding-left: var(--padding-section);
    padding-right: var(--padding-section);
    display: none;
}

.list-section.active {
    display: block;
}

.list-section-1 h3 {
    color: var(--text-black);
    font-size: clamp(1rem, calc(2.25vw + 0.01px), 2rem);
}

.list-section-1 ul {
    padding-top: 1rem;
    font-size: clamp(1rem, calc(2vw + 0.01px), 1.75rem);
    font-weight: 300;
    list-style-position: inside;
}

.list-section-1 ul li {
    list-style: none;
    position: relative;
}

.list-section-1 ul li::before {
    margin-left: -2rem;
    content: "-"; 
    position: absolute;
    left: 0;
    top: 0;
}

.list-section-3 img{
    width: 100%;
    height: auto;
}

.list-section-4 div{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.list-section-4 img {
    width: 100%;
    height: auto;
}

.list-section-5 .match-result-box {
    width: 100%;
    min-height: 400px;
    display: flex !important;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;

}

.list-section-5 a {
    height: max-content;
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    font-weight: 500;
    text-align: center;
    background: var(--red);
    color: var(--text-white);
    padding: clamp(0.5rem, 1.5vw, 1.5rem) clamp(1rem, 1vw, 2rem);
    border-radius: 0.5rem;
    text-decoration: none;
    text-wrap: unset;
}

.list-section-5 .match-result {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* .list-section-5 span {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
} */

.event-table {
    margin-top: 3rem;
    width: 100%;
    border-collapse: collapse;
    font-size: 2rem;
    font-weight: 500;
    text-align: left;

}

.event-table .title-row th {
    background: var(--blue);
    color: var(--text-white);
    font-size: 3rem;
    padding: 1rem 0;
    text-align: center;
}

.event-table thead tr:nth-child(2) th {
    background: var(--white-567);
    padding: 1rem 0;
    color: var(--text-black);
    border-bottom: 2px solid #e5e5e5;
    vertical-align: middle;
}
.event-table thead tr:nth-child(2) th:first-child {
    padding-left: 1rem;
}

.event-table th:nth-child(2),
.event-table th:nth-child(3),
.event-table th:nth-child(4),
.event-table td:nth-child(2),
.event-table td:nth-child(3),
.event-table td:nth-child(4) {
    text-align: center;
    border-left: 1px solid var(--text-black);
}

.event-table th:nth-child(2),
.event-table th:nth-child(3),
.event-table th:nth-child(4) {
    width: 15%;
}

.event-table td svg {
    display: block;
    margin: 0 auto;
}

.event-table td {
    vertical-align: middle;
}

.event-table td, .event-table th {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}


.event-table td svg {
    fill: var(--text-blue);
    height: 2rem;
    width: auto;
    scale: 1.5;
}

.event-table .group td {
    background: #E7EBFB;
}

.event-table tbody tr:nth-child(odd):not(.group) td {
    background: var(--white);
}

.event-table .total-row {
    background: var(--red);
    color: var(--text-white);
    text-align: center;
}

.event-table .total-row th {
    padding: 14px 0;
    color: var(--text-white);
}

.event-table td:nth-child(2),
.event-table td:nth-child(3),
.event-table td:nth-child(4) {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-blue);
}

.participant-country-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.participant-country-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    background-color: #333;
    width: 100%;
    padding: 1.5rem;
    
}

.participant-country-title h3 {
    font-size: 2.75rem;
    text-align: center;
}

.participant-country-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 1.75rem;
    gap: 1.75rem;
    background-color: var(--white-567);
}

.flag {
    display: grid;
    grid-template-columns:auto 1fr;
    gap: 1.5rem;
}

.flag img {
    height: 100px;
    width: auto;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    transition: all 0.2s ease-in-out;
    outline: 0px solid var(--blue);
}

.flag h4 {
    font-size: 3.25rem;
    margin: auto 0;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.participant-list {
    margin-top: 4rem;
}

/* .participant-list img {
    width: 100%;
    height: max-content;
} */


.flag-item.active .flag img {
    outline: 6px solid var(--blue);
    outline-offset: 0;
}

.flag-item.active .flag h4 {
    color: var(--text-blue);
}

/* 
MARK: @media
*/

@media screen and (max-width:1400px) {
    .title-header h2 {
        font-size: 3rem;
    }

    .participant-country-title {
        padding: 1.25rem;
    }

    .participant-country-title h3{
        font-size: 2.5rem;
    }

    .flag img {
        height: 90px;
    }

    .flag h4 {
        font-size: 2.75rem;
    }

    .competition-date-box {
        padding: 5rem;
    }

    .competition-date-box h1 {
        font-size: 4.5rem;
    }

    .competition-date-box h2 {
        font-size: 2rem;
    }

    .competition-venues-box {
        padding: 5rem;
    }

    .competition-menu li {
        font-size: 1.2rem;
    }
}

@media screen and (max-width:1366px) {
    .calendar-banner {
        margin-top: calc(90px - (var(--padding-top-banner) * 2 / 3));
    }

    .competition-date-box {
        padding: 4rem;
    }

    .competition-date-box h1 {
        font-size: 4rem;
    }

    .competition-date-box h2 {
        font-size: 1.75rem;
    }

    .competition-venues-box {
        padding: 4rem;
    }

    .list-section {
    --padding-section: 5rem;
    }
    
}

@media screen and (max-width:1280px) {}

/* bootstrap - lg */
@media screen and (max-width: 1200px) {
    :root {
        --padding-top-banner: 1rem;
    }

    .calendar-banner-box {
        padding: 0;
        padding-top: var(--padding-top-banner);
        background: none;
    }

    .calendar-banner-box img {
        border-radius: 0;
    }

    .calendar-banner {
        margin-top: calc(70px - (var(--padding-top-banner) * 2 / 3));
    }

    .list-section {
    --padding-section: 3rem;
    }
    .list-section-4 div {
        gap: 2rem;
    }

    .competition-date-box {
        padding: 3rem;
    }

    .competition-date-box h1 {
        font-size: 4rem;
    }

    .competition-date-box h2 {
        font-size: 1.75rem;
    }

    .competition-venues-box {
        padding: 3rem;
    }
    .event-table th:nth-child(2),
    .event-table th:nth-child(3),
    .event-table th:nth-child(4) {
        width: 17.5%;
    }

    .event-table .title-row th {
        font-size: 2rem;
    }

    .event-table {
        font-size: 1.5rem;
    }

    .event-table td:nth-child(2),
    .event-table td:nth-child(3),
    .event-table td:nth-child(4) {
        font-size: 1rem;
    }
}

@media screen and (max-width:1024px) {
    .calendar-banner {
        margin-top: calc(75px - (var(--padding-top-banner) * 2 / 3));
    }
    .title-header h2 {
        font-size: 2rem;
    }

    .participant-country-title h3{
        font-size: 2.25rem;
    }

    .flag img {
        height: 80px;
    }

    .flag h4 {
        font-size: 2rem;
    }

    .competition-date-box {
        padding: 2rem;
    }

    .competition-date-box h1 {
        font-size: 3rem;
    }

    .competition-date-box h2 {
        font-size: 1.5rem;
    }

    .competition-venues-box {
        padding: 2rem;
    }

}

@media screen and (max-width:820px) {
    .list-section {
    --padding-section: 2rem;
    }

    .competition-box {
        grid-template-columns:1fr;
    }

    .competition-date-box {
        padding: 4rem;
    }

    .competition-date-box h1 {
        font-size: 3.5rem;
    }

    .competition-date-box h2 {
        font-size: 2.5rem;
    }

    .competition-venues-box {
        padding: 4rem;
    }

    .list-section-4 div {
        gap: 0.5rem;
    }
    
    .participant-country-title h3{
        font-size: 2rem;
    }

    .participant-country-flag {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .flag img {
        height: 80px;
    }
}

@media screen and (max-width:737px) {
    
    .participant-country-title h3{
        font-size: 1.5rem;
    }

    .participant-country-flag {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .flag img {
        height: 70px;
    }
}

@media screen and (max-width:576px) {

    .competition-date-box {
        padding: 3rem;
    }

    .competition-date-box h1 {
        font-size: 2.5rem;
    }

    .competition-date-box h2 {
        font-size: 1.5rem;
    }

    .competition-venues-box {
        padding: 3rem;
    }

    .title-header h2 {
        font-size: 1.5rem;
    }

    .participant-country-title h3{
        font-size: 1.5rem;
    }

    .participant-country-title {
        padding: 1rem;
    }

    .event-table .title-row th {
        font-size: 1.5rem;
    }

    .event-table {
        font-size: 1.25rem;
    }

    .event-table {
        font-size: 1rem;
    }

    .event-table td:nth-child(2),
    .event-table td:nth-child(3),
    .event-table td:nth-child(4) {
        font-size: 0.75rem;
    }

    .event-table thead tr:nth-child(2) th {
        padding: 0.5rem 0;
    }

    .event-table td, .event-table th {
        padding: 0.5rem;
    }

    .event-table td svg {
        height: 1.25rem;
    }
}

@media screen and (max-width:560px) {
    .list-section {
    --padding-section: 0rem;
    }
    /* .title-header h2 {
        font-size: 1.375rem;
    } */
}

@media screen and (max-width:414px) {
    /* .title-header h2 {
        font-size: 1.25rem;
    } */
}

@media screen and (max-width:375px) {
    /* .title-header h2 {
        font-size: 1rem;
    } */
}