/* ============================================================
   HERO REDESIGN - Design 1 & Design 2
   ============================================================ */

/* ============================================================
   DESIGN 1: Compact Hero + Floating Programs Block
   - Hero is compact (reduced height, no programs inside)
   - Programs float between hero and first content section
   - Contained dark backdrop (not full-width)
   - Robot centered above the programs card
   ============================================================ */

/* --- Compact Hero (standalone, no programs) --- */
.hero-compact {
  min-height: auto !important;
  padding: 50px 0 150px !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
  overflow-x: clip !important;
  background-position: center !important;
}

/* Override mobile ::after overlay z-index */
.hero-compact::after {
  z-index: 0 !important;
}

/* Hide default .img-box from base hero styles */
.hero-compact .img-box {
  display: none;
}

/* --- Floating Programs Block --- */
.d1-programs-float {
  position: relative;
  z-index: 10;
  margin-top: -280px;  /* pull up into hero */
  margin-bottom: 40px; /* push next section down */
}

/* --- Fluid Wrapper (full width, 5% padding) --- */
.d1-programs-float__wrapper {
  width: 100%;
  padding: 0 5%;
}

/* --- Robot (centered above card) --- */
.d1-programs-float__robot {
  max-width: 150px;
  margin: 0 auto -20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.d1-programs-float__robot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  animation: floatUpDown 3s ease-in-out infinite;
}

/* --- Frosted Glass Card --- */
.d1-programs-float__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Header inside card --- */
.d1-programs-float__header {
  margin-bottom: 24px;
}

.d1-programs-float__header h2 {
  color: var(--white);
  font-size: 26px;
  margin-bottom: 0;
  text-align: center;
  font-family: var(--font1);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Programs CSS Grid --- */
.d1-programs-float__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.d1-programs-float__grid-item {
  width: calc((100% - 100px) / 6); /* 6 columns with 20px gaps */
  min-width: 150px;
}

/* --- Program Card (vertical / square) --- */
.program-card-d1 {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.program-card-d1:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* --- Icon Area (hidden) --- */
.program-card-d1__icon {
  display: none;
}

/* --- Card Content --- */
.program-card-d1__content {
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.program-card-d1__type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  font-family: var(--font2);
}

.program-card-d1__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  font-family: var(--font1);
  line-height: 1.3;
}

.program-card-d1__desc {
  flex: 1;
}

.program-card-d1__desc p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide "Learn More" markup from ACF content */
.program-card-d1__desc .text-center,
.program-card-d1__desc p a {
  display: none;
}

/* --- Learn More Link (colored per program) --- */
.program-card-d1__link {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font2);
  text-decoration: none;
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.program-card-d1__link::after {
  content: "\2192";
  font-size: 15px;
  transition: transform 0.3s ease;
}

.program-card-d1:hover .program-card-d1__link::after {
  transform: translateX(4px);
}

.program-card-d1:hover .program-card-d1__link {
  text-decoration: underline;
}


/* ============================================================
   DESIGN 2: Hero with Integrated 2-Row Program Grid
   - Robot positioned absolutely on the right
   - Programs in a wrapped grid (2 rows)
   ============================================================ */

.hero-integrated {
  min-height: auto !important;
  padding: 40px 0 50px !important;
  display: flex !important;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
  overflow-x: clip !important;
}

.hero-integrated__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.hero-integrated::after {
  z-index: 0 !important;
}

.hero-integrated__container {
  position: relative;
  z-index: 2;
  flex: 1;
}

/* --- Hero Top Row --- */
.hero-integrated__top {
  padding-top: 10px;
  padding-bottom: 24px;
}

.hero-integrated__top h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.hero-integrated__top p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}

/* Hide default .img-box from base hero styles */
.hero-integrated .img-box {
  display: none;
}

/* --- Robot (Design 2) - Absolutely positioned on the right --- */
.hero-integrated__robot-wrap {
  position: absolute;
  right: 5%;
  bottom: 30px;
  width: 180px;
  z-index: 3;
  animation: floatUpDown 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-integrated__robot-wrap img {
  width: 100%;
  height: auto;
}

/* --- Programs Grid (2 rows) inside Hero --- */
.hero-integrated__programs {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px 24px 24px;
  margin-top: 10px;
}

.hero-integrated__programs-label {
  margin-bottom: 14px;
}

.hero-integrated__programs-label span {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 2-row grid layout */
.hero-integrated__programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* --- Program Pill (Design 2) --- */
.program-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.program-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--pill-color, var(--bg-secondary));
  transform: translateY(-2px);
  text-decoration: none;
}

.program-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.program-pill__name {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font1);
  flex: 1;
}

.program-pill__type {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.program-pill__arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.program-pill:hover .program-pill__arrow {
  color: var(--pill-color, var(--bg-secondary));
  transform: translateX(3px);
}


/* ============================================================
   RESPONSIVE - Design 1
   ============================================================ */

@media (max-width: 1399px) {
  .d1-programs-float__card {
    padding: 36px 30px 30px;
  }
  .d1-programs-float__grid {
    gap: 16px;
  }
  .d1-programs-float__grid-item {
    width: calc((100% - 32px) / 3);
  }
  .program-card-d1 {
    min-height: 240px;
  }
  .d1-programs-float__robot {
    max-width: 130px;
  }
}

@media (max-width: 1199px) {
  .d1-programs-float__card {
    padding: 32px 24px 26px;
  }
  .d1-programs-float__header h2 {
    font-size: 24px;
  }
  .d1-programs-float__grid {
    gap: 14px;
  }
  .d1-programs-float__grid-item {
    width: calc((100% - 28px) / 3);
  }
  .program-card-d1 {
    min-height: 220px;
  }
  .program-card-d1__title {
    font-size: 20px;
  }
  .program-card-d1__desc p {
    font-size: 14px;
  }
  .d1-programs-float__robot {
    max-width: 120px;
  }
}

@media (max-width: 991px) {
  .hero-compact {
    padding: 30px 0 120px !important;
  }
  .d1-programs-float {
    margin-top: -220px;
    margin-bottom: 30px;
  }
  .d1-programs-float__card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .d1-programs-float__header h2 {
    font-size: 22px;
  }
  .d1-programs-float__robot {
    max-width: 110px;
    margin-bottom: -16px;
  }
  .d1-programs-float__grid {
    gap: 12px;
  }
  .d1-programs-float__grid-item {
    width: calc((100% - 24px) / 3);
  }
  .program-card-d1 {
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  .hero-compact {
    padding: 24px 0 100px !important;
  }
  .d1-programs-float {
    margin-top: -180px;
    margin-bottom: 24px;
  }
  .d1-programs-float__wrapper {
    padding: 0 3%;
  }
  .d1-programs-float__card {
    padding: 24px 16px 20px;
    border-radius: 14px;
  }
  .d1-programs-float__header h2 {
    font-size: 20px;
  }
  .d1-programs-float__robot {
    max-width: 90px;
    margin-bottom: -12px;
  }
  .d1-programs-float__grid {
    gap: 10px;
  }
  .d1-programs-float__grid-item {
    width: calc((100% - 10px) / 2);
  }
  .program-card-d1 {
    min-height: 180px;
    border-radius: 10px;
  }
  .program-card-d1__content {
    padding: 16px 14px 12px;
  }
  .program-card-d1__title {
    font-size: 17px;
  }
  .program-card-d1__desc p {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }
}

@media (max-width: 575px) {
  .hero-compact {
    padding: 20px 0 80px !important;
  }
  .d1-programs-float {
    margin-top: -140px;
    margin-bottom: 20px;
  }
  .d1-programs-float__wrapper {
    padding: 0 2%;
  }
  .d1-programs-float__card {
    padding: 20px 12px 16px;
    border-radius: 12px;
  }
  .d1-programs-float__header h2 {
    font-size: 18px;
  }
  .d1-programs-float__grid {
    gap: 8px;
  }
  .d1-programs-float__grid-item {
    width: calc((100% - 8px) / 2);
  }
  .d1-programs-float__robot {
    max-width: 80px;
    margin-bottom: -10px;
  }
  .program-card-d1 {
    min-height: 160px;
  }
  .program-card-d1__content {
    padding: 14px 12px 10px;
  }
  .program-card-d1__title {
    font-size: 15px;
  }
  .program-card-d1__desc p {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }
  .program-card-d1__link {
    font-size: 12px;
  }
}

@media (max-width: 450px) {
  .d1-programs-float__header h2 {
    font-size: 17px;
  }
  .d1-programs-float__robot {
    max-width: 70px;
  }
}


/* ============================================================
   RESPONSIVE - Design 2
   ============================================================ */

@media (max-width: 1399px) {
  .hero-integrated__robot-wrap {
    width: 160px;
    right: 3%;
  }
  .program-pill {
    padding: 10px 14px;
  }
  .program-pill__name {
    font-size: 14px;
  }
}

@media (max-width: 1199px) {
  .hero-integrated__top h1 {
    font-size: 35px;
    line-height: 42px;
  }
  .hero-integrated__robot-wrap {
    width: 140px;
    right: 2%;
  }
  .hero-integrated__programs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .program-pill {
    padding: 10px 12px;
    gap: 8px;
  }
  .program-pill__name {
    font-size: 13px;
  }
  .program-pill__type {
    font-size: 10px;
  }
}

@media (max-width: 991px) {
  .hero-integrated {
    padding: 30px 0 40px !important;
  }
  .hero-integrated__top {
    padding-bottom: 18px;
  }
  .hero-integrated__top h1 {
    font-size: 30px;
    line-height: 37px;
  }
  .hero-integrated__robot-wrap {
    display: none !important;
  }
  .hero-integrated__programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hero-integrated__programs {
    padding: 16px 18px 20px;
  }
  .program-pill__name {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .hero-integrated {
    padding: 24px 0 36px !important;
  }
  .hero-integrated__top h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .hero-integrated__top p {
    font-size: 14px;
  }
  .hero-integrated__programs-label span {
    font-size: 15px;
  }
  .hero-integrated__programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .hero-integrated__programs {
    padding: 14px 14px 16px;
    border-radius: 12px;
  }
  .program-pill {
    padding: 9px 10px;
    border-radius: 8px;
    gap: 6px;
  }
  .program-pill__name {
    font-size: 12px;
  }
  .program-pill__type {
    display: none;
  }
  .program-pill__dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 575px) {
  .hero-integrated__top h1 {
    font-size: 23px;
    line-height: 29px;
  }
  .hero-integrated__programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-pill {
    padding: 8px 8px;
  }
  .program-pill__name {
    font-size: 11px;
  }
}

@media (max-width: 450px) {
  .hero-integrated__top h1 {
    font-size: 21px;
    line-height: 27px;
  }
  .hero-integrated__top p {
    font-size: 13px;
  }
  .hero-integrated__programs-label span {
    font-size: 13px;
  }
}


/* ============================================================
   DESIGN PREVIEW INDICATOR (remove in production)
   ============================================================ */
.design-preview-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font1);
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 10px;
  align-items: center;
}

.design-preview-badge a {
  color: var(--bg-secondary);
  text-decoration: none;
  font-weight: 700;
}

.design-preview-badge a:hover {
  text-decoration: underline;
}
