:root {
  --burg-900: #3d0012;
  --burg-700: #800020;
  --burg-500: #9b1c2e;
  --burg-300: #e8909f;
  --bg: #fdf2f4;
  --surface: #ffffff;
  --text: #171218;
  --muted: #6a6670;
  --border: #e8c5c9;
  --gutter: 24px;
  --content-max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: var(--text);
}

/* ── Language dropdown ────────────────────────────────── */
.lang-dropdown { position: relative; }
.lang-trigger {
  width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  cursor: pointer; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background .15s;
  overflow: hidden;
}
.lang-trigger:hover { background: rgba(255,255,255,0.22); }
.lang-trigger img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lang-options {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(20,0,10,0.88); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  padding: 5px; min-width: 76px; z-index: 300;
}
.lang-dropdown.open .lang-options { display: block; }
.lang-options form { margin: 0; }
.lang-option {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: none; border: none; color: #fff;
  font-size: 0.82rem; font-weight: 600; padding: 6px 10px;
  border-radius: 7px; cursor: pointer; font-family: inherit;
  transition: background .15s; white-space: nowrap;
}
.lang-option:hover { background: rgba(255,255,255,0.12); }

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(109, 47, 65, 0.048);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: background .3s ease;
}
.topbar.scrolled {
  background: rgba(61, 0, 18, 0.178);
}

.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 35px; width: auto; display: block; }

.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.88rem; }

.auth-links { display: flex; gap: 10px; align-items: center; }
.auth-links .link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.auth-links .link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.auth-links .btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  font-size: 0.85rem;
  line-height: 1;
  transition: background .15s;
}
.auth-links .btn:hover { background: rgba(255,255,255,0.25); }

/* ── Hero ─────────────────────────────────────────────── */
.opp-hero {
  position: relative;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    radial-gradient(ellipse at 70% 50%, #c0392b 0%, #800020 45%, #3d0012 100%);
  padding: 55px 0 52px;
  overflow: hidden;
}

.opp-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.opp-hero::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.opp-hero-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  position: relative;
  z-index: 1;
}

.opp-hero-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 300;
  margin: 0 0 10px;
  text-align: left;
  line-height: 1.25;
}

.opp-hero-sub {
  color: rgba(255,255,255,.75);
  font-size: clamp(0.75rem, 0.8vw + 0.35rem, 0.85rem);
  text-align: left;
  margin: 0 0 20px;
  line-height: 1.6;
}

.opp-type-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.opp-type-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 16px 14px 14px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.opp-type-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

.opp-type-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  transition: background .22s;
}
.opp-type-card:hover .opp-type-icon { background: rgba(255,255,255,.28); }

.opp-type-card h3 {
  margin: 0 0 5px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.opp-type-card p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
}

/* ── Hero 70/30 layout ────────────────────────────────── */
.hero-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 28px;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-right {
  display: flex;
  align-items: stretch;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
}

/* ── Wrapper ──────────────────────────────────────────── */
.wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
}

.filters {
  border: 1.5px solid var(--burg-300);
  border-radius: 12px;
  padding: 20px 20px 16px;
  background: #fdf7f7;
  margin-bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.opp-hero .filters {
  margin: 0;
  max-width: none;
  width: 100%;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}
.opp-hero .filters h3 { color: #fff; }
.opp-hero .filters .filter-label { color: rgba(255,255,255,.65); }
.opp-hero .filters select {
  background-color: rgba(255,255,255,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px;
  border-color: rgba(255,255,255,.25);
  color: #fff;
  appearance: none;
  padding-right: 30px;
}
.opp-hero .filters select option { background: #3d0012; color: #fff; }
.opp-hero .filters .btn-reset { color: rgba(255,255,255,.65); }
.opp-hero .filters .btn-reset:hover { color: #fff; }
.opp-hero .filters .filter-label { text-transform: none; letter-spacing: 0; }
.filters h3 { margin: 0 0 16px; font-size: 1rem; font-weight: 700; color: var(--burg-700); }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
select {
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.84rem;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  appearance: auto;
}
select:focus { outline: 2px solid var(--burg-300); border-color: var(--burg-500); }
button { border: 1px solid var(--border); border-radius: 6px; font: inherit; padding: 8px; }
.filter-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-search {
  background: var(--burg-700);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .15s;
}
.btn-search:hover { background: var(--burg-900); }
.btn-reset { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.btn-reset:hover { color: var(--burg-700); }

.cards { margin-top: 8px; }
.cards h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--text); }

.level-tabs {
  display: flex;
  gap: 4px;
  background: #f1f3f5;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 auto 16px;
}
.level-tabs::-webkit-scrollbar { display: none; }
.level-tab {
  padding: 7px 18px;
  border: none;
  border-radius: 7px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.level-tab:hover { color: var(--text); }
.level-tab.active {
  background: var(--burg-700);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(128,0,32,0.25);
}
.cards-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid #e8d8db;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  border-top: 3px solid var(--burg-300);
}
.card:hover {
  box-shadow: 0 6px 20px rgba(155,28,46,.1);
  transform: translateY(-2px);
}
.card h4 { margin: 0 0 5px; font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.uni { margin: 0; font-size: .74rem; color: var(--burg-500); font-weight: 600; }
.meta { margin: 2px 0 10px; font-size: .72rem; color: var(--muted); }
.summary { font-size: .73rem; color: #5c5961; line-height: 1.55; flex: 1; }
.mini-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
  font-size: .7rem; color: var(--muted);
  margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f5e0e3;
}
.actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.actions .apply {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: .78rem; font-weight: 700;
  color: #fff; background: var(--burg-500);
  text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.actions .apply:hover { background: var(--burg-700); }
.actions .apply:disabled { background: #d8c3c6; color: #8b8ba7; cursor: not-allowed; }
.actions .view-details {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--burg-300); border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--burg-700); background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.actions .view-details:hover { background: var(--burg-500); color: #fff; border-color: var(--burg-500); }

.skeleton-card {
  background: var(--surface);
  border: 1px solid #e8d8db;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 3px solid var(--burg-300);
}
.skeleton-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--border) 25%, #f5e5e7 37%, var(--border) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton-line.title { height: 14px; width: 70%; margin-bottom: 2px; }
.skeleton-line.uni { width: 50%; }
.skeleton-line.summary { width: 100%; }
.skeleton-line.summary:last-of-type { width: 80%; }
.skeleton-line.footer { width: 40%; margin-top: 8px; }
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.opp-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 20px;
}
.opp-page-btn {
  border: 1px solid var(--burg-300); background: transparent;
  color: var(--burg-500); padding: 9px 20px;
  border-radius: 8px; font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.opp-page-btn:hover:not(:disabled) { background: var(--burg-500); color: #fff; }
.opp-page-btn:disabled { border-color: #e8d8db; color: #c9b8bb; cursor: not-allowed; }
.opp-page-info { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ── Stats ────────────────────────────────────────────── */
.stats {
  margin-top: 28px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #faeaed;
  border-top: 1px solid var(--burg-300);
  border-bottom: 1px solid var(--burg-300);
}
.stats-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-inner > div {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid rgba(155,28,46,.12);
}
.stats-inner > div:last-child { border-right: none; }
.stats h3 { margin: 0 0 5px; font-size: 2rem; font-weight: 800; color: var(--burg-700); line-height: 1; }
.stats p { margin: 0; font-size: .74rem; color: #4f4553; line-height: 1.4; }

/* ── Testimonials ─────────────────────────────────────── */
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonials { margin-top: 40px; }
.testimonials h2 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; }
.section-sub { margin: 0 0 22px; color: var(--muted); font-size: .85rem; }

.quote {
  background: #fff;
  border: 1px solid #ede0e2;
  border-radius: 14px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.quote-stars { color: #f59e0b; font-size: .82rem; letter-spacing: 3px; margin-bottom: 10px; }
.quote p { margin: 0; font-size: .83rem; color: #3a3040; line-height: 1.7; font-style: italic; padding-top: 10px; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0e0e2; }
.quote-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--burg-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.quote-author strong { display: block; font-size: .82rem; color: #1a1a2e; }
.quote-author small { font-size: .72rem; color: var(--muted); }

/* ── CTA banner ───────────────────────────────────────── */
.cta-banner {
  position: relative;
  margin-top: 40px;
  margin-bottom: -40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 29px var(--gutter);
  overflow: hidden;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    radial-gradient(ellipse at 70% 50%, #c0392b 0%, #800020 45%, #3d0012 100%);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -70px; left: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-banner h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.cta-banner p { margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: .92rem; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 8px;
  font-size: .88rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cta-btn-primary { background: #fff; color: var(--burg-700); border: none; }
.cta-btn-primary:hover { background: var(--burg-300); }
.cta-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cta-btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Feedback form toast ──────────────────────────────── */
.form-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--burg-300);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 18px 20px;
  z-index: 1000;
  display: none;
}
.form-toast.visible {
  display: block;
  animation: form-toast-in .3s ease-out;
}
@keyframes form-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-toast-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 1.1rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 4px;
}
.form-toast-close:hover { color: var(--burg-700); }
.form-toast-text { margin: 0 24px 12px 0; font-size: .85rem; color: var(--text); line-height: 1.5; }
.form-toast-btn {
  display: inline-block; background: var(--burg-700); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 8px 16px;
  border-radius: 8px; text-decoration: none;
}
.form-toast-btn:hover { background: var(--burg-900); }

@media (max-width: 480px) {
  .form-toast { left: 16px; right: 16px; max-width: none; top: 12px; }
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  margin-top: 0;
  background: var(--burg-900);
  color: #d4b8bc;
  padding: 36px 0 24px;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; display: block; margin-bottom: 10px; }
.footer-desc { margin: 0 0 12px; line-height: 1.6; color: #b09095; font-size: 0.78rem; }
.footer-contact { margin: 0; font-size: 0.78rem; }
.footer-heading { display: block; color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer .col { display: flex; flex-direction: column; gap: 7px; }
.footer .col a { color: #b09095; text-decoration: none; font-size: 0.79rem; transition: color .15s; }
.footer .col a:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .cards-grid, .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { max-width: 100%; }
}

@media (max-width: 450px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-right { display: none; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px; }
  .opp-hero { padding-bottom: 36px; }
  .opp-hero-content { padding: 32px 16px 0; }
  .wrapper { padding: 20px 16px 30px; }
  .opp-type-cards, .filter-grid, .cards-grid, .three, .footer-inner { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 16px; }
  .level-tabs { width: 100%; }
  .level-tab { flex: 1; padding: 7px 4px; font-size: 0.75rem; text-align: center; }
  .cta-banner { padding: 19px 20px; margin-bottom: -30px; }
  .cta-banner h2 { font-size: 1.2rem; }
  .cta-actions { flex-direction: column; }
  .cta-btn { width: 100%; }
}
