/* CV Examples pages */

.cv-ex-main {
  padding-top: 1.5rem;
}

.cv-ex-date-modified {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* ---------- Header builder button ---------- */

.cv-ex-builder-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #3273dc;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background 0.15s;
}

.cv-ex-builder-btn:hover {
  background: #275bb5;
  color: #fff;
}

.cv-ex-builder-btn svg {
  flex-shrink: 0;
}

.cv-ex-main .column.is-9 > .cv-ex-builder-btn {
  margin-left: 15%;
}

@media (max-width: 768px) {
  .cv-ex-main .column.is-9 > .cv-ex-builder-btn {
    margin-left: 0;
  }
}

.cv-ex-subtitle {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* ---------- Preview-aligned headings (match 70% centered frame) ---------- */

.cv-ex-main .column.is-9 > h1,
.cv-ex-main .column.is-9 > .cv-ex-date-modified,
.cv-ex-section > h2 {
  margin-left: 15%;
}

.cv-ex-section > h2 {
  color: #333;
  font-size: 1.15rem;
  font-weight: 600;
  border-left: 3px solid #3273dc;
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}

/* ---------- CV page frame (preview container) ---------- */

.cv-page-frame {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  margin-bottom: 0.5rem;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA button ---------- */

.cv-ex-cta {
  text-align: center;
  padding: 0.4rem 0 0.5rem;
}

.cv-ex-cta .button .cv-ex-arrow {
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
  margin-right: 0.4em;
  vertical-align: -0.05em;
}

/* ---------- Section divider ---------- */

.cv-ex-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem auto 1.5rem;
  max-width: 60%;
  opacity: 0.5;
}

/* ---------- Occupation content ---------- */

.cv-ex-content {
  margin-top: 1rem;
}

.cv-ex-intro {
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ---------- FAQ ---------- */

.cv-ex-faq {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cv-ex-faq details {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
}

.cv-ex-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-ex-faq summary::before {
  content: "+";
  font-weight: 700;
  font-size: 1.1rem;
  color: #3273dc;
  flex-shrink: 0;
  width: 1.2em;
  text-align: center;
}

.cv-ex-faq details[open] > summary::before {
  content: "\2212"; /* minus sign */
}

.cv-ex-faq summary::-webkit-details-marker {
  display: none;
}

.cv-ex-faq details p {
  margin: 0.5rem 0 0.25rem 1.7em;
  color: #444;
  line-height: 1.6;
}

/* ---------- Sidebar ---------- */

.cv-ex-sidebar {
  position: sticky;
  top: 1rem;
}

.cv-ex-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #222;
}

.cv-ex-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-ex-sidebar li {
  margin-bottom: 0.4rem;
}

.cv-ex-sidebar a {
  color: #3273dc;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: block;
  transition: background 0.15s;
}

.cv-ex-sidebar a:hover {
  background: #f0f4ff;
}

.cv-ex-sidebar li.is-active a {
  font-weight: 700;
  color: #222;
  background: #f0f4ff;
}

/* ---------- Index page: search ---------- */

.cv-ex-search-wrap {
  max-width: 400px;
  margin-bottom: 1rem;
}

.cv-ex-search-wrap .input {
  border-radius: 6px;
  box-shadow: none;
  border-color: #ddd;
}

.cv-ex-search-wrap .input:focus {
  border-color: #3273dc;
  box-shadow: 0 0 0 2px rgba(50,115,220,.15);
}

.cv-ex-count {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.cv-ex-empty {
  text-align: center;
  color: #999;
  padding: 2rem 0;
  font-size: 1rem;
}

/* ---------- Index page: cards ---------- */

.cv-ex-grid {
  margin-top: 0.75rem;
}

.cv-ex-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  height: 100%;
  background: #fff;
}

.cv-ex-card:hover {
  border-color: #3273dc;
  box-shadow: 0 6px 16px rgba(50,115,220,.1);
  transform: translateY(-2px);
}

.cv-ex-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cv-ex-card-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.cv-ex-card-icon svg {
  width: 100%;
  height: 100%;
  fill: #3273dc;
}

.cv-ex-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  border: none;
}

.cv-ex-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cv-ex-skill-tag {
  background: #f0f4ff;
  color: #3273dc;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .cv-ex-sidebar {
    position: static;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
}

@media (max-width: 768px) {
  .cv-page-frame {
    max-width: 100%;
  }
  .cv-ex-main .column.is-9 > h1,
  .cv-ex-main .column.is-9 > .cv-ex-date-modified,
  .cv-ex-section > h2 {
    margin-left: 0;
  }
  .cv-ex-card {
    padding: 1rem 1.1rem;
  }
}
