/*
 * Korean public pages renewal layer.
 * Scoped away from /home, which already has its approved bespoke design.
 */
:root {
  --ko-paper: #fbf8f1;
  --ko-paper-deep: #f2eadc;
  --ko-ink: #242321;
  --ko-muted: #706b63;
  --ko-line: rgba(55, 48, 38, 0.12);
  --ko-violet: #6656df;
  --ko-violet-deep: #4b3bc3;
  --ko-mint: #6db7a8;
  --ko-peach: #f1b89d;
}

/* Shared birthday input form used by Korean free tools. */
.ko-birth-form {
  max-width: 760px;
  margin-top: 24px;
}

.ko-birth-form-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ko-birth-form-list > li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(102, 86, 223, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(55, 48, 38, 0.05);
}

.ko-birth-form-list > li::before {
  display: none !important;
  content: none !important;
}

.ko-birth-form-label {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.ko-birth-name-input,
.ko-birth-select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ko-birth-name-input::placeholder {
  color: #8a8f98;
  font-weight: 500;
}

.ko-birth-name-input:focus,
.ko-birth-select:focus {
  outline: none;
  border-color: var(--ko-violet);
  box-shadow: 0 0 0 3px rgba(102, 86, 223, 0.16);
}

.ko-birth-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ko-birth-chip-option,
.ko-birth-check-option {
  position: relative;
  margin: 0;
}

.ko-birth-chip-option input,
.ko-birth-check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ko-birth-chip,
.ko-birth-check-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid rgba(102, 86, 223, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #35313d;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ko-birth-chip-option:hover .ko-birth-chip,
.ko-birth-check-option:hover .ko-birth-check-chip {
  border-color: rgba(102, 86, 223, 0.46);
  background: rgba(102, 86, 223, 0.08);
  color: var(--ko-violet-deep);
}

.ko-birth-chip-option input:focus-visible + .ko-birth-chip,
.ko-birth-check-option input:focus-visible + .ko-birth-check-chip {
  box-shadow: 0 0 0 3px rgba(102, 86, 223, 0.18);
}

.ko-birth-chip-option input:checked + .ko-birth-chip,
.ko-birth-check-option input:checked + .ko-birth-check-chip {
  border-color: var(--ko-violet-deep);
  background: linear-gradient(135deg, var(--ko-violet-deep) 0%, var(--ko-violet) 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(102, 86, 223, 0.22);
}

.ko-birth-date-wrap {
  min-width: 0;
}

.ko-birth-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ko-birth-date-message {
  display: none;
  margin: 8px 2px 0;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.ko-birth-date-message.is-visible {
  display: block;
}

.ko-birth-date-grid.has-warning .ko-birth-select {
  border-color: rgba(245, 158, 11, 0.82);
  background: #fffaf0;
}

.ko-birth-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.ko-birth-time-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 8px;
  flex: 1 1 260px;
  max-width: 292px;
}

.ko-birth-time-selects.is-disabled,
#birthTimeSelectWrap.is-disabled {
  opacity: 0.58;
}

.ko-birth-time-selects select:disabled,
#birthTimeSelectWrap select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.ko-birth-extra-row {
  align-items: center;
}

.ko-birth-action-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ko-birth-action-row .btn {
  flex: 1 1 0;
  min-height: 52px;
  border-radius: 12px !important;
  font-weight: 900;
}

.ko-birth-action-row .ko-birth-primary-action {
  border-color: var(--ko-violet-deep) !important;
  background: linear-gradient(135deg, var(--ko-violet-deep) 0%, var(--ko-violet) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(102, 86, 223, 0.28);
}

.ko-birth-action-row .ko-birth-secondary-action {
  border-color: rgba(102, 86, 223, 0.34) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--ko-violet-deep) !important;
  box-shadow: none;
}

.ko-birth-quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ko-birth-quick-action-row .btn {
  min-height: 40px;
  border-radius: 999px !important;
  border-color: rgba(102, 86, 223, 0.32) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--ko-violet-deep) !important;
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: none;
}

.ko-birth-form-note {
  margin: 10px 2px 0;
  color: var(--ko-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  .ko-birth-form {
    margin-top: 22px;
  }

  .ko-birth-form-list {
    gap: 12px;
  }

  .ko-birth-form-list > li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .ko-birth-form-label {
    font-size: 0.98rem;
  }

  .ko-birth-chip-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ko-birth-chip-group.is-date-type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ko-birth-chip,
  .ko-birth-check-chip {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.94rem;
  }

  .ko-birth-date-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ko-birth-select {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .ko-birth-time-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ko-birth-form-list > li.ko-birth-time-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ko-birth-time-item .ko-birth-form-label,
  .ko-birth-time-item .ko-birth-time-row {
    width: 100%;
  }

  .ko-birth-time-selects {
    flex: 0 0 auto;
    max-width: none;
    min-height: 0;
    width: 100%;
  }

  .ko-birth-time-row > #birthTimeSelectWrap.ko-birth-time-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    height: auto;
    max-width: none;
    min-height: 0;
    width: 100%;
  }

  .ko-birth-time-row > #birthTimeSelectWrap.ko-birth-time-selects .ko-birth-select {
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .ko-birth-action-row {
    flex-direction: column;
  }

  .ko-birth-quick-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .ko-birth-chip-group.is-date-type,
  .ko-birth-date-grid {
    grid-template-columns: 1fr;
  }
}

body:not(.home-page) {
  padding-top: 76px;
  background:
    radial-gradient(circle at 8% 2%, rgba(109, 183, 168, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(241, 184, 157, 0.2), transparent 30rem),
    var(--ko-paper);
  color: var(--ko-ink);
  letter-spacing: 0;
}

body:not(.home-page) main {
  overflow: hidden;
}

body:not(.home-page) main > .container,
body:not(.home-page) .page-modern > .container {
  max-width: 1180px;
}

.ko-site-navbar {
  min-height: 76px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(55, 48, 38, 0.08);
  background: rgba(251, 248, 241, 0.9);
  box-shadow: 0 16px 40px rgba(55, 48, 38, 0.07);
  backdrop-filter: blur(18px);
}

.ko-site-navbar .container {
  max-width: 1180px;
}

.ko-site-navbar .navbar-collapse {
  align-items: center;
}

@media (min-width: 1200px) {
  .navbar-expand-custom .navbar-toggler {
    display: none !important;
  }

  .navbar-expand-custom .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-custom .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-custom .navbar-nav .dropdown-menu {
    position: absolute;
    float: none;
  }
}

.ko-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  margin-right: 30px;
  padding-right: 24px;
  color: var(--ko-ink) !important;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  text-decoration: none;
  white-space: nowrap;
}

.ko-brand::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 24px;
  border-radius: 999px;
  background: rgba(55, 48, 38, 0.16);
  transform: translateY(-50%);
}

.ko-brand-word {
  display: inline-flex;
  align-items: baseline;
}

.ko-brand-core {
  color: var(--ko-ink);
}

.ko-brand-accent {
  margin-left: 2px;
  color: var(--ko-violet-deep);
}

.ko-brand:hover,
.ko-brand:focus {
  color: var(--ko-ink) !important;
  text-decoration: none;
}

.ko-main-nav {
  gap: 4px;
}

.ko-site-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px !important;
  border-radius: 999px;
  color: #4f4b45 !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ko-site-navbar .nav-link:hover,
.ko-site-navbar .nav-link:focus,
.ko-site-navbar .nav-item.active > .nav-link {
  background: rgba(102, 86, 223, 0.09);
  color: var(--ko-violet-deep) !important;
  text-decoration: none;
}

.ko-nav-feature {
  background: #ffffff;
  color: var(--ko-violet-deep) !important;
  box-shadow: inset 0 0 0 1px rgba(102, 86, 223, 0.14);
}

.ko-nav-badge {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(109, 183, 168, 0.18);
  color: #28796d;
  font-size: 0.7rem;
  font-weight: 900;
}

.ko-site-navbar .dropdown-menu {
  min-width: 10rem;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(55, 48, 38, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 22px 50px rgba(55, 48, 38, 0.16);
}

.ko-site-navbar .dropdown-item {
  padding: 9px 12px;
  border-radius: 12px;
  color: #4f4b45;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.ko-site-navbar .dropdown-item:hover,
.ko-site-navbar .dropdown-item:focus {
  background: rgba(102, 86, 223, 0.09);
  color: var(--ko-violet-deep);
}

.ko-nav-utility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ko-report-link,
.ko-mobile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.ko-report-link {
  padding: 9px 14px;
  background: #ffffff;
  color: var(--ko-ink) !important;
  box-shadow: inset 0 0 0 1px rgba(55, 48, 38, 0.12);
}

.ko-report-link:hover,
.ko-report-link:focus {
  color: var(--ko-violet-deep) !important;
  text-decoration: none;
}

.ko-mobile-primary {
  display: none;
  padding: 8px 13px;
  border: 0;
  background: var(--ko-violet);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(102, 86, 223, 0.22);
}

.ko-search {
  position: relative;
  width: 214px;
}

.ko-search .form-control {
  width: 100%;
  height: 42px;
  padding: 8px 66px 8px 16px;
  border: 1px solid rgba(55, 48, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ko-ink);
  font-weight: 700;
  box-shadow: none;
}

.ko-search .btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 54px;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  border-radius: 999px;
  background: var(--ko-ink);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: none;
  white-space: nowrap;
}

.ko-menu-toggle {
  width: 44px;
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(55, 48, 38, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.ko-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ko-ink);
}

body:not(.home-page) .jumbotron {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  padding: 58px 0 46px;
  border-radius: 0;
  background:
    radial-gradient(circle at 74% 26%, rgba(102, 86, 223, 0.14), transparent 18rem),
    radial-gradient(circle at 92% 88%, rgba(109, 183, 168, 0.18), transparent 19rem);
  color: var(--ko-ink);
}

body:not(.home-page) .jumbotron .container {
  max-width: 1180px;
}

body:not(.home-page) .jumbotron.ccboard_bg:empty {
  padding: 18px 0 8px;
  margin-bottom: 26px;
  background: transparent;
}

body:not(.home-page) .jumbotron h1.display-4,
body:not(.home-page) h1.display-4 {
  margin: 0 0 14px;
  color: var(--ko-ink);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
}

body:not(.home-page) .hero-section {
  margin-bottom: 40px !important;
  padding: 72px 0 58px !important;
  background:
    radial-gradient(circle at 74% 24%, rgba(102, 86, 223, 0.14), transparent 18rem),
    radial-gradient(circle at 94% 88%, rgba(109, 183, 168, 0.2), transparent 20rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(251, 248, 241, 0.96)) !important;
  color: var(--ko-ink) !important;
  box-shadow: none !important;
}

body:not(.home-page) .hero-section::before {
  display: none !important;
}

body:not(.home-page) .hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: var(--ko-ink) !important;
}

body:not(.home-page) .hero-content.text-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

body:not(.home-page) .hero-content.text-center .hero-info {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

body:not(.home-page) .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(102, 86, 223, 0.16) !important;
  border-radius: 999px;
  background: rgba(102, 86, 223, 0.09) !important;
  color: var(--ko-violet-deep) !important;
  box-shadow: none !important;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.home-page) .hero-pill-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px;
  background: var(--ko-mint) !important;
  box-shadow: 0 0 0 5px rgba(109, 183, 168, 0.16) !important;
}

body:not(.home-page) .hero-title {
  margin-bottom: 16px;
  color: var(--ko-ink) !important;
  font-size: clamp(2.45rem, 5vw, 3.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  word-break: keep-all;
}

body:not(.home-page) .hero-subtitle {
  max-width: 680px;
  color: #4f4b45 !important;
  font-size: 1.08rem !important;
  font-weight: 650 !important;
  line-height: 1.75 !important;
  opacity: 1 !important;
  word-break: keep-all;
}

body:not(.home-page) h2.display-4,
body:not(.home-page) h3.display-4 {
  color: var(--ko-ink);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0;
  word-break: keep-all;
}

body:not(.home-page) .lead {
  color: #4f4b45;
  font-weight: 650;
  line-height: 1.75;
  word-break: keep-all;
}

body:not(.home-page) .jumbotron p {
  color: #4f4b45;
  font-weight: 650;
  line-height: 1.72;
  word-break: keep-all;
}

body:not(.home-page) .card:not(.pay-card),
body:not(.home-page) .auth-card,
body:not(.home-page) .result-card,
body:not(.home-page) .info-card,
body:not(.home-page) .form-card,
body:not(.home-page) .person-form-card,
body:not(.home-page) .checkout-point-card,
body:not(.home-page) .manse-intake-card,
body:not(.home-page) .manse-summary-card,
body:not(.home-page) .dream-summary-card,
body:not(.home-page) .ganji-calendar-card,
body:not(.home-page) .ganji-julgi-card,
body:not(.home-page) .alert,
body:not(.home-page) main .border.rounded,
body:not(.home-page) .callout,
body:not(.home-page) .quote,
body:not(.home-page) .step {
  border: 1px solid rgba(55, 48, 38, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 14px 34px rgba(55, 48, 38, 0.07) !important;
}

body:not(.home-page) .card:not(.pay-card)::before {
  display: none;
}

body:not(.home-page) .card:not(.pay-card):hover,
body:not(.home-page) .auth-card:hover,
body:not(.home-page) .result-card:hover,
body:not(.home-page) .info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(55, 48, 38, 0.1) !important;
}

body:not(.home-page) .card-title,
body:not(.home-page) .result-card-title,
body:not(.home-page) .section-title,
body:not(.home-page) .form-card h2,
body:not(.home-page) .info-card h2 {
  color: var(--ko-ink) !important;
  font-weight: 900 !important;
  letter-spacing: 0;
  word-break: keep-all;
}

body:not(.home-page) .card-text,
body:not(.home-page) .form-text,
body:not(.home-page) .helper-text,
body:not(.home-page) .muted {
  color: var(--ko-muted) !important;
  line-height: 1.68;
  word-break: keep-all;
}

body:not(.home-page) .form-control,
body:not(.home-page) select.form-control,
body:not(.home-page) textarea.form-control {
  min-height: 46px;
  border: 1px solid rgba(55, 48, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ko-ink);
  box-shadow: none;
}

body:not(.home-page) .form-control:focus,
body:not(.home-page) select.form-control:focus,
body:not(.home-page) textarea.form-control:focus {
  border-color: rgba(102, 86, 223, 0.55);
  box-shadow: 0 0 0 3px rgba(102, 86, 223, 0.14);
}

body:not(.home-page) label {
  color: var(--ko-ink);
  font-weight: 800;
}

body:not(.home-page) .btn {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: 0;
}

body:not(.home-page) .ko-search .form-control {
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(55, 48, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

body:not(.home-page) .ko-search .btn {
  width: 54px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.82rem;
}

body:not(.home-page) .btn-primary,
body:not(.home-page) .btn-warning,
body:not(.home-page) .btn-success,
body:not(.home-page) .btn-info,
body:not(.home-page) .btn-primary-custom,
body:not(.home-page) .btn-cta:not(.btn-outline-secondary) {
  border: 0 !important;
  background: var(--ko-violet) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(102, 86, 223, 0.23) !important;
}

body:not(.home-page) .btn-primary:hover,
body:not(.home-page) .btn-warning:hover,
body:not(.home-page) .btn-success:hover,
body:not(.home-page) .btn-info:hover,
body:not(.home-page) .btn-primary-custom:hover,
body:not(.home-page) .btn-cta:not(.btn-outline-secondary):hover {
  background: var(--ko-violet-deep) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

body:not(.home-page) .btn-secondary,
body:not(.home-page) .btn-outline-secondary,
body:not(.home-page) .btn-light {
  border: 1px solid rgba(55, 48, 38, 0.14) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--ko-ink) !important;
  box-shadow: none !important;
}

body:not(.home-page) .free-badge,
body:not(.home-page) .pro-badge,
body:not(.home-page) .new-badge {
  border-radius: 999px;
  box-shadow: none;
  letter-spacing: 0;
  animation: none;
}

body:not(.home-page) .free-badge {
  background: rgba(109, 183, 168, 0.2);
  color: #287a6c;
}

body:not(.home-page) .pro-badge,
body:not(.home-page) .new-badge {
  background: rgba(102, 86, 223, 0.12);
  color: var(--ko-violet-deep);
}

body:not(.home-page) .bd-callout,
body:not(.home-page) .alert {
  border: 1px solid rgba(55, 48, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ko-ink);
}

body:not(.home-page) .accordion .card,
body:not(.home-page) #accordionExample .card,
body:not(.home-page) #accordionExampleRe .card {
  overflow: hidden;
  margin-bottom: 10px;
}

body:not(.home-page) .card-header {
  border-bottom: 1px solid rgba(55, 48, 38, 0.08);
  background: rgba(255, 253, 248, 0.86);
}

body:not(.home-page) .accordion .card,
body:not(.home-page) .manse-detail-accordion .card {
  border-color: rgba(55, 48, 38, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 34px rgba(55, 48, 38, 0.07) !important;
}

body:not(.home-page) .accordion .card-header,
body:not(.home-page) .manse-detail-accordion .card-header {
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  background: #ffffff !important;
}

body:not(.home-page) .accordion .card-header .btn,
body:not(.home-page) .manse-detail-accordion .btn {
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

body:not(.home-page) .accordion:not(.manse-detail-accordion) .card-header .btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
}

body:not(.home-page) .accordion:not(.manse-detail-accordion) .card-header .btn::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4257b2;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

body:not(.home-page) .accordion:not(.manse-detail-accordion) .card-header .btn:not(.collapsed)::after {
  background: rgba(102, 86, 223, 0.1);
  color: var(--ko-violet-deep);
  transform: rotate(45deg);
}

body:not(.home-page) .accordion .card-header .btn:hover,
body:not(.home-page) .accordion .card-header .btn:focus,
body:not(.home-page) .accordion .card-header .btn.focus,
body:not(.home-page) .manse-detail-accordion .btn:hover,
body:not(.home-page) .manse-detail-accordion .btn:focus,
body:not(.home-page) .manse-detail-accordion .btn.focus {
  background: rgba(247, 248, 252, 0.88) !important;
  box-shadow: none !important;
  outline: none !important;
}

body:not(.home-page) .accordion .card-header .btn:not(.collapsed),
body:not(.home-page) .manse-detail-accordion .btn:not(.collapsed) {
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.98), rgba(255, 255, 255, 0.98)) !important;
  color: #1d2a45 !important;
  box-shadow: inset 3px 0 0 var(--ko-violet), inset 0 -1px 0 rgba(102, 86, 223, 0.14) !important;
}

body:not(.home-page) #accordionExample .card-header .btn:not(.collapsed),
body:not(.home-page) #accordionExampleRe .card-header .btn:not(.collapsed),
body:not(.home-page) .manse-result-theme #accordionExample .card-header .btn:not(.collapsed),
body:not(.home-page) .dream-result-theme #accordionExampleRe .card-header .btn:not(.collapsed) {
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.98), rgba(255, 255, 255, 0.98)) !important;
  color: #1d2a45 !important;
  box-shadow: inset 3px 0 0 var(--ko-violet), inset 0 -1px 0 rgba(102, 86, 223, 0.14) !important;
}

body:not(.home-page) .accordion .card-body,
body:not(.home-page) .manse-detail-accordion .card-body {
  border-top: 1px solid rgba(55, 48, 38, 0.08);
  background: rgba(255, 255, 255, 0.98) !important;
}

body:not(.home-page) .manse-detail-accordion .btn:not(.collapsed) .manse-detail-story-badge {
  background: var(--ko-violet) !important;
  color: #ffffff !important;
}

body:not(.home-page) .manse-detail-accordion .btn:not(.collapsed) .manse-detail-story-arrow {
  background: rgba(102, 86, 223, 0.1) !important;
  color: var(--ko-violet-deep) !important;
}

body:not(.home-page) .sidebar-menu {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.home-page) .sidebar-menu .panel-body {
  padding: 0;
}

body:not(.home-page) .snb {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(55, 48, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(55, 48, 38, 0.06);
  list-style: none;
}

body:not(.home-page) .snb .submenu + .submenu {
  border-top: 1px solid rgba(55, 48, 38, 0.08);
}

body:not(.home-page) .snb a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #4f4b45;
  font-weight: 760;
  text-decoration: none;
}

body:not(.home-page) .snb a:hover,
body:not(.home-page) .snb a:focus {
  background: rgba(102, 86, 223, 0.09);
  color: var(--ko-violet-deep);
  text-decoration: none;
}

body:not(.home-page) .snb b {
  color: var(--ko-ink);
  font-weight: 900;
}

body:not(.home-page) .table-responsive,
body:not(.home-page) #text-page table {
  border: 1px solid rgba(55, 48, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(55, 48, 38, 0.06);
}

body:not(.home-page) .table-responsive {
  overflow-x: auto;
}

body:not(.home-page) .table {
  margin-bottom: 0;
  color: var(--ko-ink);
}

body:not(.home-page) .table thead th {
  border-bottom: 1px solid rgba(55, 48, 38, 0.12);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ko-ink);
  font-weight: 900;
}

body:not(.home-page) .table td,
body:not(.home-page) .table th {
  border-top: 1px solid rgba(55, 48, 38, 0.09);
  vertical-align: middle;
}

body:not(.home-page) .table a {
  color: var(--ko-ink) !important;
  font-weight: 760;
  text-decoration: none;
}

body:not(.home-page) .table a:hover,
body:not(.home-page) .table a:focus {
  color: var(--ko-violet-deep) !important;
}

body:not(.home-page) #text-page table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

body:not(.home-page) #text-page table td,
body:not(.home-page) #text-page table th {
  padding: 10px 12px;
  border-color: rgba(55, 48, 38, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.68) !important;
  color: var(--ko-ink);
}

body:not(.home-page) .ps_box {
  margin-top: 18px;
  color: var(--ko-muted);
  text-align: center;
}

body:not(.home-page) .popup-header {
  min-height: 74px !important;
  margin-top: -76px !important;
  border-bottom: 1px solid rgba(55, 48, 38, 0.08) !important;
  background: rgba(251, 248, 241, 0.94) !important;
  color: var(--ko-ink) !important;
  box-shadow: 0 14px 34px rgba(55, 48, 38, 0.08) !important;
  backdrop-filter: blur(18px);
}

body:not(.home-page) .popup-header-title {
  margin: 0 !important;
  color: var(--ko-ink) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
  letter-spacing: 0;
}

body:not(.home-page) .btn-popup-close {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ko-violet) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(102, 86, 223, 0.22) !important;
}

body:not(.home-page) .scroll-progress {
  background: var(--ko-violet) !important;
}

body:not(.home-page) .sample-notice {
  border: 1px solid rgba(102, 86, 223, 0.13) !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 14px 34px rgba(55, 48, 38, 0.07) !important;
}

body:not(.home-page) .sample-notice::before {
  display: none !important;
}

body:not(.home-page) .sample-notice-text {
  color: var(--ko-ink) !important;
  font-weight: 800 !important;
}

body:not(.home-page) .content-card,
body:not(.home-page) .summary-card,
body:not(.home-page) .sample-guide-card,
body:not(.home-page) .technical-card,
body:not(.home-page) .cta-section,
body:not(.home-page) .info-box,
body:not(.home-page) .overview-item {
  border: 1px solid rgba(55, 48, 38, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 14px 34px rgba(55, 48, 38, 0.07) !important;
}

body:not(.home-page) .section-badge,
body:not(.home-page) .sample-price-badge {
  border-radius: 999px !important;
  background: rgba(102, 86, 223, 0.1) !important;
  color: var(--ko-violet-deep) !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}

body:not(.home-page) .content-card h2,
body:not(.home-page) .summary-card h2,
body:not(.home-page) .sample-guide-card h2,
body:not(.home-page) .technical-card h2,
body:not(.home-page) .cta-section h2 {
  word-break: keep-all;
}

.ko-footer {
  margin-top: 68px;
  padding: 56px 0 34px;
  background: var(--ko-paper-deep);
  color: var(--ko-ink);
}

.ko-footer .container {
  max-width: 1180px;
}

.ko-footer-claim {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(55, 48, 38, 0.12);
}

.ko-footer-claim h2 {
  margin: 0;
  color: var(--ko-ink);
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.ko-footer-claim p {
  margin: 0;
  color: var(--ko-muted);
  font-weight: 650;
  line-height: 1.75;
  word-break: keep-all;
}

.ko-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 30px;
}

.ko-footer-brand strong,
.ko-footer-col strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ko-ink);
  font-size: 1rem;
  font-weight: 900;
}

.ko-footer-brand p,
.ko-footer-company,
.ko-footer-bottom {
  color: var(--ko-muted);
  line-height: 1.7;
  word-break: keep-all;
}

.ko-footer-company {
  margin-top: 18px;
  font-size: 0.9rem;
}

.ko-footer a {
  color: var(--ko-muted);
  text-decoration: none;
}

.ko-footer a:hover,
.ko-footer a:focus {
  color: var(--ko-violet-deep);
  text-decoration: none;
}

.ko-footer-col a {
  display: block;
  margin: 8px 0;
  font-weight: 700;
}

.ko-footer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ko-footer-lang a {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.ko-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(55, 48, 38, 0.12);
  font-size: 0.88rem;
}

.ko-footer--compact .ko-footer-claim {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.ko-footer--compact .ko-footer-grid {
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
  .ko-main-nav {
    gap: 2px;
  }

  .ko-brand {
    min-height: 44px;
    margin-right: 8px;
    padding-right: 0;
    font-size: 1.2rem;
  }

  .ko-brand::after {
    display: none;
  }

  .ko-site-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(55, 48, 38, 0.1);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 22px 46px rgba(55, 48, 38, 0.14);
  }

  .ko-site-navbar .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 999px;
  }

  .ko-site-navbar .dropdown-menu {
    margin: 0 0 8px;
    border: 0;
    border-radius: 16px;
    background: rgba(242, 234, 220, 0.5);
    box-shadow: none;
  }

  .ko-nav-utility {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
  }

  .ko-report-link,
  .ko-search {
    width: 100%;
  }

  .ko-search {
    margin-top: 8px;
  }

  .ko-mobile-primary {
    display: inline-flex;
  }

  .ko-footer-claim,
  .ko-footer-grid,
  .ko-footer--compact .ko-footer-claim,
  .ko-footer--compact .ko-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ko-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) and (max-width: 1469.98px) {
  .ko-site-navbar.navbar-expand-custom .navbar-nav .nav-link {
    padding: 9px 12px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  body:not(.home-page) {
    padding-top: 68px;
  }

  .ko-site-navbar {
    min-height: 68px;
    padding: 8px 0;
  }

  .ko-site-navbar .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ko-brand {
    gap: 8px;
    margin-right: 8px;
    min-height: 44px;
    padding-right: 0;
    font-size: 1.2rem;
  }

  .ko-brand::after {
    display: none;
  }

  .ko-mobile-primary {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.92rem;
  }

  .ko-menu-toggle {
    width: 44px;
    height: 44px;
  }

  body:not(.home-page) .popup-header {
    min-height: 68px !important;
    margin-top: -68px !important;
  }

  body:not(.home-page) .popup-header-title {
    max-width: 58vw;
    font-size: 0.95rem !important;
    text-align: center;
  }

  body:not(.home-page) .jumbotron {
    margin-bottom: 24px;
    padding: 38px 0 32px;
  }

  body:not(.home-page) .jumbotron.ccboard_bg:empty {
    padding: 8px 0 0;
    margin-bottom: 18px;
  }

  body:not(.home-page) .jumbotron h1.display-4,
  body:not(.home-page) h1.display-4 {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  body:not(.home-page) h2.display-4,
  body:not(.home-page) h3.display-4 {
    font-size: 1.45rem;
  }

  body:not(.home-page) .lead {
    font-size: 0.98rem;
  }

  body:not(.home-page) .hero-section {
    margin-bottom: 26px !important;
    padding: 50px 0 38px !important;
  }

  body:not(.home-page) .hero-pill {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }

  body:not(.home-page) .hero-title {
    font-size: 2.25rem !important;
  }

  body:not(.home-page) .hero-subtitle {
    font-size: 0.98rem !important;
  }

  body:not(.home-page) .content-card h2,
  body:not(.home-page) .summary-card h2,
  body:not(.home-page) .sample-guide-card h2,
  body:not(.home-page) .technical-card h2,
  body:not(.home-page) .cta-section h2 {
    font-size: 1.55rem !important;
    line-height: 1.28;
  }

  body:not(.home-page) .table-responsive .table-hover thead {
    display: none;
  }

  body:not(.home-page) .table-responsive .table-hover,
  body:not(.home-page) .table-responsive .table-hover tbody,
  body:not(.home-page) .table-responsive .table-hover tr,
  body:not(.home-page) .table-responsive .table-hover td {
    display: block;
    width: 100%;
  }

  body:not(.home-page) .table-responsive .table-hover tbody tr {
    padding: 14px 16px;
    border-top: 1px solid rgba(55, 48, 38, 0.09);
  }

  body:not(.home-page) .table-responsive .table-hover tbody tr:first-child {
    border-top: 0;
  }

  body:not(.home-page) .table-responsive .table-hover td {
    padding: 3px 0;
    border: 0;
  }

  body:not(.home-page) .table-responsive .table-hover .td_num {
    display: none;
  }

  body:not(.home-page) .table-responsive .table-hover .td_subject2 {
    font-size: 1rem;
    line-height: 1.45;
    text-align: left !important;
  }

  body:not(.home-page) .table-responsive .table-hover .td_date {
    margin-top: 6px;
    color: var(--ko-muted);
    font-size: 0.86rem;
    line-height: 1.3;
    text-align: left !important;
  }

  body:not(.home-page) main > .container,
  body:not(.home-page) .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body:not(.home-page) .ko-site-navbar > .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body:not(.home-page) .ganji-calendar-card {
    overflow: hidden !important;
  }

  body:not(.home-page) .ganji-calendar-card .calendar-board {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-radius: 8px;
  }

  body:not(.home-page) .ganji-calendar-card .calendar-weekday {
    padding: 8px 0;
    font-size: 0.76rem;
  }

  body:not(.home-page) .ganji-calendar-card .calendar-day-cell,
  body:not(.home-page) .ganji-calendar-card .calendar-empty-cell {
    min-height: 5.45rem;
    padding: 6px 1px;
  }

  body:not(.home-page) .ganji-calendar-card .calendar-cell-inner {
    gap: 3px;
    min-width: 0;
  }

  body:not(.home-page) .ganji-calendar-card .date-wrap {
    min-height: 28px;
  }

  body:not(.home-page) .ganji-calendar-card .date-badge {
    min-width: 26px;
    min-height: 26px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  body:not(.home-page) .ganji-calendar-card font[size="5"] {
    font-size: 1.02rem;
    line-height: 1;
  }

  body:not(.home-page) .ganji-calendar-card font[color="red"] {
    color: #cf5a56 !important;
  }

  body:not(.home-page) .ganji-calendar-card font[color="blue"] {
    color: #4767c5 !important;
  }

  body:not(.home-page) .ganji-calendar-card font[color="gold"] {
    color: #b68124 !important;
  }

  body:not(.home-page) .ganji-calendar-card font[color="silver"] {
    color: #77746d !important;
  }

  body:not(.home-page) .ganji-calendar-card font[color="black"] {
    color: var(--ko-ink) !important;
  }

  body:not(.home-page) .ganji-calendar-card font[size="2em"] {
    display: block;
    max-width: 100%;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  body:not(.home-page) .ganji-calendar-card .calendar-note-line,
body:not(.home-page) .ganji-calendar-card .calendar-note-short {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

  .ko-footer {
    margin-top: 44px;
    padding: 38px 0 28px;
  }

  .ko-footer-claim,
  .ko-footer-grid,
  .ko-footer--compact .ko-footer-claim,
  .ko-footer--compact .ko-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ko-footer-claim h2 {
    font-size: 1.9rem;
  }

  .ko-footer-bottom {
    display: block;
  }

  .ko-footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

.premium-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.card.is-preparing {
  border-color: #dbeafe;
  background: #f8fbff;
}

.card.is-preparing .card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.premium-topic-meta {
  margin-top: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 900;
}

.card-link-row .btn-preparing {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.card-link-row .btn-preparing:hover,
.card-link-row .btn-preparing:focus {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.legacy-premium-preparing {
  max-width: 900px;
  margin: 28px auto 34px;
  padding: 30px 28px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  text-align: center;
}

.legacy-premium-preparing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 900;
}

.legacy-premium-preparing h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
}

.legacy-premium-preparing p {
  max-width: 680px;
  margin: 0 auto;
  color: #475569;
  line-height: 1.75;
  word-break: keep-all;
}

.legacy-premium-preparing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.legacy-premium-preparing-actions .btn {
  border-radius: 999px;
  font-weight: 800;
}

.legacy-premium-form-note {
  margin: -4px 0 22px;
  color: #475569;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
}

#frm_search[aria-disabled="true"] input,
#frm_search[aria-disabled="true"] select,
#frm_search[aria-disabled="true"] button {
  cursor: not-allowed;
}

#frm_search[aria-disabled="true"] .btn-primary {
  border-color: #cbd5e1;
  background: #cbd5e1;
  color: #334155;
  box-shadow: none;
}

@media (max-width: 576px) {
  .legacy-premium-preparing {
    margin: 18px 16px 28px;
    padding: 24px 18px;
  }

  .legacy-premium-preparing h2 {
    font-size: 1.35rem;
  }

  .legacy-premium-preparing-actions .btn {
    width: 100%;
  }
}
