/* Home Page Styles - Security Compliant (External CSS only) */

/* Layout full - remove borders on main */
.layout--full .main {
  border-left: 0;
  border-right: 0;
}

/* Svea-inspired hero */
.home-hero-svea {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Main headline wrapper */
.home-hero-svea__headline-wrapper {
  margin-bottom: 32px;
}

.home-hero-svea__main-headline {
  font-size: 52px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  word-spacing: 0.05em;
}

.home-hero-svea__jobs-highlight {
  color: #0b57d0;
  font-weight: 900;
  font-size: 1.15em;
}

.home-hero-svea__subheader {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-svea__description {
  font-size: 16px;
  color: #4b5563;
  margin: 20px 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-svea__action-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.home-hero-svea__action-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  margin-left: -20px;
  z-index: 1;
  cursor: pointer;
}

.home-hero-svea__action-step:first-child {
  margin-left: 0;
}

.home-hero-svea__action-step:hover {
  z-index: 10;
}

.home-hero-svea__step-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
  border: 4px solid white;
}

.home-hero-svea__step-circle--1 {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #1565C0;
}

.home-hero-svea__step-circle--2 {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  color: #2E7D32;
}

.home-hero-svea__step-circle--3 {
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  color: #7B1FA2;
}

.home-hero-svea__action-step:hover .home-hero-svea__step-circle {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.home-hero-svea__action-step:hover .home-hero-svea__step-circle--1 {
  background: linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%);
  color: #0D47A1;
}

.home-hero-svea__action-step:hover .home-hero-svea__step-circle--2 {
  background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
  color: #1B5E20;
}

.home-hero-svea__action-step:hover .home-hero-svea__step-circle--3 {
  background: linear-gradient(135deg, #E1BEE7 0%, #CE93D8 100%);
  color: #4A148C;
}

.home-hero-svea__step-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  display: none;
}

.home-hero-svea__step-arrow {
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #0b57d0, transparent);
  position: relative;
  margin: 0 -8px;
  margin-bottom: 24px;
  align-self: center;
  display: none;
}

.home-hero-svea__step-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #0b57d0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.home-hero-svea__search {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr auto;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #d6d9dc;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin: 24px auto 48px;
  max-width: 600px;
}

.home-hero-svea__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  position: relative;
}

.home-hero-svea__icon {
  font-size: 16px;
  color: #7a7a7a;
}

.home-hero-svea__input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  background: transparent;
}

.home-hero-svea__divider {
  width: 1px;
  height: 34px;
  background: #e5e7eb;
}

.home-hero-svea__btn {
  background: #0b57d0;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.home-hero-svea__btn:hover {
  background: #0a4dbb;
}

.home-hero-svea__brand {
  font-size: 56px;
  font-weight: 800;
  color: #0b57d0;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.home-hero-svea__headline {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 8px 0 6px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.home-hero-svea__lead {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 18px;
}

.home-hero-svea__steps {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin: 0;
}

.home-hero-svea__step {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid #e0e7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #0b57d0;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(11, 87, 208, 0.08);
  position: relative;
}

.home-hero-svea__step::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #0b57d0, #1e88e5);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-hero-svea__step:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
  border-color: #0b57d0;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11, 87, 208, 0.2);
}

.home-hero-svea__step:hover::before {
  opacity: 1;
}

/* Jobs section with 50/50 split */
.home-hero-svea__jobs-section {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  margin-bottom: 32px;
  padding-top: 32px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #f3f4f6;
}

.home-hero-svea__jobs-count {
  flex: 0 0 50%;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.home-hero-svea__jobs-count:hover {
  /* No background or shadow on hover - keeps it clean */
}

.home-hero-svea__jobs-count:hover .home-hero-svea__jobs-number {
  color: #0b57d0;
}

.home-hero-svea__jobs-number {
  font-size: 56px;
  font-weight: 800;
  color: #374151;
  line-height: 1;
  margin-bottom: 8px;
}

.home-hero-svea__jobs-label {
  font-size: 20px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-hero-svea__jobs-content {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-svea__cta {
  margin: 18px 0 32px;
}

.home-hero-svea__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a95ff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.home-hero-svea__button:hover {
  background: #0887e6;
}

.home-hero-svea__popular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.home-hero-svea__chevron {
  font-size: 14px;
}

/* Hero Section */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 0;
}

.home-hero__left {
  padding-right: 2rem;
}

.home-hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

.home-hero__subtitle {
  font-size: 1.1rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Search Form */
.home-search {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-search__field {
  position: relative;
}

.home-search__input {
  width: 100%;
  padding: 1rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.home-search__input::placeholder {
  color: #cbd5e0;
}

.home-search__btn {
  padding: 1rem 2rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.home-search__btn:hover {
  background: #5568d3;
}

/* Stats Section */
.home-stats {
  margin-bottom: 0;
}

.home-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.home-stat:hover {
  transform: translateX(8px);
}

.home-stat__number {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: #4a5568;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.home-stat__label {
  font-size: 1.15rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Hero Right */
.home-hero__right {
  text-align: center;
}

.home-hero__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Featured Section */
.home-featured {
  background: white;
  padding: 3rem 0;
  margin-top: 2rem;
}

.home-featured__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  align-items: start;
}

/* Tags */
.home-tags {
  background: white;
}

.home-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: flex-start;
}

.home-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  background: linear-gradient(135deg, #fdfefe 0%, #f5f7fb 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  word-break: keep-all;
  hyphens: none;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-tag:nth-child(4n + 1) { border-color: rgba(102, 126, 234, 0.45); background: linear-gradient(135deg, #eef2ff 0%, #e5e9ff 100%); }
.home-tag:nth-child(4n + 2) { border-color: rgba(67, 233, 123, 0.4); background: linear-gradient(135deg, #edfff5 0%, #e3fcef 100%); }
.home-tag:nth-child(4n + 3) { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(135deg, #fff8eb 0%, #fff1db 100%); }
.home-tag:nth-child(4n + 4) { border-color: rgba(14, 165, 233, 0.4); background: linear-gradient(135deg, #e8f7ff 0%, #def6fb 100%); }

.home-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.home-tag--sm { padding: 0.34rem 0.78rem; font-size: 0.84rem; font-weight: 650; }
.home-tag--md { padding: 0.38rem 0.86rem; font-size: 0.9rem; font-weight: 700; }
.home-tag--lg { padding: 0.44rem 0.96rem; font-size: 0.96rem; font-weight: 750; }

.home-tag:nth-child(odd) {
  animation: floaty 8s ease-in-out infinite alternate;
}

.home-tag:nth-child(even) {
  animation: floaty 9s ease-in-out infinite alternate-reverse;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

.home-tag:nth-child(odd) {
  animation: floaty 9s ease-in-out infinite alternate;
}

.home-tag:nth-child(even) {
  animation: floaty 10s ease-in-out infinite alternate-reverse;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.home-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Coaches */
.home-coaches {
  text-align: center;
}

.home-coaches__carousel {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.home-coaches__track {
  display: flex;
  gap: 1.5rem;
  animation: slideLeft 25s linear infinite;
  padding: 1rem 0;
}

.home-coaches__track:hover {
  animation-play-state: paused;
}

@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.home-coaches__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
  color: #1a202c;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-coaches__title::before,
.home-coaches__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #cbd5e0, transparent);
}

.home-coach-card {
  min-width: 200px;
  max-width: 200px;
  background: white;
  border: 2px solid #f7fafc;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.home-coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.home-coach-card__image {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.7rem;
}

.home-coach-card__placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.home-coach-card__name {
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #1a202c;
}

.home-coach-card__role {
  font-size: 0.83rem;
  color: #667eea;
  font-weight: 500;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .home-hero-svea {
    padding: 40px 16px 48px;
  }

  .home-hero-svea__main-headline {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .home-hero-svea__subheader {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .home-hero-svea__description {
    font-size: 14px;
    margin: 16px 0;
  }

  .home-hero-svea__search {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 16px auto 32px;
    padding: 12px 8px;
  }

  .home-hero-svea__divider {
    display: none;
  }

  .home-hero-svea__action-steps {
    gap: 0;
    margin-top: 28px;
    flex-direction: row;
    align-items: center;
  }

  .home-hero-svea__action-step {
    margin-left: -14px;
  }

  .home-hero-svea__action-step:first-child {
    margin-left: 0;
  }

  .home-hero-svea__step-circle {
    width: 70px;
    height: 70px;
    font-size: 12px;
    margin-bottom: 8px;
  }

  .home-hero-svea__step-text {
    font-size: 14px;
  }

  .home-hero-svea__step-arrow {
    width: 24px;
    height: 2px;
    margin: 0 -4px;
    margin-bottom: 16px;
    display: none;
  }

  .home-hero-svea__step-arrow::after {
    border-left: 6px solid #0b57d0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }

  .home-hero-svea__brand {
    font-size: 40px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .home-hero__title {
    font-size: 2rem;
  }

  .home-hero__left {
    padding-right: 0;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-stat__number {
    font-size: 3rem;
  }

  .home-featured__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-coaches__grid {
    grid-template-columns: 1fr;
  }
}
