/* =========================================================
   WLCM EVENTS — OLD THEME COMPATIBILITY STYLES
   Ensures old bootstrap layouts render perfectly under the new theme.
   ========================================================= */

.default-page-body {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 96px;
  min-height: calc(100vh - 420px);
  min-height: calc(100dvh - 420px);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .default-page-body {
    padding-top: 40px;
    padding-bottom: 72px;
  }
}

@media (max-width: 768px) {
  .default-page-body {
    padding-top: 32px;
    padding-bottom: 60px;
  }
}

.old-theme-compat {
  font-family: var(--sans) !important;
  color: var(--ink) !important;
  font-size: 16px;
  line-height: 1.65;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Force premium typography for database inline styling */
.old-theme-compat span[style*="font-family"],
.old-theme-compat p[style*="font-family"],
.old-theme-compat div[style*="font-family"] {
  font-family: var(--sans) !important;
}

.old-theme-compat h1[style*="font-family"],
.old-theme-compat h2[style*="font-family"],
.old-theme-compat h3[style*="font-family"],
.old-theme-compat h4[style*="font-family"] {
  font-family: var(--display) !important;
}

/* Headings */
.old-theme-compat h1,
.old-theme-compat h2,
.old-theme-compat h3,
.old-theme-compat h4,
.old-theme-compat h5 {
  font-family: var(--display) !important;
  color: var(--ink);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.old-theme-compat h1 { font-size: clamp(32px, 4vw, 48px); }
.old-theme-compat h2 { font-size: clamp(26px, 3vw, 36px); }
.old-theme-compat h3 { font-size: clamp(22px, 2.5vw, 28px); }
.old-theme-compat h4 { font-size: 20px; }

/* Paragraphs & margins */
.old-theme-compat p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--ink-2);
}

.old-theme-compat p + p {
  margin-top: -0.5rem;
}

/* Lists */
.old-theme-compat ul,
.old-theme-compat ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 24px;
}

.old-theme-compat li {
  margin-bottom: 0.5rem;
  color: var(--ink-2);
}

/* Images */
.old-theme-compat img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  margin-top: 10px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.old-theme-compat img:hover {
  transform: scale(1.01);
}

/* Grid Layout Compatibility (Flex-based Bootstrap 4 replacement) */
.old-theme-compat .container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

.old-theme-compat .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.old-theme-compat [class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

/* Columns for mobile (default stacked) */
.old-theme-compat .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Small grid */
@media (min-width: 576px) {
  .old-theme-compat .col-sm-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .old-theme-compat .col-sm-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .old-theme-compat .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Medium grid */
@media (min-width: 768px) {
  .old-theme-compat .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .old-theme-compat .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .old-theme-compat .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .old-theme-compat .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .old-theme-compat .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .old-theme-compat .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Extra large grid */
@media (min-width: 1200px) {
  .old-theme-compat .col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .old-theme-compat .col-xl-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Layout spacing */
.old-theme-compat section,
.old-theme-compat #feature {
  padding: 60px 0;
  width: 100%;
}

.old-theme-compat .center,
.old-theme-compat .text-center {
  text-align: center;
}
