/* Shared styles for custom pages: about-us, curses, lecturer */

/* About Us */
.aboutus-page {
  position: relative;
  padding: 30px 0 64px;
  overflow: hidden;
}

.aboutus-page::before,
.aboutus-page::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(24, 190, 174, 0.12);
  z-index: 0;
}

.aboutus-page::before {
  left: -280px;
  top: 210px;
}

.aboutus-page::after {
  right: -260px;
  bottom: 55px;
}

.aboutus-inner {
  position: relative;
  z-index: 1;
}

.aboutus-title {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.aboutus-title h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  color: #222;
}

.aboutus-title h1 span {
  color: #18beae;
}

.aboutus-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.team-card {
  position: relative;
  border: 2px solid #00a8f4;
  background: #fff;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  display: block;
}

.team-card .plus {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #18beae;
  color: #fff;
  font-size: 28px;
  line-height: 34px;
  text-align: center;
  font-weight: 700;
}

.team-card .name {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(17, 75, 157, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 7px 10px;
}

.aboutus-story {
  display: grid;
  grid-template-columns: 375px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.aboutus-icon {
  width: 178px;
  position: relative;
  margin: 0 auto;
}

.aboutus-icon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #004cbc;
  top: 6px;
  left: 34px;
  box-shadow: 18px 18px 0 #004cbc, 0 37px 0 #004cbc;
}

.aboutus-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.aboutus-copy h2 {
  margin: 0 0 8px;
  color: #18beae;
  font-size: 46px;
  font-weight: 700;
}

.aboutus-copy p {
  margin: 0;
  color: #232323;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 600;
}

.aboutus-copy p a {
  color: #0f58a5;
  text-decoration: underline;
}

.aboutus-copy p a:hover {
  color: #18beae;
}

.aboutus-text {
  margin: 40px 0;
}

.aboutus-text h3 {
  margin: 0 0 8px;
  color: #18beae;
  font-size: 46px;
  font-weight: 700;
}

.aboutus-text p {
  margin: 0;
  color: #232323;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 600;
}

.aboutus-partners {
    margin: 30px 0;
}

.aboutus-partners-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

.aboutus-partners-icon {
  width: 228px;
  height: 228px;
  object-fit: contain;
  flex-shrink: 0;
}

.aboutus-partners h4 {
  margin-left: -70px;
  color: #000;
  font-size: 30px;
  font-weight: 700;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.partner-row.slick-slider {
  display: block;
  margin: 0 38px;
}

.partner-row .slick-slide {
  padding: 0 8px;
}

.partner-row .slick-list {
  margin: 0 -8px;
}

.partner-row .slick-prev,
.partner-row .slick-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #12d2bb;
  z-index: 3;
}

.partner-row .slick-prev:before,
.partner-row .slick-next:before {
  color: #fff;
  font-size: 16px;
  opacity: 1;
}

.partner-row .slick-prev {
  left: -38px;
}

.partner-row .slick-next {
  right: -38px;
}

.partner-item {
  text-align: center;
}

.partner-item .circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #d3d3d3;
  margin: 0 auto 10px;
}

.partner-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #313131;
}

/* Curses */
.curses-page {
  position: relative;
  background: #f1f2f2;
  padding: 24px 0 60px;
  overflow: hidden;
}

.curses-page::before,
.curses-page::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(24, 190, 174, 0.12);
  z-index: 0;
}

.curses-page::before {
  left: -280px;
  top: 130px;
}

.curses-page::after {
  right: -290px;
  bottom: 110px;
}

.curses-inner {
  position: relative;
  z-index: 1;
}

.course-card {
  background: #fff;
  border-radius: 4px;
  padding: 14px 14px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 22px;
}

.banner-slot {
  height: 122px;
  border: 2px dashed #97d7d0;
  border-radius: 4px;
  background: linear-gradient(135deg, #d8f5f1, #f6fbfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13b8aa;
  font-weight: 700;
  font-size: 19px;
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid #71d7cc;
  margin-top: 20px;
  padding-bottom: 20px;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
}

.tab-btn.active {
  background: #e0f6f2;
  color: #12bfae;
}

.tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #d7ecea;
  border-top: 0;
  padding: 14px 12px;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.tab-panel p:last-child {
  margin-bottom: 0;
}

/* Lecturer */
.lecturer-page {
  position: relative;
  background: #f1f2f2;
  padding: 26px 0 56px;
  overflow: hidden;
}

.lecturer-page::before,
.lecturer-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  background: rgba(24, 190, 174, 0.12);
}

.lecturer-page::before {
  width: 460px;
  height: 460px;
  left: -350px;
  top: 70px;
}

.lecturer-page::after {
  width: 500px;
  height: 500px;
  right: -390px;
  top: 410px;
}

.lecturer-inner {
  position: relative;
  z-index: 1;
}

.lecturer-title {
  margin: 0 0 18px;
  text-align: center;
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 700;
}

.lecturer-list {
  display: grid;
  gap: 26px;
}

.lecturer-item {
  position: relative;
  min-height: 124px;
}

.lecturer-image {
  position: absolute;
  top: 0;
  width: 130px;
  height: 124px;
  background: #cfcfcf;
}

.lecturer-content {
  position: relative;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 14px 11px;
}

.lecturer-content::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 6px;
  height: calc(100% - 22px);
  background: #1ad8c7;
  border-radius: 2px;
}

.lecturer-name {
  margin: 0 0 3px;
  color: #2f2f2f;
  font-size: 12px;
  font-weight: 700;
}

.lecturer-role {
  margin: 0 0 7px;
  color: #a7a7a7;
  font-size: 11px;
  font-weight: 600;
}

.lecturer-content p {
  margin: 0;
  color: #3a3a3a;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.lecturer-item.left .lecturer-image {
  left: 0;
}

.lecturer-item.left .lecturer-content {
  margin-left: 95px;
}

.lecturer-item.left .lecturer-content::after {
  right: -3px;
}

.lecturer-item.right .lecturer-image {
  right: 0;
}

.lecturer-item.right .lecturer-content {
  margin-right: 95px;
}

.lecturer-item.right .lecturer-content::after {
  left: -3px;
}

.home-video-section {
  position: relative;
  margin-bottom: 44px;
}

.home-video-section::before {
  /*content: "";*/
  /*position: absolute;*/
  /*left: -60px;*/
  /*bottom: -58px;*/
  /*width: 360px;*/
  /*height: 230px;*/
  /*border-radius: 32px;*/
  /*background: rgba(18, 210, 187, 0.16);*/
  /*z-index: 0;*/
}

.home-video-frame {
  position: relative;
  z-index: 1;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.home-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.home-features {
  margin-bottom: 45px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.about-us-section .about-sec .home-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 18px 6px 6px;
  border-radius: 8px;
  text-align: center;
}

.home-feature-icon {
  color: #12d2bb;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

.about-us-section .about-sec .home-feature-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.teachers-section .teacher-readmore-card .teacher-img {
  margin-bottom: 0;
  border-radius: 26px;
  overflow: hidden;
}

.teachers-section .teacher-readmore-card .teacher-img > img {
  border-radius: 26px;
  transition: transform 0.45s ease;
}

.teachers-section .teacher-readmore-card .teacher-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(6, 16, 39, 0) 22%,
    rgba(8, 21, 52, 0.22) 52%,
    rgba(11, 30, 76, 0.84) 100%
  );
  transition: background 0.35s ease;
}

.teachers-section .teacher-readmore-card .teacher-overlay__top {
  padding: 14px 18px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
}

.teachers-section .teacher-readmore-card .teacher-overlay__top p {
  margin: 0;
  color: #f5f9ff;
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.teachers-section .teacher-readmore-card .teacher-overlay__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
}

.teachers-section .teacher-readmore-card .teacher-overlay__bottom h3 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 700;
}

.teachers-section .teacher-readmore-card .teacher-overlay__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cbfdf6;
  font-weight: 700;
  white-space: nowrap;
}

.teachers-section .teacher-readmore-card .teacher-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cbfdf6;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.teachers-section .teacher-readmore-card .teacher-readmore-btn:hover {
  color: #ffffff;
}

body.teacher-popup-open {
  overflow: hidden;
}

.teacher-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.teacher-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.teacher-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 45, 0.64);
  backdrop-filter: blur(7px);
}

.teacher-popup.is-open .teacher-popup__dialog {
  transform: translateY(0) scale(1);
}

.teacher-popup__dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #fdfefe 0%, #f4f8ff 48%, #f3f7ff 100%);
  box-shadow: 0 34px 90px rgba(4, 11, 32, 0.5);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.28s ease;
}

.teacher-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 22, 54, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}

.teacher-popup__close:hover {
  background: rgba(9, 22, 54, 1);
  transform: scale(1.03);
}

.teacher-popup__panel {
  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  min-height: min(700px, calc(100vh - 56px));
}

.teacher-popup__media {
  position: relative;
  overflow: hidden;
}

.teacher-popup__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 44, 0) 40%,
    rgba(8, 16, 44, 0.22) 66%,
    rgba(8, 16, 44, 0.72) 100%
  );
}

.teacher-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.teacher-popup__media-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.teacher-popup__media-meta span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7fff8;
  font-weight: 700;
  background: rgba(18, 210, 187, 0.22);
  border: 1px solid rgba(196, 255, 247, 0.45);
}

.teacher-popup__media-meta h4 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 700;
}

.teacher-popup__content {
    padding: 48px 50px 42px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 700px;
}

.teacher-popup__content h3 {
  margin: 0 0 14px;
  color: #121a39;
  font-size: 44px;
  line-height: 1.03;
  font-weight: 700;
}

.teacher-popup__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #12bfae;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.teacher-popup__lead {
  margin: 0 0 18px;
  color: #1e2a51;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.teacher-popup__quote {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 3px solid #12d2bb;
  border-radius: 8px;
  background: #eff8f8;
  color: #16516b;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}

.teacher-popup__body p {
  margin: 0 0 16px;
  color: #2d3141;
  font-size: 15px;
  line-height: 1.78;
}

.teacher-popup__body p:last-child {
  margin-bottom: 0;
}

.teacher-popup__content::-webkit-scrollbar {
  width: 8px;
}

.teacher-popup__content::-webkit-scrollbar-track {
  background: transparent;
}

.teacher-popup__content::-webkit-scrollbar-thumb {
  background: rgba(18, 191, 174, 0.35);
  border-radius: 999px;
}

.teachers-section .teacher-readmore-card:hover .teacher-img > img {
  transform: scale(1.05);
}

.teachers-section .teacher-readmore-card:hover .teacher-overlay,
.teachers-section .teacher-readmore-card:focus-within .teacher-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 16, 39, 0.16) 16%,
    rgba(8, 21, 52, 0.48) 48%,
    rgba(9, 26, 66, 0.95) 100%
  );
}

.teachers-section .teacher-readmore-card:hover .teacher-overlay__top,
.teachers-section .teacher-readmore-card:focus-within .teacher-overlay__top {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .home-video-section::before {
    left: -24px;
    width: 250px;
    height: 160px;
  }

  .home-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__bottom h3 {
    font-size: 25px;
  }

  .teacher-popup__dialog {
    width: min(1000px, 100%);
  }

  .teacher-popup__panel {
    grid-template-columns: minmax(280px, 38%) 1fr;
  }

  .teacher-popup__content {
    padding: 36px 32px 30px;

  }

  .teacher-popup__content h3 {
    font-size: 36px;
  }

  .teacher-popup__media-meta h4 {
    font-size: 26px;
  }

  .aboutus-team {
    grid-template-columns: repeat(3, 1fr);
  }

  .aboutus-story {
    grid-template-columns: 170px 1fr;
  }

  .partner-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .aboutus-title h1 {
    font-size: 44px;
  }

  .aboutus-copy h2,
  .aboutus-text h3 {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-us-section .about-sec .home-feature-card {
    min-height: 112px;
  }

  .home-feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .teachers-section .teacher-readmore-card .teacher-overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 16, 39, 0.22) 12%,
      rgba(8, 21, 52, 0.56) 45%,
      rgba(9, 26, 66, 0.95) 100%
    );
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__top {
    opacity: 1;
    transform: translateY(0);
    padding: 12px 14px 0;
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__top p {
    font-size: 12px;
    line-height: 1.35;
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__bottom {
    padding: 10px 14px 12px;
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__bottom h3 {
    font-size: 16px;
  }

  .teachers-section .teacher-readmore-card .teacher-overlay__bottom span {
    font-size: 11px;
    gap: 6px;
  }

  .teachers-section .teacher-readmore-card .teacher-readmore-btn {
    font-size: 11px;
    gap: 6px;
  }

  .teacher-popup {
    padding: 14px 8px;
  }

  .teacher-popup__dialog {
    max-height: calc(100vh - 28px);
    border-radius: 20px;
  }

  .teacher-popup__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .teacher-popup__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .teacher-popup__media {
    height: clamp(260px, 46vh, 360px);
  }

  .teacher-popup__media-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .teacher-popup__media-meta h4 {
    font-size: 22px;
  }

  .teacher-popup__content {
    padding: 20px 16px 18px;
  }

  .teacher-popup__eyebrow {
    margin-bottom: 10px;
  }

  .teacher-popup__content h3 {
    font-size: 29px;
  }

  .teacher-popup__lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .teacher-popup__quote {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
  }

  .teacher-popup__body p {
    font-size: 14px;
    line-height: 1.6;
  }

  .banner-slot {
    height: 90px;
    font-size: 15px;
    text-align: center;
    padding: 0 12px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 8px 10px;
  }

  .lecturer-item {
    min-height: 0;
  }

  .lecturer-image {
    position: relative;
    width: 100%;
    height: 160px;
    margin-bottom: 8px;
  }

  .lecturer-item.left .lecturer-content,
  .lecturer-item.right .lecturer-content {
    margin: 0;
  }

  .lecturer-item.right .lecturer-content::after,
  .lecturer-item.left .lecturer-content::after {
    left: 10px;
    right: auto;
    top: -3px;
    width: calc(100% - 20px);
    height: 6px;
  }
}

@media (max-width: 575px) {
  .home-video-section::before {
    left: -20px;
    bottom: -40px;
    width: 190px;
    height: 130px;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .aboutus-team {
    grid-template-columns: 1fr;
  }

  .aboutus-story {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .partner-row {
    grid-template-columns: 1fr;
  }

  .aboutus-title h1 {
    font-size: 34px;
  }

  .aboutus-copy h2,
  .aboutus-text h3 {
    font-size: 30px;
  }

  .aboutus-partners h4 {
    font-size: 30px;
  }

  .aboutus-partners-title {
    justify-content: center;
  }

  .teacher-popup__media {
    height: 382px;
  }

  .teacher-popup__content {
      overflow-y: scroll;
      overflow-x: hidden;
      max-height: 300px;
  }
  .teacher-popup__content h3 {
    font-size: 24px;
  }

  .teacher-popup__lead {
    font-size: 15px;
  }
}
