@import url(./reset.css);

:root {
    --font-family: "Noto Sans Thai", sans-serif;
    --font-family-alt: "Cormorant Garamond", serif;
    --line-height-base: 1.6;
    --font: #57585B;

    --primary: #B3C1DA;
    --grey: #CCCCCC;
    --green: #AFC0BE;
    --base: #EFEDE8;
    --orange: #DFC3B6;

    /* Font sizes */
    --fs-h1: 42px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-h5: 18px;
    --fs-h6: 16px;
    --fs-small: 14px;
    --fs-tiny: 12px;
    --font-size-base: 16px;

    /* ความยาวขีด */
}



.img-over {
    width: 100%;
}

hr {
    border-color: var(--font);
}

.text-white hr {
    border-color: #fff;
}

.text-icon {
    display: flex;
    align-items: center;
}


.box-grid-hover {
    position: relative;
    display: block;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.box-grid-hover::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    aspect-ratio: 1/1;
    top: 100%;
    left: 100%;
    background: rgba(0, 0, 0, 0.07);
    transition: all .3s ease-in-out;
    z-index: 1;
    border-radius: 1000%;
}

.box-grid-hover:hover::before {
    top: -50%;
    left: -50%;
}

.text-hover {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: var(--fs-h2);
    font-weight: 600;
    font-family: var(--font-family-alt);
    color: #fff;
    transition: all .3s ease-in-out;
    z-index: 10;
}

.box-grid-hover:hover .text-hover {
    color: var(--font);
    transform: translate(-20px, -20px);
}

.grid-section {}

.box-grid-img-hover {
    position: relative;
    display: block;
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 10px;
}

.box-grid-img-hover img {
    transition: all .3s ease-in-out;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-grid-img-hover:hover img {
    transform: scale(1.1);
    filter: grayscale(1);
}

.text-on-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10;
    top: 0;
    left: 0;
    font-size: var(--fs-h2);
    font-weight: 600;
    font-family: var(--font-family-alt);
    color: #fff;
    opacity: 0;
    transition: all .3s ease-in-out;
    background: rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.box-grid-img-hover:hover .text-on-hover {
    opacity: 1;
}

.grid-col img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (min-width: 992px) {
    .img-over {
        width: 50vw;
        max-width: none !important;
    }

    .iframe-over {
        width: 50vw;
    }

    .grid-row-1 .grid-col {
        height: 50%;
    }

    .grid-row-2 .grid-col {
        height: 33.33%;
    }

    .grid-row-3 .grid-col {
        height: 50%;
    }

}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--font);
    background-color: #fff;
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

section,
footer {
    overflow: hidden;
}

.fs-cg {
    font-family: var(--font-family-alt);
}

.pd {
    padding: 50px 0;
}

.pd-100 {
    padding: 100px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
.h1 {
    font-size: var(--fs-h1);
    line-height: 1.2;
}

h2,
.h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

h3,
.h3 {
    font-size: var(--fs-h3);
    line-height: 1.2;
}

h4,
.h4 {
    font-size: var(--fs-h4);
    line-height: 1.2;
}

h5,
.h5 {
    font-size: var(--fs-h5);
    line-height: 1.2;
}

h6,
.h6 {
    font-size: var(--fs-h6);
    line-height: 1.2;
}

small,
.small {
    font-size: var(--fs-small);
}

.tiny {
    font-size: var(--fs-tiny);
}


.text-primary {
    color: var(--primary) !important;
}

.text-grey {
    color: var(--grey) !important;
}


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

a:hover {
    color: var(--primary);
}

/* NAV */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    background: #fff;
}

.has-sub {
    position: relative;
}

ul.sub-list li {
    position: relative;
    font-size: var(--fs-small);
    margin-bottom: 4px;
}

ul.sub-list li a:hover {
    color: #fff;
}

@media (min-width: 991.98px) {
    .has-sub:hover ul.sub-list {
        opacity: 1;
        visibility: visible;
        top: 100%;
    }

    ul.sub-list {
        position: absolute;
        top: calc(100% + 8px);
        background: #B3C1DA;
        padding: 15px;
        border-radius: 5px;
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease-in-out;
        z-index: 2;
    }

    ul.sub-list::before {
        content: "";
        position: absolute;
        top: -17px;
        left: 0;
        width: 100%;
        height: calc(100% + 17px);
        background: transparent;
    }
}

.nav .nav-menu {
    padding-right: 60px;
}

.nav .nav-menu ul.inner-menu {
    display: flex;
    gap: 40px;
}

.switch-lang {
    position: relative;
    font-size: var(--fs-small);
    cursor: pointer;
}

.dp-current {
    padding: 0 12px;
    border-radius: 100px;
    border: 1px solid var(--font);
}

.dp-list {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: #fff;
    display: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--font);
    border-radius: 4px;
    text-align: center;
    display: none;

}

.dp-list li a {
    width: 100%;
}

.dp-list li a:hover {
    color: var(--primary);
}

.wrapper{
    width: 100%;
    display: block;
    margin-top: 80px;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    font-size: unset;
    text-decoration: none;
}

.navbar-brand img {
    height: 80px;
    display: block;
}

.arrow-down,
.arrow-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-down::after {
    content: '';
    right: 0;
    width: 10px;
    height: 6px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.78235 4.66354C4.45772 5.30485 5.51714 5.30488 6.1925 4.66354L9.74035 1.2944C10.0407 1.00917 10.0529 0.534211 9.7677 0.23385C9.48245 -0.0663982 9.00747 -0.078687 8.70715 0.206507L5.1593 3.57565C5.06282 3.66727 4.91105 3.66727 4.81457 3.57565L1.26672 0.206507C0.966359 -0.078723 0.491403 -0.0665099 0.206173 0.233851C-0.0790543 0.534212 -0.0668428 1.00917 0.233517 1.2944L3.78235 4.66354Z' fill='black'/%3E%3C/svg%3E%0A");
}

.arrow-right::before {
    content: '';
    right: 0;
    width: 6px;
    height: 10px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='11' viewBox='0 0 6 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.40137 0.206055C5.10109 -0.0789813 4.62605 -0.0667071 4.34082 0.233398L0.481445 4.2959C-0.160026 4.97126 -0.159933 6.03162 0.481445 6.70703L4.34082 10.7695C4.6261 11.0696 5.10112 11.082 5.40137 10.7969C5.70159 10.5116 5.71297 10.0366 5.42773 9.73633L1.56934 5.67383C1.47787 5.57734 1.47778 5.42553 1.56934 5.3291L5.42773 1.2666C5.71295 0.966335 5.70153 0.491343 5.40137 0.206055Z' fill='%2357585B'/%3E%3C/svg%3E%0A");
}


.sticky-line {
    position: fixed;
    bottom: 10%;
    right: 20px;
    z-index: 30;
    width: 50px;
    height: auto;
}

.sticky-line img {
    width: 100%;
    height: auto;
}


.hero-banner span.swiper-pagination-bullet,
.review-slider span.swiper-pagination-bullet {
    background-color: #D9D9D9;
    opacity: 1;
}

.hero-banner span.swiper-pagination-bullet.swiper-pagination-bullet-active,
.review-slider span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 100px;
    background-color: #AFC0BE;
}

.hover-img {
    overflow: hidden;
    padding: 30px;
}

.hover-img img {
    transition: all .3s ease-in-out;
    display: block;
    margin: 0 auto;
    transform: scale(0.9);
}

.hover-img:hover img {
    transform: scale(1);
}

.icon-social {
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
}

.icon-social img {
    height: 20px;
    object-fit: contain;
}


.bg-primary {
    background-color: var(--primary) !important;
}

.bg-green {
    background-color: var(--green) !important;
}

.bg-grey {
    background-color: var(--grey) !important;
}

.bg-light-grey {
    background-color: #F7F6F4 !important;
}

.bg-base {
    background-color: var(--base) !important;
}

.bg-orange {
    background-color: var(--orange) !important;
}

.border-grey {
    border: 1px solid var(--grey) !important;
}

.font-bold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 600 !important;
}


.review-slider .swiper-pagination {
    text-align: left;
    margin-top: 20px;
}

.object-contain {
    object-fit: contain;
}


.rv-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 18px 56px
}

.rv-title {
    text-align: center;
}

.rv-topbar {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9eaee;
    margin-bottom: 15px;
}

.rv-tab {
    border: 0;
    background: transparent;
    padding: 8px 2px;
    cursor: pointer;
    position: relative;
    color: var(--grey);
}

.rv-tab.is-active {
    color: var(--primary);
}

/* .rv-tab.is-active::after{
      content:"";
      position:absolute;
      left:0; right:0; bottom:-11px;
      height:2px;
      background: currentColor;
    } */

.rv-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.rv-label {
    margin-right: 2px
}

.rv-chip {
    border: 0;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1;
}


.rv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}


.rv-card {
    border-radius: 12px;
    overflow: hidden;
}

.rv-card-hoz {
    display: flex;
    gap: 40px;
    align-items: center;
}

.rv-card-hoz .rv-card__img {
    width: 300px;
    height: auto;
    aspect-ratio: 1/1;
}

.rv-card-hoz .rv-card__img img {
    width: 100%;
}

.rv-card__img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.rv-card__meta {
    padding: 10px 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.rv-hidden {
    display: none !important;
}






.rv-chip:hover,
.rv-chip.is-active {
    background-color: var(--primary);
    color: #fff;
}

.gb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.pag-number {
    display: flex;
    gap: 20px;
}

.pag-number__item {
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0.9;
}

.pag-number__item.is-active {
    background-color: var(--primary);
    color: #fff;
}


.content ul {
    padding-left: 20px;
}

.content ul,
.ul-list {
    list-style-type: disc;
    padding-left: 20px;
}

.content ol,
.ol-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.btn-primary,
.btn-primary:hover {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 24px;
    border-radius: 4px;
    cursor: pointer;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-line,
.btn-line:hover {
    background-color: #35CF35;
    color: #fff;
    border: 2px solid #35CF35;
    padding: 5px 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 100px;
}



.btn-line img {
    height: 30px;
}

.gap-40 {
    gap: 40px !important;
}


.vcard {
    position: relative;
    width: 100%;
    max-width: 760px;
    border-radius: 14px;
    overflow: hidden;
}

.vthumb {
    position: relative;
}

.vthumb__bg {
    display: block;
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    aspect-ratio: 106/73;
}

.vplay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    /* background: rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18); */
}

/* .vplay::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 18px solid rgba(255, 255, 255, .95);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-45%, -50%);
} */

.vmedia {
    display: none;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 106/73;
    /* video height = thumb */
    background: #000;
}

.vcard.is-playing .vthumb {
    display: none;
}

.vcard.is-playing .vmedia {
    display: block;
}

.vmedia--yt iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Make image tiles keep nice height on desktop */
@media (min-width:1024px) {}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

}


@media (max-width: 980px) {
    .rv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px
    }

    .rv-card-hoz .rv-card__img {
        width: 150px;
    }


    .has-sub .arrow-down {
        justify-content: space-between;
    }

    ul.sub-list {
        margin-top: 5px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding-top: 10px;
        display: none;
    }

    ul.sub-list li {
        margin-bottom: 10px;
    }

}

@media (max-width: 767px) {
    .rv-card-hoz {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .rv-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .rv-card-hoz .rv-card__img {
        width: 100%;
    }

    .rv-card-hoz {
        gap: 10px;
    }

    .pd-100 {
        padding: 50px 0;
    }

}


@media (max-width: 992px) {
    .navbar-brand img {
        height: 60px;
    }

    .wrapper{
        margin-top: 60px;
    }

    /* .nav-menu{
        display: none;
    } */

    button.navbar-toggler {
        width: 40px;
    }

    .navbar-toggler .navbar-close {
        display: none;
    }

    .navbar-toggler.active .navbar-toggle {
        display: none;
    }

    .navbar-toggler.active .navbar-close {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        height: 100%;
        max-height: calc(100% - 60px);
        background-color: #fff;
        overflow: hidden;
        overflow-y: scroll;
        display: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav .nav-menu {
        padding: 0 20px 20px 20px;
        width: 100%;
    }

    .nav .nav-menu ul.inner-menu {
        margin-top: 20px;
    }

    .nav .nav-menu ul.inner-menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav .nav-menu ul.inner-menu li {
        order: 1;
    }

    .nav .nav-menu ul.inner-menu li.switch-lang {
        order: 0;
    }

    .switch-lang {
        margin-right: auto;
    }
}

@media (max-width: 370px) {
    .navbar-brand img {
        height: 50px;
    }
    .wrapper{
        margin-top: 50px;
    }
    .nav .nav-menu {
        padding-right: 50px;
    }
}


/* DESKTOP (เดิม) */
.m-grid2 {
    display: grid;
    gap: 14px;
    padding: 14px;
    grid-template-columns: 0.55fr 1.15fr 1.55fr;
    grid-template-rows: repeat(6, 1fr);
    grid-template-areas:
        "a b c"
        "a b c"
        "a e c"
        "d e f"
        "d g f"
        "d g f";

    height: auto;
}

.m-box {
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a {
    grid-area: a;
}

.b {
    grid-area: b;
}

.c {
    grid-area: c;
}

.d {
    grid-area: d;
}

.e {
    grid-area: e;
}

.f {
    grid-area: f;
}

.g {
    grid-area: g;
}

/* iPad (768 - 991.98) */
/* @media (min-width:768px) and (max-width:991.98px){
  .m-grid2{
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: repeat(5, 1fr);
    grid-template-areas:
      "a b"
      "d e"
      "d g"
      "c c"
      "f f";
    height: auto;
  }
} */

@media (min-width:768px) and (max-width:991.98px) {
    .m-grid2 {
        grid-template-rows: repeat(6, 0.5fr) !important;
    }
}

/* Mobile < 768 */
@media (max-width:991.98px) {
    .m-grid2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, 0.5fr) !important;
        grid-template-areas:
            "a d"
            "b b"
            "e e"
            "g g"
            "c c"
            "f f";
        height: auto;
    }

    .hover-img {
        padding: 0;
    }
}