/* Cursuri de hidrobiologie — extinde assets/blog.css */

/* Hero */
.course-hero {
  position: relative;
  color: #fff;
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(180deg, hsla(152,45%,8%,0.86), hsla(152,40%,14%,0.92)),
    url('/images/gallery/insula-plutitoare-lac-smarald-cariera-1600.webp') center/cover no-repeat;
  overflow: hidden;
}
.course-hero .breadcrumbs, .course-hero .breadcrumbs a { color: hsla(0,0%,100%,0.72); }
.course-hero .section-label { color: hsl(140,45%,72%); }
.course-hero h1 { font-size: 2rem; font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; margin: 0.4rem 0 1rem; }
.course-hero h1 strong { font-weight: 600; color: hsl(140,50%,72%); }
.course-hero .lead { color: hsla(0,0%,100%,0.85); max-width: 46rem; font-size: 1.05rem; }
.course-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.course-hero .btn-outline { border-color: hsla(0,0%,100%,0.6); color: #fff; }
.course-hero .btn-outline:hover { background: #fff; color: hsl(var(--nature-dark)); }
.course-hero .btn-primary { background: hsl(var(--accent)); border-color: hsl(var(--accent)); }
.course-hero .btn-primary:hover { background: hsl(140,45%,45%); border-color: hsl(140,45%,45%); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid hsla(0,0%,100%,0.18); }
.hero-facts div { min-width: 8rem; }
.hero-facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: hsla(0,0%,100%,0.6); margin-bottom: 0.3rem; }
.hero-facts dd { font-size: 1rem; font-weight: 500; color: #fff; }

/* Course introduction video */
.course-video {
  padding: 3.5rem 0 4rem;
  background: hsl(var(--background));
}
.course-video-heading { max-width: 50rem; margin-bottom: 1.75rem; }
.course-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--nature-dark));
  box-shadow: 0 20px 50px hsla(152,35%,22%,0.16);
}
.course-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Badges */
.badge {
  display: inline-block; padding: 0.35rem 0.8rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge-base { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-spec { background: hsla(var(--accent), 0.14); color: hsl(var(--nature-dark)); border: 1px solid hsla(var(--accent), 0.45); }

/* Learning path */
.path { background: hsl(var(--nature-light)); }
.path-steps { display: grid; gap: 1rem; margin-top: 2.5rem; }
.path-step {
  position: relative; background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); border-left: 4px solid hsl(var(--accent));
  border-radius: 0.9rem; padding: 1.5rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.path-step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px hsla(152,35%,22%,0.14); }
.path-step .step-no { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: hsl(var(--accent)); }
.path-step h3 { font-size: 1.2rem; font-weight: 600; margin: 0.45rem 0 0.25rem; }
.path-step .course-name { font-size: 0.95rem; color: hsl(var(--muted-foreground)); }
.path-step .price { margin-top: 0.6rem; font-weight: 600; color: hsl(var(--nature-dark)); }
.path-arrow { display: flex; justify-content: center; color: hsla(var(--accent), 0.8); }
.path-arrow svg { width: 1.6rem; height: 1.6rem; }
@media (min-width: 900px) {
  .path-steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
  .path-arrow svg { transform: rotate(-90deg); }
}

/* Course cards */
.course-card {
  background: hsl(var(--background)); border: 1px solid hsl(var(--border));
  border-radius: 1rem; padding: 1.75rem 1.5rem; margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover { border-color: hsla(var(--accent), 0.45); box-shadow: 0 14px 30px hsla(152,35%,22%,0.10); }
.course-card .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.course-card h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.course-card .subtitle { color: hsl(var(--accent)); font-size: 0.95rem; font-weight: 500; margin-top: 0.25rem; }
.course-card > p { color: hsl(var(--muted-foreground)); margin-top: 0.9rem; line-height: 1.8; }
.topic-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; list-style: none; }
.topic-list li {
  font-size: 0.82rem; padding: 0.4rem 0.8rem; border-radius: 9999px;
  background: hsl(var(--nature-light)); color: hsl(var(--nature-dark));
  border: 1px solid hsla(var(--accent), 0.2);
}
.requirement {
  margin-top: 1.3rem; padding: 0.9rem 1.1rem; border-radius: 0.6rem;
  background: hsl(var(--card)); border-left: 3px solid hsl(var(--primary));
  font-size: 0.92rem; color: hsla(var(--foreground), 0.85);
}
.requirement strong { font-weight: 600; }
.price-tag { margin-top: 1.3rem; font-size: 1.5rem; font-weight: 600; color: hsl(var(--nature-dark)); }
.price-tag small { display: block; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Chain: scufundari -> observatie ... */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.chain span.link-step {
  padding: 0.5rem 0.95rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: hsl(var(--background)); border: 1px solid hsla(var(--accent), 0.35); color: hsl(var(--nature-dark));
}
.chain span.sep { color: hsl(var(--accent)); font-weight: 700; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 0.9rem; overflow: hidden; }
.compare-table th, .compare-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); font-size: 0.95rem; vertical-align: top; }
.compare-table thead th { background: hsl(var(--nature-light)); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--nature-dark)); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.compare-cards .compare-card { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 0.85rem; padding: 1.25rem; }
.compare-cards .compare-card h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.compare-cards .compare-card p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }
.compare-table-wrap { display: none; }
@media (min-width: 768px) {
  .compare-table-wrap { display: block; }
  .compare-cards { display: none; }
}

/* Certificates */
.certs { background: hsl(var(--card)); }
.cert-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-card { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 1rem; overflow: hidden; }
.cert-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  background: hsl(var(--nature-muted)); cursor: zoom-in; border: none; padding: 0; overflow: hidden;
}
.cert-frame img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.cert-frame .cert-missing {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  color: hsl(var(--muted-foreground)); font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, hsl(var(--card)), hsl(var(--card)) 12px, hsl(var(--nature-light)) 12px, hsl(var(--nature-light)) 24px);
}
.cert-frame .cert-missing svg { width: 2rem; height: 2rem; color: hsla(var(--accent), 0.6); }
.cert-body { padding: 1.25rem 1.4rem 1.5rem; }
.cert-body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.cert-body dl { margin-top: 0.8rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.cert-body dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.cert-body dd { font-weight: 500; }
.cert-note { margin-top: 1.5rem; font-size: 0.85rem; color: hsl(var(--muted-foreground)); max-width: 46rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: hsla(152,35%,6%,0.96); display: none; z-index: 120; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 0.5rem; background: #fff; box-shadow: 0 30px 60px hsla(0,0%,0%,0.6); }
.lightbox figcaption { color: hsla(0,0%,100%,0.85); font-size: 0.9rem; margin-top: 0.9rem; text-align: center; }
.lightbox .lb-close {
  position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: hsla(0,0%,100%,0.12); border: 1px solid hsla(0,0%,100%,0.25); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: hsla(0,0%,100%,0.24); }

/* Detail page blocks */
.detail-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.prose h2 { font-size: 1.45rem; font-weight: 600; margin: 2.4rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.8rem 0 0.6rem; }
.prose p { color: hsla(var(--foreground), 0.86); line-height: 1.85; margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.4rem 1.25rem; color: hsla(var(--foreground), 0.86); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }

.sidecard { position: sticky; top: 8.5rem; background: hsl(var(--nature-light)); border: 1px solid hsla(var(--accent),0.25); border-radius: 1rem; padding: 1.5rem; }
.sidecard h3 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: hsl(var(--accent)); margin-bottom: 1rem; }
.sidecard dl { display: grid; gap: 0.9rem; }
.sidecard dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.sidecard dd { font-weight: 500; }
.sidecard dd.tbd { color: hsl(var(--muted-foreground)); font-weight: 400; font-style: italic; }
.sidecard .btn-primary { width: 100%; margin-top: 1.4rem; }

.modules { display: grid; gap: 0.85rem; margin: 1.25rem 0 1.5rem; }
.module {
  display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem;
  background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 0.7rem;
}
.module .num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 9999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.module p { margin: 0; font-size: 0.95rem; }

/* Form */
.form-section { background: hsl(var(--nature-light)); }
.enroll-form { display: grid; gap: 1rem; max-width: 42rem; margin-top: 2rem; }
@media (min-width: 640px) { .enroll-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.8rem 0.9rem; border: 1px solid hsl(var(--border));
  border-radius: 0.55rem; background: hsl(var(--background)); color: inherit; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsla(152,40%,38%,0.18); }
.form-hint { font-size: 0.82rem; color: hsl(var(--muted-foreground)); }
.form-status { font-size: 0.9rem; color: hsl(var(--nature-dark)); font-weight: 500; min-height: 1.4rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 2rem; max-width: 48rem; }
.faq details { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 0.7rem; padding: 1rem 1.15rem; }
.faq details[open] { border-color: hsla(var(--accent), 0.45); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: hsl(var(--accent)); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.75rem; color: hsl(var(--muted-foreground)); font-size: 0.94rem; line-height: 1.7; }

/* Media band */
.media-band { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .media-band { grid-template-columns: repeat(4, 1fr); } }
.media-band img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0.75rem; display: block; background: hsl(var(--nature-muted)); }

@media (min-width: 640px) {
  .course-hero { padding: 5rem 0 4rem; }
  .course-hero h1 { font-size: 2.9rem; }
  .course-card { padding: 2.25rem 2rem; }
  .course-video { padding: 4.5rem 0 5rem; }
}
@media (min-width: 1024px) {
  .course-hero h1 { font-size: 3.4rem; }
}
