/**
 * Economic & Business branch (ЭЗБУС) — layouts.new
 */

body.page-new .page-new-ezbus-hero {
  padding: clamp(72px, 10vw, 100px) 0 clamp(40px, 5vw, 56px);
  background: linear-gradient(
    135deg,
    rgba(26, 116, 170, 0.09) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(86, 156, 97, 0.07) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.page-new .page-new-ezbus-hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  margin-bottom: 0.65rem;
}

body.page-new .page-new-ezbus-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--blackColor, #1a1a1a);
}

body.page-new .page-new-ezbus-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.68);
  margin-bottom: 0;
  max-width: 640px;
}

body.page-new .page-new-ezbus-acbsp-logo {
  max-width: min(220px, 100%);
  height: auto;
}

body.page-new .page-new-ezbus-about {
  padding: clamp(40px, 5vw, 64px) 0;
  background: #fafbfc;
}

body.page-new .page-new-ezbus-prose {
  padding: 1.35rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.78);
}

body.page-new .page-new-ezbus-prose strong {
  color: var(--blackColor, #1a1a1a);
}

body.page-new .page-new-ezbus-prose ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

body.page-new .page-new-ezbus-programs {
  background: #fff;
  padding-bottom: clamp(32px, 4vw, 56px);
}

body.page-new .page-new-ezbus-section-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--blackColor, #1a1a1a);
}

body.page-new .page-new-ezbus-section-lead {
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.6);
  max-width: 640px;
}

body.page-new .page-new-ezbus-legend {
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.55);
}

body.page-new .page-new-ezbus-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

body.page-new .page-new-ezbus-legend-swatch--b {
  background: #1a74aa;
}
body.page-new .page-new-ezbus-legend-swatch--m {
  background: #569c61;
}
body.page-new .page-new-ezbus-legend-swatch--d {
  background: #c48a2a;
}

body.page-new .page-new-ezbus-prog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.page-new .page-new-ezbus-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.75);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.page-new .page-new-ezbus-pill:hover {
  background: rgba(26, 116, 170, 0.08);
}

body.page-new .page-new-ezbus-pill.active {
  background: rgba(26, 116, 170, 0.14);
  color: #0d5a8a;
  border-color: rgba(26, 116, 170, 0.25);
}

body.page-new .page-new-ezbus-prog-tab-content .surgalt-school p {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blackColor, #1a1a1a);
}

body.page-new .page-new-ezbus-enroll {
  padding: clamp(32px, 4vw, 48px) 0;
  background: #fafbfc;
}

body.page-new .page-new-ezbus-enroll-card {
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  background: #fff;
  text-align: center;
}

body.page-new .page-new-ezbus-enroll-card .title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

body.page-new .page-new-ezbus-enroll-card .desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.68);
  margin-bottom: 1.25rem;
}

body.page-new .page-new-ezbus-dept {
  padding: clamp(40px, 5vw, 72px) 0;
  background: #fff;
}

body.page-new .page-new-ezbus-dept .content-title {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-new .page-new-ezbus-dept .schoolname {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
}

body.page-new .page-new-ezbus-dept-nav {
  padding: 0.75rem;
}

@media (min-width: 992px) {
  body.page-new .page-new-ezbus-dept-nav {
    position: sticky;
    top: 1.25rem;
  }
}

body.page-new .page-new-ezbus-dept-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.78);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

body.page-new .page-new-ezbus-dept-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.page-new .page-new-ezbus-dept-btn.active {
  background: rgba(26, 116, 170, 0.12);
  color: #0d5a8a;
}

body.page-new .page-new-ezbus-dept-tab-content {
  min-height: 200px;
}

body.page-new .page-new-ezbus-dept-tab-content .dep-tab-content {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.78);
}

body.page-new .page-new-ezbus-teachers {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 88px);
  background: #fafbfc;
}

body.page-new .page-new-ezbus-teacher-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

body.page-new .page-new-ezbus-teacher-grid .teacher-list-item {
  flex: 0 0 min(260px, 82vw);
  scroll-snap-align: start;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

body.page-new .page-new-ezbus-teacher-grid .teacher-list-item .image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

body.page-new .page-new-ezbus-teacher-modal .popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

body.page-new .page-new-ezbus-teacher-modal-tabs {
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.page-new .page-new-ezbus-teacher-modal-tabs .nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px 8px 0 0;
  color: rgba(26, 26, 26, 0.65);
}

body.page-new .page-new-ezbus-teacher-modal-tabs .nav-link.active {
  color: #0d5a8a;
  background: rgba(26, 116, 170, 0.1);
}

body.page-new .page-new-ezbus-teacher-modal-scroll {
  max-height: min(50vh, 420px);
  overflow-y: auto;
}

body.page-new .page-new-ezbus-teacher-modal .modal-tab-content {
  font-size: 0.875rem;
}

body.page-new .branch-teacher-info .position {
  display: none;
}

body.page-new .teacher-list-item.show-active .position {
  display: block;
}
