@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* Custom Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  font-size: 19px; /* Further increased overall base font size */
  background-color: #F5F3EC;
  width: 100%;
  max-width: 100vw;
}

html.dark {
  background-color: #0F172A;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F5F3EC;
  color: #26322E;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

html.dark body {
  background-color: #0F172A;
  color: #F8FAFC;
}

/* Constrain all images, SVGs, and media so they NEVER flash oversized before layout loads */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

img {
  content-visibility: auto;
}

/* Hide scrollbars for clean horizontal sliding */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Chatbot Responsive Fullscreen on Mobile / Floating Box on Desktop
   ========================================================================== */
#chatbot-widget {
  position: fixed !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out !important;
}

#chatbot-widget.hidden {
  display: none !important;
}

@media (max-width: 639px) {
  #chatbot-widget {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
  }

  body.chatbot-open {
    overflow: hidden !important;
  }

  #chatbot-close-btn {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
  }
}

@media (min-width: 640px) {
  #chatbot-widget {
    bottom: 5.5rem !important;
    right: 1.5rem !important;
    width: 380px !important;
    height: 520px !important;
    max-height: calc(100vh - 7rem) !important;
    border-radius: 1.25rem !important;
  }
}

/* ==========================================================================
   Seamless Single Page Application (SPA) Top Progress Bar & Smooth Transitions
   ========================================================================== */
#sst-spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #C47D4C 0%, #123B32 50%, #527A68 100%);
  z-index: 999999;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 12px rgba(196, 125, 76, 0.8), 0 0 4px rgba(18, 59, 50, 0.8);
}

main {
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

main.spa-loading {
  opacity: 0;
  transform: translateY(8px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
}

/* Text Justification for Paragraphs & Descriptions */
p:not(.text-center):not(.text-center *):not(.text-right):not(.text-right *):not(#chatbot-widget *):not(.pill-badge *):not(.hero-pill-badge *):not(header *):not(.animate-marquee-track *),
article p:not(.text-center):not(.text-center *),
.card p:not(.text-center):not(.text-center *),
.prose p:not(.text-center):not(.text-center *) {
  text-align: justify;
  text-justify: inter-word;
}

/* Container Left/Right Spacing Enhancements */
.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Moving Announcement Ticker Marquee Animation */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
}

.animate-marquee-track:hover {
  animation-play-state: paused;
}

@media (min-width: 768px) {
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* Header & Navigation Link Styling */
header {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.dark header {
  background-color: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid #1E293B !important;
}

/* Header Brand Title & Subtitle Legibility & Responsive Exact Width Alignment */
.brand-text-container {
  display: inline-flex !important;
  flex-direction: column !important;
  width: fit-content !important;
  align-items: stretch !important;
}

.brand-title-text,
header a span.brand-title-text,
header a span.font-black {
  color: #0F172A !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  display: block !important;
  line-height: 1.15 !important;
}

.brand-sub-text,
header a span.brand-sub-text {
  color: #123B32 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin-top: 1px !important;
}

.brand-sub-text span {
  display: inline-block !important;
  color: inherit !important;
}

html.dark .brand-title-text,
html.dark header a span.brand-title-text,
html.dark header a span.font-black {
  color: #FFFFFF !important;
}

html.dark .brand-sub-text,
html.dark header a span.brand-sub-text {
  color: #34D399 !important;
}

/* Footer and Mobile Drawer Alignment */
footer .brand-sub-text {
  color: #34D399 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

aside#mobile-menu .brand-title-text {
  color: #0F172A !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  display: block !important;
}

aside#mobile-menu .brand-sub-text {
  color: #123B32 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* ==========================================================================
   Mobile Side Navigation Drawer Contrast & Bold Typography
   ========================================================================== */
aside#mobile-menu {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

/* Mobile Drawer Navigation Links */
aside#mobile-menu nav a,
aside#mobile-menu nav button.mobile-accordion-toggle {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
  transition: all 0.15s ease-in-out !important;
}

aside#mobile-menu nav a span,
aside#mobile-menu nav button.mobile-accordion-toggle span {
  color: #0F172A !important;
  font-weight: 800 !important;
}

aside#mobile-menu nav a i,
aside#mobile-menu nav button.mobile-accordion-toggle i {
  color: #123B32 !important;
  font-size: 16px !important;
}

aside#mobile-menu nav button.mobile-accordion-toggle i.accordion-arrow,
aside#mobile-menu nav button.mobile-accordion-toggle i.bi-chevron-down {
  color: #64748B !important;
  font-size: 11px !important;
}

/* Inactive Mobile Drawer Navigation Links */
aside#mobile-menu nav a:not(.active),
aside#mobile-menu nav button.mobile-accordion-toggle:not(.active) {
  background-color: transparent !important;
  border-left: 3.5px solid transparent !important;
  color: #0F172A !important;
}

aside#mobile-menu nav a:not(.active) span,
aside#mobile-menu nav button.mobile-accordion-toggle:not(.active) span {
  color: #0F172A !important;
}

/* Active Link in Mobile Drawer (ONLY .active) */
aside#mobile-menu nav a.active,
aside#mobile-menu nav button.mobile-accordion-toggle.active {
  background-color: #E8EFEB !important;
  color: #123B32 !important;
  border-left: 3.5px solid #123B32 !important;
}

aside#mobile-menu nav a.active span,
aside#mobile-menu nav a.active i,
aside#mobile-menu nav button.mobile-accordion-toggle.active span,
aside#mobile-menu nav button.mobile-accordion-toggle.active i {
  color: #123B32 !important;
}

/* Hover State (Non-Active) */
aside#mobile-menu nav a:not(.active):hover,
aside#mobile-menu nav button.mobile-accordion-toggle:not(.active):hover {
  background-color: #F1F5F3 !important;
  color: #123B32 !important;
}

aside#mobile-menu nav a:not(.active):hover span,
aside#mobile-menu nav button.mobile-accordion-toggle:not(.active):hover span {
  color: #123B32 !important;
}

/* Submenu links inside Accordions */
aside#mobile-menu .mobile-accordion-menu a {
  color: #334E43 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: normal !important;
}

aside#mobile-menu .mobile-accordion-menu a:hover {
  color: #123B32 !important;
  padding-left: 4px !important;
}

/* Dark Mode Mobile Drawer */
html.dark aside#mobile-menu {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
}

html.dark aside#mobile-menu .brand-title-text {
  color: #FFFFFF !important;
}

html.dark aside#mobile-menu .brand-sub-text {
  color: #34D399 !important;
}

html.dark aside#mobile-menu nav a:not(.active),
html.dark aside#mobile-menu nav button.mobile-accordion-toggle:not(.active) {
  background-color: transparent !important;
  border-left: 3.5px solid transparent !important;
  color: #F8FAFC !important;
}

html.dark aside#mobile-menu nav a:not(.active) span,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle:not(.active) span {
  color: #F8FAFC !important;
}

html.dark aside#mobile-menu nav a.active,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle.active {
  background-color: rgba(6, 78, 59, 0.4) !important;
  color: #6EE7B7 !important;
  border-left: 3.5px solid #10B981 !important;
}

html.dark aside#mobile-menu nav a.active span,
html.dark aside#mobile-menu nav a.active i,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle.active span,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle.active i {
  color: #6EE7B7 !important;
}

html.dark aside#mobile-menu nav a:not(.active):hover,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle:not(.active):hover {
  background-color: #1E293B !important;
  color: #6EE7B7 !important;
}

html.dark aside#mobile-menu nav a:not(.active):hover span,
html.dark aside#mobile-menu nav button.mobile-accordion-toggle:not(.active):hover span {
  color: #6EE7B7 !important;
}

html.dark aside#mobile-menu .mobile-accordion-menu a {
  color: #CBD5E1 !important;
}

html.dark aside#mobile-menu .mobile-accordion-menu a:hover {
  color: #6EE7B7 !important;
}

/* ==========================================================================
   Public Application & Event Registration Modal Forms
   ========================================================================== */
#public-modal-backdrop input:not([type="file"]),
#public-modal-backdrop textarea {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #D3DDD7 !important;
}

#public-modal-backdrop input::placeholder,
#public-modal-backdrop textarea::placeholder {
  color: #64748B !important;
}

#public-modal-backdrop input:focus,
#public-modal-backdrop textarea:focus {
  border-color: #123B32 !important;
  background-color: #FFFFFF !important;
}

#public-modal-backdrop label {
  color: #1E292B !important;
  font-weight: 700 !important;
}

#public-modal-backdrop h3 {
  color: #0F172A !important;
  font-weight: 900 !important;
}

html.dark #public-modal-backdrop input:not([type="file"]),
html.dark #public-modal-backdrop textarea {
  background-color: #0B0F19 !important;
  color: #FFFFFF !important;
  border-color: #334155 !important;
}

html.dark #public-modal-backdrop input::placeholder,
html.dark #public-modal-backdrop textarea::placeholder {
  color: #94A3B8 !important;
}

html.dark #public-modal-backdrop input:focus,
html.dark #public-modal-backdrop textarea:focus {
  border-color: #10B981 !important;
  background-color: #0F172A !important;
}

html.dark #public-modal-backdrop label {
  color: #E2E8F0 !important;
}

html.dark #public-modal-backdrop h3 {
  color: #FFFFFF !important;
}

.nav-link-pill {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  padding: 10px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease-in-out !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  border: none !important;
  position: relative !important;
}

.nav-link-pill.active {
  color: #123B32 !important; /* Primary Dark Green */
  font-weight: 700 !important;
  background-color: transparent !important; /* No background color, only underline */
  border-bottom: 2.5px solid #123B32 !important;
  border-radius: 0 !important;
}

.nav-link-pill:not(.active) {
  color: #26322E !important; /* Charcoal Green */
  background-color: transparent !important;
}

.nav-link-pill:not(.active):hover {
  color: #123B32 !important;
  background-color: #E8EFEB !important; /* Soft Green BG */
}

/* Professional Navbar Dropdown Menus */
.nav-dropdown-menu {
  background-color: #FFFFFF !important;
  border: 1px solid #D3DDD7 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.nav-dropdown-item {
  border-radius: 4px !important;
  transition: all 0.15s ease-in-out !important;
  color: #0F172A !important;
}

.nav-dropdown-item span:first-child,
.nav-dropdown-item .dropdown-title {
  color: #0F172A !important;
  font-weight: 700 !important;
}

.nav-dropdown-item span:last-child,
.nav-dropdown-item .dropdown-desc {
  color: #334E43 !important;
  font-weight: 500 !important;
}

.nav-dropdown-item:hover {
  background-color: #E8EFEB !important;
}

.nav-dropdown-item:hover span:first-child,
.nav-dropdown-item:hover .dropdown-title {
  color: #123B32 !important;
}

/* Hero Pill Badge */
.hero-pill-badge {
  background-color: #FFFFFF !important;
  border: 1px solid #D3DDD7 !important;
  color: #123B32 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.hero-pill-badge span,
.hero-pill-badge i {
  color: #123B32 !important;
}

.hero-pill-badge span.dot-separator {
  color: #527A68 !important;
}

/* Event Search & Filter Bar */
#event-search {
  background-color: #F1F5F3 !important;
  color: #0F172A !important;
  border: 1px solid #D3DDD7 !important;
}

#event-search::placeholder {
  color: #64748B !important;
}

html.dark #event-search {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #334155 !important;
}

html.dark #event-search::placeholder {
  color: #94A3B8 !important;
}

.event-filter-pill {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #D3DDD7 !important;
  font-weight: 700 !important;
  transition: all 0.15s ease-in-out !important;
}

.event-filter-pill:hover {
  background-color: #E8EFEB !important;
  color: #123B32 !important;
  border-color: #123B32 !important;
}

.event-filter-pill.active {
  background-color: #123B32 !important;
  color: #FFFFFF !important;
  border-color: #123B32 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(18, 59, 50, 0.25) !important;
}

html.dark .event-filter-pill {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

html.dark .event-filter-pill:hover {
  background-color: #334155 !important;
  color: #6EE7B7 !important;
  border-color: #6EE7B7 !important;
}

html.dark .event-filter-pill.active {
  background-color: #10B981 !important;
  color: #022C22 !important;
  border-color: #10B981 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Dark Mode Dropdown Styles */
html.dark .nav-dropdown-menu {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

html.dark .nav-dropdown-item {
  color: #F8FAFC !important;
}

html.dark .nav-dropdown-item span:first-child,
html.dark .nav-dropdown-item .dropdown-title {
  color: #F8FAFC !important;
  font-weight: 700 !important;
}

html.dark .nav-dropdown-item span:last-child,
html.dark .nav-dropdown-item .dropdown-desc {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

html.dark .nav-dropdown-item:hover {
  background-color: #1E293B !important;
}

html.dark .nav-dropdown-item:hover span:first-child,
html.dark .nav-dropdown-item:hover .dropdown-title {
  color: #6EE7B7 !important;
}

html.dark .hero-pill-badge {
  background-color: rgba(6, 78, 59, 0.4) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6EE7B7 !important;
  box-shadow: none !important;
}

html.dark .hero-pill-badge span,
html.dark .hero-pill-badge i {
  color: #6EE7B7 !important;
}

html.dark .hero-pill-badge span.dot-separator {
  color: #34D399 !important;
}

/* Mobile Off-Canvas Side Drawer (Minimalist White & Light Blue) */
.mobile-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  z-index: 99988 !important;
}

.mobile-drawer-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mobile-drawer-content {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 290px !important;
  max-width: 85vw !important;
  background-color: #ffffff !important;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.08) !important;
  border-left: 1px solid #e2e8f0 !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow-y: auto !important;
}

.mobile-drawer-content.active {
  transform: translateX(0) !important;
}

/* Pure Tailwind Animated Hamburger Bars */
#mobile-menu-btn span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

#mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #123B32 !important;
}

#mobile-menu-btn.open span:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0);
}

#mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #123B32 !important;
}

/* Horizontal wave motion animation (Left to Right) */
@keyframes horizontalWave {
  0% {
    background-position: 0 0;
    transform: translateX(0px);
  }
  50% {
    background-position: 28px 0;
    transform: translateX(8px);
  }
  100% {
    background-position: 56px 0;
    transform: translateX(0px);
  }
}

.dot-grid {
  position: absolute;
  inset: -30px;
  background-image: radial-gradient(#64748b 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
  animation: horizontalWave 3.5s linear infinite;
}

/* For dark background sections */
.dot-grid-dark {
  background-image: radial-gradient(#38bdf8 1.4px, transparent 1.4px) !important;
  opacity: 0.15 !important;
}

/* Ambient floating background blobs */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.15); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 45px) scale(1.08); }
}

.ambient-blob-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: float1 20s ease-in-out infinite;
  z-index: 1;
}

.ambient-blob-2 {
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: float2 24s ease-in-out infinite;
  z-index: 1;
}

/* Glassmorphism Styles */
.glassmorphism {
  background: rgba(245, 243, 236, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #d3ddd7;
}

.glassmorphism-blue {
  background: rgba(232, 239, 235, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(18, 59, 50, 0.15);
}

/* Hero gradient background */
.hero-bg {
  background: linear-gradient(170deg, #E8EFEB 0%, #F5F3EC 45%, #FFFFFF 100%);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #123B32, #2F5B4E 45%, #C47D4C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Animation Styles */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }

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

/* Hover effects */
.hover-lift {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 59, 50, 0.3);
  box-shadow: 0 10px 25px -5px rgba(18, 59, 50, 0.08), 0 8px 10px -6px rgba(18, 59, 50, 0.08);
}

/* Focus Indicator Styles */
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid #123B32;
  outline-offset: 2px;
}

/* Typewriter cursor blinking effect */
@keyframes cursorBlink {
  50% { border-color: transparent; }
}
.typewriter-cursor {
  border-right: 3px solid #123B32;
  animation: cursorBlink 0.75s step-end infinite;
}

/* Slider transition styles */
.slider-slide {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide.active {
  opacity: 1;
}

/* ==========================================================================
   Comprehensive Light Mode Foundations (High Contrast & Legibility)
   ========================================================================== */
html:not(.dark) {
  color-scheme: light;
  background-color: #FFFFFF;
  color: #0F172A;
}

html:not(.dark) body {
  background-color: #FFFFFF;
  color: #0F172A;
}

/* Global Headings in Light Mode */
html:not(.dark) main h1,
html:not(.dark) main h2,
html:not(.dark) main h3,
html:not(.dark) main h4,
html:not(.dark) main h5,
html:not(.dark) main h6,
html:not(.dark) header h1,
html:not(.dark) header h2,
html:not(.dark) header h3,
html:not(.dark) header h4 {
  color: #0F172A;
}

/* Global Paragraphs & Text Elements in Light Mode */
html:not(.dark) main p,
html:not(.dark) main li,
html:not(.dark) header p {
  color: #26322E;
}

/* High Contrast Brand Text Utilities in Light Mode */
html:not(.dark) main .text-brand-darkText,
html:not(.dark) main [class*="text-[#0F172A]"],
html:not(.dark) main [class*="text-[#17211D]"] {
  color: #0F172A !important;
}

html:not(.dark) main .text-brand-secText,
html:not(.dark) main [class*="text-brand-secText"],
html:not(.dark) main [class*="text-[#334E43]"],
html:not(.dark) main [class*="text-[#527A68]"] {
  color: #334E43 !important;
}

html:not(.dark) main [class*="text-[#475569]"],
html:not(.dark) main [class*="text-[#64748B]"],
html:not(.dark) main [class*="text-[#66736D]"] {
  color: #334155 !important;
}

/* Brand Accent & Links in Light Mode */
html:not(.dark) main .text-brand-green,
html:not(.dark) main [class*="text-[#123B32]"] {
  color: #123B32 !important;
}

html:not(.dark) main a.text-brand-green:hover,
html:not(.dark) main a[class*="text-[#123B32]"]:hover {
  color: #0D2B24 !important;
}

/* Card & Surface Defaults in Light Mode */
html:not(.dark) .bg-white,
html:not(.dark) div[class*="bg-white"] {
  background-color: #FFFFFF;
}

html:not(.dark) .border-brand-border,
html:not(.dark) [class*="border-[#D3DDD7]"],
html:not(.dark) [class*="border-[#E2E8F0]"] {
  border-color: #E2E8F0;
}

/* ==========================================================================
   Global Footer High Contrast System (Both Light and Dark Modes)
   ========================================================================== */
footer {
  background-color: #0F172A !important;
  border-top: 1px solid #1E293B !important;
  color: #CBD5E1 !important;
}

footer h4,
footer h3,
footer .font-heading {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

footer p {
  color: #CBD5E1 !important;
}

footer ul li a {
  color: #94A3B8 !important;
  transition: color 0.15s ease-in-out !important;
}

footer ul li a:hover,
footer .hover\:text-white:hover {
  color: #FFFFFF !important;
}

footer .footer-subtitle,
footer span.text-emerald-400 {
  color: #34D399 !important;
}

footer .border-t {
  border-top-color: #1E293B !important;
}

/* ==========================================================================
   Comprehensive Dark Mode System Overrides
   ========================================================================== */
html.dark {
  color-scheme: dark;
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

html.dark body {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

/* Hero Section Gradient Background */
html.dark .hero-bg,
html.dark section.hero-bg,
html.dark div.hero-bg {
  background: linear-gradient(170deg, #0b0f19 0%, #0f172a 40%, #1e293b 100%) !important;
}

/* Glassmorphism Styles in Dark Mode */
html.dark .glassmorphism {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid #1e293b !important;
}

html.dark .glassmorphism-blue {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
}

/* Text Gradients in Dark Mode */
html.dark .text-gradient {
  background: linear-gradient(135deg, #a7f3d0, #527A68 45%, #C47D4C) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Ambient Dot Grid in Dark Mode */
html.dark .dot-grid {
  background-image: radial-gradient(#475569 1.4px, transparent 1.4px) !important;
  opacity: 0.15 !important;
}

/* Global Headings in Dark Mode */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f8fafc !important;
}

/* Global Paragraphs & Text Elements in Dark Mode */
html.dark p,
html.dark li,
html.dark span:not(.pill-badge span) {
  color: #e2e8f0;
}

html.dark [class*="text-brand-secText"],
html.dark [class*="text-[#475569]"],
html.dark [class*="text-[#64748B]"],
html.dark [class*="text-[#334155]"],
html.dark [class*="text-[#66736D]"] {
  color: #cbd5e1 !important;
}

/* Force light text on all dark mode elements */
html.dark .text-brand-darkText,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700,
html.dark [class*="text-[#0F172A]"],
html.dark [class*="text-[#17211D]"] {
  color: #f8fafc !important;
}

/* Brand Accent & Links in Dark Mode - High Contrast Mint Green */
html.dark .text-brand-green,
html.dark [class*="text-[#123B32]"] {
  color: #6EE7B7 !important; /* Bright mint green for crystal clear legibility on dark navy */
}

html.dark a.text-brand-green:hover,
html.dark a[class*="text-[#123B32]"]:hover {
  color: #FDBA74 !important; /* Bright warm accent on hover */
}

/* Footer Brand Subtitle Legibility */
footer a span.text-brand-green,
footer span.text-brand-green {
  color: #34D399 !important;
}

/* Background Surface Inversions */
html.dark section,
html.dark main,
html.dark article,
html.dark div[class*="bg-white"],
html.dark div[class*="bg-brand-white"],
html.dark header {
  background-color: #0b0f19;
  color: #f8fafc;
}

html.dark .bg-slate-50,
html.dark .bg-slate-100,
html.dark [class*="bg-[#E8EFEB]"],
html.dark [class*="bg-[#F4F8FC]"],
html.dark [class*="bg-brand-lightGreen"],
html.dark [class*="bg-brand-lightGreen/30"],
html.dark [class*="bg-brand-lightGreen/10"] {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

html.dark .bg-brand-softGreen,
html.dark [class*="bg-[#E8EFEB]"] {
  background-color: #123B32 !important;
  color: #a7f3d0 !important;
}

/* Pill / Badge Container in Hero in Dark Mode */
html.dark [class*="bg-white/80"] {
  background-color: rgba(30, 41, 59, 0.85) !important;
  color: #f8fafc !important;
}

/* Borders & Dividers in Dark Mode */
html.dark .border,
html.dark .border-brand-border,
html.dark [class*="border-[#E2E8F0]"],
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark hr {
  border-color: #334155 !important;
}

/* Header Navigation Links in Dark Mode */
html.dark header {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #1e293b !important;
}

html.dark .nav-link-pill:not(.active) {
  color: #E2E8F0 !important;
  background-color: transparent !important;
}

html.dark .nav-link-pill:not(.active):hover {
  color: #6EE7B7 !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .nav-link-pill.active {
  color: #6EE7B7 !important;
  background-color: transparent !important;
  font-weight: 700 !important;
  border-bottom: 2.5px solid #6EE7B7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hamburger Bars in Dark Mode */
html.dark #mobile-menu-btn span {
  background-color: #f8fafc !important;
}

/* Mobile Drawer in Dark Mode */
html.dark .mobile-drawer-content {
  background-color: #0f172a !important;
  border-left-color: #1e293b !important;
  color: #f8fafc !important;
}

html.dark .mobile-drawer-content div {
  border-color: #1e293b !important;
}

/* AI Chatbot Widget in Dark Mode */
html.dark #chatbot-widget {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

html.dark #chatbot-messages {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

html.dark #chatbot-messages div {
  color: inherit;
}

html.dark #chatbot-form {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

html.dark #chatbot-input {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* Form Controls in Dark Mode */
html.dark input,
html.dark textarea,
html.dark select {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* Theme Toggle Button */
#theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

#theme-toggle-btn:hover {
  background-color: #E8EFEB;
  border-color: #D3DDD7;
  transform: translateY(-1px);
}

html.dark #theme-toggle-btn {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark #theme-toggle-btn:hover {
  background-color: #334155 !important;
  border-color: #475569 !important;
}

/* ==========================================================================
   Interactive Illustration Styles & Keyframe Animations
   ========================================================================== */
.img-interactive {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1.25rem;
  cursor: pointer;
}

.img-interactive:hover {
  transform: translateY(-8px) scale(1.02) rotate(0.5deg);
  box-shadow: 0 25px 50px -12px rgba(18, 59, 50, 0.35);
}

.img-float {
  animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.8deg); }
}

/* ==========================================================================
   Chatbot Widget & Floating Trigger Styling (High Contrast in Light & Dark)
   ========================================================================== */
#chatbot-widget {
  background-color: #FFFFFF !important;
  border: 1px solid #D3DDD7 !important;
  color: #0F172A !important;
  max-height: calc(100vh - 110px) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35) !important;
  z-index: 9999 !important;
}

#chatbot-widget.hidden {
  display: none !important;
}

#chatbot-messages {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

/* Chatbot Message Bubbles in Light Mode */
#chatbot-messages .bg-white,
#chatbot-messages div[class*="bg-white"] {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
}

#chatbot-messages p,
#chatbot-messages span,
#chatbot-messages div {
  color: #0F172A;
}

/* User Message Bubble */
#chatbot-messages .bg-\[\#123B32\],
#chatbot-messages div[class*="bg-[#123B32]"] {
  background-color: #123B32 !important;
  color: #FFFFFF !important;
}

#chatbot-messages .bg-\[\#123B32\] *,
#chatbot-messages div[class*="bg-[#123B32]"] * {
  color: #FFFFFF !important;
}

#chatbot-form {
  background-color: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
}

#chatbot-input {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #D3DDD7 !important;
}

#chatbot-input::placeholder {
  color: #64748B !important;
}

#chatbot-form button[type="submit"] {
  background-color: #123B32 !important;
  color: #FFFFFF !important;
}

#chatbot-form button[type="submit"] i {
  color: #FFFFFF !important;
}

#chatbot-form button[type="submit"]:hover {
  background-color: #1A4B40 !important;
}

/* Floating AI Chatbot Button & WhatsApp Trigger */
#chatbot-toggle-btn {
  background-color: #123B32 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 25px -5px rgba(18, 59, 50, 0.4) !important;
  cursor: pointer !important;
}

#chatbot-toggle-btn i {
  color: #FFFFFF !important;
}

#chatbot-toggle-btn:hover {
  background-color: #1A4B40 !important;
}

/* Announcement Filter Buttons */
.announcement-filter-btn {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #D3DDD7 !important;
  font-weight: 700 !important;
  transition: all 0.15s ease-in-out !important;
}

.announcement-filter-btn:hover {
  background-color: #E8EFEB !important;
  color: #123B32 !important;
  border-color: #123B32 !important;
}

.announcement-filter-btn.active {
  background-color: #123B32 !important;
  color: #FFFFFF !important;
  border-color: #123B32 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(18, 59, 50, 0.25) !important;
}

/* Dark mode chat & announcement styles */
html.dark #chatbot-widget {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

html.dark #chatbot-messages {
  background-color: #0B0F19 !important;
  color: #F8FAFC !important;
}

html.dark #chatbot-messages .bg-white,
html.dark #chatbot-messages div[class*="bg-white"],
html.dark #chatbot-messages div[class*="bg-[#1e293b]"] {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

html.dark #chatbot-messages p,
html.dark #chatbot-messages span,
html.dark #chatbot-messages div {
  color: #F8FAFC;
}

html.dark #chatbot-form {
  background-color: #0F172A !important;
  border-top-color: #334155 !important;
}

html.dark #chatbot-input {
  background-color: #0B0F19 !important;
  color: #FFFFFF !important;
  border-color: #334155 !important;
}

html.dark #chatbot-form button[type="submit"] {
  background-color: #10B981 !important;
  color: #022C22 !important;
}

html.dark #chatbot-form button[type="submit"] i {
  color: #022C22 !important;
}

html.dark #chatbot-toggle-btn {
  background-color: #10B981 !important;
  color: #022C22 !important;
}

html.dark #chatbot-toggle-btn i {
  color: #022C22 !important;
}

html.dark .announcement-filter-btn {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

html.dark .announcement-filter-btn:hover {
  background-color: #334155 !important;
  color: #6EE7B7 !important;
  border-color: #6EE7B7 !important;
}

html.dark .announcement-filter-btn.active {
  background-color: #10B981 !important;
  color: #022C22 !important;
  border-color: #10B981 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   Animated Sun/Moon Theme Toggle Switch (Uiverse)
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
  transform: scale(0.72);
  transform-origin: center center;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #123B32;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #0F172A;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #123B32;
}

.switch input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

.switch input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.switch input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Mobile-Friendly Responsive Typography & Component Scaling
   ========================================================================== */
@media (max-width: 640px) {
  html {
    font-size: 15px !important; /* Decreased mobile base font size for sleek mobile layout */
  }

  /* Responsive Headings Scaling */
  h1 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.35rem !important; /* 21.6px */
    line-height: 1.25 !important;
  }

  h3 {
    font-size: 1.15rem !important; /* 18.4px */
    line-height: 1.3 !important;
  }

  /* Compact Padding & Margin for Mobile Containers */
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Mobile Input Zoom Prevention & Touch Optimizations */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }

  /* Compact Buttons & Badges for Mobile Devices */
  .btn-mobile-compact {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.75rem !important;
  }

  /* Ticker Marquee Speed Adjustment for Mobile */
  .animate-marquee-track {
    animation-duration: 35s !important;
  }

  /* Table horizontal scroll wrapper touch optimizations */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  html {
    font-size: 17px !important;
  }
}




