/* styles.css */

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: Raleway, sans-serif;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: -1;
}

.register-custom {
  color: #8C191C !important;
}


.nav-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease-in-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #e45f63;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link:hover {
  color: #e45f63 !important;
}

.responsive-iframe-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  margin-bottom: 20px;
  /* Space between iframes */
}

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

/* Larger aspect ratio for desktop */
@media (min-width: 768px) {
  .responsive-iframe-container {
    padding-top: 42.86%;
    /* 21:9 Aspect Ratio */
  }
}

/* Custom CSS for responsive line break */
@media (max-width: 768px) {
  .responsive-text-break {
      display: inline-block;
      white-space: normal;
  }
  .responsive-text-break::after {
      content: ' เราวิศวฯ ธรรมศาสตร์ ครั้งที่ 1/2567';
      display: block;
  }
  .responsive-text-break > span {
      display: none;
  }
}


label {
  font-weight: bold;
}

.custom-navbar {
  background-color: #25292d;
  padding: 20px;
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .custom-navbar {
    padding: 20px;
  }

  .no-vh-100 {
    height: 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
  .custom-navbar {
    padding: 15px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
  .custom-navbar {
    padding: 10px;
  }
}

/* .custom-footer {
  background-color: #25292d;
  padding: 20px;
} */

.content {
  flex: 1;
  padding-bottom: 20px; /* Adjust the padding as needed */
}


.custom-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #25292d; /* Or any color you prefer */
  color: white; /* Ensure text is white for visibility */
  padding: 10px 0; /* Add some padding for spacing */
}



.custom-bold {
  font-weight: bold;
  font-size: 3rem;
}

.btn-custom {
  background-color: darkred;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-custom:hover {
  background-color: rgb(11, 4, 4);
  color: white;
  /* Optional: darker shade on hover */
}

.card-custom {
  text-align: center;
  padding: 20px;
  border: none;
  border-radius: 10px;
  background-color: #8c191d;
  color: white;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-custom i {
  font-size: 40px;
  margin-bottom: 10px;

}

.card-custom h5 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.card-custom p {
  margin-bottom: 15px;
}

.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-item {
  flex: 1 1 200px;
  /* Equal width for all cards */
  max-width: 300px;
  /* Maximum width for each card */
  padding: 10px;
}

.custom-backg {
  background-color: rgba(26, 26, 26, 0.8);
  padding: 40px;
  width: 100%;
  border-radius: 20px
}

hr {
  border: 1px solid #fff;
  width: 80%;
  margin: 2rem auto;
}

.carousel {
  width: 80%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  background-color: rgba(255, 255, 255, 0); /* fix */
  border-radius: 50%;
  border: 2px solid rgb(255, 255, 255, 0); /* fix */
  color: rgba(0, 0, 0, 0); /* fix */
  font-size: 1.5rem;
  line-height: 3rem;
  text-align: center;
  position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 0.2rem solid rgba(255, 255, 255, 0); /* fix */
  border-right: 0.2rem solid rgba(255, 255, 255, 0); /* fix */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-control-prev-icon::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.carousel-control-next-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.carousel-control-prev,
.carousel-control-next {
  width: 1.7rem;
  height: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
}

.carousel-control-prev {
  left: -1.7rem;
}

.carousel-control-next {
  right: -1.7rem;
}

.carousel-indicators li {
  background-color: black;
}

.carousel-inner img {
  width: 100%;
  height: auto;
}

.fname_th_custom {
  border: none;
  max-width: 250px;
  width: 250px;
  max-height: 35px;
  height: 35px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
  padding: 5px 10px; 
  color: #333;
  background-color: #f9f9f9; 
  transition: all 0.3s ease; 
  display: flex;
}

.fname_th_custom:focus {
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  outline: none; 
}

.fname_th_label {
  color: white;
}

.lname_th_custom {
  border: none;
  max-width: 250px;
  width: 250px;
  max-height: 35px;
  height: 35px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
  padding: 5px 10px; 
  color: #333;
  background-color: #f9f9f9; 
  transition: all 0.3s ease; 
  display: flex;
}

.lname_th_custom:focus {
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  outline: none; 
}

.lname_th_label {
  color: white;
}

.search-form-bg {
  background-color: rgba(26, 26, 26, 0.8);
  padding: 40px;
  width: 100%;
  border-radius: 20px;
}

#title-block {
  min-height: 100vh;
  min-height: 100dvh;
}