* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Kanit", sans-serif;
}

p, span, h1, h2, h3 ,h4, h5, h6 {
    font-family: "Kanit", sans-serif !important;
}

:root {
    --white: #fff;
    --white-567: #F5F6F7;
    --blue: #002DEB;
    --red: #ED1C24;
    --text-white: #FFFFFF;
    --text-black: #000000;
    --text-blue: #002DEB;
    --text-red: #ED1C24;
    --text-sub-blue: #AFEBFF;
}

.president-message {
    height: max-content;
    min-height: 200px;
    padding-top: 20ch;
    padding-bottom: 10ch;
    background: linear-gradient(to right, rgba(255,255,255,1) 47%,
    rgba(255,255,255,0) 100%),
    url(../img/about/persident-bg.png) no-repeat right top;
}

.president-message h1, .president-message h2 {
    color: var(--text-blue) !important;
}

.president-message h1 {
    font-size: 1.5rem !important;
}

.president-message h2 {
    font-weight: 700 !important;
    font-size: 5vw !important;

}

h3.top {
    font-size: clamp(1.5rem, calc(2.5dvw + 0.01px), 2rem);
    color: var(--text-red);
    white-space: nowrap;
    /* margin-left: 10%; */
}

.president-img-title {
    height: 100%;
    position: relative;
}

.president-img-title .persident {
    /* position: relative; */
    --margin-x: 0;
    margin-top: 5rem;
    margin-left: var(--margin-x);
    margin-right: var(--margin-x);
    /* z-index: 1; */
}

.president-img-title .persident-bg {
    position: absolute;
    scale: 2.5;
    top: 5%;
    transform: translateX(0%);
    z-index: 0;
    opacity: 100%;
    width: 80%;
}

.president-message p {
    margin-top: 3rem;
    font-size: max(16px, calc(1.375dvw + 0.01px));
}

p.first {
    margin-top: 0.5rem;
    /* margin-left: 10%; */
}

/* p.second {
    margin-left: 0;
}

p.third {
    margin-left: 7%;
}

p.last {
    margin-left: 5%;
} */

.signature {
    margin-top: -25%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.signature-name {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 3rem;
}

.signature-name span {
    text-align: center;
    width: max-content;
    font-size: 1.5rem;
    font-weight: 500;
}

.signature-name p {
    margin-top: 0;
    text-align: center;
    width: max-content;
    font-size: 1.5rem;
    font-weight: 300;
}

@media screen and (max-width: 1400px) {
    /* .president-message h2 {
        font-size: 4.5rem !important;
    } */
}
@media screen and (max-width: 1200px) {
    .president-message h2 {
        font-size: 4rem !important;
    }
    .president-img-title {
        display: flex;
        align-items: start;
        flex-direction: column;
    }

    .president-img-title img {
        align-self: center;
        margin-bottom: 5rem;
    }

    p.first, p.second, p.third, p.last {
        margin-left: 0;
    }

    .signature-name {
        margin-bottom: 5rem;
    }

    .president-message {
        background: linear-gradient(to bottom, rgba(255,255,255,1) 50%,
    rgba(255,255,255,0) 100%),
    url(../img/about/persident-bg.png) no-repeat right bottom;
    }
}

@media screen and (max-width:737px) {
    .president-message h2 {
        font-size: 3rem !important;
    }

    .president-message p {
        font-size: 1rem;
    }
}

@media screen and (max-width:576px) {
    .president-message h2 {
        font-size: 2.5rem !important;
    }

    h3.top {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media screen and (max-width:414px) {
    .president-message h2 {
        font-size: 2rem !important;
    }
}