/* ECLAP homepage compatibility and layout layer for Tutor 22. */

:root {
  --eap-blue: #ba0c2f;
  --eap-blue-dark: #8f0a25;
  --eap-accent: #dd663c;
  --eap-text: #263238;
  --eap-muted: #687782;
  --eap-surface: #ffffff;
  --eap-soft: #fbf3f4;
  --eap-border: rgba(186, 12, 47, 0.18);
  --eap-shadow: 0 18px 45px rgba(143, 10, 37, 0.12);
  --eap-radius: 18px;
  --eap-width: 1160px;
}

.global-header .main-header { align-items: center; }

.eap-home {
  color: var(--eap-text);
  background: #fff;
  overflow: hidden;
}

.eap-home *,
.eap-home *::before,
.eap-home *::after {
  box-sizing: border-box;
}

.eap-hero {
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 24px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(86, 5, 23, .96), rgba(186, 12, 47, .85)),
    linear-gradient(125deg, #5e0617, #ba0c2f);
}

.eap-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.eap-hero__eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
  opacity: .92;
}

.eap-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
}

.eap-hero h2 {
  margin: 14px 0 0;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 500;
}

.eap-courses {
  width: min(var(--eap-width), calc(100% - 48px));
  margin: 42px auto 18px;
}

.eap-feature-grid,
.eap-program-grid,
.eap-cta__content {
  width: min(var(--eap-width), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.eap-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 54px 0;
  justify-items: stretch;
  align-items: stretch;
}

.eap-feature-grid--secondary {
  padding-top: 58px;
  padding-bottom: 66px;
}

.eap-feature-card {
  min-height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--eap-border);
  border-radius: var(--eap-radius);
  background: var(--eap-surface);
  box-shadow: var(--eap-shadow);
  text-align: center;
}

.eap-feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: var(--eap-blue);
  background: rgba(186, 12, 47, .14);
}

.eap-feature-card h3,
.eap-program-card h3 {
  margin: 0 0 12px;
  color: var(--eap-blue-dark);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 750;
}

.eap-feature-card p,
.eap-program-card p {
  margin: 0;
  color: var(--eap-muted);
  font-size: 16px;
  line-height: 1.65;
}

.eap-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 26px 0 56px;
}

.eap-program-card {
  overflow: hidden;
  border-radius: calc(var(--eap-radius) + 4px);
  background: var(--eap-surface);
  box-shadow: var(--eap-shadow);
  border: 1px solid var(--eap-border);
}

.eap-program-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.eap-program-card__body {
  padding: 30px;
}

.eap-cta {
  margin: 10px 0 0;
  background: linear-gradient(135deg, var(--eap-blue-dark), var(--eap-blue));
  color: #fff;
}

.eap-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 0;
}

.eap-cta h2,
.eap-cta p {
  margin: 0;
}

.eap-cta h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.eap-cta p {
  margin-top: 6px;
  font-size: 19px;
  opacity: .9;
}

.eap-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}

.eap-cta__button:hover,
.eap-cta__button:focus {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .eap-feature-grid,
  .eap-program-grid {
    grid-template-columns: 1fr;
  }

  .eap-cta__content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .eap-feature-grid,
  .eap-program-grid,
  .eap-cta__content,
  .eap-courses {
    width: min(100% - 28px, var(--eap-width));
  }

  .eap-hero {
    min-height: 330px;
    padding: 56px 18px;
  }

  .eap-feature-card,
  .eap-program-card__body {
    padding: 24px 20px;
  }
}



/* ECLAP card illustration: no EAP/Extremadura screenshots. */
.eap-program-card__visual {
  height: 220px; display: grid; place-items: center;
  background: linear-gradient(135deg, #5e0617, #ba0c2f 72%, #dd663c);
  color: #fff; font-size: clamp(34px, 6vw, 70px); font-weight: 800;
  letter-spacing: .08em;
}
.eap-program-card__visual--mooc {
  background: linear-gradient(135deg, #7f0a25, #ba0c2f 65%, #dd663c);
}
.global-header .header-logo img { object-fit: contain; max-height: 65px; }
