/* Mobile styles - max-width 640px */
@media (max-width: 640px) {
  .custom-step-btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    font-size: 1rem;
  }

  .tep-card {
    padding: 1rem !important;
  }

  .mobile-nav-header {
    background-color: #0d1c53 !important;
    color: white !important;
    padding: 1rem 0.75rem !important;
  }

  .mobile-logo {
    height: 4rem !important;
  }

  .mobile-menu-btn {
    font-size: 2rem !important;
    padding: 0.5rem !important;
  }

  .mobile-menu-item {
    font-size: 1.25rem !important;
    padding: 0.75rem 1rem !important;
  }

  .mobile-submenu-item {
    font-size: 1.125rem !important;
    padding: 0.5rem 0 !important;
  }

  .mobile-child-item {
    font-size: 1rem !important;
    padding: 0.25rem 0 !important;
  }
}

/* Tablet styles - min-width 640px */
@media (min-width: 640px) {
  .mobile-nav-header {
    padding: 1.5rem 1rem !important;
  }

  .mobile-logo {
    height: 5rem !important;
  }

  .mobile-menu-btn {
    font-size: 2.5rem !important;
  }

  .mobile-menu-item {
    font-size: 1.5rem !important;
    padding: 1.25rem 1rem !important;
  }

  .mobile-submenu-item {
    font-size: 1.25rem !important;
  }

  .mobile-child-item {
    font-size: 1.125rem !important;
  }
}

/* Medium tablet - min-width 768px */
@media (min-width: 768px) {
  .mobile-logo {
    height: 6rem !important;
  }

  .mobile-menu-btn {
    font-size: 3rem !important;
  }

  .mobile-menu-item {
    font-size: 1.875rem !important;
  }

  .mobile-submenu-item {
    font-size: 1.5rem !important;
  }

  .mobile-child-item {
    font-size: 1.25rem !important;
  }
}


body {
  font-family: 'Slate Std', 'Arial', 'Roboto', sans-serif;
  font-size: 16px;
  background-color: #f7fbff; /* Extremely light blue background */
}


/* ---------- STEP Button (CSS only) ---------- */
:root{
  --step-orange: #f26522;
  --step-orange-hover: #d03f15;
  --step-brand-ring: #1f4fd1; /* focus ring (your brand blue) */
}

h1 {
  font-size: 2.25rem;   /* 36px */
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: 1.75rem;   /* 28px */
  font-weight: 600;
  line-height: 1.25;
}
h3 {
  font-size: 1.5rem;    /* 24px */
  font-weight: 600;
  line-height: 1.3;
}
h4 {
  font-size: 1.25rem;   /* 20px */
  font-weight: 600;
  line-height: 1.35;
}
h5 {
  font-size: 1rem;      /* 16px */
  font-weight: 600;
  line-height: 1.4;
}
h6 {
  font-size: 0.875rem;  /* 14px */
  font-weight: 600;
  line-height: 1.5;
}

.link {
  color: #4291FC; /* STEP blue */
  transition: color 0.2s;
}
.link:hover {
  color: #0d1c53; /* STEP dark blue */
  text-decoration: underline;
}

/* Normal case button variant - identical to custom-step-btn but without uppercase text */
button.custom-step-nocap-btn,
a.custom-step-nocap-btn {
  background: var(--step-orange);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 20px 0 20px 0;       /* TL TR BR BL */
  padding: 10px 24px;
  display: inline-flex;               /* better vertical alignment */
  align-items: center;
  justify-content: center;            /* center text horizontally */
  gap: 8px;                           /* space for optional icon */
  font: 700 14px/1.2 "Slate Std", Arial, sans-serif; /* Match font weight to 700 */
  letter-spacing: .02em; /* Match letter spacing */
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
  white-space: nowrap;
}

/* Hover / Active */
button.custom-step-nocap-btn:hover,
a.custom-step-nocap-btn:hover { background: var(--step-orange-hover); color:#fff; }
button.custom-step-nocap-btn:active,
a.custom-step-nocap-btn:active { transform: translateY(1px); }

/* Keyboard focus (accessible) */
button.custom-step-nocap-btn:focus-visible,
a.custom-step-nocap-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--step-brand-ring);
}

/* Disabled */
button.custom-step-nocap-btn:disabled,
a.custom-step-nocap-btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Size variants (optional) */
.custom-step-nocap-btn--sm { padding: 8px 18px; font-size: 12px; border-radius: 16px 0 16px 0; }
.custom-step-nocap-btn--lg { padding: 12px 28px; font-size: 16px; }

/* Outline/White variants (optional) */
.custom-step-nocap-btn--outline {
  background: transparent;
  color: var(--step-orange);
  border-color: var(--step-orange);
}
.custom-step-nocap-btn--outline:hover { background: rgba(242,101,34,.08); }

.custom-step-nocap-btn--white {
  background: #fff; color: var(--step-orange);
  border-color: #fff;
}
.custom-step-nocap-btn--white:hover { background: #f9fafb; }

/* Mobile styles for nocap button */
@media (max-width: 640px) {
  .custom-step-nocap-btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    font-size: 1rem;
  }
}

/* Uppercase case button variant - identical to custom-step-btn but with uppercase text */
button.custom-step-btn,
a.custom-step-btn {
  background: var(--step-orange);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 20px 0 20px 0;       /* TL TR BR BL */
  padding: 10px 24px;
  display: inline-flex;               /* better vertical alignment */
  align-items: center;
  justify-content: center;            /* center text horizontally */
  gap: 8px;                           /* space for optional icon */
  font: 700 14px/1.2 "Slate Std", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
  white-space: nowrap;
}

/* Hover / Active */
button.custom-step-btn:hover,
a.custom-step-btn:hover { background: var(--step-orange-hover); color:#fff; }
button.custom-step-btn:active,
a.custom-step-btn:active { transform: translateY(1px); }

/* Keyboard focus (accessible) */
button.custom-step-btn:focus-visible,
a.custom-step-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--step-brand-ring);
}

/* Disabled */
button.custom-step-btn:disabled,
a.custom-step-btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

/* base (current) */
button.custom-step-btn,
a.custom-step-btn {
  padding: 10px 24px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 20px 0 20px 0;
}

/* SMALL */
.custom-step-btn--sm {
  padding: 8px 18px;     /* ↓ tighter */
  font-size: 12px;       /* ↓ smaller type */
  border-radius: 16px 0 16px 0;
}

/* EXTRA-SMALL (optional) */
.custom-step-btn--xs {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 14px 0 14px 0;
}


/* Size variants (optional) */
.custom-step-btn--sm { padding: 8px 18px; font-size: 12px; }
.custom-step-btn--lg { padding: 12px 28px; font-size: 16px; }

/* Outline/White variants (optional) */
.custom-step-btn--outline {
  background: transparent;
  color: var(--step-orange);
  border-color: var(--step-orange);
}
.custom-step-btn--outline:hover { background: rgba(242,101,34,.08); }

.custom-step-btn--white {
  background: #fff; color: var(--step-orange);
  border-color: #fff;
}
.custom-step-btn--white:hover { background: #f9fafb; }


.card-flip {
  perspective: 1000px;
}
.card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.card-back {
  transform: rotateY(180deg);
}

.custom-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  overflow: hidden;
}

.custom-carousel-slide {
  flex: 0 0 100%;
}

/* Desktop main menu font size */
@media (min-width: 1024px) {
  .main-nav a,
  .main-nav button,
  .main-nav span,
  #step-header .right-links a,
  #step-header .right-links a:visited {
    font-size: 16px !important;
    font-weight: 700;
    color: #0d1c53 !important;
    line-height: 1.2;
    cursor: pointer !important;
  }
  
  /* Add this below to override submenu color */
  .main-nav .submenu-link {
    display: block !important;       /* Make submenu links full-width */
    white-space: normal !important;  /* Allow wrapping */
    word-break: break-word !important;
    color: #4291fc !important;
    font-weight: 700 !important;
    line-height: 0.95 !important; /* Tighter line spacing */   
    font-size: 16px !important;      /* Give space between lines */
    padding: 5px 10px !important;   /* Increase clickable area */
  }

  /* Improved dropdown stability to prevent flickering */
  .main-nav .dropdown {
    position: relative !important;
  }

  /* Dropdown stability improvements */
  .main-nav .dropdown-menu {
    transition: opacity 0.3s ease 0.15s, visibility 0.3s ease 0.15s !important;
    padding-top: 10px !important;
    margin-top: -6px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* Buffer zone to prevent accidental mouseout */
  .main-nav .dropdown-menu:before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
  }
  
  /* Add an invisible bridge between parent item and dropdown */
  .main-nav .dropdown > a:after,
  .main-nav .dropdown > button:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 51;
  }
  
  /* Additional fix for Alpine.js transitions */
  [x-show="open"][x-transition].absolute.top-full {
    transition-duration: 0.3s !important;
    transition-delay: 0.15s !important;
  }
  
  /* Ensure dropdown stays visible during interaction */
  .main-nav .dropdown:hover .dropdown-menu,
  .main-nav .dropdown-menu:hover,
  .main-nav .dropdown:focus-within .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
  }
  
  /* Add subtle hover feedback */
  .main-nav .submenu-link:hover {
    background-color: rgba(66, 145, 252, 0.05) !important;
  }

  /* Target the dropdown with inline override */
  .main-nav .dropdown-menu,
  .absolute.top-full.left-0.mt-2.bg-white.shadow-lg.rounded-md.w-94.lg\:w-94.lg\:p-3.z-50 {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  /* This targets any Alpine.js elements that match the dropdown pattern */
  [x-show="open"][x-transition].absolute.top-full.left-0.mt-2.bg-white.shadow-lg.rounded-md {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  /* Override Tailwind width classes */
  .w-94, .lg\:w-94 {
    width: 320px !important;
  }
}

