/* =====================================================================
   AZ-Theme · CMS content blocks (Rich-Editor output on frontend)
   Scoped under .cms-content — mirrors admin editor block styles.
   ===================================================================== */

.cms-content::after {
  content: "";
  display: block;
  clear: both;
}

.cms-content .ce-grad {
  background: linear-gradient(90deg, #e5007d, #ffed00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.cms-content .ce-fig {
  margin: 1.75rem 0;
  max-width: 100%;
}
.cms-content .ce-fig .ce-fig-media {
  display: block;
  line-height: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.cms-content .ce-fig img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cms-content .ce-fig .ce-fig-media:not([style*="aspect"]) img {
  height: auto;
  object-fit: contain;
}
.cms-content .ce-fig figcaption {
  font-size: 0.8125rem;
  color: rgb(107 114 128);
  margin-top: 0.5rem;
  text-align: center;
}
.cms-content .ce-fig--none {
  margin-left: auto;
  margin-right: auto;
}
.cms-content .ce-fig--left {
  float: left;
  margin: 0.375rem 1.5rem 0.875rem 0;
}
.cms-content .ce-fig--right {
  float: right;
  margin: 0.375rem 0 0.875rem 1.5rem;
}
.cms-content .ce-fig--full {
  width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}
.cms-content .ce-fig.is-border .ce-fig-media {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cms-content .ce-fig.is-rounded .ce-fig-media {
  border-radius: 1rem;
}
.cms-content .ce-fig.is-shadow .ce-fig-media {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.cms-content .ce-fig.is-circle .ce-fig-media {
  border-radius: 50%;
}

.cms-content .ce-banner {
  position: relative;
  margin: 1.75rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
}
.cms-content .ce-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  grid-area: 1 / 1;
}
.cms-content .ce-banner .ce-banner-text {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  background: linear-gradient(90deg, rgba(5, 8, 18, 0.55), rgba(5, 8, 18, 0.15));
}
.cms-content .ce-banner .ce-banner-text :first-child {
  margin-top: 0;
}

.cms-content .ce-textblock {
  margin: 1rem 0;
}

.cms-content .ce-btnrow {
  margin: 1.25rem 0;
  text-align: center;
}
.cms-content .ce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s, transform 0.15s;
}
.cms-content .ce-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.cms-content .ce-btn--magenta {
  background: #e5007d;
  color: #fff;
  box-shadow: 0 0 20px rgba(229, 0, 125, 0.35);
}
.cms-content .ce-btn--yellow {
  background: #ffed00;
  color: #050812;
}
.cms-content .ce-btn--cyan {
  background: #009ee3;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 158, 227, 0.35);
}
.cms-content .ce-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}

.cms-content .ce-hr {
  border: none;
  height: 1px;
  margin: 1.75rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 18%, rgba(255, 255, 255, 0.15) 82%, transparent);
}

.cms-content .ce-pre {
  background: #060a14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  margin: 1.125rem 0;
  overflow-x: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.84375rem;
  line-height: 1.6;
  color: #cfe3ff;
  white-space: pre;
}
.cms-content .ce-pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.cms-content .ce-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}
.cms-content .ce-table th,
.cms-content .ce-table td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5625rem 0.8125rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.cms-content .ce-table th {
  background: rgba(229, 0, 125, 0.12);
  color: #fff;
  font-weight: 700;
}
.cms-content .ce-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.cms-content .ce-embed {
  margin: 1.375rem 0;
}
.cms-content .ce-embed .frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #04060e;
}
.cms-content .ce-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cms-content .ce-cols {
  display: grid;
  gap: 1.375rem;
  margin: 1.25rem 0;
}
.cms-content .ce-cols.c2 {
  grid-template-columns: 1fr 1fr;
}
.cms-content .ce-cols.c3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .cms-content .ce-cols.c2,
  .cms-content .ce-cols.c3 {
    grid-template-columns: 1fr;
  }
  .cms-content .ce-fig--left,
  .cms-content .ce-fig--right {
    float: none;
    width: 100% !important;
    margin: 1rem 0;
  }
}
.cms-content .ce-col {
  min-width: 0;
}

.cms-content .ce-acc {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  margin: 1.125rem 0;
  background: rgba(13, 20, 36, 0.6);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cms-content .ce-acc.is-open {
  border-color: rgba(229, 0, 125, 0.28);
  box-shadow: 0 0 24px rgba(229, 0, 125, 0.08);
}
.cms-content .ce-acc > summary {
  padding: 0.8125rem 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cms-content .ce-acc > summary:hover {
  background: rgba(229, 0, 125, 0.06);
}
.cms-content .ce-acc.is-open > summary {
  background: rgba(229, 0, 125, 0.08);
}
.cms-content .ce-acc > summary::-webkit-details-marker {
  display: none;
}
.cms-content .ce-acc > summary::before {
  content: "▸";
  color: #e5007d;
  flex-shrink: 0;
  transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}
.cms-content .ce-acc.is-open > summary::before {
  transform: rotate(90deg);
}
.cms-content .ce-acc.is-closing > summary::before {
  transform: rotate(0deg);
  transition-duration: 0.36s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.cms-content .ce-acc .ce-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 1rem;
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}
.cms-content .ce-acc.is-open .ce-acc-body {
  grid-template-rows: 1fr;
  border-top-color: rgba(255, 255, 255, 0.08);
}
.cms-content .ce-acc.is-closing .ce-acc-body {
  border-top-color: transparent;
  transition: grid-template-rows 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.cms-content .ce-acc .ce-acc-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0.25rem 0 0.875rem;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    padding 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}
.cms-content .ce-acc.is-open .ce-acc-inner {
  opacity: 1;
  transform: translateY(0);
}
.cms-content .ce-acc.is-closing .ce-acc-inner {
  opacity: 0;
  transform: none;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 1, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.cms-content .ce-acc .ce-acc-inner > :first-child {
  margin-top: 0.625rem;
  transition: margin-top 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.cms-content .ce-acc.is-closing .ce-acc-inner > :first-child {
  margin-top: 0;
}
.cms-content .ce-acc.is-animating .ce-acc-body {
  will-change: grid-template-rows;
}
@media (prefers-reduced-motion: reduce) {
  .cms-content .ce-acc,
  .cms-content .ce-acc > summary,
  .cms-content .ce-acc > summary::before,
  .cms-content .ce-acc .ce-acc-body,
  .cms-content .ce-acc .ce-acc-inner {
    transition: none !important;
  }
  .cms-content .ce-acc[open] .ce-acc-body {
    grid-template-rows: 1fr;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .cms-content .ce-acc[open] .ce-acc-inner {
    opacity: 1;
    transform: none;
  }
  .cms-content .ce-acc[open] > summary::before {
    transform: rotate(90deg);
  }
  .cms-content .ce-acc:not([open]) .ce-acc-body {
    display: none;
  }
}

.cms-content .ce-callout {
  display: flex;
  gap: 0.8125rem;
  margin: 1.25rem 0;
  padding: 0.9375rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.02);
}
.cms-content .ce-callout::before {
  content: "";
  width: 4px;
  flex: none;
  border-radius: 99px;
  align-self: stretch;
}
.cms-content .ce-callout > div {
  flex: 1;
}
.cms-content .ce-callout > div > :first-child {
  margin-top: 0;
}
.cms-content .ce-callout > div > :last-child {
  margin-bottom: 0;
}
.cms-content .ce-callout--magenta {
  border-color: rgba(229, 0, 125, 0.35);
}
.cms-content .ce-callout--magenta::before {
  background: #e5007d;
}
.cms-content .ce-callout--yellow {
  border-color: rgba(255, 237, 0, 0.35);
}
.cms-content .ce-callout--yellow::before {
  background: #ffed00;
}
.cms-content .ce-callout--cyan {
  border-color: rgba(0, 158, 227, 0.35);
}
.cms-content .ce-callout--cyan::before {
  background: #009ee3;
}
