motherbody {
    background-color: #000000;
}

/* banner */
.banner-container {
    position: relative;
    width: 100%;
    max-height: auto;
    overflow: hidden;
    margin-top: 80px;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.banner-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%; /* ปรับความสูงของ gradient ตามที่ต้องการ */
    background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0.175), rgba(0, 0, 0, 0));
    pointer-events: none; /* ทำให้ gradient ไม่กระทบการคลิก */
}


/* new doc intro */
.doc-intro-head-text h1 {
    background-color: #000000;
    margin: 0;
    padding: 1% 10% 0 10%;
    font-size: 40px;
    color: #fed900;
}

.doc-intro-head-text .doc-intro-head-text-under-key {
    font-size: 14px;
}

.doc-intro-head-text .doc-intro-head-text-under-key-final {
    font-size: 14px;
    padding-bottom: 1%;
}

.doc-intro-head-text .doc-intro-head-text-detail {
    text-align: justify;
}

.doc-intro-head-text p {
    background-color: #000000;
    margin: 0;
    padding: 0 10%;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
}

.doc-intro-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 20%;
    background-color: #000000;
}

.doc-intro-column {
    background-color: #000000;
    color: #ffffff;
    border-radius: 10px;
    padding: 0;
    box-sizing: border-box;
}

.doc-intro-key-detail {
    font-size: 16px;
    padding: 20px 0 20px 0;
    margin: 0;
    text-align: center;
    color: #ffffff;
}


/* trailer */
.background-container {
    width: 100%;
    height: 600px;
    background-image:  linear-gradient(to bottom, rgb(0, 0, 0),rgba(0, 0, 0, 0),rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url('https://asiandocs-salon.com/image/doc/mother/mother2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.trailer-video-container {
    margin-top: 3%;
    padding-top: 0;
    position: relative;
    width: 100%;
    max-width: 533px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.trailer-video-container video {
    width: 100%;
    height: auto;
    max-height: 300px;
    max-width: 533;
    display: block;
}

.play-button {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('https://asiandocs-salon.com/image/material/play.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;

}

.play-button:hover {
    opacity: 0.8;
}

.pause-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-image: url('https://asiandocs-salon.com/image/material/pause.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 3;
    display: none;
    background-color: #ffffff47;
}

.pause-button:hover {
    opacity: 0.8;
}

.trailer-head-text h2 {
    margin-top: 10px;
    text-align: center;
    color: #fed900;
    font-size: 40px;
    padding: 10px;
}


/* analysis text */
.analysis-text-background-container {
    position: relative;
    width: 100%;
    height: auto;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.508), rgba(0, 0, 0, 0)), 
    url('https://asiandocs-salon.com/image/doc/mother/mother5.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: left;
}

/* กำหนดรูปแบบสำหรับกริด */
.analysis-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 10%;
}

/* กำหนดรูปแบบสำหรับแต่ละกริด */
.analysis-text-grid-item {
    color: white;
    padding: 0;
    font-size: 16px;
}

.analysis-text-grid-item h2 {
    font-size: 25px;
    color: #fed900;
}



/* fac pr */

.fac-pr-container {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: repeat(2, auto);
    gap: 0;
    width: auto;
    background-color: rgb(22, 22, 22);
    padding: 5% 10%;
}

.fac-pr-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    background-color: rgb(22, 22, 22);
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.fac-pr-left img {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.fac-pr-left-left {
    border-radius: none;
    border-top-left-radius: 50px;
}

.fac-pr-left-right {
    border-radius: none;
    border-bottom-right-radius: 50px;
}

.fac-pr-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(22, 22, 22);
    color: #ffffff;
    padding: 0;
    padding-left: 10%;
    margin: 0;
}

.fac-pr-right h2 {
    font-size: 40px;
    color: #fed900;
    padding: 0;
    margin: 0;
}

.fac-pr-right h3 {
    font-size: 30px;
    color: #fed900;
    padding: 0;
    margin: 0;
}

.fac-pr-right .fac-position {
    font-size: 16px;
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.fac-pr-right .fac-detail {
    text-align: justify;
}

.fac-pr-right .fac-pr-quote {
  width: 8vw; 
  max-width: 100px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow: hidden; 
}

.fac-pr-right .fac-pr-quote img {
  width: 60%;
  height: auto;
  object-fit: contain;
}




/* still pic */
.still-pic-section {
    position: relative;
    /* ตั้งค่าให้เป็น relative เพื่อใช้กับการจัดตำแหน่ง */
    max-width: 100%;
    margin: 0 auto;
    background-color: #000000;
}

.still-pic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    justify-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #000000;
}

.still-pic-image {
    background-color: #000000;
    width: 100%;
    height: auto;
    opacity: 1;
}

/* กล่องข้อความกลาง */
.still-pic-text {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fed900;
    text-align: center;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: upright;
    height: 100%;
}

.still-pic-text h2 {
    font-size: 20px;
}





/* doc grid */

.section-head-text h2 {
    background-color: #343a45;
    margin: 0;
    padding: 5% 0 0 0;
    font-size: 40px;
    color: #fed900;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 2% 10% 7% 10%;
    justify-content: center;
    background-color: #343a45;
}

.doc-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-width: 250px;
    border: none;
    background-color: #212529;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border-top-right-radius: 40px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.doc-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.doc-grid-card-content {
    width: 80%;
    padding: 10px 35px 20px 35px;
    text-align: left;
    color: #ffffff;
    line-height: 1.2em;
    font-size: 14px;
}

.doc-grid-card-content p {
    font-size: 16px;
    padding: 0;
    margin: 8px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.doc-grid .card-button {
    margin-top: 10px;
    padding: 10px;
    background-color: #fed900;
    color: #212529;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    border-radius: 5px;
}

.card-button:hover {
    background-color: #434b5a;
    color: #ffffff;
}



/* fix button */

.fixed-ticket-button {
    position: fixed;
    right: 0;
    top: 70.5%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: #fed900;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

 .fixed-ticket-button:hover {
    background-color: #434b5a;
    color: #ffffff;
}







/* font */

h1 {
    font-size: 28px;
    margin: 0 0 5px 0;
    text-align: center;
}

h2 {
    font-size: 22px;
    margin: 0 0 5px 0;
    text-align: center;
}

h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    text-align: center;
}

p {
    font-size: 16px;
}



/* mobile */

@media (max-width: 1045px) {

    /* banner */
    .banner-container {
        margin-top: 63.6px;
    }


    /* new doc-intro */
    .doc-intro-key {
        font-size: 60px;
    }

    /* font */

    h1 {
        font-size: 15px;
        margin: 0 0 5px 0;
        text-align: center;
    }

    h2 {
        font-size: 14px;
        margin: 0 0 5px 0;
        text-align: center;
    }

    h3 {
        font-size: 14px;
        margin: 0 0 5px 0;
        text-align: center;
    }

    p {
        font-size: 12px;
    }

}


@media (min-width: 865px) and (max-width: 1180px) {
    /* banner */
    .banner-container {
        margin-top: 63.6px;
    }

    /* analysis text */
    .analysis-text-background-container {
        height: auto;
    }

    .analysis-text-grid-item p {
        font-size: 16px;
    }





    /* doc grid kanshokai*/

    .section-head-text h2 {
        font-size: 40px;
    }

    .doc-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 2% 20% 7% 20%;
    }

    .doc-grid-item {
        width: 100%;
        min-width: 250px;
        border-top-right-radius: 60px;
    }

    .doc-grid-card-content p {
        width: 90%;
        padding: 0 5px 0 5px;
        text-align: left;
        color: #ffffff;
        font-size: 14px;
    }

    .doc-intro-key-detail {
        font-size: 15px;
    }




}

/* ipad mini 660-865*/
@media (min-width: 660px) and (max-width: 865px) {
    /* banner */
    .banner-container {
        margin-top: 63.6px;
    }

    /* new doc-intro - arasuji */
    .doc-intro-head-text h1 {
        font-size: 30px;
        padding: 5% 0 0 0;
    }

    .doc-intro-head-text p {
        padding: 0 10%;
    }

    .doc-intro-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-intro-key {
        font-size: 60px;
    }




    /* trailer */
    .background-container {
        width: 100%;
        height: 500px;
    }

    .trailer-video-container {
        padding-top: 0;
    }

    .trailer-head-text h2 {
        font-size: 30px;
    }

    .play-button {
        top: 60%;
    }



    /* analysis text */
    .analysis-text-background-container {
        height: auto;
    }

    .analysis-text-background-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* เลือกสีและความโปร่งใสของพื้นหลัง */
        z-index: 1;
        /* ให้เลเยอร์นี้อยู่ด้านหลังข้อความ */
    }

    .analysis-text-background-container * {
        position: relative;
        z-index: 2;
        /* ให้ข้อความอยู่เหนือพื้นหลัง */
    }

    .analysis-text-grid {
        grid-template-columns: 1fr;
    }

    .analysis-text-grid-item.right {
        display: none;
    }

    .analysis-text-grid-item h2 {
        font-size: 25px;
        color: #fed900;
    }

    .analysis-text-grid-item p {
        font-size: 15px;
        color: #ffffff;
    }



    /* fac pr */

    .fac-pr-container {
        grid-template-columns: repeat(1, auto);
        gap: 5%;
        padding-bottom: 10%;
    }

    .fac-pr-right {
        padding-left: 0%;
        padding-bottom: 5%;
    }

    .fac-pr-right h2 {
        font-size: 30px;
        padding-top: 5%;
    }

    .fac-pr-right h3 {
        font-size: 20px;
    }

    .fac-pr-right .fac-position {
        font-size: 14px;
    }




    /* still pic */

    .still-pic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        justify-items: center;
        max-width: 100%;
    }

    /* doc grid kanshokai */
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head-text h2 {
        font-size: 40px;
    }

    .doc-grid-item {
        width: 100%;
        min-width: 250px;
        border-top-right-radius: 60px;
    }

    .doc-grid-card-content p {
        width: 90%;
        padding: 0 5px 0 5px;
        text-align: left;
        color: #ffffff;
        font-size: 14px;
    }

    .doc-intro-container {
        gap: 5px;
        padding: 3% 20% 0 20%;
    }

    .doc-intro-key-detail {
        padding: 0;
        margin: 0;
    }

    p {
        font-size: 14px;
    }
}








@media (min-width: 550px) and (max-width: 660px) {
    /* banner */
    .banner-container {
        margin-top: 63.6px;
    }

    /* new doc-intro */
    .doc-intro-head-text h1 {
        font-size: 25px;
    }

    .doc-intro-head-text .doc-intro-head-text-under-key {
        font-size: 12px;
        padding-top: 2%;
    }

    .doc-intro-head-text .doc-intro-head-text-under-key-final {
        font-size: 12px;
        padding-bottom: 2%;
    }

    .doc-intro-head-text p {
        padding: 0 10%;
        font-size: 12px;
    }

    .doc-intro-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-intro-key {
        font-size: 60px;
    }

    .doc-intro-key-detail {
        font-size: 12px;
        padding: 0;
        margin: 0;
        text-align: center;
        color: #ffffff;
    }



    /* trailer */
    .background-container {
        width: 100%;
        height: 450px;
    }

    .trailer-video-container {
        padding-top: 5%;
    }

    .trailer-head-text h2 {
        font-size: 30px;
    }

    .play-button {
        top: 55%;
    }



    /* analysis text */
    .analysis-text-background-container {
        height: auto;
    }

    .analysis-text-background-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* เลือกสีและความโปร่งใสของพื้นหลัง */
        z-index: 1;
        /* ให้เลเยอร์นี้อยู่ด้านหลังข้อความ */
    }

    .analysis-text-background-container * {
        position: relative;
        z-index: 2;
        /* ให้ข้อความอยู่เหนือพื้นหลัง */
    }

    .analysis-text-grid {
        grid-template-columns: 1fr;
    }

    .analysis-text-grid-item.right {
        display: none;
    }

    .analysis-text-grid-item h2 {
        font-size: 25px;
        color: #fed900;
    }

    .analysis-text-grid-item p {
        font-size: 12px;
        color: #ffffff;
    }




    /* fac pr */

    .fac-pr-container {
        grid-template-columns: repeat(1, auto);
        gap: 5%;
        padding-bottom: 10%;
    }

    .fac-pr-left-left {
        border-radius: none;
        border-top-left-radius: 30px;
    }

    .fac-pr-left-right {
        border-radius: none;
        border-bottom-right-radius: 30px;
    }

    .fac-pr-right {
        padding-left: 0%;
        padding-bottom: 5%;
    }

    .fac-pr-right h2 {
        font-size: 30px;
        padding-top: 5%;
    }

    .fac-pr-right h3 {
        font-size: 20px;
    }

    .fac-pr-right .fac-position {
        font-size: 14px;
    }



    /* still pic */

    .still-pic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        justify-items: center;
        max-width: 100%;
    }


    /* doc grid */
    .section-head-text h2 {
        padding: 10% 0 0 0;
        font-size: 30px;
    }

    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 2% 10% 10% 10%;
    }

    .doc-grid-item {
        width: 100%;
        min-width: 250px;
        border-top-right-radius: 60px;
    }

    .doc-grid-card-content p {
        width: 90%;
        padding: 0 5px 0 5px;
        text-align: left;
        color: #ffffff;
        font-size: 14px;
    }

    .doc-grid .card-button {
        margin-top: 5px;
        padding: 5px;
        font-size: 14px;
    }


    /* fix button */
    .fixed-ticket-button {
        top: 70%;
        padding: 5px 10px;
        font-size: 12px;
    }


}





@media (max-width: 550px) {
    /* banner */
    .banner-container {
        margin-top: 63.6px;
    }

    /* new doc-intro arasuji */
    .doc-intro-head-text h1 {
        font-size: 24px;
        padding: 5% 10% 0 10%;
    }

    .doc-intro-head-text .doc-intro-head-text-under-key {
        font-size: 9px;
        padding-top: 1%;
    }

    .doc-intro-head-text .doc-intro-head-text-under-key-final {
        font-size: 10px;
        padding-bottom: 3%;
    }

    .doc-intro-head-text p {
        padding: 0 10%;
        font-size: 13px;
        text-align: center;
    }

    .doc-intro-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
        margin-top: 5%;
    }

    .doc-intro-key-detail {
        font-size: 12px;
        padding: 0;
    }



    /* trailer */
    .background-container {
        width: 100%;
        height: auto;
    }

    .trailer-video-container {
        padding-top: 10%;
    }

    .trailer-head-text h2 {
        font-size: 20px;
        padding: 0;
        padding-bottom: 20%;
    }

    .play-button {
        top: 55%;
    }



    /* analysis text */
    .analysis-text-background-container {
        height: auto;
    }

    .analysis-text-background-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* เลือกสีและความโปร่งใสของพื้นหลัง */
        z-index: 1;
        /* ให้เลเยอร์นี้อยู่ด้านหลังข้อความ */
    }

    .analysis-text-background-container * {
        position: relative;
        z-index: 2;
        /* ให้ข้อความอยู่เหนือพื้นหลัง */
    }

    .analysis-text-grid {
        grid-template-columns: 1fr;
    }

    .analysis-text-grid-item.right {
        display: none;
    }

    .analysis-text-grid-item h2 {
        font-size: 20px;
        color: #fed900;
    }

    .analysis-text-grid-item p {
        font-size: 12px;
        color: #ffffff;
    }



    /* fac pr */

    .fac-pr-container {
        grid-template-columns: repeat(1, auto);
        gap: 5%;
        padding-bottom: 10%;
    }

    .fac-pr-left-left {
        border-radius: none;
        border-top-left-radius: 30px;
    }

    .fac-pr-left-right {
        border-radius: none;
        border-bottom-right-radius: 30px;
    }

    .fac-pr-right {
        padding-left: 0%;
        padding-bottom: 5%;
    }

    .fac-pr-right h2 {
        font-size: 20px;
        padding-top: 5%;
    }

    .fac-pr-right h3 {
        font-size: 18px;
    }

    .fac-pr-right .fac-position {
        font-size: 12px;
    }





    /* still pic */

    .still-pic-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
        max-width: 100%;
    }

    .still-pic-text h2 {
        font-size: 20px;
    }



    /* doc grid kanshokai*/

    .section-head-text h2 {
        padding: 10% 0 0 0;
        font-size: 20px;
    }

    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 5% 10%;
        padding-bottom: 10%;
    }

    .doc-grid-item {
        width: 100%;
        min-width: 150px;
        border-top-right-radius: 40px;
    }

    .doc-grid-card-content {
        width: 90%;
        padding: 10px 0 20px 0;
    }

    .doc-grid-card-content p {
        width: 100%;
        padding: 0;
        text-align: left;
        color: #ffffff;
        font-size: 10px;
        margin: 2px 11px;
    }

    .doc-grid .card-button {
        margin-top: 5px;
        padding: 5px;
        font-size: 12px;
    }


    /* fix button */
    .fixed-ticket-button {
        top: 75%;
        padding: 5px 10px;
        font-size: 12px;
    }




}