/* FIX */
.form-text, .text-muted {
    color: inherit !important;
}

/* MAIN */
body {
  background-color: #FCFAF6;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='20' y='20' width='60' height='60' fill='none' stroke='rgba(160,124,58,0.4)' stroke-width='1' transform='rotate(45 50 50)' /%3E%3Crect x='120' y='10' width='40' height='40' fill='none' stroke='rgba(160,124,58,0.4)' stroke-width='1' transform='rotate(45 140 30)' /%3E%3Crect x='80' y='80' width='80' height='80' fill='none' stroke='rgba(160,124,58,0.4)' stroke-width='1' transform='rotate(45 120 120)' /%3E%3C/svg%3E");
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
}
body p{
  font-family: 'Lato', sans-serif;
}
.navbar {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(90deg, #B9F2FF 0%, #FFD700 50%, #B9F2FF 100%);
  box-shadow: 0 1px 4px rgba(34, 32, 28, 0.12);
}
:root {
  --size1: 40px;
  --navbar-ink: #22201C;
  --navbar-ink-soft: rgba(34, 32, 28, 0.62);
  --gold-accent: #C9A45C;
}

/* NAVBAR */
.nav-item .active {
  border-bottom: 2px solid var(--navbar-ink);
}
.nav-item .active:hover {
  border-bottom: 2px solid transparent;
}
.nav-item:after {
  display:block;
  content: '';
  border-bottom: 2px solid var(--navbar-ink);
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
}
.nav-item:hover:after {
  transform: scaleX(1);
}
.nav-link.cs-txt-navbar {
  letter-spacing: 0.02em;
}
.navbar-toggler-elegant {
  border-color: rgba(34, 32, 28, 0.3);
}
.navbar-toggler-elegant:focus {
  box-shadow: 0 0 0 0.2rem rgba(34, 32, 28, 0.2);
}
.navbar-toggler-elegant .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34,32,28,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.brand-wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  text-decoration: none;
}
.brand-wordmark-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--navbar-ink);
}
.brand-wordmark-divider {
  width: 1px;
  height: 0.9rem;
  background-color: rgba(34, 32, 28, 0.3);
}
.brand-wordmark-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navbar-ink-soft);
}
.brand-wordmark--sm .brand-wordmark-name {
  font-size: 1.15rem;
}
.brand-wordmark--sm .brand-wordmark-tagline {
  font-size: 0.5rem;
}
@media (min-width: 768px) {
  .brand-wordmark-name {
      font-size: 1.55rem;
  }
  .brand-wordmark-tagline {
      font-size: 0.65rem;
  }
  .brand-wordmark--sm .brand-wordmark-name {
      font-size: 1.3rem;
  }
  .brand-wordmark--sm .brand-wordmark-tagline {
      font-size: 0.55rem;
  }
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(180deg, #FCFAF6 0%, #F7F2E7 100%);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(34, 32, 28, 0.08);
}
.page-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--navbar-ink);
  margin-bottom: 0.35rem;
}
.page-hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  color: var(--navbar-ink-soft);
  max-width: 38rem;
  margin: 0 auto;
}
.page-hero-divider {
  width: 44px;
  height: 2px;
  background-color: var(--gold-accent);
  margin: 0.75rem auto 0;
}
.page-hero-cta {
  margin-top: 0.9rem;
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .page-hero-title {
    font-size: 2.35rem;
  }
  .page-hero-subtitle {
    font-size: 1.15rem;
  }
}

/* PRIMARY CTA - charcoal + gold (overrides the dynamic-css-generated
   background/text so the border reads gold instead of matching the
   charcoal background, and so hovering doesn't trigger the generic
   .btn scale/rotate/glow effect below). */
.btn.cs-design-btn1 {
  border-color: var(--gold-accent);
  font-weight: 500;
}
.btn.cs-design-btn1:hover {
  border-color: #D9BD7E;
  transform: none;
  box-shadow: none;
}

/* AUTH PANELS - same warm cream/neutral-border/soft-shadow treatment as the
   homepage cards. Pair with .custom-top + a .corner-N class (see the card
   system above) to reuse the existing subtle gold corner accent instead of
   inventing a new one. */
.auth-panel {
  border: 1px solid rgba(34, 32, 28, 0.1);
  color: var(--navbar-ink);
  background-color: #ffffff;
}

/* FUNCTIONS */
.background-pattern {
  background:radial-gradient(circle, #56b3c8, #B9F2FF);
}
.background-pattern-2 {
  background:radial-gradient(circle, #FFD700, #B9F2FF);
}
/* Animation for the cards */
.custom-top {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #FBF8F2;
  /* Bootstrap's .shadow utility (also on this element) is !important,
     so restraining it to a softer, premium shadow needs !important too. */
  box-shadow: 0 1px 3px rgba(34, 32, 28, 0.08), 0 4px 10px rgba(34, 32, 28, 0.05) !important;
}
.custom-top::before,
.custom-top::after {
  content: "";
  position: absolute;
  z-index: 1;
  transition: transform 0.4s ease-in-out;
}
.custom-top::before {
  top: 0;
  left: 0;
  width: 33%;
  height: 3px;
  transform-origin: left;
  transform: scaleX(1);
}
.custom-top::after {
  top: 0;
  left: 0;
  height: 33%;
  width: 3px;
  transform-origin: top;
  transform: scaleY(1);
}
.custom-top:hover::before {
  transform: scaleX(1.8);
}
.custom-top:hover::after {
  transform: scaleY(1.8);
}
.custom-bottom {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #FBF8F2;
  border: 1px solid rgba(34, 32, 28, 0.1);
}
.custom-bottom::before,
.custom-bottom::after {
  content: "";
  position: absolute;
  z-index: 1;
  transition: transform 0.4s ease-in-out;
}
.custom-bottom::before {
  bottom: 0;
  right: 0;
  width: 33%;
  height: 3px;
  transform-origin: right;
  transform: scaleX(1);
}
.custom-bottom::after{
  bottom: 0;
  right: 0;
  height: 33%;
  width: 3px;
  transform-origin: bottom;
  transform: scaleY(1);
}
.custom-bottom:hover::before {
  transform: scaleX(1.8);
}
.custom-bottom:hover::after {
  transform: scaleY(1.8);
}
.custom-bottom .card-body.cs-design-color2 {
  background-color: #FBF8F2;
  color: var(--navbar-ink);
}
/* The gold accent of the cards and panels (corner-1 through corner-5 all look the same) */
.corner-1::before, .corner-1::after,
.corner-2::before, .corner-2::after,
.corner-3::before, .corner-3::after,
.corner-4::before, .corner-4::after,
.corner-5::before, .corner-5::after {
  background-color: var(--gold-accent);
}

/* Buttons */
.btn {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.btn:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
/* Buttons shown side by side as a pair (e.g. Previous / Next) get the same width */
.btn-equal {
  min-width: 7.5rem;
}

/* Animation for the domain cards */
.domain-col a {
  color: inherit;
}
.domain-col a div {
  height: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color:#ffffff;
  border: 1px solid rgba(34, 32, 28, 0.15);
  border-top-width: 3px;
  box-shadow: 0 1px 4px rgba(34, 32, 28, 0.08);
}
.domain-col a div h5 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.domain-col a:hover div {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
@media (max-width: 575.98px) {
  .domain-col a div h5 {
    font-size: 1rem;
  }
}
/* Curated eGem highlight palette - color only, no rotation/scale/skew,
   so every card stays perfectly aligned and identically sized.
   At rest each card shows its color as a thin top line, on hover it fills the card. */
.gem-1 a div { border-top-color: #2C8FB5; }
.gem-2 a div { border-top-color: #E0115F; }
.gem-3 a div { border-top-color: #50C878; }
.gem-4 a div, .gem-6 a div { border-top-color: var(--gold-accent); }
.gem-5 a div { border-top-color: #9B5FC0; }
.gem-1 a:hover div {
  background-color: #2C8FB5; /* cyan/blue */
  color: white;
}
.gem-2 a:hover div {
  background-color: #E0115F; /* pink */
  color: white;
}
.gem-3 a:hover div {
  background-color: #50C878; /* green */
  color: white;
}
.gem-4 a:hover div {
  background-color: var(--gold-accent); /* gold */
  color: var(--navbar-ink);
}
.gem-5 a:hover div {
  background-color: #9B5FC0; /* purple */
  color: white;
}
.gem-6 a:hover div {
  background-color: var(--gold-accent); /* gold */
  color: var(--navbar-ink);
}
/* DIAMOND LIST - a list with the golden diamond as bullet: <ul class="list-unstyled diamond-list"> */
.diamond-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-family: 'Lato', sans-serif;
}
.diamond-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  background: url("../img/golden_diamond.svg") center / contain no-repeat;
}

/* ACCORDION - Bootstrap accordion in the site's cream/ink/gold colors: <div class="accordion accordion-egem"> */
.accordion-egem .accordion-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--navbar-ink);
}
.accordion-egem .accordion-button:not(.collapsed) {
  background-color: #FBF8F2;
  box-shadow: none;
}
.accordion-egem .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 164, 92, 0.35);
}

/* FORM SELECT - a dropdown rendered by the shared form snippet (class form-control) looks like the text fields, with
   Bootstrap's arrow, and stays grey like a placeholder until a choice is made */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}
select.form-control:invalid {
  color: #6c757d;
}
select.form-control option {
  color: var(--navbar-ink);
}
