﻿.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 22, 39, 0.86), rgba(5, 31, 56, 0.68), rgba(5, 31, 56, 0.42)),
    url("/static/images/hero.jpg") center/cover;
}

.home-hero {
  display: block;
  width: 100%;
  min-height: 330px;
  margin-top: 0;
  overflow: hidden;
}

.hero-inner {
  width: min(var(--shell, 1280px), calc(100vw - 40px));
  margin: 0 auto;
  min-height: 330px;
  padding: 38px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(24px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
  white-space: normal;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #f2f7fb;
  font-size: 18px;
  line-height: 1.72;
}

.hero-notice {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(10, 75, 131, 0.46);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  justify-self: start;
}

.home-hero > .hero-inner {
  box-sizing: border-box;
  width: min(var(--shell, 1280px), calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home-shell {
  width: 100%;
  max-width: none;
  padding: 0 0 64px;
  flex: 1 0 auto;
}

.home-hero > .hero-inner > h1,
.home-hero > .hero-inner > p,
.home-hero > .hero-inner > .hero-notice {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.home-wrap {
  width: min(var(--shell, 1280px), calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
}

.program-board {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(9, 37, 61, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 252, 0.78));
  box-shadow: 0 28px 70px rgba(7, 59, 102, 0.12);
}

.program-title {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
}

.package-top-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 18px;
}

.package-top-tab {
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid rgba(9, 37, 61, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(232, 242, 249, 0.86));
  color: #29465d;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(7, 59, 102, 0.08);
}

.package-top-tab.active {
  border-color: #061d31;
  background:
    radial-gradient(circle at 18% 0%, rgba(54, 145, 202, 0.34), transparent 36%),
    linear-gradient(180deg, #0b3152 0%, #061d31 100%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(7, 59, 102, 0.22);
}

.package-top-note {
  margin: -4px 0 18px;
  color: #5f7284;
  font-size: 14px;
  font-weight: 600;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.major-card {
  position: relative;
  overflow: hidden;
  display: block;
  height: 272px;
  min-height: 272px;
  border: 14px solid #061d31;
  border-radius: 16px;
  background: #061d31;
  box-shadow: 0 28px 60px rgba(4, 24, 42, 0.18);
  color: inherit;
  text-decoration: none;
  padding: 0;
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.major-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.7s ease;
}

.major-card:hover img {
  transform: scale(1.055);
}

.major-card .body {
  position: absolute;
  inset: auto 0 0;
  padding: 92px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(4, 20, 36, 0.88));
}

.major-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.major-card .body p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.home-block {
  max-width: none;
  margin: 24px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 64px rgba(7, 59, 102, 0.1);
}

.home-section-last {
  margin-bottom: 12px;
}

.home-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px 8px;
  color: var(--blue-deep);
  font-size: 28px;
  font-weight: 900;
  border-bottom: 0;
  background: transparent;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.link-action:hover {
  color: var(--blue-deep);
}

.home-course-grid {
  padding: 22px;
}

.course-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 59, 102, 0.1);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.course-img {
  position: relative;
  height: 190px;
  background-color: #dbe8f5;
  background-size: cover;
  background-position: center;
}

.course-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-title {
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.course-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-top: 2px;
  padding-top: 2px;
  border: 0;
}

.price {
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
}

.home-price {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.course-card-bottom .link-action {
  align-self: center;
  min-height: 26px;
  color: #073b66;
  font-size: 16px;
  line-height: 1;
}

.meta-sep {
  display: inline-block;
  margin: 0 6px;
  color: #9aaaba;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 30px 34px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 59, 102, 0.08);
}

.teacher-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 900;
}

.teacher-card p {
  color: #536b85;
  font-size: 15px;
  line-height: 1.65;
}

.policy-list {
  padding: 16px 22px 22px;
}

.policy-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid #e4edf6;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.policy-item:last-child {
  border-bottom: 0;
}

.policy-cover {
  width: 150px;
  height: 76px;
  display: grid;
  place-items: center;
  align-self: start;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background:
    radial-gradient(circle at 24% 18%, rgba(101, 213, 255, 0.28), transparent 32%),
    linear-gradient(145deg, #0b5f9f 0%, #0a3559 56%, #061d31 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px rgba(7, 59, 102, 0.16);
}

.policy-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.policy-copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #073b66;
  line-height: 1.18;
  font-size: 22px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.policy-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #5a7390;
}

.policy-category {
  font-size: 13px;
  color: #7b8ca3;
}

.policy-views {
  margin-left: auto;
  white-space: nowrap;
}

.policy-item:hover {
  background: #fbfdff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.home-selection-modal {
  padding: 0;
  overflow: hidden;
}

.home-selection-modal .modal-head {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #e4edf6;
}

.home-selection-modal .modal-head h3 {
  margin: 0;
  color: #073b66;
  font-size: 22px;
}

.select-modal-content {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 18px 22px 0;
}

.select-modal-head {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f5f9fd;
  color: #41576e;
  line-height: 1.8;
}

.package-select-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-select-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

.package-select-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-select-card {
  display: grid;
  gap: 14px;
  min-height: 480px;
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 59, 102, 0.08);
}

.package-select-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
  color: #073b66;
  font-size: 20px;
  font-weight: 800;
}

.package-section-total {
  color: #b42318;
}

.package-group-grid,
.package-major-grid {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.main-group-toggle,
.course-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dbe7f2;
  border-radius: 14px;
  background: #f9fbfd;
  color: #18364b;
}

.main-group-toggle strong,
.course-check strong {
  color: #b42318;
  white-space: nowrap;
}

.course-category-item {
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.package-major-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: #f7fafc;
  color: #073b66;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.package-major-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #7b8ca3;
  border-bottom: 2px solid #7b8ca3;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.course-category-item.open .package-major-arrow {
  transform: rotate(225deg);
}

.package-major-body {
  display: none;
  padding: 0 16px 16px;
}

.course-category-item.open .package-major-body {
  display: block;
}

.course-check-group {
  display: grid;
  gap: 10px;
}

.optional-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.optional-course-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.optional-course-head {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f8fc;
  color: #073b66;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.course-check-empty {
  padding: 16px;
  color: #7b8ca3;
  text-align: center;
}

.select-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid #e4edf6;
  background: #fff;
}

.select-modal-footer .btn {
  min-height: 42px;
  line-height: 1;
}

.purchase-confirm-btn {
  gap: 8px;
  padding-left: 18px;
  padding-right: 20px;
}

.purchase-confirm-btn > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.purchase-confirm-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.select-total {
  margin-right: auto;
  color: #073b66;
  font-size: 22px;
}

.select-total span {
  margin-left: 6px;
  color: #b42318;
}

@media (max-width: 960px) {
  .hero-inner {
    width: min(1280px, calc(100vw - 28px));
  }

  .package-top-tabs,
  .major-grid,
  .teacher-grid,
  .home-course-grid,
  .package-select-grid {
    grid-template-columns: 1fr;
  }

  .home-block-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-item {
    grid-template-columns: 1fr;
  }

  .policy-cover {
    width: 100%;
  }

  .select-modal-content {
    max-height: calc(100vh - 260px);
  }

  .optional-course-grid {
    grid-template-columns: 1fr;
  }

  .select-modal-footer {
    flex-wrap: wrap;
  }

  .select-total {
    width: 100%;
  }
}

