body {
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  color: #273880;
  text-decoration: none;
}

a:hover {
  color: #ee7f00;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-primary {
  font-family: "Kanit", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #273880;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #ee7f00;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
/* Header Styles */
#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  background: #273880;
}

#header.header-transparent {
  background: none;
}

#header.header-scrolled {
  background: rgba(7, 28, 39, 0.8);
  height: 60px;
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  padding: 4px 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 150px;
}

#main {
  margin-top: 80px;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  #header {
    height: 40px; /* Reduce header height for smaller devices */
  }

  #header .logo h1 {
    font-size: 24px; /* Decrease font size for smaller devices */
  }

  #header .logo img {
    max-height: 90px; /* Adjust max-height for smaller devices */
  }

  #main {
    margin-top: 60px; /* Adjust margin for content */
    margin-bottom: 0;
  }
}

/* Navbar */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 30px;
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #ee7f00;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  color: #1c3745;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: #ee7f00;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/* Phone */
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(17, 38, 48, 0.9);
  transition: 0.3s;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #273880;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #ee7f00;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
  color: #ee7f00;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero No Slider Section
--------------------------------------------------------------*/
/* Styles for slider */
#hero-no-slider {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  text-align: center;
}

#hero-no-slider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  animation: slideAnimation 44s infinite; /* 20s (image duration) + 4s (transition duration) */
}

#hero-no-slider h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 700;
}

#hero-no-slider p {
  color: #fff;
  font-size: 18px;
}

#hero-no-slider .btn-get-started {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: #fff;
  animation-delay: 0.8s;
  border: 2px solid #273880;
}

#hero-no-slider .btn-get-started:hover {
  background: #ee7f00;
  color: #fff;
  text-decoration: none;
}

/* Define keyframes for sliding animation */
@keyframes slideAnimation {
  0%,
  49.5% {
    background-image: url("/images/hero.jpg");
    animation-timing-function: ease-in; /* Fade-in effect */
  } /* 20s for first image + 4s for transition */
  50.5%,
  100% {
    background-image: url("/images/roomhero.jpg");
    animation-timing-function: ease-in; /* Fade-in effect */
  } /* 20s for second image + 4s for transition */
}

/* Media query to reduce slider image height for smaller devices */
@media (max-width: 576px) {
  #hero-no-slider::before {
    content: ""; /* Add content property to ensure the pseudo-element is displayed */
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    z-index: -1; /* Set z-index to ensure the image is behind the text */
  }

  #hero-no-slider h2,
  #hero-no-slider p,
  #hero-no-slider .btn-get-started {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* Adjust the width as needed */
    text-align: center;
    z-index: 1; /* Ensure the text is above the image */
    color: #fff; /* Set text color to white */
  }

  #hero-no-slider h2 {
    top: 20%; /* Adjust the top position as needed */
    font-size: 18px; /* Adjust the font size as needed */
  }

  #hero-no-slider p {
    top: 2ic; /* Adjust the top position as needed */
    font-size: 14px; /* Adjust the font size as needed */
  }

  #hero-no-slider .btn-get-started {
    bottom: 50%; /* Adjust the bottom position as needed */
    font-size: 12px; /* Adjust the font size as needed */
    padding: 10px 8px; /* Add padding to the button */
    background-color: #273880; /* Set button background color */
    border: none; /* Remove button border */
    border-radius: 25px; /* Add border radius to button */
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #hero-no-slider .btn-get-started:hover {
    background-color: #ee7f00; /* Change button background color on hover */
  }

  /* Adjust background image for smaller devices */
  #hero-no-slider::before {
    background-image: url("/images/landscape-hero.jpg"); /* Specify landscape image */
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg {
  background-color: #f3f8fa;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #273880;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Our Services
--------------------------------------------------------------*/
.services {
  padding-bottom: 20px;
}

.services .icon-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin: 0 0 40px 0;
  background: #fff;
  box-shadow: 0 5px 26px 0 rgba(68, 88, 144, 0.14);
  transition: all 0.8s ease-in-out;
  text-align: center;
  border: 1px solid #fff;
}

.services .icon {
  margin: 0 auto 20px auto;
  padding-top: 17px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 72px;
  height: 72px;
}

.services .icon i {
  font-size: 36px;
  line-height: 1;
}

.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .title a {
  color: #111;
}

.services .description {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 0;
}

.services .icon-box-pink .icon {
  background: #fceef3;
}

.services .icon-box-pink .icon i {
  color: #0f36e4;
}

.services .icon-box-pink:hover {
  border-color: #0f36e4;
}

.services .icon-box-cyan .icon {
  background: #0f36e4;
}

.services .icon-box-cyan .icon i {
  color: #0f36e4;
}

.services .icon-box-cyan:hover {
  border-color: #0f36e4;
}

.services .icon-box-green .icon {
  background: #0f36e4;
}

.services .icon-box-green .icon i {
  color: #0f36e4;
}

.services .icon-box-green:hover {
  border-color: #0f36e4;
}

.services .icon-box-blue .icon {
  background: #e1eeff;
}

.services .icon-box-blue .icon i {
  color: #2282ff;
}

.services .icon-box-blue:hover {
  border-color: #0f36e4;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .services .icon-box {
    padding: 20px; /* Adjust padding for smaller screens */
    margin-bottom: 20px; /* Adjust margin for smaller screens */
  }

  .services .icon {
    width: 50px; /* Adjust icon size for smaller screens */
    height: 50px; /* Adjust icon size for smaller screens */
  }

  .services .icon i {
    font-size: 20px; /* Adjust icon size for smaller screens */
  }

  .services .title {
    font-size: 16px; /* Adjust title font size for smaller screens */
    margin-bottom: 10px; /* Adjust margin for smaller screens */
  }

  .services .description {
    font-size: 14px; /* Adjust description font size for smaller screens */
    line-height: 20px; /* Adjust line height for smaller screens */
  }

  .services {
    padding-top: 5px; /* Adjust padding for smaller screens */
  }
}

/*---------------------------------------------
  trainers
  ---------------------------------------------
  */
#trainers {
  padding-bottom: 90px;
}

#trainers .trainer-item {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 30px;
}

#trainers .trainer-item img {
  width: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out; /* Add transition property */
}

#trainers .trainer-item img:hover {
  transform: scale(1.05); /* Increase scale on hover */
}

#trainers .trainer-item span {
  font-size: 13px;
  font-weight: 500;
  color: #ee7f00;
  display: inline-block;
  margin-top: 25px;
  margin-bottom: 10px;
}

#trainers .trainer-item h4 {
  font-size: 19px;
  font-weight: 600;
  color: #232d39;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

#trainers .trainer-item p {
  margin-bottom: 20px;
}

#trainers .section-heading h2 {
  text-align: center; /* Add text-align center */
}

#trainers .section-heading p {
  text-align: center; /* Add text-align center */
}

.image-thumb {
  position: relative;
}

.listing-banner {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background-color: #ee7f00; /* Choose appropriate color */
  color: #fff !important; /* Text color */
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}

/* property view more */
.main-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px; /* Adjust margin as needed */
}

.main-button a {
  display: block; /* Ensure the link fills the button */
  background-color: #273880;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease; /* Add transition for smoother hover effect */
}

.main-button a:hover {
  background-color: #ee7f00;
}

/* Media query for smaller screens */
@media (max-width: 576px) {
  #trainers .trainer-item img {
    max-height: 200px; /* Reduce max-height for smaller devices */
  }

  #trainers .trainer-item h4 {
    font-size: 16px; /* Adjust font size for smaller devices */
  }
}

/*----------------------------------------------------------------
Property Gallery View
----------------------------------------------------------------*/

/* Styles for image gallery */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.image-gallery img {
  width: 200px;
  height: 150px;
  margin: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.image-gallery img:hover {
  transform: scale(1.2);
}

/* Add styling for zoomed in images */
.image-gallery .gallery-image.zoomed {
  transform: scale(1.2); /* Example scale factor */
  z-index: 2; /* Ensure zoomed image is above other images */
  position: absolute; /* Position the zoomed image */
  /* Add any other styling for zoomed in images */
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  overflow: hidden; /* Prevent scrolling when overlay is open */
}

.overlay.open {
  display: flex;
}

.enlarged-img {
  max-width: 90%; /* Adjust as needed */
  max-height: 90vh; /* Adjust as needed */
  object-fit: contain; /* Ensure uniform width and height */
}

/* Video frame and Go for a Tour */
.video-container {
  display: none; /* Hide the video container by default */
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
}

.video-overlay {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Aspect ratio: 16:9 */
}

.video-overlay iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-frame {
  display: none;
  text-align: center;
}

.tour-button {
  margin-top: 20px;
  text-align: center; /* Align the content center */
}

.tour-button button {
  padding: 10px 20px;
  display: inline-block; /* Change to inline-block to center horizontally */
  background-color: #273880;
  border: none;
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tour-button button:hover {
  background-color: #ee7f00;
  color: #fff;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .image-gallery img {
    width: 250px; /* Adjust image width for smaller screens */
    height: 150px; /* Adjust image height for smaller screens */
    margin: 15px; /* Adjust margin for smaller screens */
  }
}

/*--------------------------------------------------------------
# Why Us
--------------------------------------------------------------*/
.why-us .container {
  box-shadow: 0 5px 25px 0 rgba(214, 215, 216, 0.6);
  background: #fff;
}

.why-us .icon-box + .icon-box {
  margin-top: 50px;
}

.why-us .icon-box .icon {
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #f3f8fa;
  border-radius: 6px;
  transition: 0.5s;
}

.why-us .icon-box .icon i {
  color: #273880;
  font-size: 32px;
}

.why-us .icon-box:hover .icon {
  background: #ee7f00;
}

.why-us .icon-box:hover .icon i {
  color: #fff;
}

.why-us .icon-box .title {
  margin-left: 95px;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
}

.why-us .icon-box .title a {
  color: #343a40;
  transition: 0.3s;
}

.why-us .icon-box .title a:hover {
  color: #ee7f00;
}

.why-us .icon-box .description {
  margin-left: 95px;
  line-height: 24px;
  font-size: 14px;
}

.why-us .video-box {
  position: relative;
}

.why-us .video-box img {
  padding-top: 15px;
  padding-bottom: 15px;
}

.why-us .play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(#273880 50%, rgba(104, 164, 196, 0.4) 52%);
  border-radius: 50%;
  display: block;
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
  overflow: hidden;
}

.why-us .play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.why-us .play-btn::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid rgba(104, 164, 196, 0.7);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.why-us .play-btn:hover::after {
  border-left: 15px solid #ee7f00;
  transform: scale(20);
}

.why-us .play-btn:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# About us page for <li> contents
--------------------------------------------------------------*/
.tab-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #000000;
  padding: 10px 90px;
  margin: 0 20px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button i {
  font-size: 36px;
  margin-bottom: 10px;
}

.tab-button.active {
  background-color: #ee7f00;
  color: #ffffff;
}

.tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.tab-pane {
  width: 50%;
  text-align: center;
  margin-top: 10px;
}

.tab-pane p {
  text-align: justify;
}

.tab-pane img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 1, 2);
}

@media (max-width: 768px) {
  .tab-button {
    padding: 5px 15px;
    margin: 0 10px;
  }

  .tab-button i {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .tab-pane {
    width: 60%;
  }
}

/* TEAM MEMBER */
/* Container for Board Members */
.board-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* Add spacing between board members */
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Container for Staff Members */
.staff-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 30px; /* Add spacing between staff members */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Team member container */
.team-member {
  position: relative;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  width: 100%; /* Ensure team members fill their container */
  max-width: 200px; /* Define maximum width for consistency */
  height: 300px; /* Define fixed height for consistency */
  border-radius: 8px;
  margin: auto; /* Center team members within their columns */
}

/* Team member image */
.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.5s ease; /* Smooth opacity transition */
  opacity: 1; /* Ensure image is clear initially */
}

/* Overlay for name and position */
.team-member .overlay {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Align center */
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Initially hide text */
  transition: opacity 0.5s ease; /* Smooth transition for text */
  text-align: center;
  font-size: 14px;
  z-index: 1; /* Ensure text is above shadow */
  padding: 0 10px; /* Add padding for better text visibility */
}

/* Pseudo-element for shadow effect */
.team-member::after {
  content: "";
  position: absolute;
  bottom: -100%; /* Start off-screen */
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent shadow */
  border-radius: 8px; /* Match image corners */
  transition: bottom 0.5s ease; /* Smooth rise-up transition */
  z-index: 0; /* Place shadow behind text */
}

/* Hover effect */
.team-member:hover img {
  opacity: 0.7; /* Dim image on hover */
}

.team-member:hover .overlay {
  opacity: 1; /* Show text on hover */
}

.team-member:hover::after {
  bottom: 0; /* Move shadow to cover the image */
}

.team-member .overlay p {
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  text-align: center; /* Center-align text horizontally */
}

@media (max-width: 768px) {
  .board-container,
  .staff-container {
    gap: 15px; /* Adjust spacing for smaller screens */
  }

  .team-member {
    max-width: 150px; /* Adjust size for smaller screens */
    height: 225px; /* Adjust height for smaller screens */
  }

  .staff-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
}

.overlay {
  text-align: center;
}

/* BIO */
.team-bio {
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

/* Bio container styling */
.bio-container {
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  z-index: 1000;
  overflow-y: auto;
  max-height: 90vh; /* Allow for vertical scrolling if content is too long */
}

.bio-container h3 {
  margin-top: 0;
  text-align: center;
}

.bio-container p {
  margin-bottom: 10px;
  text-align: justify; /* Justify text within paragraphs */
}

.bio-container ul {
  text-align: left; /* Align list items to the left */
  padding-left: 20px;
}

.bio-container .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease;
}

.bio-container .close-button:hover {
  background: #ee7f00;
  color: #fff;
}

/* READMORE */
/* Read more button */
.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ee7f00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #d67500;
}

/* Read more container styling */
.read-more-container {
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  z-index: 1000;
  overflow-y: auto;
  max-height: 90vh;
}

.read-more-container .content {
  text-align: justify;
}

.read-more-container h3 {
  text-align: center;
}

.read-more-container p {
  margin-bottom: 10px;
  text-align: justify; /* Justify text within paragraphs */
}

.read-more-container .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease;
}

.read-more-container .close-button:hover {
  background: #ee7f00;
  color: #fff;
}

/* WHATSAPP */
/* WhatsApp Button Styling */
#whatsapp-button {
  position: fixed;
  bottom: 80px; /* Adjusted to be above the arrow-up button */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* WhatsApp green */
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  z-index: 1000; /* Ensure it appears above other content */
  text-decoration: none;
}

#whatsapp-button:hover {
  background-color: #ee7f00; /* Darker shade on hover */
  color: #ffffff
}

#whatsapp-button i {
  font-size: 24px; /* Adjust icon size */
}

/*----------------------------------------------------------------
WhatsApp & Team
----------------------------------------------------------------*/
.team .member .social {
  position: absolute;
  left: 0;
  bottom: -40px;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: bottom ease-in-out 0.4s;
  text-align: center;
  background: rgba(30, 67, 86, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member .social a {
  transition: color 0.3s;
  color: #fff;
  margin: 0 12px;
  display: inline-block;
}

.team .member .social a:hover {
  color: #ee7f00;
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .member:hover .social {
  bottom: 0;
  opacity: 1;
  transition: bottom ease-in-out 0.4s;
}

.team .member:hover .social a,
.team .member:hover .social i {
  line-height: 0;
  font-size: 18px;
}

.team {
  background-color: #f8f9fa; /* Background color for the team section */
  padding: 80px 0; /* Adjust padding as needed */
  align-content: center;
  align-items: center;
}

.member-img {
  position: relative;
  overflow: hidden;
  border-radius: 50%; /* Create round frame */
  background-color: transparent; /* Transparent background */
  box-shadow: 0 4px 8px rgba(0, 0, 1, 2); /* Add embossed effect */
}

.member-img {
  position: relative;
  overflow: hidden;
  width: 150px; /* Adjust width */
  height: 150px; /* Adjust height */
  border-radius: 50%; /* Create round frame */
  background-color: transparent; /* Transparent background */
  box-shadow: 0 4px 8px rgba(0, 0, 1, 2); /* Add embossed effect */
}

.member-img:hover img {
  transform: scale(1.1); /* Enlarge image on hover */
}

.member-info {
  background-color: #ffffff; /* Background color for member information */
  padding: 20px;
  border-radius: 8px; /* Add rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow effect */
}

.member-info h4 {
  color: #273880; /* Text color for member name */
}

.member-info span {
  color: #ee7f00; /* Text color for member position */
}

.member-info p {
  color: #333; /* Text color for member qualifications */
}

.social a {
  color: #333; /* Color for social media icons */
}

.social a:hover {
  color: #ee7f00; /* Hover color for social media icons */
}

.whatsapp-button {
  display: inline-block;
  background-color: #ee7f00; /* Button background color */
  color: #ffffff; /* Button text color */
  padding: 10px 20px; /* Button padding */
  border-radius: 5px; /* Button border radius */
  text-decoration: none; /* Remove underline */
  transition: background-color 0.3s ease; /* Add smooth transition */
}

.whatsapp-button:hover {
  background-color: #d86e00; /* Button hover background color */
  color: #fff;
}

/*--------------------------------------------------------------
# Contact form
--------------------------------------------------------------*/
/* Contact form styles for all screen sizes */
.contact-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  padding: 10px 20px; /* Adjust padding */
  background-color: #273880;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #ee7f00;
}

.response {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
}

.response.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.response.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Media query for smaller screen sizes */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    padding: 8px; /* Adjust padding */
    font-size: 14px; /* Adjust font size */
  }

  .contact-form button {
    padding: 8px 16px; /* Adjust padding */
    font-size: 14px; /* Adjust font size */
  }
}

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
/* Map styles for all screen sizes */
.map {
  padding: 0;
  margin-bottom: -6px;
}

.map iframe {
  width: 100%;
  height: 380px;
}

/* Media query for smaller screen sizes */
@media (max-width: 768px) {
  .map iframe {
    height: 300px; /* Adjust height for smaller screens */
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
/* Footer styles for all screen sizes */
#footer {
  background: #0b212d;
  padding: 0 0 30px 0;
  color: #fff;
  font-size: 14px;
  text-align: center; /* Center align for all screen sizes */
}

/* Additional styles for the footer top section */
#footer .footer-top {
  background: #0d2735;
  border-top: 1px solid #17455e;
  border-bottom: 1px solid #123649;
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  color: #a2cce3;
  font-weight: 600;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Kanit", sans-serif;
  color: #fff;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #273880;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #ee7f00;
  color: #fff;
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 18px;
  font-weight: 600;
  color: #a2cce3;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #a2cce3;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #fff;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #ee7f00;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
  line-height: 26px;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

#footer .credits a {
  color: #a2cce3;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  #footer {
    text-align: center; /* Center align for mobile devices */
  }
}
