/* Home page specific styles extracted from app/views/pages/home.php */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 4rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: clamp(220px, 28vw, 520px);
  height: clamp(220px, 28vw, 520px);
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: clamp(-220px, -12vw, -100px);
  right: clamp(-120px, -6vw, -40px);
}

.hero-orb-2 {
  width: clamp(140px, 18vw, 320px);
  height: clamp(140px, 18vw, 320px);
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: clamp(-120px, -8vw, -60px);
  left: clamp(-100px, -6vw, -40px);
  animation-delay: 3s;
}

.hero-orb-3 {
  width: clamp(100px, 12vw, 220px);
  height: clamp(100px, 12vw, 220px);
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  top: 40%;
  left: 40%;
  animation-delay: 5s;
  opacity: .18;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2rem;
}

/* Search */
.hero-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: .6rem .6rem .6rem 1.5rem;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(16px);
  gap: .6rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.search-field {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  color: var(--text-muted);
  font-size: .95rem;
}

.search-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  font-size: .95rem;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--card-border);
  flex-shrink: 0;
}

.search-btn {
  border-radius: var(--radius-pill) !important;
  padding: .75rem 1.75rem !important;
}

/* Tags */
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  font-size: .82rem;
  margin-bottom: 3rem;
}

.tag-label {
  color: var(--text-muted);
}

.trend-tag {
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: .8rem;
}

.trend-tag:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  background: rgba(124, 58, 237, 0.08);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-stat-icon {
  font-size: 1.5rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}

.hero-stat span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Categories ──────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: transform .22s var(--easing), box-shadow .22s var(--easing), border-color .22s var(--easing);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.cat-card:hover {
  border-color: var(--cat-color, var(--brand-1));
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 40px rgba(2,6,23,0.12);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: calc(var(--radius-md) + 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: color-mix(in srgb, var(--cat-color, #7c3aed) 14%, transparent);
  color: var(--cat-color, #7c3aed);
}

.cat-card strong {
  font-size: .85rem;
}

.cat-card span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Steps ───────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--bg-2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 1.6rem 1.25rem;
  position: relative;
  text-align: center;
  transition: transform .22s var(--easing), box-shadow .22s var(--easing);
  box-shadow: 0 8px 26px rgba(2,6,23,0.04);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(2,6,23,0.12);
}

.step-number {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-1);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.step-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  right: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--brand-1);
  z-index: 1;
  background: var(--bg-2);
  padding: .2rem;
  border-radius: 50%;
}

/* ── Internship Cards ────────────────────────────────────────────────── */
.internship-grid {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-xl) + 4px);
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(2,6,23,0.08);
}

  .internship-table-header {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(124, 58, 237, 0.06);
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.internship-table-header div {
  min-width: 0;
}

  .internship-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--card-border);
  transition: background .22s var(--easing), transform .22s var(--easing), box-shadow .22s var(--easing);
}

.internship-card:first-child {
  border-top: none;
}

.internship-card:hover {
  background: rgba(255,255,255,0.04);
  transform: none;
  box-shadow: none;
}

.internship-card:nth-of-type(odd) {
  background: rgba(255,255,255,0.025);
}

.internship-table-header .table-actions {
  justify-self: end;
}

.ic-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.ic-meta {
  flex: 1;
  min-width: 0;
}

.ic-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .15rem;
}

.ic-company {
  font-size: .8rem;
  color: var(--text-muted);
}

.ic-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.ic-details span {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.ic-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.skill-tag {
  font-size: .73rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.ic-footer {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

/* ── For Providers ───────────────────────────────────────────────────── */
.provider-banner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.25rem;
  align-items: center;
  background: var(--grad-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.provider-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.provider-banner p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.provider-perks {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem 0;
}

.provider-perks li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.provider-perks i {
  color: var(--success);
  font-size: 1.1rem;
}

.pv-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pv-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pv-stat span {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Training & Final CTA ────────────────────────────────────────────── */
.training-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
}

.tb-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.training-banner .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.training-banner p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

.final-cta .section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-actions {
  margin-top: 2rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width:1024px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-arrow {
    display: none;
  }

  .provider-banner {
    grid-template-columns: 1fr;
  }

  .provider-visual {
    display: none;
  }
}

@media (max-width:768px) {
  .hero {
    min-height: auto;
  }

  .hero-badge {
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 1rem;
    align-items: stretch;
  }

  .search-divider {
    width: 100%;
    height: 1px;
  }

  .hero-tags {
    margin-bottom: 2.25rem;
  }

  .hero-stats {
    gap: 1.25rem;
    justify-content: flex-start;
  }

  .hero-stat {
    width: calc(50% - 0.75rem);
    min-width: 160px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .internship-grid {
    grid-template-columns: 1fr;
  }

  /* Stack internship cards for narrow viewports */
  .internship-card {
    display: block;
    padding: 1rem;
  }

  .internship-card .ic-details {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .internship-card .ic-footer {
    justify-content: flex-start;
    margin-top: .75rem;
  }

  .provider-banner {
    padding: 2rem 1.25rem;
  }

  .training-banner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width:480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.8px;
  }

  .hero-stat {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .provider-banner {
    padding: 1.5rem 1rem;
  }
}
