:root {
  --blue: #2696db;
  --text-grey: #777;

  --bs-primary: var(--blue);
  --bs-primary-rgb: 38, 150, 219;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

@media (min-width: 1520px) {
  .nav-container {
    max-width: 1472px !important;
    width: 100% !important;
  }
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 92%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 85%, black);

  --bs-btn-focus-color: #fff;
  --bs-btn-focus-bg: var(--bs-btn-hover-bg);
  --bs-btn-focus-border-color: var(--bs-btn-hover-border-color);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary) 75%, black);
  --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary) 70%, black);

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.mb-3 {
  margin-bottom: 12px !important;
}
.border-blue {
  border-color: #2696db !important;
}
.text-dark-opacity {
  color: #31313180;
}

.bg-blue-opacity {
  background-color: #2696db0d !important;
}

.btn-outline-blue {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
}
.btn-outline-blue:hover {
  background: var(--bs-primary);
  color: #fff;
}

.bg-blue-10 {
  background-color: #2696db0d;
}
.bg-green {
  background-color: #4fca2d;
}
.bg-white-20 {
  background-color: #ffffff33;
}
.bg-blurred {
  background: hsla(0, 0%, 100%, 0.08);
  backdrop-filter: blur(2px);
}
.bg-green-opacity {
  background-color: #4fca2d0d;
}
.bg-dark-opacity {
  background-color: #3131310d;
}
.bg-blue-5 {
  background-color: #2696db0d;
}

.container {
  max-width: 1592px !important;
}

@media (min-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.white-gap {
  height: 49px;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

header {
  position: relative;
}

.left-gap,
.right-gap {
  position: absolute !important;
  top: 75px;
  width: 36px;
  height: 40px;
  z-index: 6;
}

@media (max-width: 1210px) {
  .left-gap,
  .right-gap {
    width: 30px;
  }
}
.left-gap {
  left: calc(50% + 730px - 20px);
}

.right-gap {
  left: calc(50% - 730px - 20px);
}

@media (max-width: 1520px) {
  .left-gap {
    left: calc(50% + 600px - 20px);
  }

  .right-gap {
    left: calc(50% - 600px - 20px);
  }
}

@media (max-width: 1250px) {
  .left-gap {
    left: calc(50% + 590px - 20px);
  }

  .right-gap {
    left: calc(50% - 590px - 20px);
  }

  .nav-container::after {
    right: -10px !important;
    border-top-left-radius: 60px;
    box-shadow: -15px -15px 0 0 white;
    rotate: 40deg !important;
    top: 42px !important;
  }

  .nav-container::after {
    width: 24px !important;
  }
}

.top-bar {
  width: 100%;
  background: #2f8ed9;
  color: #fff;
  font-size: 18px;
}

.top-bar__menu a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
  font-size: 14px;
}
.top-bar__menu a:hover {
  opacity: 0.7;
}

.top-bar__search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  max-width: 600px;
  font-size: 18px;
}

.nav-container {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 100px;
  border-bottom-left-radius: 90px;
  border-bottom-right-radius: 90px;

  width: min(1200px, calc(100% - 40px));
  height: 100px;
}

.nav-container::before,
.nav-container::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 39px;
  background-color: transparent;
}

.nav-container::before {
  left: -24px;
  border-top-right-radius: 60px;
  box-shadow: 15px -15px 0 0 white;
  rotate: -12deg;
  top: 46px;
}

.nav-container::after {
  right: -24px;
  border-top-left-radius: 60px;
  box-shadow: -15px -15px 0 0 white;
  rotate: 13deg;
  top: 46px;
}

.nav-container a:not(.nav-logo):hover {
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.nav-container a:not(.nav-logo).active {
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.nav-logo,
.nav-logo:hover,
.nav-logo.active {
  filter: none !important;
}

.section-hover {
  position: relative;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  border-radius: 20px;
}

.section-hover:hover {
  transform: translateY(-4px);
}

@media (min-width: 1440px) {
  .vh-100 {
    height: 100vh !important;
  }
}

@media (max-width: 1400px) {
  .nav-container {
    padding: 15px 55px !important;
  }

  .top-bar__search input::placeholder {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .main-section {
    margin-top: -90px;
  }

  .main-content p {
    font-size: 20px !important;
  }
}

@media (min-width: 576px) {
  .page-hero {
    position: relative;
  }

  .page-hero > header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .main-section {
    position: relative;
  }

  .hero-image {
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .main-content {
    z-index: 2;
  }

  .vh-100 {
    height: 100vh !important;
    height: 100dvh !important;
  }
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  background-color: rgba(38, 150, 219, 0.1);
}

.enrollment-card {
  background: rgba(38, 150, 219, 0.06);
  border-left: 5px solid #2696db;
  border-radius: 4px;
}

.enrollment-list {
  display: grid;
  gap: 12px;
}

.enrollment-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.enrollment-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.enrollment-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.enrollment-shot:hover img {
  transform: scale(1.06);
}

.enrollment-shot.s1 {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 10;
}

.enrollment-shot.s2 {
  aspect-ratio: 16 / 11;
}

.enrollment-shot.s3 {
  aspect-ratio: 16 / 11;
}

@media (min-width: 1200px) {
  .enrollment-collage {
    position: sticky;
    top: 120px;
  }
}

@media (max-width: 575.98px) {
  .enrollment-collage {
    gap: 10px;
  }
  .enrollment-shot {
    border-radius: 14px;
  }
  .enrollment-item p {
    font-size: 16px !important;
  }
}

.class-cell,
.individual-cell,
.meeting-cell {
  padding: 10px !important;
  font-weight: 500;
  color: #334155;
  vertical-align: middle;
}

.pill-track {
  background-color: #f1f5f9;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}
.toggle-pill {
  border: none !important;
  padding: 6px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.2s ease-in-out;
  background: transparent;
  color: #334155;
}
.toggle-pill.active {
  background-color: #0d6efd !important;
  color: white !important;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.lunch-row {
  background-color: #eeb8230d !important;
}

.swiper-button-prev,
.swiper-button-next {
  width: 50px !important;
  height: 50px !important;
  background-color: #4fca2d !important;
  border-radius: 50% !important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  color: #fff;
  font-size: 22px !important;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.swiper-button-next {
  top: 10% !important;
  right: 2% !important;
}
.swiper-button-prev {
  top: 10% !important;
  left: 2% !important;
}

.main-section-btn-prev {
  top: 50% !important;
  left: 6% !important;
}

.main-section-btn-next {
  top: 50% !important;
  right: 6% !important;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 8px !important;
  border-radius: 100% !important;
  opacity: 1 !important;
  background-color: #4fca2d33 !important;
  border: none !important;
}

.swiper-pagination-bullet-active {
  width: 140px !important;
  height: 8px !important;
  background: #4fca2d !important;
  border-radius: 12px !important;
}

.time-box {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 600;
  font-family: monospace;
  min-width: 42px;
  text-align: center;
  background-color: #2696db33;
  transition: background-color 0.2s ease;
}

.gallery-tab.active {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.footer-logo {
  max-width: 300px;
}
.footer-border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer a {
  transition:
    color 0.3s ease,
    transform 0.25s ease;
  text-decoration: none;
}

footer a:hover {
  color: #2696db !important;
  transform: translateY(-2px);
  text-decoration: underline;
}

footer address img {
  transition:
    transform 0.25s ease,
    filter 0.3s ease;
}

footer address:hover img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

#fontSlider {
  accent-color: #0d6efd;
}

.mobile-menu.offcanvas {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.mobile-menu__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-menu__link.active {
  background: rgba(38, 150, 219, 0.1);
  color: #0b4f7d;
}

.dropdown-toggle::after {
  display: none !important;
}

#events .swiper-wrapper {
  align-items: stretch !important;
}

#events .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-self: stretch !important;
}

#events .swiper-slide > img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

#events .swiper-slide > .p-3.shadow.rounded {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#events .swiper-slide > .p-3.shadow.rounded > div:last-child {
  margin-top: auto;
}

.schedule-filters {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.schedule-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: block;
}

.schedule-select {
  height: 42px;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  background: #fff;
  box-shadow: none !important;
}

.schedule-select:focus {
  border-color: rgba(38, 150, 219, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(38, 150, 219, 0.1) !important;
}

.schedule-reset {
  position: absolute;
  right: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 0;
  opacity: 0.85;
}

.schedule-reset:hover {
  opacity: 1;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
}

.schedule-arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(38, 150, 219, 0.25);
  background: #fff;
  color: #2696db;
  font-size: 18px;
  line-height: 1;
}

.schedule-month span {
  color: #94a3b8;
  font-weight: 600;
}

.schedule-view {
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.schedule-view-btn {
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 700;
  padding: 4px 0;
  opacity: 0.7;
}

.schedule-view-btn.active {
  opacity: 1;
  color: #2696db;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schedule-table-wrap {
  border: 1px solid rgba(38, 150, 219, 0.18);
  border-radius: 8px;
  overflow: auto;
}

.schedule-table {
  font-size: 12px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(38, 150, 219, 0.16);
  vertical-align: middle;
  padding: 10px 10px;
  background: #fff;
  min-width: 140px;
}

.schedule-table thead th {
  background: #f8fbff;
  text-align: center;
  font-weight: 700;
  color: #111827;
}

.schedule-table thead th small {
  display: block;
  color: #94a3b8;
  font-weight: 600;
  font-size: 10px;
}

.schedule-table thead th div {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.time-header-col {
  min-width: 120px !important;
  background: #f0f8ff !important;
}

.time-cell {
  background: #f0f8ff;
  min-width: 120px !important;
}

.time-main {
  font-weight: 700;
  color: #111827;
}

.time-sub {
  font-size: 10px;
  color: #94a3b8;
}

.grade {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 600;
}

.class-cell {
  color: #111827;
}

.meeting-cell {
  color: #111827;
}

.individual-cell {
  background: #eefaf2;
}

.tag {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  font-weight: 700;
  text-transform: lowercase;
}

.tag-green {
  color: #22c55e;
}

.tag-pink {
  color: #ec4899;
}

.lunch-row td {
  background: #fff7e6 !important;
  padding: 8px 0 !important;
}

.lunch-link {
  font-size: 12px;
  color: #2696db;
  text-decoration: none;
}

.lunch-link:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .schedule-reset {
    position: static;
    margin-top: 10px;
    padding: 0;
  }
}

.blue-icon {
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.btn[class*="btn-outline"] img {
  transition: 0.2s ease;
}

.btn[class*="btn-outline"]:hover img {
  filter: brightness(0) invert(1);
}

.top-bar__search input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.btn:hover img {
  transform: scale(1.12);
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 14px;
}

.contact-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.contact-card__desc {
  margin: 0 0 12px;
  color: #6c757d;
  font-size: 13px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
}

.contact-line i {
  color: #0d6efd;
  margin-top: 2px;
}

.contact-line a {
  color: #0d6efd;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.map-wrap {
  height: 100%;
  min-height: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (min-width: 992px) {
  .map-wrap {
    min-height: 420px;
  }
  .map-iframe {
    min-height: 420px;
  }
}

.contact-hero {
  position: relative;
  padding: 60px 0;
  min-height: 420px;

  background-image: url("../images/main.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.contact-hero__card {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.contact-hero__input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.contact-hero__input:focus,
.contact-hero__textarea:focus {
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contact-hero__textarea {
  width: 100%;
  min-height: 136px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  outline: none;
  resize: none;
}

@media (max-width: 767px) {
  .contact-hero {
    padding: 40px 0;
  }

  .contact-hero__card {
    padding: 18px 16px;
  }

  .contact-hero__grid {
    grid-template-columns: 1fr;
  }

  .contact-hero__textarea {
    min-height: 120px;
  }
}

.nav-underline .nav-link {
  color: #6c757d;
  font-weight: 600;
  padding: 0 0 10px;
  border: none;
  background: transparent;
}

.nav-underline .nav-link:hover {
  color: #0d6efd;
}

.nav-underline .nav-link.active {
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
}

.files-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.files-card__head {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.files-tree {
  padding: 10px;
  background: #fff;
}

.files-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 12px;
  margin-bottom: 10px;

  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f6fbff;
}

.files-row:hover {
  background: #eef7ff;
}

.files-row--doc {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f6fbff;
  text-align: left;
  cursor: pointer;
}

.files-row--doc:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.files-toggle {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  flex: 0 0 auto;
}

.files-toggle--spacer {
  width: 26px;
  height: 26px;
}

.files-row img {
  width: 20px;
  height: 20px;
}

.files-title {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 600;
  color: #212529;
}

.files-dl {
  border: 0;
  background: transparent;
  color: #0d6efd;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.files-row.is-active {
  border-color: rgba(13, 110, 253, 0.35);
  background: #eaf5ff;
}

.collapse .files-row {
  margin-top: 10px;
}

.files-row--nested .files-title,
.files-row--nested .files-ico,
.files-row--nested .files-toggle {
  margin-left: 22px;
}

.files-row--nested-2 .files-title,
.files-row--nested-2 .files-ico,
.files-row--nested-2 .files-toggle {
  margin-left: 44px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(13, 110, 253, 0.06);
  color: #0d6efd;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.avatar-sm {
  width: 36px;
  height: 36px;
}

.reply {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.voice .wave {
  height: 26px;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, rgba(13, 110, 253, 0.22), rgba(13, 110, 253, 0.22) 3px, rgba(13, 110, 253, 0.05) 3px, rgba(13, 110, 253, 0.05) 7px);
  opacity: 0.9;
}

.mobile-search-overlay {
  display: none;
  z-index: 1060;
  background-color: inherit;
}

.h-40 {
  height: 40px !important;
}

.login-dropdown {
  width: 360px;
}

@media (max-width: 420px) {
  .login-dropdown {
    width: min(360px, 92vw);
  }
}

.pt-80 {
  padding-top: 80px !important;
}
header {
  --navW: clamp(0px, calc(100% - 40px), 1200px);
}
.nav-container {
  width: var(--navW);
}

@media (max-width: 1200px) {
  .nav-container {
    width: 60% !important;
  }

  .left-gap,
  .right-gap {
    position: absolute !important;
    top: 80px;
    width: 125px;
    height: 40px;
    z-index: 6;
  }
}
@media (max-width: 1200px) {
  .left-gap {
    left: calc(33% + (var(--navW) * 0.5) - 20px);
  }

  .right-gap {
    left: calc(68% - (var(--navW) * 0.5) - 20px);
  }
}

@media (max-width: 992px) {
  .right-gap {
    left: calc(47% - (var(--navW) * 0.5) - 20px);
  }
}

@media (max-width: 991px) {
  .nav-container {
    width: 80% !important;
  }
}

@media (max-width: 500px) {
  .nav-logo img {
    width: 200px;
  }

  .nav-container {
    height: 70px;
  }

  .white-gap {
    height: 45px;
  }

  .nav-container::after {
    right: 0px !important;
    rotate: 43deg !important;
    top: 38px !important;
  }

  .nav-container::before {
    left: -15px;
    border-top-right-radius: 60px;
    box-shadow: 15px -15px 0 0 white;
    rotate: -22deg;
    top: 40px;
  }

  .left-gap,
  .right-gap {
    position: absolute !important;
    top: 80px;
    width: 100px;
    height: 40px;
    z-index: 6;
  }
}

.top-bar__menu a.active {
  font-weight: 700;
  opacity: 1;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.95);
  padding-bottom: 6px;
}

.staff-cal {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.staff-cal__grid {
  display: grid;
  grid-template-columns: 90px 1fr;
}

.staff-cal__time {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.staff-cal__days {
  overflow-x: auto;
}

.staff-cal__th {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.staff-cal__t {
  font-size: 12px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.55);
  height: 48px;
  display: flex;
  align-items: center;
}

.staff-cal__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}
@media (min-width: 1200px) {
  .staff-cal__row {
    grid-template-columns: repeat(6, minmax(160px, 1fr));
  }
}

.staff-cal__row--head .staff-cal__th {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.staff-cal__cell {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 48px;
  padding: 6px;
}

.staff-cal__event {
  height: 100%;
  border-radius: 10px;
  background: rgba(38, 150, 219, 0.1);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.staff-cal__event--accent {
  background: rgba(79, 202, 45, 0.14);
}

.announce-card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.announce-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

#menu .menu-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
#menu .menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1) !important;
}

#menu .nav-underline .nav-link {
  color: #6c757d;
  font-weight: 500;
}
#menu .nav-underline .nav-link.active {
  color: #0d6efd;
}

#menu .badge {
  font-weight: 500;
}

#sport .sport-card,
#sport .sport-hero {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

#sport .sport-card:hover,
#sport .sport-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1) !important;
}

#sport .sport-cal-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

#sport .sport-cal-dow {
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

#sport .sport-day {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  border-radius: 10px;
  height: 34px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

#sport .sport-day:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, 0.35);
  background: rgba(13, 110, 253, 0.06);
}

#sport .sport-day.is-muted {
  color: #9aa3af;
  background: #fafafa;
}

#sport .sport-day.is-active {
  border-color: rgba(13, 110, 253, 0.55);
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
}

#sport .sport-cal-btn:hover {
  border-color: rgba(13, 110, 253, 0.35) !important;
  background: rgba(13, 110, 253, 0.06) !important;
}

#sport .sport-hero {
  position: relative;
}

#sport .sport-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.profile-sidebar .list-group-item .blue-icon {
  transition: 0.2s ease;
}

.profile-sidebar .list-group-item.active {
  background-color: #2696db;
  color: #fff;
  border-color: #2696db;
}

.profile-sidebar .list-group-item.active .blue-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 1200px) {
  .profile-page .profile-wrapper {
    padding: 20px;
  }

  .profile-page .profile-sidebar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: transparent;
  }

  .profile-page .profile-sidebar .list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    min-height: 56px;
    padding: 12px;
    justify-content: center;
    background: #fff;
  }

  .profile-page .profile-sidebar .list-group-item span {
    display: none;
  }

  .profile-page .profile-sidebar .list-group-item img {
    margin: 0;
  }

  .profile-page .profile-sidebar .list-group-item.active {
    background-color: #2696db;
    border-color: #2696db;
  }

  .profile-page .profile-sidebar .list-group-item.active .blue-icon {
    filter: brightness(0) invert(1);
  }

  .profile-page .profile-sidebar .list-group-item:hover .blue-icon {
    filter: none;
  }

  .profile-page .profile-sidebar .list-group-item.active:hover .blue-icon {
    filter: brightness(0) invert(1);
  }

  .profile-page .col-lg-3.col-xxl-2 {
    width: 100%;
  }

  .profile-page .col-lg-9.col-xxl-10 {
    width: 100%;
  }

  .profile-page .profile-photo-card {
    max-width: 240px;
  }

  .profile-page .profile-main-image {
    width: 100%;
    object-fit: cover;
  }

  .profile-page .profile-meta img {
    width: 28px;
    height: 28px;
  }

  .profile-page .certificate-card img {
    width: 100%;
    display: block;
  }
}
@media (max-width: 767.98px) {
  .profile-page .mt-4.mt-xl-5 .row.g-3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    margin: 0;
  }

  .profile-page .mt-4.mt-xl-5 .row.g-3 > div {
    flex: 0 0 240px;
    max-width: 240px;
    padding: 0;
  }

  .certificate-card {
    display: block;
    width: 100%;
  }

  .certificate-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }
}
@media (max-width: 767.98px) {
  .profile-page .tab-pane .d-flex.justify-content-end.mb-3 {
    margin-bottom: 12px !important;
  }

  .profile-page .profile-photo-card {
    width: 100%;
  }

  .profile-page .profile-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }

  .profile-page .row.g-4.align-items-start {
    row-gap: 12px !important;
  }

  .profile-page .col-12.col-md-4.col-xl-3 {
    width: 100%;
  }

  .profile-page .col-12.col-md-8.col-xl-9 {
    width: 100%;
  }

  .profile-page .profile-info h3,
  .profile-page .profile-name {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .profile-page .text-muted.mb-3.fw-semibold.text-dark-opacity {
    font-size: 14px;
    margin-bottom: 12px !important;
  }

  .profile-page .fw-semibold.mb-4 {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px !important;
  }

  .profile-page .tab-pane .d-flex.justify-content-end.mb-3 {
    order: 2;
  }

  .profile-page .row.g-4.align-items-start {
    display: flex;
    flex-direction: column;
  }

  .profile-page .profile-info {
    display: flex;
    flex-direction: column;
  }

  .profile-page .profile-info .mobile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .profile-page .profile-edit-btn {
    padding: 4px 10px;
    min-height: auto;
    border-radius: 6px;
    gap: 4px !important;
    white-space: nowrap;
  }

  .profile-page .profile-edit-btn .fs-6 {
    font-size: 12px !important;
    margin: 0;
  }

  .profile-page .profile-edit-btn img {
    width: 12px;
    height: 12px;
  }
}
.certificates-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.grade-tab {
  border: none !important;
  background: transparent !important;
  color: #333 !important;
  padding: 0 0 8px 0 !important;
  position: relative;
}

.grade-tab.active {
  color: var(--bs-primary) !important;
}

.grade-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--bs-primary);
}

.lesson-tab.active {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.lesson-tab.active .blue-icon {
  filter: brightness(0) invert(1);
}

.lesson-accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px #edf0f2;
}

.lesson-accordion-btn {
  background: #fff !important;
  color: #212529 !important;
  padding: 1.1rem 1rem !important;
  box-shadow: none !important;
  border: none !important;
  font-size: 1rem;
}

.lesson-accordion-btn:not(.collapsed) {
  background: #fff !important;
  box-shadow: none !important;
}

.lesson-accordion-btn:focus {
  box-shadow: none !important;
}

.lesson-row {
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1rem;
  box-shadow: 0 0 0 1px #edf0f2;
}

#lessons .form-check-input {
  width: 2rem;
  height: 1rem;
  cursor: pointer;
  box-shadow: none !important;
}

#lessons .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

#lessons .btn:focus,
#lessons a:focus {
  box-shadow: none !important;
}

#lessons .lesson-row p {
  font-size: 1rem;
}

#lessons .lesson-row a {
  font-size: 0.875rem;
}

@media (max-width: 576px) {
  .lesson-row {
    padding: 1rem 0.875rem;
  }

  .lesson-row p {
    font-size: 0.95rem;
  }
}
.lesson-row {
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1rem;
  box-shadow: 0 0 0 1px #edf0f2;
}

.lesson-details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 0 0 1px #edf0f2;
}

.lesson-toggle i {
  transition: transform 0.3s ease;
}

.lesson-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.view-mode-btn img {
  width: 20px;
  transition: 0.2s;
  opacity: 0.6;
}

.view-mode-btn.active img {
  filter: invert(43%) sepia(92%) saturate(1853%) hue-rotate(181deg) brightness(92%) contrast(91%);
  opacity: 1;
}

.homework-card {
  transition: all 0.25s ease;
}

.homework-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.student-row {
  transition: background 0.2s ease;
}

.student-row:hover {
  background: #f7fbff;
}

.student-row a:hover {
  text-decoration: underline;
}

.homework-card {
  transition: all 0.25s ease;
}

.homework-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.student-row {
  transition: background 0.2s ease;
}

.student-row:hover {
  background: #f7fbff;
}

.student-work-link:hover {
  text-decoration: underline !important;
}

#homeworkDetailView .btn.btn-light.border:hover {
  background-color: #f0f7ff;
  border-color: #b9d8ff;
}

textarea.form-control:focus,
select.form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}
