/* ─── OPPORTUNITY HERO ─── */
.opp-hero {
  background: linear-gradient(135deg, #1e4a22 0%, #2d6635 40%, #398141 100%);
  color: #fff;
  padding: 52px 24px 48px;
  position: relative;
  overflow: hidden;
}
.opp-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.opp-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}
.opp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ─── HERO TITLE & META ─── */
.opp-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  max-width: 780px;
}
.opp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ─── PROGRAMME TAG ─── */
.opp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
}
.opp-tag.tag-homesharing {
  background: var(--green);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.opp-tag.tag-help4housing {
  background: #1a4a7a;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

/* ─── GENDER BADGE ─── */
.opp-gender {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
}
.opp-gender.gender-female {
  background: #f3e8f7;
  color: #7b2fa0;
  border: 1.5px solid #d9b3ea;
}
.opp-gender.gender-male {
  background: #e8f0fb;
  color: #1a4a8a;
  border: 1.5px solid #b3caf0;
}
.opp-gender.gender-couple {
  background: #fff4e5;
  color: #8a4d00;
  border: 1.5px solid #f0d5a0;
}
.opp-gender.gender-either {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

/* ─── DATE BADGE ─── */
.opp-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 5px 13px;
}

/* ─── MAIN LAYOUT ─── */
.opp-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ─── LEFT COLUMN ─── */
.opp-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ─── GALLERY ─── */
.gallery-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-light);
  cursor: pointer;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-main:hover img {
  transform: scale(1.02);
}
.gallery-main-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.18s, opacity 0.18s;
  background: var(--green-light);
}
.gallery-thumb.active {
  border-color: var(--green);
}
.gallery-thumb:not(.active) {
  opacity: 0.7;
}
.gallery-thumb:hover {
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
}
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev {
  left: -56px;
}
.lightbox-next {
  right: -56px;
}
.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-top: 12px;
}

/* ─── DESCRIPTION ─── */
.description-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.description-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  white-space: pre-line;
}

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.back-link:hover {
  color: var(--green);
}
.back-link svg {
  transition: transform 0.18s;
}
.back-link:hover svg {
  transform: translateX(-3px);
}

/* ─── SIDEBAR ─── */
.opp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 92px;
}
.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fact-icon {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.fact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.fact-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

/* ─── APPLY CARD ─── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-card-header {
  background: var(--green);
  color: #fff;
  padding: 18px 24px;
}
.form-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.form-card-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.form-card-body {
  padding: 24px 28px;
}
.btn-apply-opp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 50px;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}
.btn-apply-opp:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-apply-opp svg {
  transition: transform 0.18s;
}
.btn-apply-opp:hover svg {
  transform: translateX(3px);
}

/* ─── CTA STRIP ─── */
.cta-strip {
  background: linear-gradient(135deg, #1e4a22 0%, #2d6635 50%, #398141 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
  color: #fff;
}
.cta-strip p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s;
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .opp-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 20px 48px;
  }
  .opp-sidebar {
    order: -1;
    position: static;
  }
  .lightbox-prev {
    left: -14px;
  }
  .lightbox-next {
    right: -14px;
  }
}
@media (max-width: 640px) {
  .opp-hero {
    padding: 36px 20px 32px;
  }
  .opp-hero h1 {
    font-size: 26px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
