/* public/how-it-works/styles.css */

body {
  background: #f8f8f8;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* Hero reusing the same cover image */
.hero {
  position: relative;
  height: 42vh;
  min-height: 260px;
  background-image: url("../cover.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(248, 248, 248, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.logo-link {
  display: inline-block;
}

.logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 52px;
  z-index: 4;
}

.hero-title {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  z-index: 4;
  color: #1a1a1a;
}

/* Content wrapper overlapping the hero */
.content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 1140px;
  margin: -10vh auto 2rem auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Info cards */
.info-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-img-wrap.tall {
  height: 100%;
  min-height: 320px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body-content {
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #212529;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #343a40;
}

.info-card p,
.info-card ul,
.info-card ol {
  color: #495057;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.info-card ul,
.info-card ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.info-card li {
  margin-bottom: 0.4rem;
}

/* Alert and muted variants */
.info-alert {
  border-left: 4px solid #559a98;
}

.info-muted {
  background: #f8f9fa;
  border-color: #dee2e6;
}

/* How to Apply Section - New Design */
.how-to-apply-section {
  overflow: visible;
}

.apply-hero-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.apply-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Step Cards */
.step-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #559a98 0%, #4ed8cf 100%);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.75rem;
}

.step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #4ed8cf;
  color: #212529;
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #212529;
}

.step-card p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* CTA banner */
.cta-banner {
  background: #f1f3f5;
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
}

/* Brand Colors */
.brand-text {
  color: #559a98 !important;
}

.bg-brand {
  background-color: #559a98 !important;
}

.bg-brand-light {
  background-color: #4ed8cf !important;
}

/* Buttons */
.btn-brand {
  background-color: #559a98;
  border-color: #559a98;
  color: white;
}

.btn-brand:hover {
  background-color: #4a8684;
  border-color: #4a8684;
  color: white;
}

.btn-primary {
  background-color: #559a98;
  border-color: #559a98;
}

.btn-primary:hover {
  background-color: #4a8684;
  border-color: #4a8684;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
  background-color: rgba(78, 216, 207, 0.15);
  color: #559a98;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(85, 154, 152, 0.25);
}

/* Footer */
footer {
  margin-top: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo {
    position: static;
    display: block;
    margin: 0.75rem auto 0;
  }

  .hero-title {
    position: static;
    display: block;
    text-align: center;
    margin: 0.5rem auto 0;
    font-size: 1.5rem;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .content-wrapper {
    margin-top: 0;
    padding: 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }

  .apply-hero-image {
    height: 200px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .cta-banner {
    padding: 1.75rem 1rem;
  }
}
