:root {
  --primary-color: #7C1B24;
  --secondary-color: #F5F5F5;
  --text-color: #333333;
  --background-color: #FFFFFF;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

.school-navbar {
  position: relative;
  text-align: center;
  padding: 10px 0;
  background-color: var(--primary-color);
  z-index: 999;
}

.school-logo {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0 10px;
}

.navbar-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  z-index: 998;
}

.accordion-button {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 10px 15px;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.accordion-button:focus {
  outline: none;
  box-shadow: none;
}

.accordion-body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 15px;
}

.accordion-collapse {
  scroll-behavior: none;
  overflow-anchor: none;
}

.school-detail strong {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
}

.school-images-list {
  display: none;
  grid-template-columns: 1fr;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.school-images-list.active {
  display: block;
  opacity: 1;
}

.school-images-list img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 10px solid #7C1B24;
  box-sizing: border-box;
  object-fit: cover;
}

.school-images-list img:last-child {
  border-bottom: none;
}

.school-image {
  width: 100%;
  height: auto;
}

.school-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.school-form-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.st-dropdown {
  position: relative;
  margin-bottom: 15px;
}

.st-dropdown .btn {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-color);
  border-color: var(--primary-color);
  background-color: var(--background-color);
  text-align: center;
  width: 100%;
  padding: 10px;
}

.st-dropdown .dropdown-menu {
  width: 100%;
  font-size: 12px;
  text-align: left;
}

#emailFormBtn {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.apnow {
  padding: 20px;
}

.form-control,
.form-check-label {
  font-size: 12px;
  color: var(--text-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-size: 14px;
}

.btn-primary:hover {
  background-color: #5E141B;
  border-color: #5E141B;
}

.table {
  font-size: 12px;
  color: var(--text-color);
}

.table-warning {
  background-color: #FFF3CD;
  color: var(--text-color);
}

.loading::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-color);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-preview {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  background-image: url('../images/detail/about/STLPromotevideo.webp');
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(124, 27, 36, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  transform: translateX(2px);
}

.school-form-title img {
  width: 60%;
  margin: 0 auto;
  margin-top: 5%;
}

.OR {
  margin-top: 10%;
  margin-bottom: 0;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.table td span {
  font-size: 12px;
  line-height: 1.5;
}

.accordion-button:focus,
.accordion-collapse:focus,
.video-player:focus,
.video-preview:focus,
video:focus,
.st-dropdown button:focus,
.school-form input:focus,
.school-form button:focus,
header:focus,
.school-navbar:focus {
  outline: none;
  box-shadow: none;
}

.school-images-list,
.accordion-collapse,
.video-player,
.st-dropdown {
  overflow-anchor: none;
}

.dropdown-menu.apnow {
  padding: 20px !important;
}

.dropdown-menu[aria-labelledby="applyNowMenu"] {
  margin-left: 20px;
  margin-right: 20px;
  width: calc(100% - 40px);
}