/* ============================================
   EvolvED Page Styles
   ============================================ */

/* Container width — match navbar */
.evolved-hero .container,
.section-empty .container {
  width: 88%;
  max-width: 1300px;
  padding-left: 0;
  padding-right: 0;
}

/* Header Font */
h1, h2, h3, h4 {
  font-family: 'HomepageBaukasten Bold', Arial, sans-serif;
  font-weight: bold;
}

/* Body Font — scoped to page content, not footer */
main p, .evolved-hero-description,
.evolved-features .title-base p,
.evolved-how .title-base p {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: normal;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Hero Section ---- */
.evolved-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--navbar-h, 100px) * -1);
  padding: calc(var(--navbar-h, 100px) + 60px) 0 60px;
  min-height: calc(520px + var(--navbar-h, 100px));
  display: flex;
  align-items: center;
}
.evolved-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
}
.evolved-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(8, 26, 51, 0.88), rgba(8, 26, 51, 0.93));
}
.evolved-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.evolved-hero-content > .row {
  display: flex;
  align-items: center;
}
.evolved-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f6d00b;
}
.evolved-hero-description {
  font-size: 16px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  line-height: 1.65;
}
.evolved-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Breadcrumb */
.evolved-breadcrumb {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.evolved-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.evolved-breadcrumb a:hover {
  color: #fff;
}
.breadcrumb-separator {
  margin: 0 6px;
}
.breadcrumb-current {
  color: #f6d00b;
}

/* Hero right column — EvolvED logo */
.evolved-hero .evolved-screenshot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.evolved-hero .evolved-logo-img {
  max-width: 520px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.25));
}

/* ---- Features Section ---- */
.evolved-features {
  padding: 70px 0;
  background: #f8f9fa;
}
.evolved-features-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}
.evolved-features-row > [class*="col-"] {
  display: flex;
  flex: 1 1 0;
  max-width: 20%;
  width: 20%;
  padding-left: 6px;
  padding-right: 6px;
}
.evolved-feature-card {
  text-align: center;
  padding: 32px 16px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.evolved-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.evolved-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  flex-shrink: 0;
}
.evolved-feature-icon i {
  font-size: 1.3rem;
  color: #004aad;
}
.evolved-feature-card h3 {
  font-size: 0.88rem;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evolved-feature-card p {
  font-size: 12.5px;
  color: #555;
  line-height: 1.55;
  margin-top: auto;
}

/* ============================================
   Inside EvolvED — Tabbed Screenshot Showcase
   Mobile-first base, desktop override below
   ============================================ */
.evolved-tour {
  padding: 40px 0;
  background: #ffffff;
}
.evolved-tour .title-base {
  margin-bottom: 20px;
}
.evolved-tour-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(8, 26, 51, 0.08);
}

/* Mobile swipe hint — arrows + label, shown above the tab strip */
.evolved-tour-mobile-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7688;
  padding: 2px 0 0;
}
.evolved-tour-mobile-hint i {
  font-size: 14px;
  color: #004aad;
  animation: evolvedTourHintBounce 1.8s ease-in-out infinite;
}
.evolved-tour-mobile-hint i.im-arrow-right {
  animation-delay: 0.9s;
}
@keyframes evolvedTourHintBounce {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50%      { transform: translateX(3px); opacity: 1; }
}
.evolved-tour-mobile-hint i.im-arrow-left {
  animation-name: evolvedTourHintBounceLeft;
}
@keyframes evolvedTourHintBounceLeft {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50%      { transform: translateX(-3px); opacity: 1; }
}

/* Tab strip — scrollable horizontal on mobile with fade-edge hint */
.evolved-tour-tabs {
  display: flex;
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 24px 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c7d2e2 transparent;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}
.evolved-tour-tabs::-webkit-scrollbar {
  height: 4px;
}
.evolved-tour-tabs::-webkit-scrollbar-thumb {
  background: #c7d2e2;
  border-radius: 3px;
}
.evolved-tour-tab {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  color: #555;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.evolved-tour-tab:hover {
  color: #1a1a2e;
  border-color: #c7d2e2;
}
.evolved-tour-tab.active {
  background: #004aad;
  border-color: #004aad;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.25);
  transform: translateY(-1px);
}
.evolved-tour-tab-num {
  font-family: 'HomepageBaukasten Bold', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #9aa5b8;
  transition: color 0.2s ease;
}
.evolved-tour-tab.active .evolved-tour-tab-num {
  color: #f6d00b;
}
.evolved-tour-tab-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* Prev / Next buttons — overlaid on the active tour image */
.evolved-tour-navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d8e0ec;
  color: #004aad;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.3;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(8, 26, 51, 0.18);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.evolved-tour-navbtn.prev {
  left: 12px;
}
.evolved-tour-navbtn.next {
  right: 12px;
}
.evolved-tour-navbtn:hover:not(:disabled),
.evolved-tour-navbtn:focus-visible:not(:disabled) {
  opacity: 0.75;
  background: #004aad;
  border-color: #004aad;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}
.evolved-tour-navbtn:disabled {
  opacity: 0.12;
  cursor: not-allowed;
}

/* Panels */
.evolved-tour-panels {
  position: relative;
}
.evolved-tour-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: evolvedTourFade 0.4s ease;
}
.evolved-tour-panel.active {
  display: flex;
}
@keyframes evolvedTourFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.evolved-tour-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(8, 26, 51, 0.18),
              0 3px 10px rgba(8, 26, 51, 0.08);
  background: linear-gradient(135deg, #eef3fb 0%, #e1eaf7 100%);
}
.evolved-tour-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 74, 173, 0.08);
  pointer-events: none;
  z-index: 1;
}
.evolved-tour-img img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.evolved-tour-img img:hover {
  transform: scale(1.01);
}

/* Lightbox */
.evolved-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 38, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.evolved-lightbox.open {
  display: flex;
  opacity: 1;
}
.evolved-lightbox-stage {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}
.evolved-lightbox-img {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  transform-origin: center center;
  user-select: none;
}
.evolved-lightbox-img.zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.evolved-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.evolved-lightbox-close:hover {
  background: #fff;
}
body.evolved-lightbox-open {
  overflow: hidden;
}
.evolved-tour-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #004aad;
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}
.evolved-tour-text h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.3;
}
.evolved-tour-text p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ---- Tablet (≥ 768px) ---- */
@media (min-width: 768px) {
  .evolved-tour {
    padding: 60px 0;
  }
  .evolved-tour .title-base {
    margin-bottom: 30px;
  }
  .evolved-tour-showcase {
    padding: 20px;
    gap: 18px;
  }
  .evolved-tour-tab {
    padding: 11px 16px;
  }
  .evolved-tour-tab-label {
    font-size: 13.5px;
  }
  .evolved-tour-text h3 {
    font-size: 1.35rem;
  }
  .evolved-tour-text p {
    font-size: 14.5px;
  }
  .evolved-tour-tag {
    font-size: 11.5px;
    padding: 6px 12px;
  }
}

/* ---- Desktop (≥ 992px): sidebar layout, hide mobile nav ---- */
@media (min-width: 992px) {
  .evolved-tour {
    padding: 80px 0;
  }
  .evolved-tour .title-base {
    margin-bottom: 40px;
  }
  .evolved-tour-showcase {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas:
      "tabs panels";
    gap: 32px;
    padding: 24px;
  }
  .evolved-tour-mobile-hint,
  .evolved-tour-navbtn {
    display: none !important;
  }
  .evolved-tour-tabs {
    grid-area: tabs;
    flex-direction: column;
    gap: 4px;
    max-height: 520px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 6px 0 0;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .evolved-tour-tabs::-webkit-scrollbar {
    width: 6px;
    height: auto;
  }
  .evolved-tour-tab {
    scroll-snap-align: none;
    width: 100%;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    white-space: normal;
    text-align: left;
  }
  .evolved-tour-tab:hover {
    background: rgba(0, 74, 173, 0.04);
  }
  .evolved-tour-tab.active {
    background: #ffffff;
    color: #004aad;
    border-left-color: #004aad;
    border-color: transparent transparent transparent #004aad;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.08);
    transform: none;
  }
  .evolved-tour-tab-num {
    font-size: 13px;
    min-width: 22px;
  }
  .evolved-tour-tab-label {
    font-size: 13.5px;
    font-weight: 500;
  }
  .evolved-tour-tab.active .evolved-tour-tab-label {
    font-weight: 700;
  }
  .evolved-tour-panels {
    grid-area: panels;
    min-height: 520px;
  }
  .evolved-tour-panel {
    display: none;
    flex-direction: initial;
  }
  .evolved-tour-panel.active {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: center;
    height: 100%;
  }
  .evolved-tour-text h3 {
    font-size: 1.4rem;
  }
  .evolved-tour-text p {
    font-size: 14.5px;
  }
}

/* ---- How It Works ---- */
.evolved-how {
  padding: 70px 0;
}
.evolved-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 10px;
}
.evolved-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.evolved-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #004aad;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'HomepageBaukasten Bold', Arial, sans-serif;
}
.evolved-step h3 {
  font-size: 1rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.evolved-step p {
  font-size: 14px;
  color: #555;
}

/* ---- For Organisations / Learners ---- */
.evolved-organisations {
  padding: 70px 0;
  background: #f8f9fa;
}
.evolved-organisations h2 {
  color: #004aad;
  margin-bottom: 16px;
}
.evolved-organisations p {
  color: #333;
  margin-bottom: 16px;
}
.evolved-org-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.evolved-org-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.evolved-org-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #004aad;
  font-weight: 700;
}

/* ---- CTA Section ---- */
.evolved-cta {
  padding: 25px 0;
  background: #1e3a5f;
}
.evolved-cta .container {
  padding-top: 10px;
  padding-bottom: 10px;
}
.evolved-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.evolved-cta-inner h2 {
  color: #ffffff;
  margin-bottom: 15px;
}
.evolved-cta-inner p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 22px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .evolved-hero-content > .row {
    flex-direction: column;
  }
  .evolved-hero .evolved-screenshot-wrap {
    margin-top: 30px;
  }
  .evolved-hero .evolved-logo-img {
    max-width: 300px;
  }
  .evolved-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .evolved-features-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .evolved-features-row::before,
  .evolved-features-row::after {
    display: none !important;
  }
  .evolved-features-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .evolved-features-row > [class*="col-"]:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 60% !important;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {

  /* ---- Hero ---- */
  .evolved-hero {
    padding: calc(var(--navbar-h, 100px) + 30px) 0 30px;
    min-height: auto;
  }
  .evolved-hero-title {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  .evolved-hero-description {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .evolved-breadcrumb {
    margin-bottom: 8px;
  }
  .evolved-hero-buttons {
    gap: 10px;
  }
  .evolved-hero .evolved-screenshot-wrap {
    margin-top: 20px;
  }
  .evolved-hero .evolved-logo-img {
    max-width: 220px;
  }

  /* ---- Features ---- */
  .evolved-features {
    padding: 30px 0;
  }
  .evolved-features .title-base {
    margin-bottom: 10px;
  }
  .evolved-features-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .evolved-features-row::before,
  .evolved-features-row::after {
    display: none !important;
  }
  .evolved-features-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .evolved-features-row > [class*="col-"]:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100% !important;
    margin: 0;
  }
  .evolved-feature-card {
    padding: 20px 12px;
  }
  .evolved-feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  .evolved-feature-icon i {
    font-size: 1.1rem;
  }
  .evolved-feature-card h3 {
    font-size: 0.82rem;
    margin-bottom: 6px;
    min-height: 2.2em;
  }
  .evolved-feature-card p {
    font-size: 12px;
  }

  /* ---- How It Works ---- */
  .evolved-how {
    padding: 30px 0;
  }
  .evolved-how .title-base {
    margin-bottom: 10px;
  }
  .evolved-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
  }
  .evolved-step {
    padding: 14px 12px;
  }
  .evolved-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .evolved-step h3 {
    margin-bottom: 6px;
  }

  /* ---- Organisations / Learners ---- */
  .evolved-organisations {
    padding: 30px 0;
  }
  .evolved-organisations h2 {
    margin-bottom: 10px;
  }
  .evolved-organisations p {
    margin-bottom: 10px;
  }
  .evolved-org-list li {
    margin-bottom: 6px;
  }
  .evolved-organisations .col-md-6 + .col-md-6 {
    margin-top: 20px;
  }

  /* ---- CTA ---- */
  .evolved-cta {
    padding: 16px 0;
  }
  .evolved-cta-inner {
    padding: 20px 16px;
  }
  .evolved-cta-inner h2 {
    margin-bottom: 10px;
  }
  .evolved-cta-inner p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  /* ---- General section spacing ---- */
  .evolved-features .container.content,
  .evolved-how .container.content,
  .evolved-organisations .container.content,
  .evolved-cta .container.content {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ---- Extra small screens ---- */
@media (max-width: 576px) {
  .evolved-hero-title {
    font-size: 1.5rem;
  }
  .evolved-hero-description {
    font-size: 13px;
  }
  .evolved-hero .evolved-logo-img {
    max-width: 160px;
  }
  .evolved-feature-card h3 {
    font-size: 0.78rem;
    min-height: auto;
  }
  .evolved-feature-card p {
    font-size: 11px;
  }
  .evolved-step h3 {
    font-size: 0.9rem;
  }
  .evolved-step p {
    font-size: 13px;
  }
  .evolved-cta-inner p {
    font-size: 14px;
  }
}
