/* ===================================
   MODERN NAVIGATION & FOOTER REDESIGN
   Highlighted colors, professional styling
   =================================== */

/* Theme variables (enhanced for modern design) */
:root {
  --site-bg: #ffffff;
  --text-color: #1a202c;
  --font-base: 16px;
  --font-sm: 0.875rem;
  --font-lg: 1.125rem;
  
  /* Navigation colors - Modern & Professional */
  --header-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --header-bg-solid: #ffffff;
  --header-text: #2d3748;
  --header-border: rgba(255, 214, 0, 0.2);
  
  /* Brand accent - Vibrant Yellow */
  --accent: #ffd600;
  --accent-hover: #ffdf33;
  --accent-dark: #e6c100;
  --accent-light: #fff5cc;
  --accent-glow: rgba(255, 214, 0, 0.25);
  
  /* Additional colors */
  --nav-hover-bg: rgba(255, 214, 0, 0.08);
  --nav-active-bg: rgba(255, 214, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --muted-bg: #f7fafc;
  --border-light: #e2e8f0;
}

/* Dark mode overrides - Enhanced */
@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #0f1419;
    --text-color: #e6edf3;
    --header-bg: linear-gradient(135deg, #1a1f2e 0%, #161b26 100%);
    --header-bg-solid: #1a1f2e;
    --header-text: #e6edf3;
    --header-border: rgba(255, 214, 0, 0.3);
    --nav-hover-bg: rgba(255, 214, 0, 0.12);
    --nav-active-bg: rgba(255, 214, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --muted-bg: #0d1117;
    --border-light: #30363d;
  }
}

/* Base font sizing with responsive scaling */
html { font-size: var(--font-base); }
body { 
  font-size: 1rem; 
  line-height: 1.6; 
  color: var(--text-color); 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 768px) { html { font-size: 15px; } }
@media (max-width: 480px) { html { font-size: 14px; } }

/* ===================================
   TOP NAVIGATION - Modern & Highlighted
   =================================== */

.sb-topnav, .custom-header {
  background: var(--header-bg-solid);
  color: var(--header-text);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-header:hover {
  box-shadow: var(--shadow-md);
}

/* Navigation Container - Centered & Spacious */
.custom-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===================================
   LOGO SECTION - Enhanced Branding (Matching Signin Page)
   =================================== */

.custom-header .nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.custom-header .nav-logo:hover {
  transform: scale(1.02);
}

.custom-header .nav-logo img.logo-image {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all 0.3s ease;
}

.custom-header .nav-logo:hover img.logo-image {
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: rotate(5deg) scale(1.05);
}

.custom-header .logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.custom-header .logo-text .highlight {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  color: #F2B731;
  transition: all 0.3s ease;
}

.custom-header .logo-text .logo-caption {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: 2px;
  color: #292D33;
  background: #F2B731;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.custom-header .nav-logo:hover .logo-text .highlight {
  letter-spacing: 0.12em;
}

@media (max-width: 480px) {
  .custom-header .nav-logo img.logo-image {
    height: 48px;
    width: 48px;
    border-width: 2px;
  }
  
  .custom-header .logo-text .highlight {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }
}

/* ===================================
   NAVIGATION MENU - Desktop
   =================================== */

.custom-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 56px;
}

.custom-header .nav-menu .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--header-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.01em;
}

.custom-header .nav-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.custom-header .nav-menu .nav-link:hover {
  background: var(--nav-hover-bg);
  color: var(--header-text);
  transform: translateY(-2px);
}

.custom-header .nav-menu .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.custom-header .nav-menu .nav-link.active {
  background: var(--nav-active-bg);
  color: var(--header-text);
  font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.custom-header .nav-menu .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* CTA Button - Prominent */
.custom-header .nav-menu .nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #1a202c;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.custom-header .nav-menu .nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow), 0 0 30px rgba(255, 214, 0, 0.2);
}

.custom-header .nav-menu .nav-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ===================================
   MOBILE MENU TOGGLE - Animated
   =================================== */

.custom-header .mobile-menu-toggle {
  background: transparent;
  border: 2px solid transparent;
  color: var(--header-text);
  font-size: 1.5rem;
  z-index: 12002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-header .mobile-menu-toggle:hover {
  background: var(--nav-hover-bg);
  border-color: var(--accent);
}

.custom-header .mobile-menu-toggle:focus {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px;
  border-color: var(--accent);
}

.custom-header .mobile-menu-toggle .menu-svg rect {
  fill: var(--header-text);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated hamburger to X */
.mobile-menu-toggle.is-open,
.mobile-menu-toggle.open {
  background: var(--nav-active-bg);
  border-color: var(--accent);
}

.mobile-menu-toggle.is-open .menu-svg rect:nth-child(1),
.mobile-menu-toggle.open .menu-svg rect:nth-child(1) { 
  transform: translateY(5px) rotate(45deg); 
}
.mobile-menu-toggle.is-open .menu-svg rect:nth-child(2),
.mobile-menu-toggle.open .menu-svg rect:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0);
}
.mobile-menu-toggle.is-open .menu-svg rect:nth-child(3),
.mobile-menu-toggle.open .menu-svg rect:nth-child(3) { 
  transform: translateY(-5px) rotate(-45deg); 
}

/* ===================================
   MOBILE MENU - Off-canvas Panel
   =================================== */

.custom-header .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 85vw;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--header-bg-solid);
  color: var(--header-text);
  padding: 2rem 1.5rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  z-index: 11999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 4px solid var(--accent);
}

.custom-header .mobile-menu.open,
.custom-header .mobile-menu.show {
  transform: translateX(0%);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 11998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open,
.mobile-menu-overlay.show { 
  display: block; 
  opacity: 1; 
}

/* Lock scroll when mobile menu open */
html.mobile-menu-open, 
body.mobile-menu-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* Mobile navigation links */
.custom-header .mobile-menu .mobile-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--header-text);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-header .mobile-menu .mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.custom-header .mobile-menu .mobile-nav-link:hover,
.custom-header .mobile-menu .mobile-nav-link.active {
  background: var(--nav-active-bg);
  padding-left: 1.75rem;
}

.custom-header .mobile-menu .mobile-nav-link:hover::before,
.custom-header .mobile-menu .mobile-nav-link.active::before {
  transform: scaleY(1);
}

.custom-header .mobile-menu .mobile-nav-link.active {
  font-weight: 600;
  color: var(--header-text);
}

/* Mobile CTA button - Full width & prominent */
.custom-header .mobile-menu .mobile-nav-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #1a202c;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-top: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.custom-header .mobile-menu .mobile-nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.custom-header .mobile-menu .mobile-nav-cta:focus {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px;
}

/* ===================================
   FOOTER - Modern & Highlighted
   =================================== */

.u-section-9, .u-footer, .global-footer-fixed {
  background: var(--header-bg-solid);
  color: var(--header-text);
  border-top: 4px solid var(--accent);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 3.5rem 0 2rem 0;
}

/* Footer layout */
.u-section-9 .u-sheet-1 { 
  padding: 2rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.u-section-9 .u-layout-wrap-1 {
  display: grid;
  gap: 2.5rem;
}

/* Footer cells - responsive grid */
.u-section-9 .u-layout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.u-section-9 .u-layout-cell {
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.03), rgba(255, 214, 0, 0.01));
  border: 2px solid rgba(255, 214, 0, 0.15);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.u-section-9 .u-layout-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 0, 0.3);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Footer icons - highlighted */
.u-section-9 .u-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.3s ease;
}

.u-section-9 .u-layout-cell:hover .u-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px var(--accent-glow), 0 0 40px rgba(255, 214, 0, 0.2);
}

.u-section-9 .u-icon svg {
  width: 36px;
  height: 36px;
  fill: #1a202c;
}

.u-section-9 .u-file-icon img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 8px var(--accent-glow));
}

/* Footer text */
.u-section-9 .u-text, 
.u-section-9 h4 {
  color: var(--header-text);
  margin-bottom: 1rem;
}

.u-section-9 h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  color: var(--header-text);
}

.u-section-9 p {
  color: var(--text-color);
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Footer buttons - highlighted */
.u-section-9 .u-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #1a202c;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.02em;
}

.u-section-9 .u-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow), 0 0 30px rgba(255, 214, 0, 0.2);
}

.u-section-9 .u-btn:active {
  transform: translateY(-1px);
}

/* Footer links */
.u-section-9 a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.u-section-9 a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN - Navigation & Footer
   =================================== */

/* Tablet and below - Hide desktop nav, show mobile toggle */
@media (max-width: 768px) {
  .custom-header .nav-menu { 
    display: none; 
  }
  
  .custom-header .mobile-menu-toggle { 
    display: inline-flex; 
  }
  
  .custom-header .nav-container {
    padding: 0.875rem 1.25rem;
  }
  
  .u-section-9 .u-layout-row {
    grid-template-columns: 1fr;
  }
}

/* Desktop - Show nav, hide toggle */
@media (min-width: 769px) {
  .custom-header .nav-menu { 
    display: flex; 
    align-items: center; 
  }
  
  .custom-header .mobile-menu-toggle { 
    display: none; 
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .custom-header .nav-container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  
  .u-section-9 {
    padding: 2.5rem 0 1.5rem 0;
  }
  
  .u-section-9 .u-sheet-1 {
    padding: 1.5rem 1rem;
  }
  
  .u-section-9 .u-layout-row {
    gap: 2rem;
  }
  
  .u-section-9 .u-layout-cell {
    padding: 1.5rem 1rem;
  }
  
  .u-section-9 .u-icon {
    width: 64px;
    height: 64px;
  }
  
  .u-section-9 h4 {
    font-size: 1.25rem;
  }
}

/* ===================================
   ADMIN SIDEBAR (if applicable)
   =================================== */

.sb-sidenav-dark {
  background: var(--muted-bg);
  border-right: 3px solid var(--border-light);
}

.sb-sidenav-dark .nav-link {
  color: var(--text-color);
  border-radius: 8px;
  margin: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.sb-sidenav-dark .nav-link:hover, 
.sb-sidenav-dark .nav-link:focus {
  background: var(--nav-hover-bg);
  color: var(--header-text);
  transform: translateX(4px);
}

.sb-sidenav-footer .brand-logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.sb-sidenav {
  max-width: 280px;
  width: 100%;
  border-right: 3px solid var(--border-light);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

