/* =========================================================
   GLOBAL
========================================================= */

.calc-page {
  width: 100%;
  overflow: hidden;
  background: var(--white);
  color: var(--text3);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.calc-page *,
.calc-page *::before,
.calc-page *::after {
  box-sizing: border-box;
}

.calc-page img {
  max-width: 100%;
  display: block;
}

.calc-page a {
  text-decoration: none;
}

/* =========================================================
   HERO
========================================================= */

.calc-hero {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
  background-image: url(../uploads/Computer-bg.png);
  background-position: center right;
}

.calc-hero-content {
  position: relative;
  z-index: 5;
  min-height: 420px;
  padding: 100px 35px 45px 45px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.calc-hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.calc-hero-content h2 {
  margin: 10px 0 12px;
  color: var(--secondary);
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.15;
  font-weight: 800;
}

.calc-hero-content p {
  max-width: 620px;
  margin: 0 0 25px;
  color: rgba(113, 25, 40, 0.88);
  font-size: 15px;
  line-height: 1.65;
}

/* HERO FEATURES */

.calc-hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-feature {
  min-height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border-right: 1px solid rgba(113, 25, 40, 0.25);
}

.hero-feature:last-child {
  border-right: 0;
}

.hero-feature i {
  color: var(--primary);
  font-size: 24px;
  
}

.hero-feature span {
  color: var(--primary);
  font-size: 11px;
  line-height: 1.4;
}

/* HERO BUTTON */

.calc-btn-primary {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 23px;
  color: var(--primary-dark);
  background: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  transition: var(--transition);
}

.calc-btn-primary:hover {
  color: var(--primary-dark);
  background: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* HERO IMAGE */

.calc-hero-image {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.calc-hero-image>img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.calc-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--primary-dark) 0%,
      rgba(84, 16, 28, 0.45) 15%,
      transparent 45%);
  z-index: 2;
}

/* ACCENT CURVE */

.calc-accent-shape {
  position: absolute;
  z-index: 4;
  left: -25px;
  top: -20px;
  width: 100px;
  height: 500px;
  border-right: 8px solid var(--secondary);
  border-radius: 0 60% 60% 0;
  transform: rotate(10deg);
}

/* =========================================================
   INTRO
========================================================= */

.calc-intro-section {
  padding: 15px 0;
  background: var(--white);
}

.calc-intro-box {
  min-height: 90px;

  padding: 18px 25px;

  display: flex;

  align-items: center;

  gap: 25px;

  color: var(--white);

  background: linear-gradient(100deg, var(--primary-dark), var(--primary));

  border-radius: 10px;

  box-shadow: var(--shadow-md);
}

.calc-intro-text {
  flex: 1;

  display: flex;

  align-items: center;

  gap: 18px;
}

.calc-gov-badge {
  min-width: 70px;
  height: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 2px solid var(--secondary);

  border-radius: 50%;

  color: var(--secondary);

  font-size: 32px;
}

.calc-intro-text p {
  margin: 0;

  font-size: 12px;

  line-height: 1.65;

  color: rgba(255, 255, 255, 0.9);
}

.calc-benefits {
  flex: 1;

  display: grid;

  grid-template-columns: repeat(4, 1fr);
}

.calc-benefit {
  min-height: 65px;

  padding: 0 12px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.calc-benefit i {
  color: var(--secondary);

  font-size: 24px;

  margin-bottom: 2px;
}

.calc-benefit strong {
  color: var(--secondary);

  font-size: 14px;
}

.calc-benefit span {
  font-size: 10px;
}

/* =========================================================
   COMMON SECTION
========================================================= */

.calc-section {
  padding: 20px 0;

  background: var(--white);
}

.calc-light-section {
  background: linear-gradient(180deg, #fffaf5, #ffffff);
}

/* =========================================================
   SECTION TITLE
========================================================= */

.calc-section-title {
  margin-bottom: 17px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 15px;
}

.calc-section-title span {
  width: 28px;
  height: 2px;

  background: var(--secondary);
}

.calc-section-title h2 {
  margin: 0;

  color: var(--primary-dark);

  font-size: 20px;

  font-weight: 900;

  text-align: center;
}

/* =========================================================
   COURSE CARDS
========================================================= */

.calc-course-card {
  height: 100%;

  min-height: 290px;

  padding: 18px 14px 0;

  display: flex;

  flex-direction: column;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 10px;

  box-shadow: var(--shadow-sm);

  overflow: hidden;

  transition: var(--transition);
}

.calc-course-card:hover {
  transform: translateY(-7px);

  box-shadow: var(--shadow-md);
}

.calc-course-heading {
  display: flex;

  align-items: center;

  gap: 12px;

  min-height: 55px;
}

.calc-course-icon {
  min-width: 43px;
  width: 43px;
  height: 43px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 7px;

  color: var(--primary);

  background: rgba(113, 25, 40, 0.08);

  font-size: 23px;
}

.calc-course-heading h3 {
  margin: 0;

  font-size: 14px;

  font-weight: 900;
}

.calc-course-heading h4 {
  margin: 2px 0 0;

  font-size: 9px;

  font-weight: 700;

  line-height: 1.35;
}

.calc-duration {
  margin: 13px 0 9px;

  font-size: 10px;

  font-weight: 700;

  color: var(--primary);
}

.calc-course-card ul {
  margin: 0;

  padding-left: 17px;

  flex: 1;
}

.calc-course-card li {
  margin-bottom: 6px;

  color: var(--text3);

  font-size: 10px;

  line-height: 1.3;
}

.calc-course-card li::marker {
  color: var(--primary);
}

.course-btn {
  margin: 13px 0 0;

  padding: 10px 10px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: var(--white);

  background: var(--primary);

  font-size: 11px;

  font-weight: 800;

  transition: var(--transition);
}

.course-btn:hover {
  color: var(--white);

  background: var(--primary-dark);
}

/* CARD VARIATIONS */

.green-card .calc-course-icon {
  color: #198754;
  background: #eaf8ef;
}

.green-card .course-btn {
  background: #711928;
}

.blue-card .calc-course-icon {
  color: #2463c8;
  background: #edf4ff;
}

.blue-card .course-btn {
  background: #711928;
}

.orange-card .calc-course-icon {
  color: #ef6c00;
  background: #fff1e6;
}

.orange-card .course-btn {
  background: #711928;
}

.purple-card .calc-course-icon {
  color: #7b3fb5;
  background: #f5edfb;
}

.purple-card .course-btn {
  background: #711928;
}

.dark-blue-card .calc-course-icon {
  color: #123b72;
  background: #edf3fa;
}

.dark-blue-card .course-btn {
  background: #711928;
}

.pink-card .calc-course-icon {
  color: #d72557;
  background: #fff0f4;
}

.pink-card .course-btn {
  background: #711928;
}

/* =========================================================
   INFO BOXES
========================================================= */

.calc-info-box {
  height: 100%;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--border3);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.calc-mini-title {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.calc-check-list {
  list-style: none;

  padding: 0;
  margin: 0;
}

.calc-check-list li {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-bottom: 12px;

  font-size: 12px;

  line-height: 1.4;
}

.calc-check-list i {
  flex-shrink: 0;

  color: var(--primary);

  font-size: 14px;
}

/* =========================================================
   CERTIFICATE
========================================================= */

.calc-certificate-box {
  height: 100%;

  min-height: 270px;

  padding: 15px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--white);

  border: 1px solid var(--border3);

  border-radius: 12px;

  box-shadow: var(--shadow-sm);
}

.calc-certificate-box img {
  width: 100%;
  height: 100%;

  max-height: 270px;

  object-fit: contain;
}

/* =========================================================
   SCHEMES
========================================================= */

.scheme-card {
  height: 100%;

  min-height: 205px;

  padding: 18px 12px;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 10px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.scheme-card:hover {
  transform: translateY(-6px);

  border-color: var(--secondary);

  box-shadow: var(--shadow-md);
}

.scheme-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);

  background: rgba(113, 25, 40, 0.07);

  border-radius: 50%;

  font-size: 24px;
}

.scheme-card h3 {
  margin: 0 0 4px;

  color: var(--primary);

  font-size: 15px;

  font-weight: 900;
}

.scheme-card p {
  margin: 0 0 8px;

  color: var(--text3);

  font-size: 10px;

  font-weight: 700;

  line-height: 1.4;
}

.scheme-card small {
  flex: 1;

  display: block;

  color: var(--text2);

  font-size: 9px;

  line-height: 1.4;
}

/* =========================================================
   STATS
========================================================= */

.calc-stats-section {
  padding: 17px 0;
}

.calc-stats-row {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  overflow: hidden;

  border-radius: 10px;

  background: linear-gradient(100deg, var(--primary-dark), var(--primary));

  box-shadow: var(--shadow-md);
}

.calc-stat {
  min-height: 80px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-stat:last-child {
  border-right: 0;
}

.calc-stat i {
  margin-bottom: 3px;

  color: var(--secondary);

  font-size: 22px;
}

.calc-stat strong {
  color: var(--white);

  font-size: 22px;

  line-height: 1;
}

.calc-stat span {
  margin-top: 4px;

  color: rgba(255, 255, 255, 0.8);

  font-size: 9px;
}

/* =========================================================
   CTA
========================================================= */

.calc-cta-section {
  padding: 10px 0 25px;
}

.calc-cta {
  position: relative;

  min-height: 125px;

  padding: 25px 35px;

  display: flex;

  align-items: center;

  gap: 30px;

  overflow: hidden;

  color: var(--primary-dark);

  background: linear-gradient(105deg, #fff1d9, var(--secondary-light));

  border-radius: 12px;
}

.calc-cta-content {
  position: relative;

  z-index: 2;

  flex: 1;
}

.calc-cta-content h2 {
  margin: 0;

  color: var(--primary-dark);

  font-size: 24px;

  font-weight: 900;
}

.calc-cta-content h2 span {
  color: var(--primary);
}

.calc-cta-content h3 {
  margin: 2px 0 3px;

  color: var(--primary-dark);

  font-size: 17px;

  font-weight: 800;
}

.calc-cta-content p {
  margin: 0;

  color: var(--text2);

  font-size: 11px;
}

.calc-cta-actions {
  position: relative;

  z-index: 3;

  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;
}

.calc-btn-secondary {
  padding: 12px 18px;

  color: var(--white);

  background: var(--primary);

  border: 2px solid var(--primary);

  border-radius: 5px;

  font-size: 11px;

  font-weight: 800;
}

.calc-btn-secondary:hover {
  color: var(--white);

  background: var(--primary-dark);

  border-color: var(--primary-dark);
}

.calc-btn-outline {
  padding: 12px 18px;

  color: var(--primary-dark);

  background: transparent;

  border: 2px solid var(--primary-dark);

  border-radius: 5px;

  font-size: 11px;

  font-weight: 800;
}

.calc-btn-outline:hover {
  color: var(--white);

  background: var(--primary-dark);
}

.calc-cta-image {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 230px;

  z-index: 1;

  opacity: 0.95;
}

.calc-cta-image img {
  width: 100%;
}

/* =========================================================
   LARGE SCREENS
========================================================= */

@media (min-width: 1400px) {
  .calc-hero-content {
    padding-left: 65px;
  }

  .calc-hero-content h1 {
    font-size: 65px;
  }

  .calc-course-card {
    min-height: 305px;
  }
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1199px) {
  .calc-hero-content {
    padding: 40px 25px;
  }

  .calc-hero-content h1 {
    font-size: 45px;
  }

  .calc-hero-content h2 {
    font-size: 22px;
  }

  .calc-hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-feature {
    margin-bottom: 10px;

    border-right: 0;
  }

  .calc-intro-box {
    flex-direction: column;

    align-items: stretch;
  }

  .calc-intro-text {
    width: 100%;
  }

  .calc-benefits {
    width: 100%;
  }

  .calc-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .calc-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .calc-cta {
    flex-direction: column;

    align-items: flex-start;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .calc-hero {

    background-position: center ;
  }

  .calc-hero-content {
    min-height: auto;

    padding: 40px 22px;
  }

  .calc-hero-content h1 {
    font-size: 38px;
  }

  .calc-hero-content h2 {
    font-size: 21px;
  }

  .calc-hero-content p {
    font-size: 13px;
  }

  .calc-hero-features {
    grid-template-columns: repeat(2, 1fr);

    margin-bottom: 20px;
  }

  .hero-feature {
    border: 0;
  }

  .calc-hero-image {
    min-height: 350px;
  }

  .calc-hero-image>img {
    min-height: 350px;
  }

  .calc-recognition-card {
    right: 15px;

    top: 20px;

    width: 145px;
  }

  .calc-accent-shape {
    display: none;
  }

  .calc-intro-box {
    padding: 20px;
  }

  .calc-intro-text {
    align-items: flex-start;

    flex-direction: column;
  }

  .calc-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-benefit {
    border: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    padding: 10px 5px;
  }

  .calc-section {
    padding: 25px 0;
  }

  .calc-section-title h2 {
    font-size: 17px;
  }

  .calc-section-title span {
    width: 20px;
  }

  .calc-course-card {
    min-height: 280px;
  }

  .calc-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-stat {
    min-height: 90px;
  }

  .calc-stat:nth-child(2n) {
    border-right: 0;
  }

  .calc-cta {
    padding: 25px 20px;
  }

  .calc-cta-content h2 {
    font-size: 21px;
  }

  .calc-cta-content h3 {
    font-size: 14px;
  }

  .calc-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .calc-btn-secondary,
  .calc-btn-outline {
    width: 100%;
    text-align: center;
  }

  .calc-cta-image {
    display: none;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .calc-hero-content h1 {
    font-size: 33px;
  }

  .calc-eyebrow {
    font-size: 14px;
  }

  .calc-hero-features {
    gap: 5px;
  }

  .hero-feature i {
    font-size: 20px;
  }

  .hero-feature span {
    font-size: 9px;
  }

  .calc-recognition-card {
    transform: scale(0.9);
    transform-origin: top right;
  }

  .calc-intro-text p {
    font-size: 11px;
  }

  .calc-benefit strong {
    font-size: 12px;
  }

  .calc-benefit span {
    font-size: 8px;
  }

  .calc-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-stat strong {
    font-size: 18px;
  }

  .calc-stat span {
    font-size: 8px;
  }
}