/* Swiper */
@media (min-width: 1280px) {
  .swiper-button-prev {
    background-image: url("../assets/address/arrow_left.png");
    background-size: 100% 100%;
  }

  .swiper-button-next {
    background-image: url("../assets/address/arrow_right.png");
    background-size: 100% 100%;
  }
}

/* ---------------------------------------------- */
/* ---------------------------------------------- */

/* Search Teacher Section */
.search-teachers-section .container {
  display: flex;
  flex-direction: column;
  gap: var(--container-gap);
}

.search-teachers-section .title {
  font-size: var(--h1-font-size-mobile);
  font-weight: 400;
  line-height: var(--h1-line-height-mobile);
  text-align: left;
}

.search-teachers-section .content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (min-width: 1280px) {
  .search-teachers-section .container {
    width: 1200px;
    gap: 60px;
  }

  .search-teachers-section .title {
    font-size: 52px;
    font-weight: 400;
    line-height: var(--h1-line-height-mobile);
    text-align: left;
  }

  .search-teachers-section .content {
    display: flex;
    flex-direction: row;
    gap: 36px;
  }
}

/* Filters Section */
.filters-section .filters-panel {
  display: flex;
  flex-direction: column;
}

.filters-section .dropdown-container {
  background: #e6eaed;
  border-radius: 12px;
  padding: 20px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
}

.filters-section .dropdown-container .dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
}

.filters-section .dropdown-item .dropdown-label {
  font-family: Ubuntu;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
  color: #353535;
}

.filters-section .dropdown-item .dropdown-select {
  border-radius: 12px;
  border: none;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
}

.filters-section .dropdown-select {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 300;
  line-height: 20.8px;
  text-align: left;
  color: #353535;
}

.filters-section input:focus, select:focus {
  outline: none;
}

.filters-section select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  appearance: none;
  -moz-appearance: none; /* Firefox-specific */
  -webkit-appearance: none; /* Safari-specific */
  background-color: #ffffff; /* Ensure background color applies */
  background-image: url('../assets/common-icons/select-arrow.svg');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 300;
  line-height: 20.8px;
  text-align: left;
  color: #353535;
}

.filters-section select::-ms-expand {
  display: none; /* Remove native arrow in IE */
}

@supports (-moz-appearance: none) {
  .filters-section select {
    text-indent: 1px;
    text-overflow: ''; /* Ensure full text visibility */
    background-color: #ffffff; /* Explicitly set the background color */
    background-image: url('../assets/common-icons/select-arrow.svg'), none; /* Add a fallback */
  }
}

@media (min-width: 1280px) {
  .filters-section {
    flex: 1;
    height: fit-content;
    position: sticky;
    top: 10px;
    padding: 0;
  }

  .filters-section .dropdown-container {
    width: 376px;
  }

  .filters-section .dropdown-container .dropdown-item {
    gap: 12px;
  }

  .filters-section .dropdown-item .dropdown-label {
    font-family: Ubuntu;
    font-size: 24px;
    font-weight: 400;
    line-height: 31.2px;
    text-align: left;
    color: #353535;
  }

  .filters-section .dropdown-select,
  .filters-section select {
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 300;
    line-height: 20.8px;
    letter-spacing: 0.16px;
    text-align: left;
    color: #353535;
  }
}

/* Teachers Section */
.teachers-section .teachers-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teachers-section .teacher-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #eeedf2;
  background-color: #f9f7f7;
}

.teachers-section .teacher-card .content {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 20px 16px 32px;
}

.teachers-section .teacher-card .content .content-image {
  width: 194px;
  height: 201.05px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teachers-section .teacher-card .content .content-image img {
  height: 100%;
  width: 100%;
}

.teachers-section .teacher-card .description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--smaller-gap);
}

.teachers-section .teacher-card .description .summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.teachers-section .teacher-card h3 {
  font-size: var(--h2-font-size-mobile);
  font-weight: 400;
  line-height: var(--h2-line-height-mobile);
  text-align: center;
}

.teachers-section .teacher-card .role {
  display: flex;
  flex-direction: column;
}

.teachers-section .teacher-card span {
  font-size: var(--font-size-mobile);
  font-weight: 300;
  line-height: var(--line-height-mobile);
  text-align: center;
}

.teachers-section .teacher-card p {
  font-size: var(--font-size-mobile);
  font-weight: 300;
  line-height: var(--line-height-mobile);
  text-align: center;
}

.teachers-section .details-btn {
  width: 100%;
  max-width: 250px;
  height: var(--btn-height-mobile);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-radius: var(--border-radius);
  border: 1px solid #5F6065;
  background-color: #FFFFFF;
  color: #353535;
  cursor: pointer;
}

.teachers-section .details-btn:hover {
  background-color: #FFFFFF;
}

.teachers-section .details-btn span {
  font-family: Ubuntu;
  font-size: var(--font-size-mobile);
  font-weight: 400;
  line-height: var(--line-height-mobile);
  text-align: left;
}

.teachers-section .flag-image img {
  width: 37px;
  height: 37px;
}

@media (min-width: 1280px) {
  .teachers-section .teachers-panel {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .teachers-section .teachers-card {
    width: 788px;
    height: auto;
    display: flex;
    padding: 20px;
    border: 1px solid #B9B9B9;
    border-radius: 16px;
    cursor: unset;
  }

  .teachers-section .teachers-card .content {
    width: 100%;
    display: flex;
    gap: 36px;
  }

  .teachers-section .content-image {
    width: 253px;
    height: 363px;
    border-radius: 12px;
    align-self: center;
  }
  
  .teachers-section .content-image img {
    width: 253px;
    height: 363px;
    border-radius: 12px;
    display: block;
  }

  .teachers-section .content-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .teachers-section .content-header {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .teachers-section .content-title {
    font-family: Ubuntu;
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    text-align: left;
    color: #353535;
  }

  .teachers-section .role-experience-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .teachers-section .content-role {
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 300;
    line-height: 31.2px;
    text-align: left;
    color: #353535;
  }

  .teachers-section .flag-image img {
    width: 40px;
    height: 40px;
  }

  .teachers-section .experience {
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 300;
    line-height: 31.2px;
    text-align: left;
    color: #353535;
  }

  .teachers-section .info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .teachers-section .subjects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .teachers-section .subjects-list {
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    align-items: center;
    gap: 12px;
  }

  .teachers-section .subjects-title {
    font-family: Ubuntu;
    font-size: 24px;
    font-weight: 400;
    line-height: 31.2px;
    text-align: left;
    color: #353535;
  }

  .teachers-section .subject-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .teachers-section .subject-title {
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 300;
    line-height: 20.8px;
    letter-spacing: 0.16px;
    text-align: left;
  }

  .teachers-section .read-more {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .teachers-section .read-more span {
    font-family: Ubuntu;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
    color: #DF0611;
  }

  .teachers-section .details-btn {
    display: none;
  }
}

/* ---------- Teachers Pagination ---------- */
.teachers-section .teachers-pagination {
  display: flex;
  flex-direction: row;
  align-self: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 30px;
}

.teachers-section .teachers-pagination .page {
  padding: 12px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.teachers-section .teachers-pagination .page:hover {
  background-color: #bfc0c5;
  color: #FFFFFF;
  cursor: pointer;
}

.teachers-section .teachers-pagination .page.selected {
  background-color: #bfc0c5;
  color: #FFFFFF;
}

.teachers-section .teachers-pagination .page.back,
.teachers-section .teachers-pagination .page.forward {
  border-radius: 50%;
  padding: 12px;
  width: 40px;
}

@media (min-width: 1280px) {
  .teachers-section .teachers-pagination {
    margin-top: 60px;
  }

  .teachers-section .teachers-pagination .page {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .teachers-section .teachers-pagination .page.back,
  .teachers-section .teachers-pagination .page.forward {
    border-radius: 28px;
    padding: 10px 24px;
    width: fit-content;
  }
}

/* ---------------------------------------------- */
/* ---------------------------------------------- */
