/* IPM landing page — page-specific overrides (ipm.html only) */

#book-counselling {
  scroll-margin-top: 88px;
}

#top.ipm-hero-section .container {
  max-width: 1140px;
}

#top .ipm-hero-row {
  --bs-gutter-x: 0.75rem;
  row-gap: 1rem;
  align-items: flex-start;
}

#top .ipm-hero-copy-col {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
}

@media (min-width: 992px) {
  #top .ipm-hero-copy-col {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding-right: 0.5rem;
  }

  #top .hero-form-col {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-left: 0.5rem;
  }
}

.ipm-hero-promo-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

.ipm-hero-promo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  object-fit: contain;
  vertical-align: top;
}

.ipm-hero-batch-note {
  width: 100%;
  max-width: 100%;
  margin: 0.625rem 0 0;
  padding: 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.hero-form-col .premium-card {
  padding: 15px;
}

.hero-form-col #book-counselling:has(.ipm-form-title) {
  padding: 22px 20px 18px;
  border-radius: 18px;
}

.hero-form-col .ipm-form-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 0.45rem;
}

.hero-form-col .ipm-form-lead {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.hero-form-col .ipm-prep-kit {
  background: #eef2ff;
  border: 1px solid #e4e9ff;
  border-left: 1px solid #e4e9ff;
  border-radius: 14px;
  padding: 16px 16px 12px;
}

.hero-form-col .ipm-prep-kit h5 {
  color: #3b4fd8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-form-col .ipm-prep-kit .list-check li {
  margin-bottom: 12px;
  padding-left: 28px;
}

.hero-form-col .ipm-prep-kit .list-check li::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4e8ff;
  color: #4f46e5;
  font-size: 0.62rem;
  line-height: 18px;
  text-align: center;
  top: 1px;
}

.hero-form-col .ipm-prep-kit .list-check li strong {
  display: block;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-form-col .ipm-prep-kit .list-check li span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.hero-form-col .ipm-form-start {
  margin: 0.15rem 0 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-form-col .ipm-form-subhead {
  margin: 0 0 0.25rem;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-form-col .ipm-form-help {
  margin: 0 0 0.85rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-form-col .ipm-form-submit {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

.hero-form-col .ipm-form-note {
  margin: 0.65rem 0 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.75rem;
}

/* Our Recent Results — show full image without cropping */
#ipmResultsCarousel .carousel-item,
#iimbResultsCarousel .carousel-item {
  text-align: center;
}

#ipmResultsCarousel .ipm-results-banner,
#iimbResultsCarousel .ipm-results-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

#enroll .pricing-card .course-tag {
  top: 8px;
}

#enroll .pricing-card .ipm-course-numbered {
  margin: 0;
  padding: 0;
}

#enroll .pricing-card .ipm-course-numbered-item {
  margin-bottom: 0.75rem;
}

#enroll .pricing-card .ipm-course-numbered-item:last-child {
  margin-bottom: 0;
}

#enroll .pricing-card .ipm-course-numbered-title {
  margin: 0 0 0.35rem;
  font-weight: 400;
  font-size: inherit;
  color: #374151;
  line-height: 1.5;
}

#enroll .pricing-card .ipm-course-numbered-item .ipm-course-detail-lines {
  margin-top: 0.15rem;
  padding-left: 0.35rem;
}

#enroll .pricing-card .ipm-course-detail-block {
  margin-bottom: 0.85rem;
}

#enroll .pricing-card .ipm-course-detail-heading {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: inherit;
  color: #1f2937;
  line-height: 1.4;
}

#enroll .pricing-card .ipm-course-detail-lines {
  margin: 0;
  padding: 0;
}

#enroll .pricing-card .list-check li .ipm-course-detail-lines {
  margin-top: 0.35rem;
}

#enroll .pricing-card .ipm-course-detail-line {
  display: block;
  margin: 0 0 0.4rem;
  padding-left: 1.15rem;
  text-indent: -1.15rem;
  font-size: inherit;
  line-height: 1.5;
  color: #374151;
}

#enroll .pricing-card .ipm-course-detail-line::before {
  content: "• ";
  color: #374151;
}

#enroll .pricing-card .ipm-course-detail-line:last-child {
  margin-bottom: 0;
}

#enroll .pricing-card .mt-auto > p.text-decoration-line-through {
  font-size: 1rem;
  color: #e07070 !important;
  text-decoration-color: #e07070;
}

#enroll .pricing-card .ipm-price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#enroll .pricing-card .ipm-gst-text {
  color: #16a34a;
  font-weight: 500;
}

#enroll .pricing-card .ipm-offer-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #86efac;
  line-height: 1.2;
}

.ipm-demo-videos .container,
.ipm-demo-videos .row,
.ipm-demo-videos [class*="col-"] {
  overflow: visible;
}

.ipm-demo-videos .ipm-demo-video-wrap {
  padding: 10px;
  overflow: visible;
}

.ipm-demo-videos .ipm-demo-video-wrap .ratio.ratio-16x9 {
  border: 4px solid #ffffff;
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.28),
    0 20px 48px rgba(15, 23, 42, 0.22),
    0 32px 64px rgba(79, 70, 229, 0.14);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

/* Live vs Flexi vs Classroom comparison table */
.ipm-compare-section .ipm-compare-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d6dce7;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ipm-compare-section .ipm-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #5f60ee #e8ecf6;
  max-width: 100%;
}

.ipm-compare-section .ipm-table-scroll::-webkit-scrollbar {
  height: 8px;
}

.ipm-compare-section .ipm-table-scroll::-webkit-scrollbar-thumb {
  background: #5f60ee;
  border-radius: 999px;
}

.ipm-compare-section .ipm-table-scroll::-webkit-scrollbar-track {
  background: #e8ecf6;
  border-radius: 999px;
}

.ipm-compare-section .ipm-comp-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  margin: 0;
  width: 100%;
}

.ipm-compare-section .ipm-comp-table thead th {
  background: #5f60ee;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.85rem 0.8rem;
}

.ipm-compare-section .ipm-comp-table tbody td {
  border: 1px solid #d6dce7;
  padding: 0.7rem 0.8rem;
  color: #1f2937;
  vertical-align: middle;
}

.ipm-compare-section .ipm-comp-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.ipm-compare-section .ipm-comp-table tbody tr:nth-child(even) td {
  background: #f0f4ff;
}

.ipm-compare-section .ipm-comp-table tbody tr:hover td {
  background: #e6ecff;
}

.ipm-compare-section .ipm-comp-table tbody td:first-child {
  font-weight: 600;
  color: #1e293b;
  background: #f8faff;
}

.ipm-compare-section .ipm-comp-table tbody tr:nth-child(even) td:first-child {
  background: #e8eeff;
}

.ipm-compare-section .ipm-comp-table tbody tr:hover td:first-child {
  background: #dde5ff;
}

@media (max-width: 767.98px) {
  .navbar-custom .container > .btn-primary-custom {
    font-size: 0.85em;
    padding: 9px 19px;
    border-radius: 13px;
  }

  .section-heading.text-center.mb-5 {
    margin-bottom: 10px !important;
  }

  .hero-form-col .premium-card > h3 {
    white-space: nowrap;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-form-col .premium-card > h3.ipm-form-title {
    white-space: normal;
    font-size: 1.25rem;
    font-weight: 800;
  }

  .hero-form-col .ipm-form-lead,
  .hero-form-col .ipm-form-help {
    font-size: 12px;
  }

  .hero-form-col .ipm-prep-kit .list-check li strong {
    font-size: 12px;
  }

  .hero-form-col .ipm-prep-kit .list-check li span {
    font-size: 11px;
  }

  .hero-form-col .premium-card > p.text-muted {
    font-size: 12px;
  }

  .hero-form-col .premium-card .ipm-freebies {
    padding: 15px;
  }

  .hero-form-col .premium-card .ipm-freebies h5 {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .hero-form-col .premium-card .ipm-freebies .list-check li {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 4px;
    padding-left: 22px;
  }

  .hero-form-col .premium-card .ipm-freebies .list-check li::before {
    font-size: 0.7rem;
    top: 1px;
  }

  .hero-form-col #frmIpm .ipm-form-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .hero-form-col #frmIpm .form-label {
    font-size: 11px;
    line-height: 1.25;
    min-height: 1.5em;
    margin-bottom: 0 !important;
    color: rgba(17, 24, 39, 0.7);
  }

  .hero-form-col #frmIpm .form-control,
  .hero-form-col #frmIpm .form-select {
    width: 100%;
    font-size: 12px;
    padding: 0.375rem 0.5rem;
    min-height: 38px;
  }

  .hero-form-col #frmIpm #ipm_statecity {
    width: 100%;
  }

  .hero-form-col #frmIpm #ipm_statecity .form-select {
    width: 100%;
  }

  .hero-form-col #frmIpm .invalid-feedback {
    font-size: 11px;
  }

  #top .d-flex.gap-3:has(.hero-btn-main) {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  #top .hero-btn-main,
  #top .hero-btn-alt {
    display: inline-block;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    font-size: 11px;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
  }

  section.trust-strip-wrap .trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px;
    justify-content: center;
  }

  section.trust-strip-wrap .trust-point {
    width: auto;
    border-left: 0;
    border-top: 0;
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    word-break: break-word;
  }

  section.trust-strip-wrap .trust-point:first-child {
    grid-column: 1 / -1;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    min-height: auto;
    padding: 0 0 4px;
    justify-content: center;
  }

  .results-section .row.g-4.mb-4 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .results-section .row.g-4.mb-4 .premium-card {
    padding: 14px 10px;
    text-align: center;
    border: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .results-section .row.g-4.mb-4 .metric-value {
    font-size: 1.45rem;
    margin-bottom: 6px;
    line-height: 1.1;
  }

  .results-section .row.g-4.mb-4 .premium-card p {
    font-size: 11px;
    line-height: 1.35;
  }

  #enroll .pricing-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  }

  #enroll .pricing-card .pricing-value {
    font-size: 1.6rem;
  }

  #enroll .pricing-card .list-check li {
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  #enroll .pricing-card .list-check li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .ipm-why-time .row.g-4 > [class*="col-"] {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .ipm-why-time .row.g-4 > [class*="col-"] .premium-card {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .ipm-why-time .premium-card h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .ipm-why-time .premium-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .ipm-compare-section .ipm-table-scroll {
    padding-bottom: 2px;
  }

  .ipm-compare-section .ipm-comp-table thead th,
  .ipm-compare-section .ipm-comp-table tbody td {
    font-size: 0.82rem;
    padding: 0.6rem 0.65rem;
  }

  .ipm-compare-section .ipm-comp-table th:first-child,
  .ipm-compare-section .ipm-comp-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 118px;
    width: 118px;
    background-clip: padding-box;
    border-right: 2px solid #b8c4dc !important;
    box-shadow: none;
  }

  .ipm-compare-section .ipm-comp-table thead th:first-child {
    z-index: 5;
    background: #5f60ee;
    border-right-color: rgba(255, 255, 255, 0.35) !important;
  }

  .ipm-compare-section .ipm-comp-table tbody tr:nth-child(odd) td:first-child {
    background: #f8faff;
  }

  .ipm-compare-section .ipm-comp-table tbody tr:nth-child(even) td:first-child {
    background: #e8eeff;
  }

  .ipm-compare-section .ipm-comp-table tbody tr:hover td:first-child {
    background: #dde5ff;
  }

  .ipm-compare-section .ipm-comp-table td:not(:first-child) {
    text-align: center;
    min-width: 108px;
  }

  #faq .faq-wrap .accordion-button {
    font-size: 13px;
    padding: 0.75rem 0.9rem;
    line-height: 1.35;
  }

  #faq .faq-wrap .accordion-body {
    font-size: 12px;
    line-height: 1.45;
    padding: 0.75rem 0.9rem;
  }
}

/* Desktop & laptop */
@media (min-width: 768px) {
  section.section-padding:not(#top) {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  section.trust-strip-wrap {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  section#enroll.bg-light-custom {
    background-color: rgba(224, 229, 244, 1) !important;
  }

  .hero-form-col #frmIpm .ipm-form-grid > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .hero-form-col #frmIpm .form-label {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(17, 24, 39, 0.7);
    margin-bottom: 0.25rem;
  }

  .hero-form-col .premium-card .ipm-freebies h5 {
    font-size: 15px;
    line-height: 1.2;
  }

  .hero-form-col .premium-card .ipm-freebies .list-check li {
    font-size: 13px;
    line-height: 1.4;
  }
}
