/* --- FORMS --- */
form .age-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  z-index: -1;
}
form .form-error {
  background: red;
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 14px;
  margin: 5px 0;
}
form .form-error:empty {
  padding: 0;
  margin: 0;
}

/* --- EDITOR CONTENT BASE STYLES --- */
.editor-content-wrapper img {
  max-width: 100%;
}

.editor-content-wrapper a {
  color: blue;
}
.editor-content-wrapper table {
  max-width: 100%;
  width: auto !important;
}
.editor-content-wrapper table tr td {
  padding: 10px;
}
.editor-content-wrapper br {
  display: block !important;
}

.editor-content-wrapper p {
  margin-bottom: 10px !important;
}

.editor-content-wrapper p:empty {
  height: 1px !important;
}

.editor-content-wrapper ol,
.editor-content-wrapper ul {
  padding-left: 40px;
  margin: 0px;
}

.editor-content-wrapper ol {
  list-style-type: decimal;
}

.editor-content-wrapper ul {
  list-style-type: disc;
}

#lbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
}

#lbox-overlay.lbox-active {
  display: flex;
}

#lbox-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
}

#lbox-content iframe {
  display: block;
  width: 85vw;
  height: calc(85vw * 9 / 16);
  max-height: 85vh;
  border: none;
  border-radius: 3px;
}

@media (max-width: 640px) {
  #lbox-content iframe {
    width: 100vw;
    height: calc(100vw * 9 / 16);
  }
}

.lbox-btn {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.lbox-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

#lbox-close {
  top: 16px;
  right: 16px;
}

#lbox-prev,
#lbox-next {
  top: 50%;
  transform: translateY(-50%);
}

#lbox-prev {
  left: 16px;
}
#lbox-next {
  right: 16px;
}

#lbox-prev[hidden],
#lbox-next[hidden] {
  display: none;
}

#siteNoticeBar {
  display: none;
  position: fixed;
  z-index: 9999;
  max-width: calc(100% - 40px);
  width: 600px;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  font-size: 14px;
}
#siteNoticeBar .editor-content-wrapper,
#siteNoticeBar .editor-content-wrapper p {
  font-size: 14px;
  line-height: 20px;
}
#siteNoticeBar a:hover {
  color: inherit !important;
}

#siteNoticeBar a {
  color: inherit !important;
  display: inline;
  padding-bottom: 1px;
  border-bottom: 1px solid;
}

#siteNoticeBar .notice-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#siteNoticeBar #siteNoticeNecessary {
  padding: 8px 16px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.75;
}

#siteNoticeBar #siteNoticeConfirm {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.editor-content-wrapper [data-block] {
  margin: 50px 0;
}
/* ============================================================
   public.css — SHARED styles (admin + public site)
   Grid, pb-button, block visual styles.
   No editor chrome here.
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --rb-radius: 10px;
  --rb-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --rb-gap: 40px;
  --rb-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --rb-duration: 0.22s;
}

/* ── Grid ────────────────────────────────────────────────── */
.rb-row {
  --rb-gap: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rb-gap);
}
.rb-col {
  box-sizing: border-box;
  width: 100%;
  min-height: 2em;
}

@media (min-width: 768px) {
  .rb-md-50 {
    width: calc((100% - var(--rb-gap)) / 2);
  }
  .rb-md-33 {
    width: calc((100% - var(--rb-gap) * 2) / 3);
  }
  .rb-md-25 {
    width: calc((100% - var(--rb-gap) * 3) / 4);
  }
  .rb-md-66 {
    width: calc((100% - var(--rb-gap) * 2) / 3 * 2 + var(--rb-gap));
  }
  .rb-md-75 {
    width: calc((100% - var(--rb-gap) * 3) / 4 * 3 + var(--rb-gap) * 2);
  }
  .rb-md-40 {
    width: calc((100% - var(--rb-gap)) * 0.4);
  }
  .rb-md-60 {
    width: calc((100% - var(--rb-gap)) * 0.6);
  }
  .rb-md-100 {
    width: 100%;
  }
}
@media (min-width: 992px) {
  .rb-lg-33 {
    width: calc((100% - var(--rb-gap) * 2) / 3);
  }
  .rb-lg-40 {
    width: calc((100% - var(--rb-gap)) * 0.4);
  }
  .rb-lg-50 {
    width: calc((100% - var(--rb-gap)) / 2);
  }
  .rb-lg-60 {
    width: calc((100% - var(--rb-gap)) * 0.6);
  }
  .rb-lg-66 {
    width: calc((100% - var(--rb-gap) * 2) / 3 * 2 + var(--rb-gap));
  }
  .rb-lg-100 {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .rb-xl-16 {
    width: calc((100% - var(--rb-gap) * 5) / 6);
  }
  .rb-xl-20 {
    width: calc((100% - var(--rb-gap) * 4) / 5);
  }
  .rb-xl-25 {
    width: calc((100% - var(--rb-gap) * 3) / 4);
  }
  .rb-xl-33 {
    width: calc((100% - var(--rb-gap) * 2) / 3);
  }
  .rb-xl-40 {
    width: calc((100% - var(--rb-gap)) * 0.4);
  }
  .rb-xl-50 {
    width: calc((100% - var(--rb-gap)) / 2);
  }
  .rb-xl-60 {
    width: calc((100% - var(--rb-gap)) * 0.6);
  }
  .rb-xl-66 {
    width: calc((100% - var(--rb-gap) * 2) / 3 * 2 + var(--rb-gap));
  }
  .rb-xl-75 {
    width: calc((100% - var(--rb-gap) * 3) / 4 * 3 + var(--rb-gap) * 2);
  }
  .rb-xl-100 {
    width: 100%;
  }
}

/* ── pb-button ───────────────────────────────────────────── */
.pb-button,
.rb-block-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--rb-duration) var(--rb-ease),
    box-shadow var(--rb-duration) var(--rb-ease),
    filter var(--rb-duration) var(--rb-ease);
}
.pb-button:hover,
.rb-block-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  filter: brightness(1.08);
}
.pb-button:active,
.rb-block-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Block spacing (public) ──────────────────────────────── */
.editor-content-wrapper [data-block] {
  margin: 50px 0;
}

/* ── CTA ─────────────────────────────────────────────────── */
.rb-cta,
.rb-cta2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: var(--rb-radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.rb-cta {
  background-color: #1e293b;
  color: #fff;
}
.rb-cta2 {
  background-color: #1e40af;
  color: #fff;
}
.rb-cta-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: 0;
}
.rb-cta-left,
.rb-cta-right {
  position: relative;
  z-index: 1;
}
.rb-cta-left {
  flex: 1 1 300px;
  min-width: 0;
}
.rb-cta-right {
  flex-shrink: 0;
}
.rb-cta-text {
  outline: none;
}
.rb-cta-text h1,
.rb-cta-text h2,
.rb-cta-text h3 {
  color: inherit;
  margin: 0 0 8px;
}
.rb-cta-text p {
  margin: 0;
  opacity: 0.9;
}

/* ── Download ────────────────────────────────────────────── */
.rb-download {
  border-radius: var(--rb-radius);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  transition: box-shadow var(--rb-duration) var(--rb-ease);
}
.rb-download:hover {
  box-shadow: var(--rb-shadow);
}
.rb-download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.rb-download-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
}
.rb-download-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  animation: rb-bounce 2s ease infinite;
}
.rb-download-icon svg {
  width: 24px;
  height: 24px;
}
.rb-download-text {
  outline: none;
  font-size: 14px;
  color: #475569;
}
@keyframes rb-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* ── List block ──────────────────────────────────────────── */
.rb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rb-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background var(--rb-duration) var(--rb-ease);
}
.rb-list-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--rb-duration) var(--rb-ease);
}
.rb-list-item:hover .rb-list-icon {
  transform: scale(1.2);
}
.rb-list-text {
  outline: none;
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}

/* ── About ───────────────────────────────────────────────── */
.rb-about {
  align-items: center;
  gap: 32px;
}
.rb-about-left {
  flex: 1 1 300px;
}
.rb-about-right {
  flex: 1 1 300px;
}
.rb-about-text {
  outline: none;
  margin-bottom: 20px;
}
.rb-about-text h1,
.rb-about-text h2,
.rb-about-text h3 {
  margin-top: 0;
}
.rb-about-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--rb-radius);
  transition:
    transform var(--rb-duration) var(--rb-ease),
    box-shadow var(--rb-duration) var(--rb-ease);
}
.rb-about-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Gallery grid ────────────────────────────────────────── */
.rb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--gc, 3), 1fr);
  gap: 12px;
}
.rb-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rb-radius);
  transition: transform var(--rb-duration) var(--rb-ease);
}
.rb-gallery-img:hover {
  transform: scale(1.03);
}

/* ── Carousel slider (public) ────────────────────────────── */
.rb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--rb-radius);
}
.rb-carousel-track {
  display: flex;
  will-change: transform;
}
.rb-carousel-slide {
  flex-shrink: 0;
  position: relative;
  min-height: 300px;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rb-cs-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}
.rb-cs-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  text-align: center;
  color: #fff;
  max-width: 700px;
}
.rb-cs-content h1,
.rb-cs-content h2,
.rb-cs-content h3 {
  color: inherit;
}

/* Alignment classes */
.rb-cs-align-left .rb-cs-content {
  text-align: left;
}
.rb-cs-align-right .rb-cs-content {
  text-align: right;
}
.rb-cs-valign-flex-start .rb-carousel-slide {
  align-items: flex-start;
}
.rb-cs-valign-flex-end .rb-carousel-slide {
  align-items: flex-end;
}

/* Nav buttons */
.rb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.12s;
  backdrop-filter: blur(4px);
}
.rb-carousel-btn:hover {
  background: #fff;
}
.rb-carousel-btn svg {
  width: 18px;
  height: 18px;
}
.rb-carousel-prev {
  left: 12px;
}
.rb-carousel-next {
  right: 12px;
}

/* Nav mode 4 — buttons in bottom bar */
.rb-carousel-nav-4 .rb-carousel-btn {
  position: static;
  transform: none;
}
.rb-carousel-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
}

/* Nav mode 5 — buttons top-right corner */
.rb-carousel-corner-nav {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.rb-carousel-nav-5 .rb-carousel-btn {
  position: static;
  transform: none;
  width: 32px;
  height: 32px;
}

/* Dots */
.rb-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 4px;
}
.rb-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.15s,
    transform 0.15s,
    width 0.2s;
}
.rb-carousel-dot.active {
  background: #3b82f6;
  transform: scale(1.2);
  width: 20px;
  border-radius: 4px;
}

/* Nav modes 2 & 3 — dots outside container */
.rb-carousel-nav-2,
.rb-carousel-nav-3 {
  overflow: visible;
}

/* Nav mode 3 — dots only, hide buttons */
.rb-carousel-nav-3 .rb-carousel-btn {
  display: none;
}

/* ── Cards grid ──────────────────────────────────────────── */
.rb-cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--gc, 3), 1fr);
  gap: var(--rb-gap, 24px);
}
.rb-card {
  border-radius: var(--rb-radius);
  overflow: hidden;
  box-shadow: var(--rb-shadow);
  background: #fff;
  transition:
    transform var(--rb-duration) var(--rb-ease),
    box-shadow var(--rb-duration) var(--rb-ease);
}
.rb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.rb-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.rb-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--rb-ease);
}
.rb-card:hover .rb-card-img {
  transform: scale(1.05);
}
.rb-card-img-replace {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.rb-card:hover .rb-card-img-replace {
  opacity: 1;
}
.rb-card-img-replace svg {
  width: 14px;
  height: 14px;
}
.rb-card-body {
  padding: 20px;
}
.rb-card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  outline: none;
}
.rb-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  outline: none;
}
