/* JDM Kenya theme adapted from the portfolio template */
:root {
  --background-color: #f7f9fc;
  --default-color: #102a54;
  --heading-color: #102a54;
  --accent-color: #1591DC;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #102a54;
  --nav-hover-color: #4BB8FA;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #102a54;
  --nav-dropdown-hover-color: #4BB8FA;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: rgba(44, 94, 173, 0.85);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: 'Raleway', sans-serif;
}

.header {
  --background-color: rgba(247, 249, 252, 0.96);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.08);
}

.navmenu {
  padding: 0;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu>ul>li {
  white-space: nowrap;
  padding: 15px 12px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: 0.3s;
}

.navmenu .btn {
  padding: 0.5rem 1rem;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.hamburger {
  display: none;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 10002;
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger .bar,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: 0.4s ease;
}

.hamburger .bar {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  width: 100%;
}

.hamburger::before {
  top: 5px;
}

.hamburger::after {
  bottom: 5px;
}

.hamburger.is-active::before {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.is-active .bar {
  opacity: 0;
}

.hamburger.is-active::after {
  transform: rotate(-45deg) translate(9px, -9px);
}

.navmenu>ul {
  display: flex;
}

@media (max-width: 1199px) {
  .navmenu {
    position: static;
  }
  .navmenu>ul {
    display: none !important;
  }
  .hamburger {
    display: inline-flex !important;
    z-index: 10002;
    pointer-events: auto;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #162447;
    z-index: 9998;
    padding-top: 100px;
    transition: 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .mobile-nav.is-active {
    left: 0;
  }
  .mobile-nav a {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 14px;
    padding: 14px 20px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    background-color: #1f4068;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
  }
  .mobile-nav a:hover {
    background-color: #0f3460;
  }
  .navmenu>ul>li {
    margin: 20px 0 !important;
    padding: 0 !important;
    width: auto !important;
    border-bottom: none !important;
    display: block !important;
  }
  .navmenu a,
  .navmenu a:focus {
    color: #fff !important;
    font-size: 24px !important;
    padding: 0 !important;
    justify-content: center !important;
    transition: none !important;
    display: block !important;
  }
  .navmenu .btn {
    display: inline-block !important;
    width: auto !important;
    margin: 4px 0 !important;
    border: none !important;
    color: #fff !important;
    background: transparent !important;
    overflow: visible !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    padding: 0 !important;
    font-size: 24px !important;
  }
  .navmenu .btn::before,
  .navmenu .btn::after {
    display: none !important;
  }
  .navmenu a:hover,
  .navmenu a:focus,
  .navmenu a:active,
  .navmenu .active,
  .navmenu .active:focus {
    color: #4BB8FA !important;
  }
  .hero-header .navmenu a {
    color: #fff !important;
  }
  .hero-header .navmenu a:hover,
  .hero-header .navmenu a:focus,
  .hero-header .navmenu a:active,
  .hero-header .navmenu .active {
    color: #4BB8FA !important;
  }
  .navmenu .btn:hover,
  .navmenu .btn:active,
  .navmenu .btn:focus {
    color: #4BB8FA !important;
  }
}

@media (max-width: 767px) {
  .navmenu>ul {
    display: none !important;
  }
  .hamburger {
    display: inline-flex !important;
  }
  .header {
    padding: 8px 0;
  }
  .header .logo h1 {
    font-size: 18px;
  }
  .header .logo img {
    height: 32px !important;
    width: auto;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #162447;
    z-index: 9998;
    padding-top: 80px;
    transition: 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav.is-active {
    left: 0;
  }
  .mobile-nav a {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 14px;
    padding: 14px 20px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    background-color: #1f4068;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
  }
  .mobile-nav a:hover {
    background-color: #0f3460;
  }
  .page-hero {
    margin-top: -70px;
    padding-top: 70px;
  }
  .hero-landing {
    margin-top: -70px;
    padding-top: 70px;
  }
}

@media (min-width: 1200px) {
  .hamburger,
  .mobile-nav {
    display: none !important;
  }
}

.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: hidden;
}


.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(16, 42, 84, 0.7);
}

.section-title div {
  color: var(--heading-color);
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
}

.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 700;
}

.hero p {
  margin: 20px 0 0;
  font-size: 1.1rem;
  max-width: 700px;
}

.card {
  border: none;
}

.card .card-title {
  color: var(--heading-color);
}

.footer {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  text-align: center;
  padding: 16px 0;
}

.footer .container {
  display: block;
}

.footer p {
  margin: 0;
}

.footer .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: space-between;
  justify-content: space-between;
  background: var(--accent-color);
  color: var(--contrast-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 4px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: rgba(21, 145, 220, 0.8);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--background-color);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

.dark-mode {
  background: #121824;
  color: #e9edf5;
}

.dark-mode .header,
.dark-mode .footer,
.dark-mode .card,
.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode .list-group-item {
  background: #182137;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e9edf5;
}

.dark-mode a,
.dark-mode .navmenu a,
.dark-mode .btn-outline-primary,
.dark-mode .section-title div,
.dark-mode .text-muted {
  color: #e9edf5;
}

.dark-mode .btn-outline-primary {
  color: #e9edf5;
  border-color: rgba(255, 255, 255, 0.34);
}

.dark-mode .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Landing Page Styles */
.hero-header {
  background-color: rgba(16, 42, 84, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

.hero-header .navmenu a {
  color: #ffffff !important;
  font-weight: 500;
}

.hero-header .logo h1.sitename {
  color: #ffffff !important;
}

.hero-header .navmenu a:hover,
.hero-header .navmenu .active {
  color: #1591DC !important;
}

.hero-header .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero-header .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #1591DC;
  color: #1591DC;
}

.hero-landing {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 42, 84, 0.65) 0%, rgba(18, 35, 65, 0.55) 100%);
  z-index: 0;
}

.hero-landing .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.05),
    2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.typing-text {
  color: #1591DC;
  font-weight: 600;
  min-width: 200px;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: #1591DC;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.social-links {
  animation: fadeInUp 1s ease-out 0.4s both;
  display: flex;
  gap: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #1591DC;
  border-color: #1591DC;
  color: #102a54;
  transform: translateY(-5px);
}

.scroll-indicator {
  animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animated-title {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.animated-subtitle {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Body adjustment for fixed header */
body {
  padding-top: 0;
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

main {
  padding-top: 0;
}

/* Ensure hero section takes full viewport */
.hero-landing {
  margin-top: -80px;
  padding-top: 80px;
}

/* Page Styling */
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

.hover-card {
  transition: all 0.3s ease;
  border: none;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.resource-card {
  border: none;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.activity-card {
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.activity-card:hover {
  transform: translateY(-8px);
}

.activity-card img {
  transition: transform 0.3s ease;
}

.activity-card:hover img {
  transform: scale(1.05);
}

/* Page Hero Banner Styling */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -80px;
  padding-top: 80px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.page-hero .lead {
  font-size: 1.1rem;
}

/* ── Auth pages: Glassmorphism design ── */
.auth-page {
  background: linear-gradient(135deg, #0a1628 0%, #102a54 40%, #1a3a6e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Floating orbs for depth */
.auth-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(21, 145, 220, 0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Flex wrapper to center card vertically */
.auth-page-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* Container for the card */
.auth-page .recovery-container {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

/* Glass card */
.auth-page .recovery-card,
.auth-page .recovery-container > .card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(21, 145, 220, 0.12);
  overflow: hidden;
  width: 100%;
}

/* Card header */
.auth-page .recovery-card-header {
  background: linear-gradient(135deg, #102a54, #1a3a6e);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid #1591DC;
}

.auth-page .recovery-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

.auth-page .recovery-card-header p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Card body */
.auth-page .recovery-card-body,
.auth-page .card-body {
  padding: 2rem;
}

/* Title inside card body (for pages without header) */
.auth-page .card-body > h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #102a54;
  margin-bottom: 0.5rem;
}

.auth-page .card-body > p.text-muted {
  font-size: 0.875rem;
  color: #4b5563 !important;
  margin-bottom: 1.5rem;
}

/* Form labels */
.auth-page .form-label {
  font-weight: 600;
  color: #102a54;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Form controls */
.auth-page .form-control,
.auth-page .form-select {
  border: 1.5px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
  border-color: #1591DC;
  box-shadow: 0 0 0 3px rgba(21, 145, 220, 0.15);
  background: #ffffff;
}

/* Primary button */
.auth-page .btn-primary {
  background: linear-gradient(135deg, #102a54, #1a3a6e);
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  font-size: 1rem;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-page .btn-primary:hover {
  background: linear-gradient(135deg, #1591DC, #e0c04d);
  color: #0a1628;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(21, 145, 220, 0.3);
}

.auth-page .btn-primary::before {
  display: none;
}

.auth-page .btn-primary:active {
  transform: translateY(0);
}

/* Footer links */
.auth-page .recovery-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-page .recovery-footer p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-page .recovery-footer a {
  color: #1591DC;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-page .recovery-footer a:hover {
  color: #102a54;
  text-decoration: underline;
}

/* Alerts */
.auth-page .alert {
  border-radius: 10px;
  margin-bottom: 1.25rem;
  border: none;
  font-size: 0.875rem;
}

.auth-page .alert-success {
  background: rgba(21, 145, 220, 0.1);
  color: #1591DC;
}

.auth-page .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.auth-page .alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border: none;
}

/* Form text / hints */
.auth-page .form-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

/* Development link (if used) */
.auth-page .development-link {
  background: rgba(75, 184, 250, 0.1);
  border: 1px solid rgba(75, 184, 250, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.auth-page .development-link a {
  word-break: break-all;
  color: #1591DC;
}

/* Password reset success styled link */
.auth-page .text-decoration-underline.small {
  color: #1591DC;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-page-inner {
    padding: 1.5rem 1rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .auth-page .recovery-card-body,
  .auth-page .card-body {
    padding: 1.5rem;
  }

  .auth-page .recovery-card-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .auth-page .recovery-card-header h3 {
    font-size: 1.25rem;
  }

  .auth-page .recovery-footer {
    padding: 1rem 1.5rem;
  }
}

/* ── Refined Neon Button (`.btn-neon`) ── */
.btn-neon {
  --btn-accent: #1591DC;
  position: relative;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--btn-accent);
  border: 2px solid var(--btn-accent);
  background-color: transparent;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s ease;
  border-radius: 8px;
  z-index: 1;
}
.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--btn-accent);
  z-index: -1;
  box-shadow: 0 6px 14px rgba(44, 94, 173, 0.9), 0 0 18px rgba(21,145,220,0.55) inset;
  transition: left 0.5s ease;
  border-radius: inherit;
}
.btn-neon:hover {
  color: #000;
  letter-spacing: 2px;
  box-shadow: 0 6px 14px rgba(3, 5, 136, 0.9), 0 0 18px rgba(21,145,220,0.55);
  transform: translateY(-2px);
}
.btn-neon:hover::before {
  left: 0;
}
.btn-neon:active {
  transform: translateY(0);
}

/* ── Global Neon Button System ──
   Applies neon slide-in effect to all Bootstrap `.btn` elements site-wide.
   Uses --btn-accent CSS variable so each color variant can keep its own hue. */

.btn {
  --btn-accent: #063284;
  position: relative;
  padding: 10px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--btn-accent);
  border: 2px solid var(--btn-accent);
  background-color: transparent;
  overflow: hidden;
  transition: all 0.35s ease;
  border-radius: 6px;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--btn-accent);
  z-index: -1;
  transition: left 0.4s ease;
  border-radius: inherit;
}
.btn:hover {
  color: #000;
  box-shadow: 0 0 6px var(--btn-accent), 0 0 20px var(--btn-accent);
  transform: translateY(-2px);
}
.btn:hover::before {
  left: 0;
}
.btn:active {
  transform: translateY(0);
}

/* Size variants */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 12px 32px;
  font-size: 1.05rem;
}

/* Color variants – each sets its own accent hue */
.btn-primary { --btn-accent: #1524ad; }
.btn-secondary { --btn-accent: #adb5bd; }
.btn-success { --btn-accent: #1591DC; }
.btn-danger { --btn-accent: #2C5EAD; }
.btn-warning { --btn-accent: #4BB8FA; }
.btn-info { --btn-accent: #4BB8FA; }
.btn-light { --btn-accent: #f8f9fa; color: #333; }
.btn-dark { --btn-accent: #343a40; }

.btn-outline-primary { --btn-accent: #0d459a; }
.btn-outline-secondary { --btn-accent: #adb5bd; }
.btn-outline-success { --btn-accent: #1591DC; }
.btn-outline-danger { --btn-accent: #2C5EAD; }
.btn-outline-warning { --btn-accent: #4BB8FA; }
.btn-outline-info { --btn-accent: #4BB8FA; }
.btn-outline-light { --btn-accent: #f8f9fa; color: #fff; }
.btn-outline-dark { --btn-accent: #343a40; }

/* .btn-link – inline, no neon border/background */
.btn-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--btn-accent, #ffffff);
}

/* ── Hero header outline buttons ── */
.hero-header .btn-outline-light {
  --btn-accent: #ffffff;
  color: #fff;
}

/* ── Dark-mode overrides ── */
.dark-mode .btn-outline-primary {
  color: #e9edf5;
  border-color: rgba(255, 255, 255, 0.34);
}
.dark-mode .btn-outline-primary:hover {
  color: #000;
}

/* Optional wrapper for dark background demo (use on a container, not global body) */
.neon-area {
  background-color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 8px;
}

.nav.nav-pills .btn-neon {
  padding: 8px 18px;
  border-radius: 24px;
  color: #ffffff !important;
  border: 2px solid #1591DC !important;
  background: #2C5EAD !important;
  box-shadow: none;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1;
}
.nav.nav-pills .btn-neon .bi {
  margin-right: 8px;
  color: inherit;
}
.nav.nav-pills .btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1591DC;
  z-index: -1;
  box-shadow: 0 6px 18px rgba(21,145,220,0.5), 0 0 8px rgba(21,145,220,0.18) inset;
  transition: left 0.45s cubic-bezier(.2,.8,.2,1);
  border-radius: 24px;
}
.nav.nav-pills .btn-neon:hover,
.nav.nav-pills .btn-neon:focus,
.nav.nav-pills .btn-neon.active {
  color: #000 !important;
  box-shadow: 0 6px 14px rgba(21,145,220,0.9), 0 0 18px rgba(21,145,220,0.55);
}
.nav.nav-pills .btn-neon:hover::before,
.nav.nav-pills .btn-neon.active::before {
  left: 0;
}

/* Strong visibility/layout override for about sub-navigation to prevent accidental hiding */
.nav.nav-pills.justify-content-center.justify-content-lg-start {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.6rem !important;
  width: 100% !important;
  overflow: visible !important;
}
.nav.nav-pills.justify-content-center.justify-content-lg-start .nav-item {
  display: inline-block !important;
}
.nav.nav-pills.justify-content-center.justify-content-lg-start .btn-neon {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure about submenu anchors that use about-nav-link match the requested neon button styles */
.about-nav-link,
.about-nav-link.btn-neon {
  position: relative;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1591DC !important;
  border: 2px solid #1591DC !important;
  background-color: transparent !important;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.6s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-decoration: none;
}
.about-nav-link::before,
.about-nav-link.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1591DC;
  z-index: -1;
  box-shadow: 0 0 50px #1591DC, 0 0 50px #1591DC inset;
  transition: left 0.6s ease;
}
.about-nav-link:hover,
.about-nav-link.btn-neon:hover {
  color: #000 !important;
  letter-spacing: 5px;
  border-radius: 10px;
  box-shadow: 0 0 8px #1591DC, 0 0 25px #1591DC, 0 0 50px #1591DC;
}
.about-nav-link:hover::before,
.about-nav-link.btn-neon:hover::before {
  left: 0;
}

/* ── Animated Floating Labels for Auth Forms ── */
.auth-floating-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.auth-floating-input {
  height: 56px !important;
  padding: 1.5rem 0.75rem 0.375rem !important;
  border-radius: 10px !important;
  line-height: 1.25 !important;
}

.auth-floating-input:focus {
  border-color: #1591DC !important;
  box-shadow: 0 0 0 3px rgba(21, 145, 220, 0.15) !important;
}

.auth-floating-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
  pointer-events: none;
  border: 1px solid transparent;
  transition: all 0.2s ease-out;
  border-radius: 10px;
}

.auth-floating-input:focus ~ .auth-floating-label,
.auth-floating-input:not(:placeholder-shown) ~ .auth-floating-label {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1591DC;
  height: auto;
}

.auth-floating-input.is-invalid ~ .auth-floating-label {
  color: #2C5EAD;
}

/* Entrance animations for auth pages */
.auth-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: authFadeSlide 0.6s ease forwards;
}

.auth-fade-in:nth-child(1) { animation-delay: 0.05s; }
.auth-fade-in:nth-child(2) { animation-delay: 0.1s; }
.auth-fade-in:nth-child(3) { animation-delay: 0.15s; }
.auth-fade-in:nth-child(4) { animation-delay: 0.2s; }
.auth-fade-in:nth-child(5) { animation-delay: 0.25s; }

@keyframes authFadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Card Flip Container */
.card-flip-wrap {
  perspective: 1200px;
  width: 100%;
}

.card-flip-inner {
  position: relative;
  transform-style: preserve-3d;
}

.card-flip-front,
.card-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
}

.card-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #102a54, #1a3a6e);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: #fff;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(21, 145, 220, 0.12);
}

.card-flip-back h3 {
  color: #1591DC;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-flip-back p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.6;
}

.card-flip-back .back-logo {
  width: 64px;
  height: 64px;
  background: rgba(21, 145, 220, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-flip-back .back-logo i {
  font-size: 2rem;
  color: #1591DC;
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */
.site-footer {
  position: relative;
  background-color: #102a54;
  color: rgba(255, 255, 255, 0.92);
  padding-top: 0;
  overflow: hidden;
}

.site-footer .footer-wave {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: -1px;
  line-height: 0;
}
.site-footer .footer-wave svg {
  width: 100%;
  height: 50px;
}

.footer-main {
  padding: 48px 0 24px;
}

.footer-main .footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.footer-main .footer-tagline {
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 280px;
}

.footer-main h5 {
  color: #1591DC;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.65rem;
}
.footer-main h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #1591DC;
  border-radius: 1px;
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-main ul li {
  margin-bottom: 0.55rem;
}
.footer-main ul li a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-main ul li a:hover {
  color: #1591DC;
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: #1591DC;
  color: #102a54;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(21, 145, 220, 0.4);
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.footer-contact i {
  color: #1591DC;
  font-size: 0.9rem;
  width: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 0.82rem;
  margin-top: 8px;
}
.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.82rem;
}
.footer-bottom a:hover {
  color: #1591DC;
}
.footer-bottom .footer-links a + a {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dark mode overrides for footer */
.dark-mode .site-footer {
  background-color: #0d1524;
}
.dark-mode .site-footer .footer-wave path:first-child {
  fill: #0d1524;
}
.dark-mode .footer-main h5 {
  color: #1591DC;
}
.dark-mode .footer-social a:hover {
  background: #1591DC;
  color: #0d1524;
}

/* Responsive footer */
@media (max-width: 575.98px) {
  .footer-main {
    padding: 32px 0 16px;
  }
  .footer-main .footer-tagline {
    font-size: 0.8rem;
  }
  .footer-main h5 {
    font-size: 0.85rem;
  }
  .footer-main ul li a {
    font-size: 0.8rem;
  }
  .footer-contact p {
    font-size: 0.8rem;
  }
  .footer-bottom {
    text-align: center;
  }
  .footer-bottom .footer-links {
    margin-top: 6px;
  }
  .footer-bottom .footer-links a + a {
    margin-left: 10px;
    padding-left: 10px;
  }
}

/* Developer credit bar */
.footer-developer {
  border-top: 1px solid rgba(21, 145, 220, 0.15);
  background: rgba(0, 0, 0, 0.18);
  padding: 12px 0;
  text-align: center;
}
.footer-developer p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}
.footer-developer a {
  color: #1591DC;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.footer-developer a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(21, 145, 220, 0.6);
}
.footer-developer a i {
  margin-right: 4px;
  font-size: 0.85rem;
}




