/* ================ Google Font ================ */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
<!-- Override to force page title (Certificates / Register) to white -->
  /* targets the H1 with your id and any fPageTitle h1 instances */
  #heading,
  .fPageTitle h1,
  .page-title h1 {
    color: #ffffff !important;
  }

/* ================ Reset & Base ================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Jost", sans-serif !important;
  background-color: #f0f0f0;
  color: #333;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

/* Headings */
h1, h2, h3, h4, h5, h6 { margin: 0; color: #1f2d3d; }
h3 { font-size: 1.3rem !important; font-weight: 700; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ================ Header (centered, fixed 1000x300px) ================ */
header.header, .fHeader {
  width: 1000px;         /* fixed width */
  height: 300px;         /* fixed height */
  margin: 0 auto;        /* center horizontally */
  position: relative;
  background: transparent !important;
  box-shadow: none;
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
  overflow: hidden;      /* crop overflow if image is larger */
}

header.header .wrap, .fHeader .wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ Centered */
  gap: 16px;
}

header.header img, .fHeader img, .fGalleryImage img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 767px) {
  header.header, .fHeader {
    width: 100%;     /* make responsive on small screens */
    height: auto;    /* natural height */
  }
  header.header .wrap, .fHeader .wrap { padding: 8px 12px; gap: 10px; }
  header.header img, .fHeader img { max-height: 64px; }
}

/* ================ Page Title / Hero ================ */
.page-title, .fPageTitle {
  width: 100%;
  margin: 8px 0;
  padding: 14px 16px;
  background-color: #d1407a;
  color: #ffffff; /* changed to white */
  box-sizing: border-box;
}
.page-title h1, .fPageTitle h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

/* ================ Page Message ================ */
.page-message, #f-messages {
  background-color: #e8f4fa;
  padding: 10px 16px;
  margin: 10px auto;
  border-left: 4px solid #0b5ed7;
  max-width: 1200px;
  box-sizing: border-box;
}

/* ================ Form Card ================ */
form.fForm {
  background-color: #fff;
  border: 1px solid #fca500;
  border-radius: 8px;
  padding: 20px;
  margin: 18px auto 40px;
  max-width: 820px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.06);
  box-sizing: border-box;
}

fieldset, form.fForm fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form-item-type-fieldset legend,
form.fForm legend {
  display: inline-block;
  background: #d1407a;
  color: #fff;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.f-table { width: 100%; border-collapse: collapse; }
.f-table-row { border-bottom: 1px solid #eee; transition: background .15s ease; }
.f-table-row:hover { background: #f7fbff; }
.f-table-col { padding: 12px 8px; vertical-align: top; }
.f-table-title { font-weight: 700; color: #333; margin-bottom: 4px; display: block; }
.f-table-subtitle { font-size: 14px; color: #666; }
.f-table-col.user-register-group-cost { color: #d1407a; font-weight: 700; width: 15%; }

/* ================ Inputs / Selects ================ */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea,
input[type="date"],
input[type="file"] {
  width: 100% !important;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #222;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
  margin-bottom: 10px;
}

input:focus, textarea:focus, select:focus {
  border-color: #0b5ed7;
  outline: none;
  box-shadow: 0 0 0 4px rgba(11,94,215,0.08);
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
  accent-color: #d1407a;
  transform: scale(1.15);
}

/* Labels */
label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
  color: #222;
  font-size: 15px;
  text-align: left;
}
label:hover { color: #000; }

/* Radio group inline */
.user-register-group-radio .form-check {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}
.fForm .form-item-type-boolean label { display:flex; align-items:center; gap:8px; cursor:pointer; }

form.fForm .error, form.fForm .hint {
  margin-left: 0 !important;
  font-size: 13px;
  color: #d9534f;
}

/* ================ Submit Button ================ */
.fForm .buttons { text-align: center; margin-top: 12px; }
.buttons input[type="submit"] {
  padding: 10px 26px !important;
  background: linear-gradient(90deg,#0b5ed7,#1e6fe8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.buttons input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(11,94,215,0.12);
}

/* ================ Menu / Nav / Links ================ */
/* Polished button-like fMenu (merged into your CSS) */
.fMenu {
  display: flex;
  justify-content: center;  /* center the buttons */
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.fMenu li {
  margin: 0;
  padding: 0;
}

/* Button-like links */
.fMenu li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  min-width: 150px;
  justify-content: center;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-radius: 12px;
  background: linear-gradient(135deg,#0b5ed7,#1e6fe8);
  box-shadow: 0 6px 18px rgba(11,94,215,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-transform: uppercase;
}

/* small devices: full width buttons */
@media (max-width: 520px) {
  .fMenu { gap: 10px; padding: 8px; }
  .fMenu li a { min-width: 100%; padding: 12px 16px; font-size: 13px; }
}

/* hover & focus */
.fMenu li a:hover,
.fMenu li a:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11,94,215,0.18);
  background: linear-gradient(135deg,#0950b6,#155bcc);
  outline: none;
}

/* Active/selected state (your markup uses `li.selected`) */
.fMenu li.selected a,
.fMenu li a[aria-current="page"] {
  background: linear-gradient(135deg,#d1407a,#2ea04a) !important;
  box-shadow: 0 8px 20px rgba(40,167,69,0.18);
}

/* icon container inside link (you already have <span class="menu-item-icon">) */
.fMenu .menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

/* text span */
.fMenu .menu-item-text { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Add Font Awesome icons using pseudo-elements (targets your menu IDs) */
/* Update menu-item IDs + codes if your IDs differ */
.fMenu li#menu-item-34001 a .menu-item-icon::before { content: "\f090"; font-family: "FontAwesome"; font-weight: normal; }
.fMenu li#menu-item-34002 a .menu-item-icon::before { content: "\f234"; font-family: "FontAwesome"; font-weight: normal; }
.fMenu li#menu-item-34004 a .menu-item-icon::before { content: "\f015"; font-family: "FontAwesome"; font-weight: normal; }

/* Fallback: ensure pseudo-element shows inline */
.fMenu .menu-item-icon::before { display: inline-block; }

/* small visual tweak for long link text */
.fMenu li a .menu-item-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* optional: add subtle separator between header banner and menu */
.fModule.f-module-pages-menu .f-module-title { margin-bottom: 12px; }

/* ================ Iconset / Tiles ================ */
.iconset .fMenu {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  list-style:none;
  margin:0;
  padding:0 0 20px;
  justify-content:center;
}
.iconset .fMenu > li {
  background:#fff;
  border:1px solid #eee;
  border-radius:6px;
  padding:14px;
  flex:1 1 260px;
  min-width:180px;
  transition:all .2s ease;
}
.iconset .fMenu > li:hover {
  transform:translateY(-6px);
  box-shadow:0 8px 24px rgba(16,24,40,0.06);
}
.iconset img { display:block; max-width:64px; height:auto; margin-bottom:8px; }

/* ================ Footer ================ */
footer.footer, #fFooter {
  background-color: #d1407a;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
}

/* ================ IntlTelInput Fixes ================ */
.iti { width: 100%; }
.iti input { padding-left: 85px !important; height: 40px; }
.iti__country { margin: 0; }

/* ================ Responsive Adjustments ================ */
@media (max-width: 991px) {
  .fForm { margin: 16px; padding: 16px; }
  .f-table-col { padding: 10px 6px; }
  .menu-link nav { justify-content:center; }
}
@media (max-width: 480px) {
  .fForm { padding: 12px; margin: 12px; border-radius: 6px; }
  .page-title h1 { font-size: 18px; }
}

/* ================ Accessibility / Contrast ================ */
@media (prefers-contrast: more) {
  .fMenu li a { box-shadow: none; border: 2px solid rgba(255,255,255,0.08); }
}
