@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;500;600;700;800&family=Lora:wght@400;500;600&family=Marcellus+SC&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  background: #3e4c58;
color: white;

  font-family: "Kanit", sans-serif;
}
p,
.contact-content {
  font-family: "Roboto", sans-serif;
}

.container {
  width: min(100% - 15px, 1400px);
  padding: 10px;
  margin-inline: auto;
  position: relative;
}
.mw-1140 {
  width: min(100% - 15px, 1140px);
}
a {
  text-decoration: none;
  color: unset;
}
li {
  list-style: none;
}
header {
    background: #2a343d;
    color: white;
    z-index: 100;
}
.main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(141, 141, 141);

}
.contact-content {
  display: flex;
  width: max-content;
}
.contact-top-bar{
    display: flex;
    align-items: center;
    margin: auto 15px;
}
.contact-top-bar .icon{
    width: 50px;
}

.contact-top-bar svg{
    width: 50px;
    height: auto;
    fill: #15b095;
    padding: 6px;
}
.contact-infos{
    text-align: left;
}

.contact-title{
    color: #707279;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 16px;
}
.contact-box{
    font-size: 14px;
}
.contact-infos{
    margin-left: 12px;
}
.logo-content {
  width: 100%;
  max-width: 300px;
  text-transform: uppercase;
  font-weight: bolder;
  color: #b8b8b8;
  padding: 9px 0;
}

.logo-content img{
    max-width: 110px;
}
.menu li {
  display: inline-block;
}
.menu li a {
  display: block;
  padding: 6px 11px;
  margin: 10px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 17px;
  transition: .3s;
  border-radius: 3px;
}
.menu li a:hover{
    background: #15b095;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: auto;
}
img{
    width: 100%;
}
.md-2,
.md-3,
.md-4,
.md-6,
.md-8,
.md-9,
.md-12 {
  padding-top: 7.5px;
  padding-bottom: 7.5px;
}
.md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}
.md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.md-5 {
  flex: 0 0 41.66666%;
  max-width: 41.666666%;
}
.md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.md-7 {
  flex: 0 0 58.33333%;
  max-width: 58.33333%;
}
.md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.md-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.md-10 {
  flex: 0 0 83.333335%;
  max-width: 83.333335%;
}
.md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
.box {
  padding: 10px;
  margin: auto;
  position: relative;
}
.event-box{
    display: flex;
    width: 100%;
}
.event-desc{
    background: rgba(255,255,255,.1);
    padding: 50px 20px;
    border-radius: 3px;
    margin: 0 10px;
    width: 55%;
    margin-left: 20px;
    border-radius: 10px;

}
.event-info{
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    max-width: 100%;
    width: 50%;
}
.event-date{
    width: 120px;
    text-align: center;
}
.event-image{
    padding: 0 10px;
    overflow: hidden;
    border-radius: 14px;

}
.event-image img{
    border-radius: 14px;
    height: 100%;
    width: 100%;
    object-fit: cover;

}

.event-num{
    font-weight: 600;
    font-size: 60px;
    color: #151515;
    display: block;
    line-height: .8;
    margin-bottom: 15px;
    text-align: center;
    background: white;
    padding: 5px;
    border-radius: 5px;

}
.event-num span{
    font-size: 18px;
    text-transform: uppercase;
    display:block;
    font-weight: 600;
}
.event-day{
    text-transform: uppercase;
    font-weight: 600;
    color: white;
}
.event-hour{
    color: #15b095;
    font-weight: 600;
}
h2{
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 400;
    color: white;
    position: relative;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
}
.slider{
    position: relative;
    overflow: hidden;
}
.slider:after{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    background: rgba(29, 37, 45, 0.3);
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
h2:before{
    top: 50%;
    translate: 0% -50%;
    width: 5px;
    height: 24px;
    background: #15b095;
    content: '';
    position: absolute;
    left: 0;

}
.event-name{
    font-size: 32px;
    color: white;
}
.event-place{
    color: #9b9b9b;
    font-weight: 700;

}
.event-text{
    font-size: 14px;
    color: #9b9b9b;
    font-weight: 600;
    margin: 20px 0;
}
.share-btn{
    display: inline-block;

    text-align: center;
    color: white;
    background-color: #f05c5c;
    border-radius: 5px;
    cursor: pointer;
    padding: 12px 20px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}
.btn-block{
    display: block;
    text-align: center;
    margin-top: 10px;

}
.main-article{
    background: rgba(255,255,255,.1);
    transition: .3s;
    border-radius: 12px;
}
.main-article:hover{
    box-shadow: 0 7px 18px rgb(0 0 0 / 13%);
}
.main-article-desc{
    padding: 20px 14px;
}
.main-article h3{
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
}
.main-article p{
    color: #e1e1e1;
    line-height: 1.5em;
    font-size: 15px;
    margin: 24px 0;
}
.sub-article{
    background: rgba(255,255,255,.1);
    border-radius: 10px;
}
.sub-article li{
    padding: 15px 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #e1e1e1;
    font-size: 15px;
    transition: .3s;
}
.sub-article li:hover{
    background: #e1e1e1;
    color: #3e4c58;
}
.sub-article-date{
    margin-bottom: 10px;
}
.tournament-box{
    position: relative;
    height: 340px;
    overflow: hidden;
    z-index: 1;
    transition: .3s;
    border-radius: 15px;
    display: block;
}
.tournament-box:after{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    background: rgba(29, 37, 45, 0.5);
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.tournament-box img{
    transition: .3s;
}
.tournament-box:hover img{
    scale: 1.2;
}
.tournament-desc{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px;
    width: 100%;
    z-index: 1;
    color: white;
    padding-bottom: 20px;
}
.tournament-tag{
    background: #f05c5c;
    color: white;
    padding: 6px;
    width: max-content;
    margin-bottom: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 12px;
}
.tournament-name{
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
}
.tournament-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;

}
footer{
    background: #2a343d;
    color: white;
    text-align: center;
}
footer h3{
    text-transform: uppercase;
    margin-right: 20px;
    font-weight: 500;
}
.sponsors{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #707279;
    padding: 16px 0;
}
.sponsor-list{
    display: flex;
}
.sponsor-list li{
    flex: 1;
    margin: auto 20px;
}
.social-icons{
    display: flex;
}
.social-icons li{
    width: 38px;
    height: 38px;
    font-size: 18px;
    text-align: center;
    border-radius: 3px;
    color: #fff;
    background: #424349;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}
.footer-flex{
    display: flex;
    align-items: center;
}
.footer-about{
    padding: 10px 20px;
    color: #5a666d;

}
footer h4{
    font-size: 16px;
    text-transform: uppercase;
    margin: 12px 0;
    padding-bottom: 20px;
    position: relative;
    margin-bottom: 20px;
}
footer h4:after{
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #15b095;
    content: '';
    position: absolute;
}
footer li{
    margin: 6px 0;
}
footer .contact-top-bar{
    margin: 20px 0;
}
.footer-logo img{
    max-width: 300px;
    height: auto;
}
.gallery-box{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1em;
}
.gallery{
    overflow: hidden;
}
.gallery img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}
.gallery:hover img{
    scale: 1.2;
}
.my-5{
    margin: 5em auto;
}
.sub-page-header{
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #2a343d;

}
.sub-page-header img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .8;
}
.sub-page-header h1{
    font-size: 50px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    translate: -50% -50%;
    z-index: 100;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
}
.news-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
}
.news-box{
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    border-radius: 10px;
    transition: .2s;
}
.news-box img{
    transition: .3s;
}
.news-box:hover img{
    transform: scale(1.2);
}
.news-box:hover{
    box-shadow: 0 7px 18px rgb(0 0 0 / 13%);

}
.news-box:after{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    content: '';
    height: 50%;
    z-index: -1;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.639093137254902) 35%, rgba(0,0,0,0) 100%);
}
.news-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.news-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-title{
    color: white;
    font-size: 22px;
    padding: 20px 15px;
    font-weight: 500;
}
#main{
    position: relative;
}
.form-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1em;
}
form input{
    padding: 15px;
    width: 100%;
    border: 0;
    outline: 0;
    font-family: "Kanit", sans-serif;


}
.form-group{
    margin: 12px 0;
}
form textarea{
    width: 100%;
    border: 0;
    padding: 15px;
    font-family: "Kanit", sans-serif;

}
.submit-btn{
    background: #15b095;
    color: white;
    text-transform: uppercase;
    font-family: "Kanit", sans-serif;
    padding: 10px;
    font-size: 20px;
}
.contact-tit{
    color: #15b095;
    font-weight: 600;
}
.members{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.member-box{
    text-align: center;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    overflow: hidden;
    transition: .3s;
}
.member-box:hover{
    box-shadow: 0 7px 18px rgb(0 0 0 / 13%);

}
.member-box h3{
    padding: 14px 0;
}
.member-details{
    background: white;
    border: 1px solid #e1e1e1;

}
.member-image-row{
    display: flex;
    border-bottom: 1px solid #e1e1e1;

}
.member-image-row div{
    flex: 1;
}
.member-name{
    padding: 12px;
}
.member-name h3{
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 1px solid #e1e1e1;
}
.member-name li{
    margin: 10px 0;
}
.member-name b{
    color: #15b095;
}
.member-about{
    font-size: 14px;
    font-weight: 300;
    padding: 15px;
    color: #5a666d;
}
.calendar-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5em;
    margin: 40px 0;
    align-items: flex-end;
}
.calendar{
    border-right: 4px solid #151515;
    border-top: 4px solid #151515;
    border-top-right-radius: 15px;
    position: relative;
    padding: 10px;
    padding-top: 20px;
    transition: .3s;
    z-index: 1;
}
.calendar:after{
    background: url(https://www.formula1.com/etc/designs/fom-website/images/patterns/plus-x1.png);
    background-repeat: repeat;
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: .3;
}
.calendar:hover{
    border-right: 4px solid #15b095;
    border-top: 4px solid #15b095;

}

.type{
    position: absolute;
    top: -19px;
    left: 0;
    background: #3e4c58;
    padding: 5px 10px;
}
.calendar-date{
    font-size: 40px;
    font-weight: bold;
    background: #15b095;
    color: white;
    padding: 0 15px 0 30px;
    translate: -20px 0;
    z-index: 0;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: .2s;

}
.calendar:hover .calendar-date{
    padding: 0 30px 0 40px;
}
.calendar:hover .calendar-month{
    padding: 9px 40px;

}
.calendar-month{
    background: #2a343d;
    color: #edeff4;
    width: max-content;
    padding: 9px 20px;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    height: 45px;
    display: flex;
    align-items: center;
    transition: .3s;
}
.flexed{
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}
.calendar-name{
    font-weight: bold;
    font-size: 20px;
    height: 50px;
    margin: 10px 0;
    color: #b8b8b8;
    line-height: 1;
}
.calendar-subtitle{
    font-weight: 300;
    text-transform: uppercase;
}
.calendar-image{

    padding: 10px;
}
.calendar-image img{
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: auto;
    display: block;

}
.calendar-grid h2{
    grid-column: span 3;
}
.p-20{
    padding: 20px;
}
.p-20{
    color: #707279;
    font-weight: 300;
}
.pb-20 b{
    color: #151515!important;
    font-weight: 400;
}
.close-main-bottom, .contact-close{
    display: none;
}
@media(max-width:1024px){
    .footer-flex{
        display: block;
    }
    footer h4:after{
        display: none;
    }
    .sub-page-header h1{
        font-size: 36px;
    }
    .mobile-menu{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 5px;
    }
    .mobile-contact{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 5px;
    }
    .contact-btn{
        padding: 10px;
    }
    .contact-btn span{
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #e1e1e1;
        display: block;
        margin: 3px auto;
    }
    .menu-btn{
        background: #5a666d;
        width: 36px;
        height: 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 3px;
    }
    .menu-btn span{
        width: 22px;
        height: 2px;
        background: white;
        display: block;
        margin: 2px auto;
    }

    .member-image-row{
        display: block;
    }
    .md-2,
    .md-3,
    .md-4,
    .md-5,
    .md-6,
    .md-7,
    .md-8,
    .md-9,
    .md-12 {
        flex: 100%;
        max-width: 100%;
        width: 100%;
    }
    .main-bottom{
        position: fixed;
        top: 0;
        left: 0;
        width: 16rem;
        height: 100vh;
        background: #2a343d;
        z-index: 100;
        padding-top: 60px;
        transform: translateX(-16rem);
        transition: .4s;
    }
    .main-bottom-active{
        transform: translateX(0rem);

    }
    .menu li{
        display: block;
        text-align: right;
    }
    .contact-content{
        position: fixed;
        top: 65px;
        padding-top: 30px;
        right: 0;
        width: 15rem;
        background: #151515;
        display: block;
        padding: 15px;
        z-index: 100;
        transform: translateX(15rem);
        transition: .3s;
    }

    .close-main-bottom, .contact-close{
        padding: 12px;
        position: absolute;
        top: 0;
        right: 0;
        background: #5a666d;
        display: block;
    }
    .contact-content-active{
        transform: translateX(0);

    }
    .contact-top-bar{
        margin: 15px 0;
    }
    .main-top{
        border-bottom: 0;
        text-align: center;
    }
    .logo-content{
        margin: auto;
    }
    .logo-content img{
        max-width:40px;
    }

    header .container{
        padding: 0 10px;
    }
    header{
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .slider{
        aspect-ratio: 1;
    }
    .slider img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .event-box{
        display: block;
    }
    .event-desc{
        width: 100%;
        margin: auto;
    }
    .event-info{
        width: 100%;
    }
    .event-image{
        margin-left: 0;
        padding: 0;
        margin-left: 15px;
        width: calc(100% - 110px);
    }
    .event-date{
        width: 50%;
    }
    .gallery-box{
        grid-template-columns: repeat(2,1fr);

        grid-gap: .4em;
        
    }
    .sponsors{
        display: block;
    }
    .sponsor-list{
        display: block;
    }
    .news-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .calendar-grid{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 3em;
    }
    .calendar-grid h2{
        grid-column: span 1;
    }
    .sponsor-list li{
        margin: 20px auto;
    }
    .sponsor-list li img{
        max-width: 150px;
        display: block;
        margin: auto;
    }
}