/* ==========================================================================
   LOCAL FONT DECLARATIONS
   ========================================================================== */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: optional; 
  src: url('/fonts/roboto-condensed-v31-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/fonts/roboto-condensed-v31-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & HEADING SYSTEMS
   ========================================================================== */

/* Enables native smooth scrolling site-wide */
html {
  scroll-behavior: smooth;
}

/* Gives headings a cushion so smooth scroll targets don't stick to the top edge */
h1[id], h2[id], h3[id], section[id] {
  scroll-margin-top: 24px; /* Adjust pixel height to match your desired top padding */
}

/* Target all headings globally to use your local font and prevent overlapping */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* Uses the bold font file weight */
  line-height: 1.2; /* Tighter line-height looks cleaner on large bold headings */
  color: #ffffff;   /* Baseline crisp white text contrast */
  letter-spacing: 0.5px;
  
  /* Subtle dark drop shadow ensures perfect readability over animated background waves */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); 
}

/* 
   --- FLUID FONT SIZING USING CLAMP ---
   Syntax: clamp(minimum_size, fluid_viewport_percentage, maximum_size)
   This forces headings to dynamically scale based on screen size automatically.
*/

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: #e2f1ff; /* Muted light-cyan accent hue for secondary section headings */
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #ffffff;
  margin-bottom: 12px;
}

h4 {
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

h5 {
  font-size: 1rem;
  color: #e2f1ff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ==========================================================================
   OPTIONAL TYPOGRAPHY UTILITY UPGRADES
   ========================================================================== */

/* 
   Accent Gradient Title Class
   Add class="gradient-title" to an <h1> to make the text inherit your wave colors!
*/
.gradient-title {
  background-image: linear-gradient(135deg, #ffffff 30%, #76beff 100%);
  background-clip: text;
  -webkit-background-clip: text; /* Required for Safari/Chrome support */
  color: transparent;            /* Makes the text transparent so the gradient shows through */
  -webkit-text-fill-color: transparent;
  
  /* Standard drop shadows clip gradients, so we shift it to a webkit text stroke or drop it */
  text-shadow: none; 
}

/* Standard paragraph utility styling to balance your text blocks */
p {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400; /* Uses your regular local font weight file */
  font-size: 1rem;
  line-height: 1.6; /* Generous line height makes body copy easier to read */
  color: #e0e0e0;   /* Slightly softer white reduces eye strain over dark backgrounds */
  margin-bottom: 14px;
}

.text-link {
  color: #76beff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.text-link:hover {
  text-decoration: underline;
  color: #76beff;
}

.dark-link {
  color: #3344DD;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.dark-link:hover {
  text-decoration: underline;
  color: #BB1122;
}

/* ==========================================================================
   RESETS & BACKGROUND
   ========================================================================== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   ANIMATED BACKGROUND WAVE SYSTEM (GPU-ACCELERATED)
   ========================================================================== */

/* Fixed background canvas avoids mobile scroll distortions */
svg.bg-waves,
svg:not([class]) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  background-color: #0e4166;
  background-image: linear-gradient(to bottom, rgba(14, 65, 102, 0.86), #0e4166);
}

/* Base hardware-acceleration hint for wave layers */
.wave-layer {
  will-change: transform;
  transform-origin: 0 0; /* Anchoring to 0 0 prevents browser origin drift in SVG */
}

/* Wave 1: Slower background ambient wave (tighter, distant frequency) */
.wave-layer-1 {
  animation: waveMotion1 11s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* Wave 2: Midground wave (broader foreground swell) */
.wave-layer-2 {
  display: none;
  animation: waveMotion2 9s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* Keyframes: Stretch Wave 2 horizontally by 18% (scaleX: 1.18, scaleY: 1) */
@keyframes waveMotion1 {
  0%, 100% {
    transform: translate(270px, 230px);
  }
  50% {
    transform: translate(-334px, 180px);
  }
}

@keyframes waveMotion2 {
  0%, 100% {
    transform: translate(-270px, 230px) scale(1.18, 1);
  }
  60% {
    transform: translate(243px, 220px) scale(1.18, 1);
  }
}

/* Tablet & Desktop: Turn the second wave back on */
@media (min-width: 768px) {
  .wave-layer-2 {
    display: block;
  }
}

/* Accessibility: Instantly halts CSS motion if the OS prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wave-layer {
    animation: none !important;
  }
}

/* ==========================================================================
   ACCESSIBLE KEYBOARD SKIP TO CONTENT LINK
   ========================================================================== */
.skip-to-content {
  position: absolute;
  top: -100px; /* Securely hides the button off-screen by default */
  left: 20px;
  background-color: #76beff; /* A bright, high-contrast theme color */
  color: #0e4166;            /* Deep dark text to ensure high contrast */
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  z-index: 9999; /* Forces it to slide on top of everything, including your header */
  
  /* Smoothly animates the slide-down action when focused */
  transition: top 0.2s ease; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Visually reveals the button ONLY when active keyboard focus lands on it */
.skip-to-content:focus {
  top: 0; /* Snaps to the very top edge of the browser window */
  outline: 2px solid #ffffff; /* Explicit keyboard accessibility border */
}

/* ==========================================================================
   STRUCTURAL CONTENT CONTAINER (95% Mobile First)
   ========================================================================== */
.content-layer {
  width: 95%;
  margin: 20px auto;       
  display: flex;
  flex-direction: column;
  gap: 16px;               
  position: relative;
  z-index: 1;
}

/* --- The semantic main wrapper handles all inner layout gaps --- */
.main-body-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ==========================================================================
   ACCESSIBLE DARK GLASS CARDS (NO SHADOW RENDERING FLAWS)
   ========================================================================== */
.site-header,
.two-col-grid .card,
.scroll-grid .card,
.blog-section,
.composite-two-col-card,
.grid-three-cards,
.grid-three-cards .card,
.grid-full-width .card,
.site-footer {
  background-color: rgba(10, 30, 50, 0.85); 
  color: #ffffff; /* White text ensures accessible contrast */
  padding: 16px;           
  border-radius: 12px;
  position: relative;
  z-index: 2;  
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.12);  
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* ==========================================================================
   GRID CONFIGURATIONS (Mobile Stacking Default)
   ========================================================================== */
.two-col-grid, 
.scroll-grid,
.blog-links-grid,
.composite-two-col-card,
.grid-three-cards,
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Forces a grid item to span the full width across columns */
.full-width-col {
  grid-column: 1 / -1; 
  width: 100%;
}

.full-width-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* A basic block layout expands to fill 100% of its space naturally. */
.grid-full-width {
  width: 100%;
}

/* Inner Scrolling Box Setup on Mobile */
.scroll-grid .card {
  max-height: 720px;       
  overflow-y: auto;        
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}
.scroll-grid .card::-webkit-scrollbar {
  display: none;
}

.rounded-img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

/* Prevents historical images from over-stretching while keeping them centered */
.grid-three-cards img.rounded-img {
  width: auto !important;     /* Prevents stretching past native pixel width */
  max-width: 100% !important; /* Allows shrinking on mobile screens */
  height: auto !important;
  margin: 0 auto;             /* Centers images inside their grid cell */
  display: block;
}

/* ==========================================================================
   TABLE OF CONTENTS BOX STYLING
   ========================================================================== */
.toc-box {
  background-color: rgba(14, 50, 80, 0.9); /* Dark blue, slightly brighter than standard cards */
  border: 1px solid rgba(118, 190, 255, 0.4); /* Cyan accent stroke from your wave palette */
  padding: 20px;
  border-radius: 10px;
}

.toc-box h2 {
  color: #76beff; /* Signature light blue text */
  text-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.toc-list li a:hover {
  background-color: rgba(118, 190, 255, 0.15);
  color: #76beff;
  padding-left: 14px;
}

.bg-info {
  background-color: #D5EEF0;
}

/* ==========================================================================
   BLOG SECTION & CLICKABLE TOPIC CARDS
   ========================================================================== */
.blog-section h2 {
  margin-bottom: 20px;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card {
  background-color: rgba(255, 255, 255, 0.04); 
  border-radius: 10px;
  overflow: hidden; 
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Modern Natively Responsive Image Container */
.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
}

.blog-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease; 
}

.blog-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.blog-title-row h3 {
  font-size: 1.15rem;
  color: #e2f1ff; /* Accent cyan hue */
  line-height: 1.3;
}

.blog-title-row .arrow {
  font-size: 1.2rem;
  color: #e2f1ff;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.blog-description {
  font-size: 0.9rem;
  color: #cccccc; 
  line-height: 1.5;
}

/* ==========================================================================
   DESKTOP MEDIA OVERRIDES (Wider than 768px -> 80% Layout Width)
   ========================================================================== */
@media (min-width: 768px) {
  .content-layer {
    width: 80%;
    max-width: 1400px;
    margin: 40px auto;     
    gap: 24px;             
  }

   /* Increases spacing between individual layout cards on desktop */
  .main-body-content {
    gap: 24px; 
  }
  
   /* Padding Comfort Restoration */
  .site-header, .two-col-grid .card, .scroll-grid .card, .blog-section, .site-footer {
    padding: 24px;
  }

  /* Structural Desk Configurations */
  /* 2 Equal Columns Row */
  .two-col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
 /* 2 Equal Columns Scrolling Row */
  .scroll-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .scroll-grid .card {
    max-height: 250px;     
  }
  
 /* 2 Columns inside a single card */
  .composite-two-col-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

 /* 3 Cards Row */
  .grid-three-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center; /* Centers images and text vertically */
  }

  /* Blog 2-Rows of 3 Columns Desktop Grid Grid */
  .blog-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* --- INTERACTIVE HOVER BEHAVIORS --- */
  .two-col-grid .card:hover, 
  .scroll-grid .card:hover, 
  .grid-three-cards .card:hover, 
  .grid-full-width .card:hover, 
  .blog-section:hover {
    transform: translateY(-2px);
    background-color: rgba(14, 42, 70, 0.95); 
  }

  .blog-post-card:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .blog-post-card:hover .blog-thumbnail {
    transform: scale(1.04);
  }

  .blog-post-card:hover .arrow {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   HEADER CONTAINER ARCHITECTURE (ATTACHED NAVIGATION LOOK)
   ========================================================================== */
.site-header-wrapper {
  background-color: rgba(10, 30, 50, 0.65); 
  color: #ffffff;
  border-radius: 12px;
  position: relative;
  z-index: 100; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  display: flex; !important;
  flex-direction: column; !important; /* Forces layout to stack top-to-bottom */
  width: 100% !important;
  box-sizing: border-box;
}

/* Top Row Setup (Mobile First: stacks items vertically) */
.header-top-row {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  text-align: center;
  width: 100% !important;
  box-sizing: border-box;

  /* 1. Link your image asset here */
  background-image: 
    /* A dark overlay gradient that ensures text contrast over any image */
    linear-gradient(to bottom, rgba(10, 30, 50, 0.8), rgba(10, 30, 50, 0.4)), 
    url('../art/bg-header9.jpg'); 
    
  /* 2. Configure image scaling behavior */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* 3. Rounds the top corners to match the global card container shape */
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.header-tagline-section strong {
  font-size: 1.4rem;
  color: #e2f1ff; /* Light branding color */
  letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE LOGO HANDLING
   ========================================================================== */
.logo-link {
  display: block;
  line-height: 0; /* Clears hidden browser spacing loops below imagery */
}

.header-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  
  /* Adjust this width setting to match your logo asset's design comfort */
  width: 240px; 
}

/* Mobile tweak to ensure logo doesn't crush margins on small viewports */
@media (max-width: 767px) {
  .header-logo-img {
    width: 180px; /* Scales down slightly on phones to save space */
    margin: 0 auto;
  }
}

/* ==========================================================================
   HEADER SEARCH BOXES & CSS VECTOR ICONS
   ========================================================================== */
.header-search-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.SearchForm form {
  display: flex;
  /* Darkened background fill separates the capsule block from the header image */
  background: rgba(10, 25, 45, 0.65);
  /* Increased border opacity and a light blue accent color makes the shape pop */
  border: 1px solid rgba(76, 190, 255, 0.4); 
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.SearchForm input.search_query {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.SearchForm input.search_query::placeholder {
  color: #dddddd;
}

/* The structural submit button frame */
.search-submit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 36px;
  cursor: pointer;
  position: relative; /* Anchor for pseudo vector elements */
  transition: background 0.2s ease;
}

.search-submit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Vector Shape Layer 1: The Magnifying Glass Circle */
.search-submit-btn::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 11px;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Vector Shape Layer 2: The Magnifying Glass Handle Stick */
.search-submit-btn::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 21px;
  width: 7px;
  height: 2px;
  background-color: #ffffff;
  transform: rotate(45deg); /* Rotates stick diagonally to meet the circle */
  transform-origin: top left;
}

/* ==========================================================================
   SEARCH BAR GLOW EFFECTS ON INPUT FOCUS
   ========================================================================== */

/* 1. Add a transition property to the baseline input state */
.SearchForm input.search_query {
  /* ... keep your existing styles ... */
  border: 1px solid transparent; /* Gives the border an anchor to transition from */
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 2. Style the active focus state */
.SearchForm input.search_query:focus {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly brightens the inside track */
  border-color: rgba(142, 192, 255, 0.45);      /* Soft light-blue border line appears */
  
  /* The subtle outer glow utilizing the light blue signature from your wave gradient */
  box-shadow: 0 0 12px rgba(76, 190, 255, 0.4); 
  
  /* CRITICAL: Disables the browser's default harsh blue or black outline ring */
  outline: none; 
}

/* Unified Focus pop handler */
.SearchForm form:focus-within {
  /* Snaps to full brightness light blue when a user clicks to type */
  border-color: rgba(76, 190, 255, 1); 
  background: rgba(10, 25, 45, 0.85);
  box-shadow: 0 0 14px rgba(76, 190, 255, 0.4);
}

/* ==========================================================================
   FULL-WIDTH NAVBAR
   ========================================================================== */
.site-nav-container {
  display: block !important;
  width: 100% !important;
  clear: both !important; /* Knocks it down below any legacy floats */
  box-sizing: border-box;
  padding: 12px 16px;
  background-color: transparent; /* Allows the dark card background to show normally */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Split line separating navigation */
}

.navbar {
  display: flex;
  justify-content: flex-start; /* Aligns items efficiently on mobile */
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   FIXED HAMBURGER DESIGN & BREAKPOINT TOGGLE
   ========================================================================== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;       /* Shows hamburger on mobile views */
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 101;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* Animations for transforming to X */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ==========================================================================
   NAVIGATION MENUS & ROUND BULLET SYSTEM
   ========================================================================== */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(12, 32, 54, 0.98); 
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
}

.nav-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-link, .submenu-toggle {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  padding: 8px 0;
}

/* Dropdown styling defaults */
.dropdown-menu {
  list-style: none;
  padding-left: 15px; 
  display: none;      
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.dropdown-menu a {
  color: #cccccc;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  font-size: 1rem;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

/* Row highlight on hover */
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background-color: rgba(118, 190, 255, 0.2); /* Soft cyan fill */
  color: #ffffff;                              /* Bright signature cyan text */
  outline: none;
}

/* Subtle left border highlight stroke */
.dropdown-menu a:hover::before,
.dropdown-menu a:focus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #76beff; /* Bright left accent bar */
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

.dropdown.active > .dropdown-menu,
.submenu-parent.active > .dropdown-menu {
  display: block; 
}

.caret {
  display: inline-block;
  font-size: 1rem;
  margin-left: -2px;
}

.caret-sub {
  display: inline-block;
  font-size: 1rem;
  margin-left: 10px;
}

/* ==========================================================================
   DESKTOP OVERRIDES & ROUND BULLET DIVIDERS (768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  
  /* Hides the hamburger toggle on desktops */
  .menu-toggle { 
    display: none !important; 
  }

  .header-top-row {
    flex-direction: row !important; /* Restores side-by-side elements on desktop */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px 24px 16px 24px;
    text-align: left;
  }

  .header-search-section {
    width: 320px; 
  }

  .navbar {
    justify-content: center; 
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;       
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: none;
    padding: 0;
    width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: none;
  }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px 0;
  }

  /* Round bullet injection system */
  .nav-item {
    display: flex;
    align-items: center;
  }

  .nav-item::after {
    content: "";
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.35); 
    border-radius: 50%; 
    margin-left: 14px;  
    display: inline-block;
  }

  .nav-item:last-child::after {
    display: none;
  }

  /* Desktop Fly-out Dropdowns tracking adjustments */
  .dropdown, .submenu-parent { position: relative; }
  
  .dropdown > .dropdown-menu {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px); 
    margin-top: 12px;
  }

  .submenu-parent > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
  }

  .dropdown-menu {
    position: absolute;
    background-color: rgb(12, 35, 60);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 220px;
    padding: 6px 0;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 110;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transition-delay: 0.15s;
  }

  .dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0); 
    transition-delay: 0s;
  }

  .submenu-parent:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .dropdown-menu::before { content: ''; position: absolute; background: transparent; }
  .dropdown > .dropdown-menu::before { top: -16px; left: 0; width: 100%; height: 16px; }
  .submenu-parent > .dropdown-menu::before { top: 0; left: -10px; width: 10px; height: 100%; }

  .submenu-parent > .dropdown-menu.edge-flip { left: auto; right: 100%; margin-right: 5px; }
  .submenu-parent > .dropdown-menu.edge-flip::before { left: auto; right: -10px; }
}

/* ==========================================================================
   6-COLUMN RESPONSIVE GLOBAL FOOTER SYSTEM
   ========================================================================== */

/* Footer layout matches your custom 16px gap scheme */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stacks column sections on mobile */
  gap: 24px;                  /* Generous space separation between footer columns */
}

.footer-col h3 {
  font-size: 1.2rem;
  color: #e2f1ff;            /* Signature light blue heading color */
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.footer-col h4 {
  font-size: 1rem; /* Adjust this to match your old h5 size */
  margin-top: 10px;
  margin-bottom: 5px;
}

/* --- COLUMN 1 LOGISTIC DETAILS --- */
.contact-info-col h4 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 4px;
  font-size: 1rem;
}

.social-links-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Styles emojis as neat, clickable circular buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  /* Forces the browser to look for emoji symbols rather than traditional text alphabets */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.1rem;
}

.social-btn:hover {
  transform: translateY(-2px);
  background-color: rgba(76, 190, 255, 0.25);
  border-color: rgba(76, 190, 255, 0.5);
}

.address-block {
  font-size: 0.95rem;
  line-height: 1.4;
}

.margin-top-md {
  margin-top: 20px;
}

/* Style maps links seamlessly */
.address-text a {
  color: #76beff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.address-text a:hover {
  text-decoration: underline;
  color: #76beff;
}

.phone-link a {
  color: #76beff;
  text-decoration: none;
  font-weight: bold;
}


.hours-text {
  color: #dddddd;
  font-size: 1rem;
}

.hours-note {
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: italic;
  color: #bbbbbb;
}

/* --- SUBMENU ITEM BULLET LISTS --- */
.event-link a {
  color: #76beff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.event-link a:hover {
  text-decoration: underline;
  color: #76beff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

/* Subtle shift action when links are hovered over */
.footer-links-list a:hover {
  color: #76beff;
  padding-left: 4px;
}

/* ==========================================================================
   UPDATED RESPONSIVE BREAKPOINTS FOR FOOTER GRID
   ========================================================================== */

/* --- 1. TABLET / SPLIT-SCREEN BREAKPOINT (Screens wider than 768px) --- */
@media (min-width: 768px) {
  .site-footer {
    padding: 24px;
  }

  /* 
     NEW MID-TIER RULE: Splits the footer into 2 equal columns. 
     With 6 blocks total, this cleanly creates 3 uniform rows of 2 columns!
  */
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Generous spacing for split screens */
  }
}

/* --- 2. LARGE DESKTOP BREAKPOINT (Screens wider than 992px) --- */
@media (min-width: 992px) {
  /* 
     Once the browser window has enough horizontal real estate, 
     it safely unsnaps into your full 6-column dashboard without text squishing.
  */
  .footer-links-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px; /* Your chosen 16px desktop gap setting */
  }
}


/* ==========================================================================
   FOOTER SEPARATOR (1 Column Container Row)
   ========================================================================== */
.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #cccccc;
}

/* ==========================================================================
   ACCESSIBLE MOTION CONTROL
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* Disable window smooth scrolling camera pans */
  html {
    scroll-behavior: auto !important;
  }

  /* Disable card vertical lift transformations */
  .two-col-grid .card:hover, 
  .scroll-grid .card:hover, 
  .blog-section:hover,
  .blog-post-card:hover {
    transform: none !important;
  }

  /* Disable image thumbnail zoom scales */
  .blog-post-card:hover .blog-thumbnail {
    transform: none !important;
  }

  /* Disable blog indicator arrow slides */
  .blog-post-card:hover .arrow {
    transform: none !important;
  }

  /* Disable footer sub-menu list text sliding */
  .footer-links-list a:hover {
    padding-left: 0 !important;
  }

  /* Stops the social circles from jumping up */
  .social-btn:hover {
    transform: none !important;
  }
  
  .fb-feed-card:hover .arrow {
    transform: none !important; /* Disables arrow motion for accessible profiles */
  }
}

/* ==========================================================================
   SHOP DIRECTORY CARDS
   ========================================================================== */
.shop-direct-card {
  display: flex;
  flex-direction: column;
  gap: 14px; /* Creates identical structural spaces between header, links, and search */
  overflow: hidden; /* Clips the bottom image corners to match the parent glass radius */
}

/* Clear vertical spacing adjustments for the internal card h1 */
.shop-direct-card h1 {
  margin-bottom: 4px;
}

/* Link Hub layout configurations */
.direct-links-hub {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.direct-link-item {
  font-size: 1.1rem;
  color: #cccccc; /* Softer text hue for prefixes */
}

.direct-link-item span {
  font-weight: 400;
  margin-right: 4px;
}

/* Bright focus tints for our clickable link targets */
.direct-link-item a {
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.click-link a { color: #76beff; } /* Light accent blue */
.call-link a { color: #8ee2bb; }  /* Light accent green matching your wave stop colors */

.direct-link-item a:hover {
  text-decoration: underline;
  filter: brightness(1.15); /* Slightly brightens color on desktop hover */
}

/* Adjust card search bar layout width limits to look cohesive */
.card-search-wrapper {
  width: 100%;
  margin-bottom: 6px;
}

/* --- FLUID ASPECT CARD GRAPHIC FRAME --- */
.card-image-frame {
  width: calc(100% + 32px); /* Extends out to touch the absolute inner edges of the card */
  margin-left: -16px;       /* Negative offset cancels out the card's left padding */
  margin-right: -16px;      /* Negative offset cancels out the card's right padding */
  margin-bottom: -16px;     /* Negative offset locks the graphic flush to the bottom edge */
  
  aspect-ratio: 710 / 535;  /* Enforces your exact native file dimensions layout path */
  overflow: hidden;
}

.responsive-card-img {
  width: 100% !important;
  height: auto !important;
  /* FIXED: Changes from "cover" to "contain" or "fill" so the complete picture scales */
  object-fit: contain !important; 
  display: block;
}

/* Adjust layout offsets for large screens when padding increases from 16px to 24px */
@media (min-width: 768px) {
  .card-image-frame {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
  }
}

/* ==========================================================================
   COMPACT DIRECTORY CARD SYSTEM (ABOVE THE FOLD FIXES)
   ========================================================================== */
.compact-layout {
  gap: 8px !important;       /* Tightens structural vertical card layout spaces */
  padding: 12px 14px 14px 14px !important; /* Shaves padding off mobile viewports */
}

/* Reduces heading line height to pull content upward */
.compact-layout h1 {
  margin-bottom: 2px !important;
  line-height: 1.1 !important;
}

/* Closes line spaces inside the communication hub lines */
.compact-layout .direct-links-hub {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Slight spacing cushion between the two massive link lines */
  margin-bottom: 2px;
}

.compact-layout .direct-link-item {
  display: flex;
  flex-direction: row;
  
  /* CRITICAL: Forces the smaller label text to line up beautifully along the bottom baseline of the giant links */
  align-items: baseline; 
  
  gap: 8px; /* Spaces out the label text from the massive interactive link */
  margin: 0 !important;
}

/* 1. Keep the "click:" and "call:" label prefixes small and clean */
.compact-layout .direct-link-item span {
  font-size: 1rem; /* Standard text size boundary */
  font-weight: 700;
  color: #cccccc;     /* Muted silver-gray text helps the active link pop out */
  letter-spacing: 0.5px;
}

/* 2. Scale the actual interactive links to be nearly twice as big */
.compact-layout .direct-link-item a {
  /* Fluid scaling function ranges from a chunky 1.4rem on mobile to a massive 1.8rem on desktop */
  font-size: clamp(1.4rem, 4.5vw, 1.7rem) !important; 
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1 !important; /* Lowers line heights so text doesn't steal vertical space */
  transition: color 0.2s ease, filter 0.2s ease;
}

/* Keep your unique branding color tracking exactly the same */
.compact-layout .click-link a { color: #76beff; }
.compact-layout .call-link a { color: #8ee2bb; }

.compact-layout .direct-link-item a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* Drops lower search buffer spacing dimensions */
.compact-layout .card-search-wrapper {
  margin-bottom: 2px !important;
}

/* --- CLICKABLE IMAGE CONTAINER RULES --- */
.card-image-link-wrapper {
  display: block !important;
  width: 100% !important;
  text-decoration: none;
  cursor: pointer;
  margin-top: 4px; /* Minor spacing cushion beneath the search bar */
}

.compact-layout .card-image-frame {
  width: calc(100% + 28px) !important;  /* Extends perfectly to the left/right card borders */
  margin-left: -14px !important;        /* Pulls flush to the left boundary edge */
  margin-right: -14px !important;       /* Pulls flush to the right boundary edge */
  margin-bottom: -14px !important;      /* Mounts completely flush to the bottom glass radius */
  aspect-ratio: auto !important; 
  overflow: hidden;
  transition: opacity 0.2s ease;
}

/* Dim feedback alert loop when user hovers cursor over the graphic link */
.card-image-link-wrapper:hover .card-image-frame {
  opacity: 0.9; /* Subtle brightness change confirms click target availability */
}

/* ==========================================================================
   DESKTOP COMPACT OVERRIDES (768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  .compact-layout {
    padding: 16px 18px 18px 18px !important; /* Reduces standard 24px pad limits */
    gap: 10px !important;
  }
  
  .compact-layout .card-image-frame {
    width: calc(100% + 36px) !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    margin-bottom: -18px !important;
  }
}

/* ==========================================================================
   2-COLUMN FACEBOOK SOCIAL CARD EMBEDS
   ========================================================================== */
.fb-feed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Make the title area look like an interactive, unified call-to-action */
.fb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.fb-card-header h2 {
  margin: 0 !important;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
}

.fb-card-header h2 a {
  color: #e2f1ff; /* Signature brand blue */
  text-decoration: none;
  transition: color 0.2s ease;
}

.fb-card-header h2 a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.fb-card-header .arrow {
  font-size: 1.3rem;
  color: #e2f1ff;
  transition: transform 0.2s ease;
}

/* Hover lift and arrow animation link pairing */
@media (min-width: 768px) {
  .fb-feed-card:hover .arrow {
    transform: translateX(4px);
  }
}

/* --- THE DYNAMIC IFRAME EMBED SYSTEM --- */
.fb-iframe-wrapper {
  width: 100%;
  height: 500px; /* Constrains the feed window height to prevent page stretching */
  background-color: #ffffff; /* Gives the feed a clean white backdrop so post text pops */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   STUNT KITE DIAGRAM & KEY LEGEND
   ========================================================================== */
.kite-diagram-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 0;
  display: block;
  position: relative;
}

.kite-diagram-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
}

.diagram-key-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

.key-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.key-col li {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.4;
}

.key-col li strong {
  color: #e2f1ff;
}

@media (min-width: 768px) {
  .diagram-key-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}