/* =========================================================
   SINGLE DRASI / EKDILOSI
   ========================================================= */
.cp-single-wrap {
  padding: 56px 0 96px;
}

.cp-single-event-wrap {
  padding-top: 40px;
}

.cp-single-event-content {
  max-width: 980px;
}

.cp-event-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--cp-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.cp-event-back-link:hover {
  color: var(--cp-navy);
}

.cp-event-back-link span {
  font-size: 1.2rem;
  line-height: 1;
}

.cp-breadcrumb {
  font-size: 0.8rem;
  color: var(--cp-text-muted);
  margin-bottom: 24px;
}

.cp-breadcrumb a {
  color: var(--cp-text-muted);
}

.cp-breadcrumb a:hover {
  color: var(--cp-navy);
}

.cp-single-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--cp-navy);
  margin-bottom: 18px;
  max-width: 940px;
}

.cp-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.cp-single-event-entry {
  max-width: 980px;
  font-size: 1rem;
  line-height: 1.85;
}

.cp-single-event-entry > *:first-child {
  margin-top: 0;
}

.cp-single-event-entry > *:last-child {
  margin-bottom: 0;
}

.cp-gallery {
  display: grid;
  gap: 8px;
  margin: 40px 0;
}

.cp-gallery-main {
  border-radius: var(--cp-radius-md);
  overflow: hidden;
  background: var(--cp-navy);
}

.cp-gallery-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.cp-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cp-gallery-thumbs img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--cp-radius-sm);
}

.cp-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.cp-share span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cp-text-muted);
}

/* =========================================================
   REGISTRATION FORM (fallback â€” UM overrides these)
   ========================================================= */
.cp-form-wrap {
  max-width: 640px;
  margin: 56px auto;
  background: #fff;
  border: 1.5px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 48px;
}

.cp-form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cp-navy);
  margin-bottom: 32px;
  text-align: center;
}

.cp-field {
  margin-bottom: 20px;
}

.cp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cp-navy);
  margin-bottom: 6px;
}

.cp-field input,
.cp-field textarea,
.cp-field select {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1.5px solid var(--cp-border);
  border-radius: 0;
  font-family: var(--cp-font);
  font-size: 0.9rem;
  color: var(--cp-navy);
  background: transparent;
  transition: border-color var(--cp-ease);
}

.cp-field input:focus,
.cp-field textarea:focus {
  outline: none;
  border-color: var(--cp-navy);
}

.cp-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Ultimate Member overrides */
.um .um-form input,
.um .um-form textarea,
.um .um-form select {
  font-family: var(--cp-font) !important;
  border-radius: var(--cp-radius-sm) !important;
}

.um .um-button {
  background: var(--cp-navy) !important;
  border-radius: var(--cp-radius-full) !important;
  font-family: var(--cp-font) !important;
  font-weight: 700 !important;
}

.um-req {
  display: none !important;
}

/* =========================================================
   AUTH PAGES
   ========================================================= */
.cp-auth-wrap,
.cp-login-wrap {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background: var(--cp-navy);
}

.cp-auth-bg,
.cp-login-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* opacity: 0.45; */
}

/* .cp-auth-bg::after,
.cp-login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 32, 96, 0.82) 0%, rgba(13, 32, 96, 0.5) 100%);
} */

.cp-auth-shell {
  position: relative;
  z-index: 1;
}

.cp-auth-box,
.cp-login-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--cp-radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--cp-shadow-lg);
}

.cp-auth-title-side,
.cp-login-title-side {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
}

.cp-auth-helper-link {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.cp-auth-helper-link a {
  color: var(--cp-navy);
}

.cp-auth-form-note {
  text-align: center;
  color: var(--cp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.cp-auth-entry {
  font-size: 1rem;
  line-height: 1.6;
}

.cp-auth-entry > *:first-child {
  margin-top: 0;
}

.cp-auth-entry > *:last-child {
  margin-bottom: 0;
}

.cp-auth-box .um {
  margin-bottom: 0 !important;
  max-width: none !important;
}

.cp-auth-box .um .um-form {
  margin: 0 !important;
}

.cp-auth-box .um .um-field-label label {
  color: var(--cp-navy) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

.cp-auth-box .um .um-field {
  margin-bottom: 18px !important;
}

.cp-auth-box .um .um-form input,
.cp-auth-box .um .um-form textarea,
.cp-auth-box .um .um-form select {
  border: 1.5px solid var(--cp-border) !important;
  border-radius: var(--cp-radius-full) !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  color: var(--cp-navy) !important;
  box-shadow: none !important;
}

.cp-auth-box .um .um-button,
.cp-auth-box .um input[type="submit"].um-button {
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 8px !important;
  font-size: 0.95rem !important;
}

.cp-auth-box .um .um-submit-btn,
.cp-auth-box .um input[type="submit"].um-submit-btn,
.cp-auth-box .um input[type="submit"].um-button.um-submit-btn {
  background: var(--cp-navy) !important;
  color: #fff !important;
  border: 1px solid var(--cp-navy) !important;
}

.cp-auth-box .um input[type="submit"].um-button:hover,
.cp-auth-box .um .um-button:hover {
  background: var(--cp-navy-mid) !important;
}

.cp-auth-box .um .um-col-submit {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.cp-auth-box .um .um-col-alt,
.cp-auth-box .um .um-col-alt-b {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.um-login form {
  display: flex;
  flex-direction: column;
}

.cp-auth-box .um .um-col-alt {
  margin-top: 10px !important;
  order: 2;
}

.cp-auth-box .um .um-col-alt-b {
  padding-top: 0 !important;
  order: 1;
  text-decoration: underline;
  font-weight: 500 !important;
}

.cp-auth-box .um .um-left,
.cp-auth-box .um .um-right {
  float: none !important;
  width: 100% !important;
}

.cp-auth-box .um .um-half {
  width: 100% !important;
}

.cp-auth-box .um .um-row._um_row_1,
.cp-auth-box .um .um-row {
  margin: 0 !important;
}

.cp-auth-box .um .um-field-checkbox,
.cp-auth-box .um .um-field-radio {
  margin-top: 8px !important;
}

.cp-auth-box .um .um-field-checkbox-state i,
.cp-auth-box .um .um-field-radio-state i {
  color: var(--cp-navy) !important;
}

.cp-auth-box .um .um-field-error {
  font-size: 0.8rem !important;
  margin-top: 6px !important;
}

.cp-auth-box .um .um-notice {
  margin-bottom: 18px !important;
  border-radius: var(--cp-radius-md) !important;
}

.cp-auth-box .um .um-field-label a,
.cp-auth-box .um a {
  color: var(--cp-navy) !important;
}

/* .cp-auth-box .um .um-button.um-alt,
.cp-auth-box .um a.um-button.um-alt,
.cp-auth-box .um .um-alt,
.cp-auth-box .um a.um-link-alt {
  display: none !important;
} */

.um input[type="submit"].um-button {
  color: var(--cp-white) !important;
  background: var(--cp-navy) !important;
}

.um-field .select2.select2-container .select2-selection {
  border-radius: 8px !important;
}

.cp-auth-page.is-login .cp-auth-box .um .um-field-password .um-field-area,
.cp-auth-page.is-register .cp-auth-box .um .um-field-password .um-field-area {
  position: relative;
}

.um-field-area {
  text-align: start !important;
}

.cp-auth-simple-hero {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cp-navy);
}

.cp-auth-simple-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.cp-auth-simple-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 32, 96, 0.72) 0%,
    rgba(13, 32, 96, 0.72) 100%
  );
}

.cp-auth-simple-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
}

.cp-register-page-shell,
.cp-success-page-shell {
  position: relative;
  padding: 56px 0 96px;
  background: #fff;
  overflow: hidden;
}

.cp-register-page-shell .container,
.cp-success-page-shell .container {
  position: relative;
  z-index: 1;
}

.cp-register-page-shell::before,
.cp-register-page-shell::after,
.cp-register-page-shell .container::before,
.cp-register-page-shell .container::after,
.cp-success-page-shell::before,
.cp-success-page-shell::after,
.cp-success-page-shell .container::before,
.cp-success-page-shell .container::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.75;
  pointer-events: none;
}

.cp-register-page-shell::after,
.cp-success-page-shell::after {
  width: 250px;
  height: 250px;
  right: 25%;
  top: 5%;
  background: rgba(107, 207, 255, 0.45);
}

.cp-register-page-shell::before,
.cp-success-page-shell::before {
  width: 250px;
  height: 250px;
  left: 22%;
  top: 25%;
  background: rgba(196, 233, 28, 0.55);
}

.cp-register-page-shell .container::before,
.cp-success-page-shell .container::before {
  width: 250px;
  height: 250px;
  right: 10%;
  bottom: 25%;
  background: rgba(255, 183, 77, 0.42);
}

.cp-register-page-shell .container::after,
.cp-success-page-shell .container::after {
  width: 250px;
  height: 250px;
  left: 10%;
  bottom: 0;
  background: rgba(107, 207, 255, 0.45);
}

.cp-register-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--cp-navy);
  margin: 0 0 40px;
}

.cp-register-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 30px 24px;
  border: 2px solid #73cfff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(115, 207, 255, 0.18);
}

.cp-auth-page.is-register .cp-auth-entry .um {
  max-width: none !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-field {
  margin-bottom: 16px !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-field-label label {
  font-size: 18px !important;
  line-height: 1.45 !important;
  color: #002461 !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-form input,
.cp-auth-page.is-register .cp-auth-box .um .um-form select {
  min-height: 36px !important;
  padding: 8px 19px !important;
  border: none !important;
  border-bottom: 1px solid #707070 !important;
  border-radius: 0 !important;
  font-size: 0.938rem !important;
  transition: all 300ms ease;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input:is(:hover, :active, :focus, :focus-visible),
.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  select:is(:hover, :active, :focus, :focus-visible),
.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  textarea:is(:hover, :active, :focus, :focus-visible) {
  border-color: #306acc !important;
  border-width: 2px !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[data-validate="unique_email"] {
  border: 1px solid #848484 !important;
  border-radius: 15px !important;
  max-width: 336px;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[data-validate="unique_email"]:is(
    :hover,
    :active,
    :focus,
    :focus-visible
  ) {
  border-color: #306acc !important;
  border-width: 2px !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-form input[type="file"] {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.75rem !important;
  color: #848484 !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 18px;
  border: 1.5px solid #9b9b9b;
  border-radius: 999px;
  background: #fff;
  color: #848484;
  font-family: var(--cp-font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transition:
    border-color var(--cp-ease),
    color var(--cp-ease),
    box-shadow var(--cp-ease);
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 9px 18px;
  border: 1.5px solid #9b9b9b;
  border-radius: 999px;
  background: #fff;
  color: #848484;
  font-family: var(--cp-font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transition:
    border-color var(--cp-ease),
    color var(--cp-ease),
    box-shadow var(--cp-ease);
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]:hover::file-selector-button,
.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]:focus::file-selector-button,
.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]:hover::-webkit-file-upload-button,
.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-form
  input[type="file"]:focus::-webkit-file-upload-button {
  border-color: #7acff9;
  color: var(--cp-navy);
  box-shadow: 0 4px 10px rgba(122, 207, 249, 0.22);
}

.cp-auth-page.is-register .cp-auth-box .um .um-form textarea {
  min-height: 88px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(13, 32, 96, 0.24) !important;
  border-radius: 8px !important;
  font-size: 0.74rem !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-col-submit {
  text-align: left !important;
  margin-top: 10px !important;
}

.cp-auth-page.is-register .cp-auth-box .um .um-button,
.cp-auth-page.is-register .cp-auth-box .um input[type="submit"].um-button {
  width: auto !important;
  min-width: 152px !important;
  min-height: 36px !important;
  padding: 7px 18px !important;
  margin-top: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--cp-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  input[type="submit"].um-button:is(:hover, :active, :focus, :focus-visible) {
  background: #306acc !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-button[data-modal="um_upload_single"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #fff !important;
  border: 1px solid #848484 !important;
  color: #848484 !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-button[data-modal="um_upload_single"]:is(
    :hover,
    :active,
    :focus,
    :focus-visible
  ) {
  border-color: #306acc !important;
  color: #306acc !important;
}

.cp-auth-page.is-register
  .cp-auth-box
  .um
  .um-button[data-modal="um_upload_single"]::after {
  content: "" !important;
  display: inline-block !important;
  width: 15.538px !important;
  height: 14.94px !important;
  flex: 0 0 15.538px !important;
  background-color: currentColor !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15.538' height='14.94' viewBox='0 0 15.538 14.94'%3E%3Cpath d='M11.952 13.148a.606.606 0 1 0-.177.42.574.574 0 0 0 .177-.42Zm2.39 0a.606.606 0 1 0-.177.42.574.574 0 0 0 .177-.42Zm1.2-2.092v2.988a.893.893 0 0 1-.9.9H.9a.864.864 0 0 1-.635-.261A.864.864 0 0 1 0 14.044V11.056a.864.864 0 0 1 .261-.635A.864.864 0 0 1 .9 10.16H4.884a1.844 1.844 0 0 0 .658.859 1.713 1.713 0 0 0 1.032.336h2.39A1.713 1.713 0 0 0 10 11.019a1.844 1.844 0 0 0 .658-.859h3.987a.893.893 0 0 1 .9.9ZM12.5 5.005a.558.558 0 0 1-.551.374H9.562V9.562a.606.606 0 0 1-.6.6H6.574a.606.606 0 0 1-.6-.6V5.379H3.586a.558.558 0 0 1-.551-.374.531.531 0 0 1 .131-.644L7.349.177a.586.586 0 0 1 .84 0l4.183 4.183A.531.531 0 0 1 12.5 5.005Z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15.538' height='14.94' viewBox='0 0 15.538 14.94'%3E%3Cpath d='M11.952 13.148a.606.606 0 1 0-.177.42.574.574 0 0 0 .177-.42Zm2.39 0a.606.606 0 1 0-.177.42.574.574 0 0 0 .177-.42Zm1.2-2.092v2.988a.893.893 0 0 1-.9.9H.9a.864.864 0 0 1-.635-.261A.864.864 0 0 1 0 14.044V11.056a.864.864 0 0 1 .261-.635A.864.864 0 0 1 .9 10.16H4.884a1.844 1.844 0 0 0 .658.859 1.713 1.713 0 0 0 1.032.336h2.39A1.713 1.713 0 0 0 10 11.019a1.844 1.844 0 0 0 .658-.859h3.987a.893.893 0 0 1 .9.9ZM12.5 5.005a.558.558 0 0 1-.551.374H9.562V9.562a.606.606 0 0 1-.6.6H6.574a.606.606 0 0 1-.6-.6V5.379H3.586a.558.558 0 0 1-.551-.374.531.531 0 0 1 .131-.644L7.349.177a.586.586 0 0 1 .84 0l4.183 4.183A.531.531 0 0 1 12.5 5.005Z'/%3E%3C/svg%3E") !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

.cp-auth-page.is-login .cp-auth-box {
  max-width: 420px;
  padding: 30px 30px 24px;
  border-radius: 22px;
}

.cp-auth-page.is-login .cp-auth-title-side {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.cp-auth-page.is-login .cp-auth-box .um .um-field-label label {
  font-size: 1rem !important;
}

.cp-auth-page.is-login .cp-auth-box .um .um-form input,
.cp-auth-page.is-login .cp-auth-box .um .um-form select {
  min-height: 42px !important;
  padding: 10px 16px !important;
}

.cp-auth-page.is-login .cp-auth-box .um .um-col-submit {
  text-align: center !important;
  margin-top: 8px !important;
}

.cp-auth-page.is-login .cp-auth-box .um .um-button,
.cp-auth-page.is-login .cp-auth-box .um input[type="submit"].um-button {
  width: 104px !important;
  min-width: 104px !important;
  min-height: 38px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
}

.cp-success-box {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 32px;
  background: #fff;
  border: 2px solid #73cfff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(115, 207, 255, 0.18);
  text-align: center;
}

.cp-success-box h3 {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--cp-navy);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.cp-success-box .cp-btn {
  min-width: 144px;
  justify-content: center;
}

/* =========================================================
   SINGLE FOREIS PROFILE
   ========================================================= */
.cp-foreis-profile-wrap {
  position: relative;
  overflow: hidden;
}

.cp-foreis-profile-wrap::before,
.cp-foreis-profile-wrap::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.78;
  pointer-events: none;
}

.cp-foreis-profile-wrap::before {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: 20px;
  background: rgba(242, 148, 32, 1);
}

.cp-foreis-profile-wrap::after {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 30px;
  background: rgba(122, 207, 249, 1);
}

.cp-foreis-profile-wrap .container {
  position: relative;
  z-index: 1;
}

.cp-foreis-profile-layout {
  display: grid;
  grid-template-columns: 338px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 40px;
}

.cp-foreis-profile-visual {
  height: 190px;
  width: 338px;
  border-radius: 0;
  background: #3d72cb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-foreis-profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  background-color: #fff;
}

.cp-foreis-profile-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cp-foreis-profile-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: currentColor;
}

.cp-foreis-profile-content {
  max-width: 620px;
}

.cp-foreis-profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.cp-foreis-profile-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cp-navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--cp-shadow);
}

.cp-foreis-profile-edit:hover {
  color: #fff;
  opacity: 0.92;
}

.cp-foreis-profile-title {
  margin: 0 0 12px;
  color: var(--cp-navy);
  font-size: 1.563rem;
  font-weight: 700;
  line-height: 1.15;
}

.cp-foreis-profile-founded {
  margin: 0 0 20px;
  color: var(--cp-text-body);
  font-size: 0.98rem;
}

.cp-foreis-profile-founded strong {
  color: var(--cp-navy);
  font-weight: 800;
}

.cp-foreis-profile-description {
  margin-bottom: 26px;
  color: var(--cp-text-body);
  font-size: 1rem;
  line-height: 1.72;
}

.cp-foreis-profile-description p {
  margin: 0 0 14px;
}

.cp-foreis-profile-description p:last-child {
  margin-bottom: 0;
}

.cp-foreis-profile-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-foreis-profile-fact {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--cp-text-body);
  font-size: 1rem;
  line-height: 1.45;
}

.cp-foreis-profile-fact a {
  color: inherit;
}

.cp-foreis-profile-fact a:hover {
  color: var(--cp-navy);
}

.cp-foreis-profile-label {
  color: var(--cp-navy);
  font-weight: 800;
}

.cp-foreis-profile-fact-social {
  align-items: start;
}

.cp-foreis-profile-social-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-foreis-profile-gallery {
  max-width: 960px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.cp-foreis-profile-gallery-item {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--cp-shadow);
  cursor: zoom-in;
  transition:
    transform var(--cp-ease),
    box-shadow var(--cp-ease);
}

.cp-foreis-profile-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-lg);
}

.cp-foreis-profile-gallery-item img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: scale-down;
}

.cp-lightbox-open {
  overflow: hidden;
}

.cp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cp-lightbox[hidden] {
  display: none;
}

.cp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.82);
  backdrop-filter: blur(6px);
}

.cp-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
}

.cp-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.cp-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 32, 96, 0.86);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.cp-lightbox__close:hover {
  background: rgba(13, 32, 96, 1);
}

.cp-foreas-um-edit-shell {
  padding: 56px 0 96px;
}

.cp-foreas-um-edit-entry .um {
  max-width: 960px;
  margin: 0 auto;
}

.cp-foreas-um-edit-entry .um-form {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--cp-shadow);
}

/* =========================================================
   FOREIS ARCHIVE
   ========================================================= */
.cp-foreis-archive-shell {
  padding: 56px 0 96px;
}

.cp-foreis-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cp-foreis-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-navy);
  font-weight: 800;
}

.cp-foreis-filter-label svg,
.cp-foreis-filter-pill svg,
.cp-foreis-archive-card-meta-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cp-foreis-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 170px;
  padding: 0 16px;
  border: 2px solid var(--cp-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--cp-navy);
}

.cp-foreis-filter-pill:is(:hover, :active, :focus, :focus-visible) {
  border-color: #306acc;
}

.cp-foreis-filter-pill:is(:hover, :active, :focus, :focus-visible) svg path {
  fill: #306acc;
}

.cp-foreis-filter-pill:is(:hover, :active, :focus, :focus-visible)
  .cp-foreis-filter-caret {
  border-color: #306acc;
}

.cp-foreis-dropdown {
  position: relative;
}

.cp-foreis-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.cp-foreis-dropdown summary::-webkit-details-marker {
  display: none;
}

.cp-foreis-filter-pill-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-foreis-filter-caret {
  width: 8px;
  height: 8px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.cp-foreis-dropdown[open] .cp-foreis-filter-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.cp-foreis-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(255px, calc(100vw - 32px));
  padding: 12px 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(13, 32, 96, 0.16);
}

.cp-foreis-dropdown-option {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(13, 32, 96, 0.12);
  background: transparent;
  color: rgba(18, 26, 64, 0.75);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.cp-foreis-dropdown-option:last-child {
  border-bottom: 0;
}

.cp-foreis-dropdown-option:hover,
.cp-foreis-dropdown-option:focus-visible,
.cp-foreis-dropdown-option.is-active {
  color: #306acc;
}

.cp-foreis-dropdown-option:focus-visible {
  outline: 0;
  background: rgba(13, 32, 96, 0.04);
}

.cp-foreis-filter-pill select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  min-width: 0;
  padding-right: 12px;
  outline: 0;
}

.cp-foreis-filter-reset {
  color: var(--cp-navy);
  font-weight: 700;
  text-decoration: none;
}

.cp-foreis-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.cp-foreis-archive-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--cp-shadow);
  overflow: hidden;
}

.cp-foreis-archive-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 37px;
  width: 323px;
  height: 267px;
}

.cp-foreis-archive-card-media {
  width: 249px;
  height: 152px;
  background: #3d72cb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cp-foreis-archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  background-color: #fff;
}

.cp-foreis-archive-card-placeholder {
  display: inline-flex;
  color: #fff;
}

.cp-foreis-archive-card-placeholder svg {
  width: 62px;
  height: 62px;
  stroke: currentColor;
}

.cp-foreis-archive-card-body h3 {
  margin: 0;
  color: var(--cp-navy);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.cp-foreis-archive-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--cp-navy);
}

.cp-foreis-archive-card-meta-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.9rem;
  text-align: left;
}

.cp-foreis-archive-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--cp-text-muted);
}

@media (max-width: 991px) {
  .cp-foreis-profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cp-foreis-profile-visual {
    max-width: 320px;
  }

  .cp-foreis-profile-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cp-foreis-profile-gallery {
    grid-template-columns: 1fr;
  }

  .cp-foreis-profile-actions {
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .cp-foreis-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cp-foreis-profile-wrap::before,
  .cp-foreis-profile-wrap::after {
    display: none;
  }

  .cp-foreis-profile-visual {
    min-height: 150px;
    max-width: none;
    width: 100%;
  }

  .cp-foreis-profile-title {
    font-size: 1rem;
  }

  .cp-foreis-filter-bar {
    align-items: stretch;
  }

  .cp-foreis-filter-pill {
    width: 100%;
  }

  .cp-foreis-dropdown {
    width: 100%;
  }

  .cp-foreis-dropdown-menu {
    width: 100%;
  }

  .cp-foreis-filter-pill select {
    width: 100%;
  }

  .cp-foreis-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAGINATION
   ========================================================= */
.cp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.cp-pagination a,
.cp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cp-navy);
  border: 1.5px solid var(--cp-border);
  transition: all var(--cp-ease);
}

.cp-pagination a:hover,
.cp-pagination .current {
  background: var(--cp-navy);
  color: #fff;
  border-color: var(--cp-navy);
}

.cp-pagination a svg path {
  fill: var(--cp-navy);
}

.cp-pagination a:hover svg path {
  fill: #fff;
}

.cp-pagination .prev-link,
.cp-pagination .next-link {
  font-size: 1rem;
  font-weight: bold;
  gap: 10px;
  width: auto;
  padding: 0 14px;
  border-radius: var(--cp-radius-full);
}

.pagination-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   SINGLE POST (single.php)
   ========================================================= */
.cp-single-post-wrap {
  padding-top: 48px;
}

.cp-post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--cp-text-muted, #6b7280);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--cp-ease);
}

.cp-post-back-link:hover {
  color: #4e90ff;
}

.cp-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cp-text-muted, #6b7280);
}

.cp-post-clock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cp-single-post-entry {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--cp-text, #1a1a2e);
  margin-bottom: 56px;
}

.cp-single-post-entry > *:first-child {
  margin-top: 0;
}

.cp-single-post-entry > *:last-child {
  margin-bottom: 0;
}

.cp-post-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--cp-border, #e5e7eb);
}

.cp-post-share-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-navy);
}

.cp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.5rem;
  text-decoration: none;
  transition:
    color var(--cp-ease),
    transform var(--cp-ease);
  color: #848484;
}

.cp-share-btn:hover {
  color: #4e90ff;
  transform: scale(1.15);
}

.cp-share-copied {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cp-navy);
}

/* =========================================================
   ARCHIVE POSTS (archive.php)
   ========================================================= */

.archive-post-nea {
  background-color: #f8f8f8;
}

.cp-archive-posts-wrap {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  width: 100%;
}

.cp-archive-posts-wrap {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.pnai-posts-grid--archive {
  margin-bottom: 64px;
}

.pnai-posts-grid--archive .pnai-post-item-wrap::before {
  display: none;
}

/* Sort bar */
.cp-archive-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cp-archive-sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  justify-content: flex-start;
  margin: 4rem 0rem;
}

@media screen and (max-width: 1090px) {
  .cp-archive-sort-bar {
    justify-content: center;
  }
}

.cp-archive-sort-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-navy);
  white-space: nowrap;
}

.cp-sort-dropdown {
  position: relative;
}

.cp-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: var(--cp-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cp-navy);
  cursor: pointer;
  transition: border-color var(--cp-ease);
}

.cp-sort-trigger:hover {
  border-color: var(--cp-navy);
}

.cp-sort-trigger i {
  font-size: 0.75rem;
  transition: transform var(--cp-ease);
}

.cp-sort-dropdown.is-open .cp-sort-trigger i {
  transform: rotate(180deg);
}

.cp-sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 100;
}

.cp-sort-dropdown.is-open .cp-sort-menu {
  display: block;
}

.cp-sort-option {
  display: block;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cp-navy);
  text-decoration: none;
  transition:
    background var(--cp-ease),
    color var(--cp-ease);
}

.cp-sort-option:hover {
  background: rgba(0, 36, 97, 0.06);
  color: var(--cp-navy);
}

.cp-sort-option.is-active {
  color: #4e90ff;
}

/* ── Pagination ── */
.cp-archive-aithmata .cp-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.cp-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
}

.cp-pagination-prev,
.cp-pagination-next {
  flex: 1;
}

.cp-pagination-next {
  display: flex;
  justify-content: flex-end;
}

.cp-pagination-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cp-navy);
  text-decoration: none;
  transition: color var(--cp-ease);
}

.cp-pagination-nav-link:hover {
  color: #4e90ff;
}

.cp-pagination-nav-link.is-disabled {
  color: var(--cp-text-muted, #9ca3af);
  pointer-events: none;
  cursor: default;
}

.cp-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.cp-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cp-navy);
  text-decoration: none;
  border-radius: 6px;
  transition:
    color var(--cp-ease),
    background var(--cp-ease);
}

.cp-page-num:hover {
  color: #4e90ff;
  background: rgba(78, 144, 255, 0.08);
}

.cp-page-num.is-current {
  font-weight: 800;
  text-decoration: underline;
  color: var(--cp-navy);
  pointer-events: none;
}

.cp-page-dots {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cp-text-muted, #9ca3af);
  padding: 0 4px;
}

.cp-sec-aithmata .cp-aithima-row {
  margin: 2rem 3rem;
}

@media (max-width: 575px) {
  .cp-archive-pagination {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .cp-pagination-prev,
  .cp-pagination-next {
    justify-content: center;
    display: flex;
  }
}
