/* ============================
   Internship Page Styles
   ============================ */

.internship-hero h1 {
  max-width: 16ch;
}

.internship-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 20%, rgba(20, 108, 95, 0.08), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(17, 24, 39, 0.08), transparent 18%),
    linear-gradient(135deg, #fffaf2 0%, #f1ede3 46%, #edf2f4 100%);
  border: 1px solid rgba(216, 225, 232, 0.86);
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.internship-hero::before {
  content: '';
  position: absolute;
  inset: auto -8% -22% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(20, 108, 95, 0.1), transparent 66%);
  pointer-events: none;
}

.internship-hero__copy {
  position: relative;
  z-index: 1;
}

.internship-hero__rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.internship-hero__rail span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: #2d3748;
  font-size: 0.88rem;
  font-weight: 700;
}

.internship-hero__panel {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 232, 0.88);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

.internship-hero__panel img {
  aspect-ratio: 4 / 3;
}

.internship-hero__note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 225, 232, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.internship-hero__note strong {
  color: var(--brand);
  font-size: 0.96rem;
}

.internship-hero__note span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Domain Cards */
.internship-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.domain-card {
  background: #fff;
  border: 1px solid rgba(216, 225, 232, 0.7);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.domain-card:hover {
  border-color: rgba(20, 108, 95, 0.25);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.domain-card:hover::before {
  opacity: 1;
}

.domain-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(20, 108, 95, 0.08);
  margin-bottom: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.domain-card:hover .domain-icon-wrap {
  background: rgba(20, 108, 95, 0.14);
  transform: scale(1.06);
}

.domain-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.domain-card h3 {
  font-size: 1.05rem;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.domain-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 0.9rem;
}

/* Brand Details Cards */
.details-card--brand {
  border-top: 4px solid var(--brand);
  border-left: 1px solid rgba(216, 225, 232, 0.8);
  border-right: 1px solid rgba(216, 225, 232, 0.8);
  border-bottom: 1px solid rgba(216, 225, 232, 0.8);
}

.details-card--brand h3 {
  color: var(--brand);
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

/* Large heading override for modal */
.modal-header h2.large-heading {
  font-size: 1.65rem;
}

@media (max-width: 960px) {
  .internship-hero {
    grid-template-columns: 1fr;
  }

  .internship-hero__panel img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .internship-hero {
    padding: 22px;
    border-radius: 28px;
  }

  .internship-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

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

@media (max-width: 480px) {
  .internship-domains-grid {
    grid-template-columns: 1fr;
  }

  .internship-hero__rail {
    gap: 8px;
  }

  .internship-hero__rail span {
    width: 100%;
    justify-content: center;
  }
}
