body.course-page {
  background: #ffffff;
}

.course-hero {
  background-color: #f8fafc;
  background-image: url("../img/backgraund/course.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

.course-hero::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.course-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 660px;
  min-height: 320px;
  position: relative;
  z-index: 1;
}

.course-hero h1 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.12;
}

.course-hero h1 span {
  color: var(--gold);
}

.course-hero p {
  color: #4b5563;
  font-size: 20px;
  line-height: 32.5px;
  max-width: 640px;
}

.course-programs {
  background: #ffffff;
}

.course-programs-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.course-programs-head h2 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.course-programs-head p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.55;
  margin-top: 10px;
}

.course-programs-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-plan-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease;
}

.course-plan-card:hover {
  border-color: var(--gold);
}

.course-plan-card:active {
  transform: scale(0.995);
}

.course-plan-image {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.course-plan-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.course-plan-image--people img {
  object-position: center 38%;
}

.course-plan-image--vehicle {
  background: linear-gradient(135deg, #eef2f6 0%, #dfe6ed 100%);
}

.course-plan-image--vehicle img {
  object-fit: cover;
}

.course-plan-image--individual img {
  object-position: 72% 44%;
}

.course-plan-card:hover .course-plan-image img {
  transform: scale(1.05);
}

.course-plan-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.course-plan-content h3 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 32px;
}

.course-plan-content p {
  color: #6b7280;
  font-size: 14px;
  line-height: 21px;
  margin-top: 8px;
}

.course-plan-content ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
}

.course-plan-content li {
  align-items: flex-start;
  color: #374151;
  display: flex;
  font-size: 14px;
  gap: 9px;
  line-height: 19px;
}

.course-plan-content li img {
  flex-shrink: 0;
  margin-top: 2px;
}

.course-plan-footer {
  border-top: 1px solid #e5e7eb;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.course-plan-footer span {
  color: #9ca3af;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.course-plan-footer strong {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
}

.course-card-btn {
  align-items: center;
  background: var(--gold);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
  padding: 0 18px;
  width: 100%;
}

.course-guide {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.course-guide-heading {
  margin: 0 auto 32px;
  max-width: 820px;
  text-align: center;
}

.course-guide-heading > span {
  color: #987716;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.course-guide-heading h2 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 8px;
}

.course-guide-heading p,
.course-guide-grid p {
  color: #596579;
  font-size: 15px;
  line-height: 1.7;
}

.course-guide-heading p { margin-top: 12px; }

.course-guide-grid {
  border-bottom: 1px solid #dfe5ec;
  border-top: 1px solid #dfe5ec;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-guide-grid article {
  padding: 24px 28px 26px;
}

.course-guide-grid article + article {
  border-left: 1px solid #dfe5ec;
}

.course-guide-grid article > strong {
  color: #a58320;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.course-guide-grid h3 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  margin: 8px 0;
}

.course-guide-grid a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.course-card-btn:hover {
  background: var(--navy);
  box-shadow: 0 14px 24px -14px rgba(11, 31, 58, 0.75);
  transform: translateY(-1px);
}

.course-card-btn:active {
  transform: translateY(1px) scale(0.99);
}

.course-card-btn-dark {
  background: var(--navy);
}

.course-card-btn-dark:hover {
  background: var(--gold);
  box-shadow: 0 14px 24px -14px rgba(212, 175, 55, 0.8);
}

.course-details {
  background: #f8fafc;
}

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

.program-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 484px;
  padding: 40px;
  text-align: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.program-card:hover {
  box-shadow: 0 24px 45px -20px rgba(11, 31, 58, 0.28);
  transform: translateY(-8px);
}

.program-icon {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  display: inline-flex;
  height: 80px;
  justify-content: center;
  margin-bottom: 32px;
  width: 80px;
}

.program-icon-dark {
  background: var(--navy);
}

.program-card h3 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.program-card p {
  color: #6b7280;
  font-size: 16px;
  line-height: 26px;
  margin-top: 16px;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
  padding-top: 32px;
}

.program-tags span {
  background: #f8fafc;
  border: 1px solid #f3f4f6;
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 8px 16px;
}

.course-comparison {
  background: #ffffff;
}

.comparison-wrap {
  border: 1px solid #f3f4f6;
  border-radius: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gold) #f1f5f9;
  scrollbar-width: thin;
}

.comparison-table {
  border-collapse: collapse;
  width: 100%;
}

.comparison-table thead {
  background: var(--navy);
}

.comparison-table th,
.comparison-table td {
  padding: 32px;
}

.comparison-table thead th {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody tr {
  transition: background-color 0.25s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.07);
}

.comparison-table tbody th {
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid #f3f4f6;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.comparison-table tbody td {
  border-top: 1px solid #f3f4f6;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.comparison-table td img {
  display: inline-block;
  vertical-align: middle;
}

.comparison-table .muted {
  color: #d1d5db;
  font-weight: 400;
}

.comparison-table .price {
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.course-consult {
  background: #f8fafc;
}

.consult-panel {
  background: #ffffff;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1fr) 450px;
  overflow: hidden;
  padding: 64px;
  position: relative;
}

.consult-panel::before {
  background: var(--gold);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.consult-content h2 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 48px;
}

.consult-content p {
  color: #6b7280;
  font-size: 20px;
  line-height: 32.5px;
  margin-top: 24px;
}

.advisor-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
}

.advisor-card img {
  border-radius: 999px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.advisor-card strong {
  color: var(--navy);
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.advisor-card span {
  color: #6b7280;
  display: block;
  font-size: 14px;
  line-height: 20px;
}

.advisor-status {
  align-items: center;
  color: #22c55e;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.advisor-status i {
  animation: pulse 1.7s infinite;
  background: #22c55e;
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.course-lead-form {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  height: fit-content;
  padding: 40px 40px 56px;
}

.course-lead-form h3 {
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 8px;
}

.course-lead-form label {
  display: block;
}

.course-lead-form label span {
  color: #9ca3af;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.course-lead-form input {
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--navy);
  font-size: 16px;
  height: 56px;
  line-height: 24px;
  outline: 0;
  padding: 0 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.course-lead-form input:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.course-lead-form input::placeholder {
  color: #9ca3af;
}

.course-lead-form .btn-form {
  margin-top: 4px;
}

@media (max-width: 1400px) {
  .course-programs-grid,
  .program-details-grid {
    gap: 24px;
  }

  .comparison-table {
    min-width: 980px;
  }

  .comparison-table .price {
    font-size: 20px;
  }
}

@media (max-width: 1120px) {
  .course-programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-hero h1,
  .consult-content h2 {
    font-size: 48px;
    line-height: 1.08;
  }

  .course-hero p,
  .consult-content p {
    font-size: 18px;
    line-height: 29px;
  }

  .course-plan-footer strong {
    font-size: 24px;
  }

  .program-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consult-panel {
    gap: 40px;
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .course-lead-form {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .program-details-grid {
    grid-template-columns: 1fr;
  }

  .course-guide-grid article { padding: 22px; }

  .course-hero h1,
  .consult-content h2 {
    font-size: 40px;
    line-height: 1.12;
  }

  .course-hero p,
  .consult-content p {
    font-size: 17px;
    line-height: 28px;
  }

  .course-plan-footer strong,
  .comparison-table .price {
    font-size: 20px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 24px;
  }

  .advisor-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .advisor-status {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .course-hero {
    background-position: 68% center;
    background-size: auto 100%;
  }

  .course-hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92) 68%, rgba(255, 255, 255, 0.86));
  }

  .course-hero h1,
  .consult-content h2 {
    font-size: 34px;
    line-height: 1.16;
  }

  .course-plan-card,
  .program-card,
  .consult-panel,
  .course-lead-form {
    border-radius: 24px;
    padding: 24px;
  }

  .course-programs-grid,
  .course-guide-grid { grid-template-columns: 1fr; }

  .course-plan-card {
    border-radius: 12px;
    padding: 0;
  }
  .course-guide-heading h2 { font-size: 28px; }
  .course-guide-grid article { padding: 20px 0; }
  .course-guide-grid article + article {
    border-left: 0;
    border-top: 1px solid #dfe5ec;
  }

  .course-programs-head h2 {
    font-size: 28px;
  }

  .program-icon {
    margin-bottom: 24px;
  }

  .program-tags {
    justify-content: flex-start;
  }

  .comparison-table {
    min-width: 780px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 20px;
  }
}
