/* ===================================================================
   custom.css  — General / Custom Page Stylesheet
   All colours reference :root variables defined in style.css
   =================================================================== */

/* ── 1. Page Hero / Title Banner ──────────────────────────────────── */
.custom-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-hero .container {
  position: relative;
  z-index: 2;
  transform: translateY(-5vh);
}





.custom-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.02em;
  max-width: 820px;
  margin: 0 auto;
}

.custom-hero-sub {
  margin: 1.4rem auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.custom-hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── 2. Intro / Overview Block ────────────────────────────────────── */
.custom-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.custom-intro p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.custom-intro p + p {
  margin-top: 1rem;
}

/* ── 3. Text + Image Content Block (alternating) ─────────────────── */
.custom-content-block {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .custom-content-block {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .custom-content-block.reverse .custom-cb-text { order: 2; }
  .custom-content-block.reverse .custom-cb-media { order: 1; }
}

.custom-cb-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-top: .5rem;
}

.custom-cb-text p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.custom-cb-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), 0 0 40px rgba(180,156,255,.18);
}

.custom-cb-media img,
.custom-cb-media video {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.custom-cb-media:hover img,
.custom-cb-media:hover video {
  transform: scale(1.04);
}

/* ── 4. Two-Column / Multi-Column Content ────────────────────────── */
.custom-cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .custom-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .custom-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .custom-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.custom-col-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(93,74,140,.22) 0%, rgba(15,10,30,.8) 100%);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.custom-col-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-vivid);
  box-shadow: var(--shadow-card), 0 0 24px rgba(180,156,255,.18);
}

.custom-col-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: .85rem;
}

.custom-col-card p {
  margin-top: .5rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 5. Accordion / Expandable Content ──────────────────────────── */
.custom-accordion {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.custom-accordion-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15,10,30,.7);
  transition: border-color .25s;
}

.custom-accordion-item[open],
.custom-accordion-item:focus-within {
  border-color: var(--purple-vivid);
  box-shadow: 0 0 20px rgba(180,156,255,.12);
}

.custom-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color .2s;
  user-select: none;
}

.custom-accordion-summary::-webkit-details-marker { display: none; }

.custom-accordion-summary:hover { color: var(--purple-light); }

.custom-accordion-summary .acc-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--purple-soft);
  display: grid;
  place-items: center;
  color: var(--purple-accent);
  transition: transform .3s, background .25s;
}

.custom-accordion-summary .acc-icon i {
  width: .85rem;
  height: .85rem;
}

.custom-accordion-item[open] .acc-icon {
  transform: rotate(180deg);
  background: rgba(180,156,255,.25);
}

.custom-accordion-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── 6. Tabs Section ─────────────────────────────────────────────── */
.custom-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.custom-tab-btn {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s;
}

.custom-tab-btn:hover {
  background: var(--purple-soft);
  color: var(--fg);
  border-color: var(--purple-mid);
}

.custom-tab-btn.active {
  background: var(--grad-purple);
  color: #0c0816;
  font-weight: 700;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.custom-tab-panel {
  display: none;
}

.custom-tab-panel.active {
  display: block;
  animation: fadeInUp .4s ease both;
}

.custom-tab-content {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(15,10,30,.7);
}

.custom-tab-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.custom-tab-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .75rem;
}

/* ── 7. Timeline / Steps Section ─────────────────────────────────── */
.custom-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.custom-timeline::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-vivid) 0%, transparent 100%);
}

@media (min-width: 768px) {
  .custom-timeline::before { left: 50%; transform: translateX(-50%); }
}

.custom-timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .custom-timeline-item {
    width: 50%;
    align-self: flex-start;
  }
  .custom-timeline-item:nth-child(odd) {
    align-self: flex-end;
    flex-direction: row-reverse;
    text-align: right;
    padding-right: 2.5rem;
    padding-left: 0;
  }
  .custom-timeline-item:nth-child(even) {
    padding-left: 2.5rem;
    padding-right: 0;
  }
}

.custom-tl-dot {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--grad-purple);
  display: grid;
  place-items: center;
  color: #0c0816;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 0 0 4px rgba(180,156,255,.2), var(--shadow-glow);
  z-index: 1;
  flex-shrink: 0;
}

.custom-tl-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.custom-tl-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 8. Icon List / Highlight Points ─────────────────────────────── */
.custom-icon-list {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .custom-icon-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .custom-icon-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.custom-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15,10,30,.6);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.custom-icon-item:hover {
  transform: translateY(-3px);
  border-color: var(--purple-mid);
  box-shadow: 0 8px 24px rgba(180,156,255,.12);
}

.custom-icon-item .icon-tile {
  flex-shrink: 0;
  margin-top: .1rem;
}

.custom-icon-item h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.custom-icon-item p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── 9. Quote / Highlight Callout Block ──────────────────────────── */
.custom-quote {
  position: relative;
  padding: 2.5rem 2.5rem 2.5rem 3.5rem;
  border-radius: 1.25rem;
  border-left: 4px solid var(--purple-vivid);
  background: linear-gradient(135deg, rgba(93,74,140,.28) 0%, rgba(15,10,30,.85) 100%);
  box-shadow: var(--shadow-card);
}

.custom-quote::before {
  content: '"';
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--purple-vivid);
  opacity: .5;
}

.custom-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: var(--fg);
  margin: 0;
}

.custom-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-size: .82rem;
  font-style: normal;
  color: var(--purple-accent);
  font-weight: 600;
  letter-spacing: .08em;
}

/* ── 10. Stats Strip ──────────────────────────────────────────────── */
.custom-stats-strip {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(93,74,140,.22) 0%, rgba(15,10,30,.88) 100%);
  box-shadow: var(--shadow-card);
  text-align: center;
}

@media (min-width: 640px) {
  .custom-stats-strip { grid-template-columns: repeat(4, 1fr); }
}

.custom-stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.custom-stat-label {
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ── 11. Media Embed Block ────────────────────────────────────────── */
.custom-media-block {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), 0 0 40px rgba(180,156,255,.18);
  background: var(--bg-2);
  position: relative;
}

.custom-media-block img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.custom-media-block video,
.custom-media-block iframe {
  width: 100%;
  height: 440px;
  display: block;
  border: 0;
}

.custom-media-caption {
  padding: 1rem 1.5rem;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.custom-media-caption i { width: .9rem; height: .9rem; color: var(--purple-accent); }

/* ── 12. Downloadable Resources ──────────────────────────────────── */
.custom-resources-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .custom-resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .custom-resources-grid { grid-template-columns: repeat(3, 1fr); }
}

.custom-resource-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15,10,30,.65);
  text-decoration: none;
  color: var(--fg);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.custom-resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-vivid);
  box-shadow: 0 8px 28px rgba(180,156,255,.15);
}

.custom-resource-icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .75rem;
  background: var(--purple-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--purple-accent);
}

.custom-resource-icon i { width: 1.15rem; height: 1.15rem; }

.custom-resource-meta h4 { font-size: .93rem; font-weight: 600; }
.custom-resource-meta span {
  font-size: .76rem;
  color: var(--muted);
  margin-top: .15rem;
  display: block;
}

.custom-resource-dl {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--purple-accent);
}

.custom-resource-dl i { width: 1.1rem; height: 1.1rem; }

/* ── 13. Related Links / Resources ──────────────────────────────── */
.custom-related-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .custom-related-links { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .custom-related-links { grid-template-columns: repeat(4, 1fr); }
}

.custom-related-link-card {
  display: block;
  padding: 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15,10,30,.6);
  text-decoration: none;
  color: var(--fg);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.custom-related-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-vivid);
  box-shadow: 0 8px 24px rgba(180,156,255,.14);
}

.custom-related-link-card .rl-label {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple-accent);
  font-weight: 600;
  margin-bottom: .5rem;
}

.custom-related-link-card h4 { font-size: .95rem; font-weight: 600; }

.custom-related-link-card p {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .35rem;
  line-height: 1.5;
}

.custom-related-link-card .rl-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--purple-accent);
  font-weight: 600;
  transition: gap .2s;
}

.custom-related-link-card:hover .rl-arrow { gap: .55rem; }
.custom-related-link-card .rl-arrow i { width: .85rem; height: .85rem; }

/* ── 14. Banner / Promo Strip ────────────────────────────────────── */
.custom-banner-strip {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-bright);
  text-align: center;
  isolation: isolate;
}

.custom-banner-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(138,117,214,.35) 0%, transparent 70%),
    linear-gradient(135deg, rgba(93,74,140,.45) 0%, rgba(15,10,30,.9) 100%);
}

.custom-banner-strip h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-top: .5rem;
}

.custom-banner-strip p {
  margin: 1rem auto 0;
  max-width: 520px;
  color: var(--muted);
}

.custom-banner-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── 15. Divider / Spacer ─────────────────────────────────────────── */
.custom-spacer { height: 3rem; }
.custom-spacer-lg { height: 5rem; }

/* ── 16. Custom Widget / Embed Section ───────────────────────────── */
.custom-widget-box {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(15,10,30,.7);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.custom-widget-box iframe,
.custom-widget-box > * {
  width: 100%;
  border: 0;
}

/* Generic form inside widget */
.custom-widget-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.custom-widget-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.custom-widget-form input,
.custom-widget-form textarea,
.custom-widget-form select {
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: rgba(10,6,22,.75);
  color: var(--fg);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: 0;
}

.custom-widget-form input:focus,
.custom-widget-form textarea:focus {
  border-color: var(--purple-vivid);
  box-shadow: 0 0 0 3px rgba(180,156,255,.18);
}

.custom-widget-form textarea { min-height: 130px; resize: vertical; }

/* ── 17. Final CTA ───────────────────────────────────────────────── */
.custom-final-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  border-radius: 2rem;
  text-align: center;
  isolation: isolate;
  border: 1px solid var(--border-bright);
}

.custom-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(138,117,214,.3) 0%, transparent 68%),
    linear-gradient(180deg, rgba(93,74,140,.35) 0%, rgba(8,6,15,.95) 100%);
}

.custom-final-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-top: .5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.custom-final-cta p {
  margin: 1.2rem auto 0;
  max-width: 500px;
  color: var(--muted);
  font-size: 1.05rem;
}

.custom-cta-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Section header (shared) ─────────────────────────────────────── */
.custom-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.custom-section-header h2 { margin-top: .75rem; }

.custom-section-header p {
  margin: 1rem auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Keyframe (used by tabs) ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 18. Notification / Alert Block ──────────────────────────────── */
.custom-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: rgba(15, 10, 30, 0.6);
  position: relative;
  overflow: hidden;
}

.custom-alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--purple-accent);
}

.custom-alert-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.custom-alert-content {
  flex: 1;
}

.custom-alert-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.custom-alert-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Variants */
.alert-info::before { background: #3b82f6; }
.alert-info .custom-alert-icon { color: #3b82f6; }

.alert-success::before { background: #10b981; }
.alert-success .custom-alert-icon { color: #10b981; }

.alert-warning::before { background: #f59e0b; }
.alert-warning .custom-alert-icon { color: #f59e0b; }

.alert-error::before { background: #ef4444; }
.alert-error .custom-alert-icon { color: #ef4444; }

.alert-update::before { background: var(--purple-vivid); }
.alert-update .custom-alert-icon { color: var(--purple-vivid); }

/* ── 20. Feature Highlight Block ────────────────────────────────── */
.custom-feature-highlight {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: rgba(15, 10, 30, 0.4);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 2rem;
}

.cfh-media img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: block;
}

.cfh-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cfh-content h2 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cfh-content p {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .custom-feature-highlight {
    flex-direction: row;
    align-items: center;
    padding: 3rem;
    gap: 4rem;
  }
  .cfh-media {
    flex: 1.2;
  }
  .cfh-content {
    flex: 1;
  }
}

/* ── Responsive tweaks ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .custom-hero { padding: 60px 0 72px; }
  .custom-quote { padding: 2rem 1.5rem 2rem 2.5rem; }
  .custom-final-cta { padding: 3.5rem 1.5rem; }
  .custom-widget-box { padding: 1.5rem; }
  .custom-banner-strip { padding: 2.5rem 1.2rem; }
}
