﻿/* ==========================================
   河南新唯思教育官网 - 首页样式
   ========================================== */

/* ========== Hero Banner 轮播区 ========== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-bg img,
.hero-slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  /* 完全移除遮罩层，保持图片原色 */
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  /* 添加半透明背景，确保文字在任何图片上都清晰 */
  background: rgba(0, 0, 0, 0.3);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-title {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-title-text {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  /* 强化文字阴影 */
  text-shadow: 0 2px 8px rgba(0,0,0,0.4), 
               0 4px 16px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  /* 副标题阴影 */
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 32px;
  color: var(--white);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ========== 核心优势 ========== */
.advantages-section {
  padding: 100px 0;
  background-color: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  transition: all var(--transition-base);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1) rotate(5deg);
}

.advantage-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.advantage-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.advantage-number {
  font-family: var(--font-family-number);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
}

.advantage-number .number-suffix {
  font-size: 28px;
}

/* ========== 明星师资 ========== */
.teachers-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.teachers-swiper {
  padding: 20px 0 60px;
}

.teachers-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.teacher-card:hover,
.teacher-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
  text-decoration: none;
}

.teacher-card:focus-visible {
  outline: 3px solid rgba(27, 78, 143, 0.28);
  outline-offset: 4px;
}

.teacher-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.teacher-title {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 500;
}

.teacher-university {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.teacher-major {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.teacher-intro {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-detail-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.teacher-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Swiper 自定义样式 */
.teachers-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  opacity: 0.3;
}

.teachers-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

.teachers-swiper .swiper-button-prev,
.teachers-swiper .swiper-button-next {
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.teachers-swiper .swiper-button-prev:hover,
.teachers-swiper .swiper-button-next:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ========== 成功案例数据 ========== */
.stats-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

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

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-family: var(--font-family-number);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-suffix {
  font-size: 40px;
}

.stat-label {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.95;
}

/* ========== 最新资讯 ========== */
.news-section {
  padding: 100px 0;
  background-color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
}

.news-content {
  padding: 24px;
}

.news-title {
  margin-bottom: 12px;
}

.news-title a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-date i {
  margin-right: 4px;
}

.news-more {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.news-more:hover {
  gap: 8px;
}

.news-more i {
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.news-more:hover i {
  transform: translateX(4px);
}

.news-more-btn {
  text-align: center;
}

/* ========== CTA 行动号召区 ========== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(11,127,115,0.1) 0%, rgba(11,127,115,0.05) 100%);
}

.cta-content {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.cta-btn {
  box-shadow: var(--shadow-lg);
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1023px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title-text {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-subtitle {
    font-size: 18px;
  }
}

/* 移动端 */
@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-title-text {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .advantages-section,
  .teachers-section,
  .news-section {
    padding: 60px 0;
  }
}

/* ========== Hero轮播自定义样式 ========== */
.hero-swiper .swiper-pagination {
  bottom: 40px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: var(--white);
  opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 40px;
  border-radius: 7px;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--white);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255,255,255,0.25);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 24px;
}

/* 移动端响应式 */
@media (max-width: 767px) {
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after {
    font-size: 18px;
  }
  
  .advantages-grid,
  .stats-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-section {
    padding: 60px 0;
  }
  
  .stat-number {
    font-size: 42px;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-content {
    padding: 40px 20px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-subtitle {
    font-size: 16px;
  }
}

/* ========== 首页重构层：学习路径式官网前台 ========== */
.hero-section {
  height: 92vh;
  min-height: 680px;
  background: #0f2f55;
  isolation: isolate;
}

.hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 116px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(245,248,252,0) 0%, #F5F8FC 74%);
  pointer-events: none;
}

.hero-swiper .swiper-slide {
  justify-content: flex-start;
}

.hero-slide-bg img,
.hero-slide-bg video {
  filter: saturate(0.92) contrast(1.04);
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,47,85,0.94) 0%, rgba(15,47,85,0.78) 38%, rgba(15,47,85,0.22) 76%, rgba(15,47,85,0.46) 100%),
    linear-gradient(180deg, rgba(7,21,40,0.58) 0%, rgba(7,21,40,0.12) 42%, rgba(245,248,252,0.42) 100%);
}

.hero-content {
  width: min(1180px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 144px 0 112px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  color: var(--white);
}

.hero-content::before {
  content: '保研路径导航台';
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  margin-bottom: 22px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-swiper .swiper-slide::after {
  content: '路径评估\A 背景定位 / 文书科研 / 面试表达';
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 142px;
  width: 320px;
  padding: 24px 26px;
  white-space: pre-line;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--ink, #243044);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  box-shadow: 0 12px 32px rgba(8,24,43,0.18);
  z-index: 3;
}

.hero-title {
  max-width: 720px;
  margin-bottom: 22px;
}

.hero-title-text {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0,0,0,0.28);
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 4px 18px rgba(0,0,0,0.24);
}

.hero-cta {
  justify-content: flex-start;
  gap: 16px;
}

.hero-cta .btn {
  min-width: 150px;
  box-shadow: none;
}

.hero-cta .btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}

.hero-cta .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.hero-scroll-indicator {
  bottom: 42px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-color);
  background: rgba(255,255,255,0.9);
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(8,24,43,0.16);
}

.hero-swiper .swiper-pagination {
  left: max(32px, calc((100vw - 1180px) / 2));
  right: auto;
  bottom: 92px;
  width: auto;
}

.hero-swiper .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.56);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 48px;
  background: var(--white);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.hero-swiper .swiper-button-prev {
  left: clamp(24px, 3vw, 56px);
}

.hero-swiper .swiper-button-next {
  right: clamp(24px, 3vw, 56px);
}

.advantages-section,
.teachers-section,
.stats-section,
.news-section,
.cta-section {
  position: relative;
  overflow: hidden;
}

.advantages-section {
  padding: 110px 0 92px;
  background:
    linear-gradient(180deg, #F5F8FC 0%, #FFFFFF 48%, #EEF5FB 100%);
}

.advantages-section::before {
  content: '';
  position: absolute;
  inset: 28px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(27,78,143,0), rgba(27,78,143,0.28), rgba(11,127,115,0.2), rgba(27,78,143,0));
}

.advantages-section .section-title,
.teachers-section .section-title,
.news-section .section-title {
  max-width: 980px;
  margin: 0 0 46px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: end;
}

.section-title-main {
  font-size: clamp(30px, 3vw, 44px);
  text-wrap: balance;
}

.section-title-sub {
  max-width: 52ch;
  line-height: 1.8;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: stretch;
}

.advantage-card {
  grid-column: span 3;
  min-height: 292px;
  padding: 28px;
  text-align: left;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(25,48,76,0.08);
}

.advantage-card:nth-child(1) {
  grid-column: span 4;
}

.advantage-card:nth-child(2) {
  grid-column: span 3;
  transform: translateY(34px);
}

.advantage-card:nth-child(3) {
  grid-column: span 3;
}

.advantage-card:nth-child(4) {
  grid-column: span 2;
  transform: translateY(62px);
}

.advantage-card::before {
  display: none;
}

.advantage-card:hover {
  background: linear-gradient(150deg, #1B4E8F 0%, #163F75 58%, #0B7F73 100%);
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(25,48,76,0.18);
}

.advantage-card:nth-child(2):hover {
  transform: translateY(26px);
}

.advantage-card:nth-child(4):hover {
  transform: translateY(54px);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 22px;
  border-radius: 14px;
  background: rgba(27,78,143,0.1);
  color: var(--primary-color);
  font-size: 22px;
}

.advantage-card:hover .advantage-icon {
  background: rgba(255,255,255,0.16);
  color: var(--white);
  transform: translateY(-2px);
}

.advantage-card:hover .advantage-title,
.advantage-card:hover .advantage-desc {
  color: var(--white);
}

.advantage-card:hover .advantage-desc {
  color: rgba(255,255,255,0.82);
}

.advantage-number {
  margin-top: auto;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--primary-color);
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
}

.advantage-card:hover .advantage-number {
  color: var(--white);
}

.teachers-section {
  padding: 120px 0 100px;
  background:
    linear-gradient(112deg, #EEF5FB 0%, #EEF5FB 38%, #F8FBFE 38%, #FFFFFF 100%);
}

.teachers-swiper {
  overflow: visible;
  padding: 22px 64px 72px;
}

.teachers-swiper .swiper-wrapper {
  align-items: stretch;
}

.teacher-card {
  position: relative;
  min-height: 388px;
  padding: 30px;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(25,48,76,0.08);
  background: rgba(255,255,255,0.96);
}

.teacher-card::before {
  content: '导师档案';
  display: inline-flex;
  width: max-content;
  margin-bottom: 22px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(27,78,143,0.09);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
}

.teacher-card:hover,
.teacher-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(25,48,76,0.13);
}

.teacher-avatar {
  position: absolute;
  top: 36px;
  right: 34px;
  width: 144px;
  height: 196px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(27,78,143,0.08);
  box-shadow: 0 10px 24px rgba(25,48,76,0.12);
  background: linear-gradient(180deg, #F4F8FC 0%, #DFECF7 100%);
}

.teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-name {
  font-size: 26px;
  margin-top: 0;
  padding-right: 182px;
}

.teacher-title {
  color: var(--primary-color);
  padding-right: 182px;
}

.teacher-university {
  color: var(--ink, #243044);
  font-weight: 600;
  padding-right: 182px;
}

.teachers-swiper .swiper-button-prev,
.teachers-swiper .swiper-button-next {
  box-shadow: 0 8px 18px rgba(25,48,76,0.1);
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  margin-top: 0;
}

.teachers-swiper .swiper-button-prev {
  left: 0;
}

.teachers-swiper .swiper-button-next {
  right: 0;
}

.teachers-swiper .swiper-button-prev::after,
.teachers-swiper .swiper-button-next::after {
  font-size: 24px;
  font-weight: 700;
}

.stats-section {
  padding: 92px 0;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 100%);
  color: var(--white);
}

.stats-grid {
  gap: 0;
  padding: 44px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #163F75 0%, #1B4E8F 56%, #0B7F73 100%);
  box-shadow: 0 18px 42px rgba(27,78,143,0.16);
}

.stat-item {
  position: relative;
  padding: 10px 24px;
  text-align: left;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.24);
}

.stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 0 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  font-size: 22px;
}

.stat-number {
  font-size: clamp(38px, 4vw, 58px);
}

.stat-label {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 16px;
}

.news-section {
  padding: 110px 0 96px;
  background:
    linear-gradient(180deg, #F5F8FC 0%, #FFFFFF 42%, #F5F8FC 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-auto-rows: 1fr;
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 220px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(25,48,76,0.08);
}

.news-card:first-child {
  grid-row: span 2;
  grid-template-columns: 1fr;
  min-height: 460px;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(25,48,76,0.13);
}

.news-image {
  height: 100%;
  min-height: 220px;
}

.news-card:first-child .news-image {
  height: 260px;
}

.news-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,21,40,0.05), rgba(7,21,40,0.18));
  pointer-events: none;
}

.news-category {
  border-radius: var(--radius-full);
  background: rgba(27,78,143,0.92);
}

.news-content {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.news-title a {
  font-size: 19px;
}

.news-card:first-child .news-title a {
  font-size: 24px;
}

.news-meta {
  margin-top: auto;
}

.cta-section {
  padding: 96px 0 112px;
  background:
    linear-gradient(180deg, #F5F8FC 0%, #FFFFFF 100%);
}

.cta-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: center;
  text-align: left;
  padding: 48px 56px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #102F59 0%, #1B4E8F 58%, #0B7F73 100%);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(27,78,143,0.16);
}

.cta-title,
.cta-subtitle {
  color: var(--white);
}

.cta-title {
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 42px);
}

.cta-subtitle {
  margin-bottom: 0;
  color: rgba(255,255,255,0.84);
}

.cta-btn {
  width: max-content;
  background: var(--white);
  color: var(--primary-color);
  box-shadow: none;
}

.cta-btn:hover {
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    animation: none;
    opacity: 1;
  }

  .hero-scroll-indicator {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .hero-swiper .swiper-slide::after {
    display: none;
  }

  .advantage-card,
  .advantage-card:nth-child(1),
  .advantage-card:nth-child(2),
  .advantage-card:nth-child(3),
  .advantage-card:nth-child(4) {
    grid-column: span 6;
    transform: none;
  }

  .advantage-card:nth-child(2):hover,
  .advantage-card:nth-child(4):hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .advantages-section .section-title,
  .teachers-section .section-title,
  .news-section .section-title {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .teachers-swiper {
    padding-right: 8px;
    padding-left: 8px;
  }

  .teachers-swiper .swiper-button-prev,
  .teachers-swiper .swiper-button-next {
    display: none;
  }

  .news-card,
  .news-card:first-child {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cta-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    width: min(100% - 36px, 560px);
    padding: 124px 0 108px;
  }

  .hero-title-text {
    font-size: clamp(31px, 9vw, 36px);
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-cta {
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: none;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none;
  }

  .hero-swiper .swiper-pagination {
    left: 18px;
    bottom: 82px;
  }

  .advantages-section,
  .teachers-section,
  .news-section,
  .cta-section {
    padding: 72px 0;
  }

  .teachers-section {
    overflow: hidden;
  }

  .teachers-swiper {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 18px 0 56px;
    overflow: visible;
  }

  .teachers-swiper .swiper-slide {
    display: flex;
    height: auto;
  }

  .teachers-swiper .swiper-wrapper {
    transition-timing-function: linear;
  }

  .teacher-card {
    min-height: 316px;
    padding: 24px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(25,48,76,0.08);
  }

  .teacher-card::before {
    margin-bottom: 18px;
  }

  .teacher-card:hover,
  .teacher-card:focus-visible {
    transform: none;
  }

  .teacher-name {
    font-size: 23px;
  }

  .teacher-title {
    font-size: 15px;
    line-height: 1.55;
  }

  .teacher-intro {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .teachers-swiper .swiper-pagination {
    bottom: 18px;
  }

  .teachers-swiper .swiper-pagination-bullet {
    width: 18px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(27,78,143,0.24);
    opacity: 1;
    transition: width 0.35s ease, background-color 0.35s ease;
  }

  .teachers-swiper .swiper-pagination-bullet-active {
    width: 36px;
    background: var(--primary-color);
  }

  .advantages-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card,
  .advantage-card:nth-child(1),
  .advantage-card:nth-child(2),
  .advantage-card:nth-child(3),
  .advantage-card:nth-child(4) {
    grid-column: auto;
  }

  .stats-grid {
    padding: 28px;
  }

  .stat-item {
    padding: 16px 0;
  }

  .news-image,
  .news-card:first-child .news-image {
    height: 210px;
  }

  .cta-content {
    padding: 34px 26px;
  }

  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .teachers-swiper {
    width: calc(100% + 20px);
    margin-left: -10px;
  }

  .teacher-card {
    min-height: 336px;
  }
}
