html, body {
    font-size: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: none;
    line-height: 1.2em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.5rem;
}

h5 {
    font-size: 2rem;
}

h6 {
    font-size: 1.75rem;
    font-weight: 400;
}

@media only screen and (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
}

@media only screen and (max-width: 420px) {
  html, body {
    font-size: 14px;
  }
}

.text-xl {
    font-size: 1.5rem;
    line-height: 1.6em;
}

.text-lg {
    font-size: 1.25rem;
    line-height: 1.6em;
}

.text-md {
    font-size: 1rem;
    line-height: 1.6em;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.6em;
}

@media only screen and (max-width: 576px) {
    html, body {
    font-size: 14px;
    }
    h1 {
        font-size: 2.75rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 2.25rem;
    }
    h4 {
        font-size: 2rem;
    }
    h5 {
        font-size: 1.75rem;
    }
    h6 {
        font-size: 1.75rem;
    }
    .text-xl {
        font-size: 1.5rem;
        line-height: 1.6em;
    }

    .text-lg {
        font-size: 1.35rem;
        line-height: 1.6em;
    }

    .text-md {
        font-size: 1.2rem;
        line-height: 1.6em;
    }

    .text-sm {
        font-size: 1rem;
        line-height: 1.6em;
    }
}

.text-center {
    text-align: center !important;
}

.uppercase {
    text-transform: uppercase !important;
}

b {
    font-weight: 600 !important;
}

em {
    font-style: italic;
    font-family: sans-serif;
}

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

.font-extrabold {
    font-weight: 700 !important;
}

.font-hilight {
    color: #31beab !important;
}

.font-white {
    color: white;
}

.font-light {
    color: #cccccc;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important:
}

/*/========================= Nav ========================/*/

.nav-logo {
    height: 3.5rem;
    margin: 1rem 0;
}

.nav-mb {
    height: 3rem;
    margin: 1rem 0;
}

.main-header .top-bar.style3 {
  height: 2rem;
  
}
.main-header .top-bar.style3 .socials.style3 {
  padding-top: 0.5rem;
}

.main-header .top-bar ul, .main-header .top-bar li, .main-header .top-bar a {
    height: 2rem;
}

.main-header .contact-info li {
    float: left;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 1rem;
    line-height: 1.5;
    color: #666666;
}

.main-header .contact-info li i {
    font-size: 1rem;
    position: relative;
    top: 1px;
    margin-right: 8px;
    color: #666666;
}

.main-header .socials.style1 li {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header .socials.style1 li a i {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #888888;
}

.active {
    color: #31beab !important;
    font-weight: 700 !important;
}

/*/========================= Home ========================/*/

#video-bg-elem {
    filter: grayscale(0.8);
    opacity: 0.7;
}

.hero-p {
    width: 100% !important;
    text-wrap: auto;
    margin: 0 auto !important;
    text-align: center;
    left: 0 !important;
    position: relative;
    padding: 3rem;
}

.hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.second-hero-2-section {
    background-image: url(../images/bg/blueprints.png);
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 80vh;
}


.glass-box {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 3.5rem;
    max-width: 49rem;
    margin: 0 auto;
}

.grey-box {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #31beab;
    padding: 3.5rem;
    max-width: 50rem;
    margin: 0 auto;
    background: rgba(5, 5, 5, 0.7);
}

@media screen and (max-width: 992px) {
    .second-hero-2-section {
        background-size: 130%;
        min-height: auto;
        padding-bottom: 8rem;
    }
}

.section-3 .divbox {
    position: relative;
    min-height: 16vh;
}

.section-3 .bgimg {
    position: absolute;
    top: -4rem;
    right: -11rem;
    width: 56rem;
}

.section-3 .content {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 39rem;
    z-index: 10;
}

@media screen and (max-width: 1240px) {
    .section-3 .bgimg {
        top: 0;
        right: -12rem;
        width: 56rem;
    }
    .section-3 .content {
        top: 3rem;
        left: 0;
        width: 28rem;
    }
    .section-3 .divbox {
        position: relative;
        min-height: 24vh;
    }
}

@media screen and (max-width: 1080px) {
    .section-3 .bgimg {
        top: 0rem;
        right: -12rem;
        width: 52rem;
    }
    .section-3 .content {
        top: 0rem;
        left: 0;
        width: 24rem;
    }
    .section-3 .divbox {
        position: relative;
        min-height: 20vh;
    }
}

@media screen and (max-width: 992px) {
    .section-3 .bgimg {
        position: relative;
        top: 0;
        right: 0;
        width: 110%;
    }
    .section-3 .content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }
    .section-3 .divbox {
        min-height: auto;
    }
}

@media screen and (max-width: 576px) {
    .section-3 .bgimg {
        width: 120%;
    }
}

.section-4 .divbox {
    position: relative;
    min-height: 40vh;
}

.section-4 .img-container {
    width: 100%;
    margin-top: -4rem;
    overflow: hidden;
}
.section-4 .bgimg {
    width: 100%;
}

.section-4 .content {
    position: absolute;
    top: 24rem;
    right: 0;
    width: 32rem;
    z-index: 10;
}

@media screen and (max-width: 1240px) {
    .section-4 .img-container {
        margin-top: -8rem;
    }
    .section-4 .bgimg {
        width: 120%;
        object-fit: cover;
        max-width: none;
        margin-left: -8rem;
    }
    .section-4 .content {
        top: 24rem;
        right: 0;
        width: 28rem;
    }
}

@media screen and (max-width: 1080px) {
    .section-4 .img-container {
        margin-top: -10rem;
    }
    .section-4 .bgimg {
        width: 140%;
        object-fit: cover;
        max-width: none;
        margin-left: -13rem;
    }
    .section-4 .content {
        top: 23rem;
        right: 0;
        width: 24rem;
    }
}

@media screen and (max-width: 992px) {
    .section-4 .img-container {
        margin-top: 0;
    }
    .section-4 .bgimg {
        width: 160%;
        margin-left: 0;
    }
    .section-4 .content {
        top: 0;
        right: 0;
        width: 100%;
        position: relative;
        margin-top: 8rem;
    }
    .section-4 .divbox {
        position: relative;
        min-height: auto;
    }
}

@media screen and (max-width: 576px) {
    .section-4 .content {
        margin-top: 6rem;
    }
}

.section-5 {
    box-shadow: 0px 10px 40px rgba(112, 128, 144, 0.2);
    /* background: linear-gradient(0deg, rgba(49, 190, 171, 0.7) 0%, rgba(49, 190, 171, 0.3) 20%, rgba(49, 190, 171, 0.1) 50%, transparent 80%);
    min-height: 20rem; */
}

.quote-box {
    border-radius: 8px;
    border: 1px solid rgba(125, 125, 125, 0.4);
    padding: 2rem 3rem;
    margin: 0 auto;
    background: rgba(49, 190, 171, 0.8);
    width: fit-content;
}


.process span.icon-container {
    display: block;
    margin-bottom: 0.75rem;
}

.process span.icon-container img {
    height: 6rem;
}



.fit-content {
    width: fit-content;
}


.main-footer .footer-bottom-bar {
    border-top: 1px solid #dddddd;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.main-footer .widget-socials.widget-socials-style1 ul li {
  margin-left: 1rem;
}
.main-footer .widget-socials.widget-socials-style1 ul li a i {
  font-size: 1.25rem;
  position: relative;
  top: 8px;
}
.main-footer .widget-socials.widget-socials-style1 ul li:first-child {
  margin-left: 0;
}


/*=========== Thesis ===========*/
.thesis-section {
    background: #444444;
}

.thesis-section .section-shadow {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    height: 10rem;
}

.thesis-card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #343434;
    color: #cccccc;
    padding: 1.75rem;
    border: 2px solid transparent;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
    transition: all .3s ease;
}

.thesis-card:hover {
    transform: translateY(-10px);
    border-color: #31beab;
}

.thesis-card .icon-container {
    width: 6rem;
    height: auto;
    margin: 0 auto 1rem auto;
}


/*=========== End ===========*/
.end-section {
    background: #4c4c4c;
}


/*=========== Home Footer ===========*/
.main-footer .footer-bottom-bar.dark {
    background: #444444;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #5e5e5e;
    color: #999999;
}

.main-footer .dark .widget-socials ul li a {
    color: #777777;
}

.main-footer .dark .widget-socials ul li a:hover {
    color: #aaaaaa;
}


/*=========== Portfolio ===========*/

.section-hr {
    border-top: 1px dashed #cccccc;
    border-bottom: 1px dashed #cccccc;
}

.portfolio-section .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.portfolio-section img {
    width: 80%;
    max-width: 12rem;
    height: auto;
    transition: all .3s ease;
    margin: 1.5rem auto;
    filter: grayscale(1);
}

.portfolio-section img:hover {
    scale: 1.1;
    filter: none;
}

@media screen and (max-width: 992px) {
    .portfolio-section img {
        width: 87.5%;
        max-width: 16rem;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-section img {
        width: 90%;
        max-width: 16rem;
    }
}

.overlay-card {
    width: 100%;
    max-width: 28rem;
    position: relative;
    overflow: hidden;
}

.overlay-card img {
    transition: all .5s ease;
}

.overlay-card:hover img {
    scale: 1.1;
    max-width: auto;
}

.overlay-card .details {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    z-index: 10;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 2rem;
    transition: all .5s ease;
    text-align: center;
}

.overlay-card .details:hover {
    opacity: 1;
}



/*=========== Team ===========*/

.team-section .col {
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 1rem;
    height: 100%;
}

.team-container {
    width: 100%;
    max-width: 40rem;
    text-align: center;
    transition: all .5s ease;
    box-shadow: none;
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    height: 100%;
}

@media screen and (max-width: 576px) {
    .team-container {
        padding: 1.5rem;
    }
}

.team-container img {
    width: 100%;
    max-width: 28rem;
    transition: all .5s ease;
}

.team-container:hover {
    scale: 1.05;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-container .title {
    font-weight: 700;
}

.team-container .subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.team-container .intro {
    margin-bottom: 1.5rem;
}

.team-modal-box {
    background:white;
    width:90%;
    max-width: 56rem;
    border-radius: 8px;
    overflow: scroll;
    transform:translateY(120px);
    opacity:0;
    transition:all 0.45s cubic-bezier(0.22,1,0.36,1);
    box-shadow:0 30px 80px rgba(0,0,0,0.5);
    max-height: 90vh;
}

.team-modal-header {
    padding: 2rem;
    text-align: left;
    position:relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.modal-close-btn {
    font-size: 1.75rem;
    color: #999999;
    background: none;
    border: none;
    align-self: start;
    margin-top: -0.8rem;
    margin-right: -1.25rem;
}

.team-modal-photo {
    width: 10rem;
    height: auto;
    object-fit:cover;
    border-radius:50%;
    border:6px solid #f0f0f0;
}

.team-modal-title {
    font-weight: 700;
}

.team-modal-subtitle {
    font-style: italic;
    font-weight: 500;
}

.team-modal-social {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    color: #666666;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.team-modal-social i, .team-modal-social i a {
    color: #666666;
}

.team-modal-body {
    text-align: left;
    padding: 2rem;
    border-top: 1px solid #e8e8e8;
}




/* Backdrop */
  .my-modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .my-modal-backdrop.show {
    display: block;
    opacity: 1;
  }

  /* กล่อง modal */
  .my-modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .my-modal-backdrop.show .my-modal-content {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  /* Header */
  .my-modal-header {
    padding: 20px 25px;
    background: #2c3e50;
    color: white;
    text-align: center;
    position: relative;
  }
  .my-modal-header h3 { margin: 0; font-size: 1.6rem; }
  .my-close-btn {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; color: white;
    font-size: 2.5rem; cursor: pointer; padding: 0; width: 40px; height: 40px;
  }

  /* Body */
  .my-modal-body {
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
  }
  


/*=========== Contact ===========*/

.contact-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-header img {
    width: 100%;
    height: auto;
    filter: brightness(0.7);
}

.contact-header .hl {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-panel {
    width: 100%;
    background: #cccccc;
    border-radius: 6px;
    padding: 1.5rem;
    color: #666666;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all .5s ease;
    height: 100%;
}

.contact-panel:hover {
    transform: translateY(-10px);
}

.contact-panel .item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-weight: 500;
}

.contact-panel .item a {
    color: #95fbee;
    text-decoration: none;
    font-weight: 600;
}

.contact-panel .item a:hover {
    text-decoration: underline !important;
}