/* ============================================
   TAXHELPGUY.COM - CONSOLIDATED CUSTOM STYLES
   ============================================
   This file combines all custom stylesheets:
   - Tax Animated Background
   - Patriotic Theme
   - Hover Effects
   - Footer Styles
   - Menu Contrast Fixes
   - Footer Spacing Fixes
   - About Hero Fixes
   ============================================ */

/* ============================================
   SECTION 1: TAX ANIMATED BACKGROUND
   ============================================ */

.tax-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.tax-animated-bg svg {
    width: 100%;
    height: 100%;
}

/* Floating animation for dollar signs */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Floating animation for documents */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

/* Rotating animation for coins */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for calculator */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Slide animation for receipt */
@keyframes slide {
    0% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(10px);
    }
}

/* Apply animations to SVG elements */
.tax-animated-bg .dollar-sign {
    animation: float 6s ease-in-out infinite;
}

.tax-animated-bg .dollar-sign:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 7s;
}

.tax-animated-bg .dollar-sign:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.tax-animated-bg .document {
    animation: floatSlow 8s ease-in-out infinite;
}

.tax-animated-bg .document:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 9s;
}

.tax-animated-bg .coin {
    animation: rotate 20s linear infinite;
}

.tax-animated-bg .coin:nth-child(2) {
    animation-duration: 25s;
    animation-direction: reverse;
}

.tax-animated-bg .calculator {
    animation: pulse 4s ease-in-out infinite;
}

.tax-animated-bg .receipt {
    animation: slide 5s ease-in-out infinite alternate;
}

/* Dark mode adjustments */
.dark .tax-animated-bg {
    opacity: 0.12;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tax-animated-bg {
        opacity: 0.06;
    }
    
    .dark .tax-animated-bg {
        opacity: 0.1;
    }
}

/* ============================================
   SECTION 2: PATRIOTIC COLOR THEME
   ============================================ */

:root {
  /* Official US Flag Colors */
  --patriotic-red: #B22234;        /* Official US Flag Red */
  --patriotic-blue: #3C3B6E;      /* Official US Flag Blue (Dark Navy) */
  --patriotic-white: #FFFFFF;
  
  /* Alternative patriotic colors for better contrast */
  --patriotic-red-bright: #DC143C;  /* Crimson - better visibility */
  --patriotic-blue-bright: #1E3A8A; /* Bright Navy */
  --patriotic-blue-light: #3B82F6;   /* Light blue for accents */
  
  /* Dark mode variants */
  --patriotic-red-dark: #EF4444;     /* Lighter red for dark mode */
  --patriotic-blue-dark: #60A5FA;    /* Lighter blue for dark mode */
  --patriotic-white-dark: #F9FAFB;   /* Off-white for dark mode */
}

/* Light Mode - Patriotic Colors */
.color-taxhelpguy-red {
  color: var(--patriotic-red) !important;
}

.color-taxhelpguy-blue {
  color: var(--patriotic-blue) !important;
}

.bg-taxhelpguy-blue {
  background-color: var(--patriotic-blue) !important;
}

.bg-taxhelpguy-red {
  background-color: var(--patriotic-red) !important;
}

/* Dark Mode - Patriotic Colors */
.dark .color-taxhelpguy-red {
  color: var(--patriotic-red-dark) !important;
}

.dark .color-taxhelpguy-blue {
  color: var(--patriotic-blue-dark) !important;
}

.dark .bg-taxhelpguy-blue {
  background-color: var(--patriotic-blue-bright) !important;
}

.dark .bg-taxhelpguy-red {
  background-color: var(--patriotic-red-bright) !important;
}

/* Patriotic Button Styles */
.btn-patriotic-primary {
  background: linear-gradient(135deg, var(--patriotic-blue) 0%, var(--patriotic-blue-bright) 100%);
  color: var(--patriotic-white);
  border: 2px solid var(--patriotic-blue);
}

.btn-patriotic-primary:hover {
  background: linear-gradient(135deg, var(--patriotic-blue-bright) 0%, var(--patriotic-blue) 100%);
  box-shadow: 0 4px 12px rgba(60, 59, 110, 0.4);
}

.dark .btn-patriotic-primary {
  background: linear-gradient(135deg, var(--patriotic-blue-dark) 0%, var(--patriotic-blue-bright) 100%);
  border-color: var(--patriotic-blue-dark);
}

.dark .btn-patriotic-primary:hover {
  background: linear-gradient(135deg, var(--patriotic-blue-bright) 0%, var(--patriotic-blue-dark) 100%);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.btn-patriotic-secondary {
  background: linear-gradient(135deg, var(--patriotic-red) 0%, var(--patriotic-red-bright) 100%);
  color: var(--patriotic-white);
  border: 2px solid var(--patriotic-red);
}

.btn-patriotic-secondary:hover {
  background: linear-gradient(135deg, var(--patriotic-red-bright) 0%, var(--patriotic-red) 100%);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.4);
}

.dark .btn-patriotic-secondary {
  background: linear-gradient(135deg, var(--patriotic-red-dark) 0%, var(--patriotic-red-bright) 100%);
  border-color: var(--patriotic-red-dark);
}

.dark .btn-patriotic-secondary:hover {
  background: linear-gradient(135deg, var(--patriotic-red-bright) 0%, var(--patriotic-red-dark) 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Patriotic Link Colors */
a.patriotic-link {
  color: var(--patriotic-blue);
  transition: color 0.2s ease;
}

a.patriotic-link:hover {
  color: var(--patriotic-blue-bright);
  text-decoration: underline;
}

.dark a.patriotic-link {
  color: var(--patriotic-blue-dark);
}

.dark a.patriotic-link:hover {
  color: var(--patriotic-blue-light);
}

/* Patriotic Border Colors */
.border-patriotic-blue {
  border-color: var(--patriotic-blue) !important;
}

.border-patriotic-red {
  border-color: var(--patriotic-red) !important;
}

.dark .border-patriotic-blue {
  border-color: var(--patriotic-blue-dark) !important;
}

.dark .border-patriotic-red {
  border-color: var(--patriotic-red-dark) !important;
}

/* Patriotic Gradient Backgrounds */
.bg-patriotic-gradient {
  background: linear-gradient(135deg, var(--patriotic-blue) 0%, var(--patriotic-red) 100%);
}

.dark .bg-patriotic-gradient {
  background: linear-gradient(135deg, var(--patriotic-blue-bright) 0%, var(--patriotic-red-bright) 100%);
}

.bg-patriotic-gradient-vertical {
  background: linear-gradient(180deg, var(--patriotic-blue) 0%, var(--patriotic-white) 50%, var(--patriotic-red) 100%);
}

.dark .bg-patriotic-gradient-vertical {
  background: linear-gradient(180deg, var(--patriotic-blue-bright) 0%, #374151 50%, var(--patriotic-red-bright) 100%);
}

/* Section Backgrounds */
.section-patriotic-blue {
  background-color: var(--patriotic-blue);
  color: var(--patriotic-white);
}

.dark .section-patriotic-blue {
  background-color: var(--patriotic-blue-bright);
}

.section-patriotic-red {
  background-color: var(--patriotic-red);
  color: var(--patriotic-white);
}

.dark .section-patriotic-red {
  background-color: var(--patriotic-red-bright);
}

/* Text Colors */
.text-patriotic-red {
  color: var(--patriotic-red) !important;
}

.text-patriotic-blue {
  color: var(--patriotic-blue) !important;
}

.dark .text-patriotic-red {
  color: var(--patriotic-red-dark) !important;
}

.dark .text-patriotic-blue {
  color: var(--patriotic-blue-dark) !important;
}

/* Card Styles with Patriotic Accents */
.card-patriotic {
  border-top: 4px solid var(--patriotic-blue);
  border-left: 2px solid var(--patriotic-red);
}

.dark .card-patriotic {
  border-top-color: var(--patriotic-blue-dark);
  border-left-color: var(--patriotic-red-dark);
}

/* Focus States */
*:focus {
  outline: 2px solid var(--patriotic-blue);
  outline-offset: 2px;
}

.dark *:focus {
  outline-color: var(--patriotic-blue-dark);
}

/* Ensure proper contrast for text on backgrounds */
.bg-white {
  background-color: #ffffff !important;
}

.dark .bg-white {
  background-color: #1f2937 !important; /* gray-800 */
}

.text-gray-900 {
  color: #111827 !important; /* Very dark gray for light mode */
}

.dark .text-gray-900 {
  color: #f9fafb !important; /* Very light gray for dark mode */
}

.text-gray-700 {
  color: #374151 !important; /* Dark gray for light mode */
}

.dark .text-gray-700 {
  color: #e5e7eb !important; /* Light gray for dark mode */
}

.text-gray-600 {
  color: #4b5563 !important; /* Medium-dark gray for light mode */
}

.dark .text-gray-600 {
  color: #d1d5db !important; /* Medium-light gray for dark mode */
}

.text-gray-500 {
  color: #6b7280 !important; /* Medium gray for light mode */
}

.dark .text-gray-500 {
  color: #9ca3af !important; /* Medium gray for dark mode */
}

.text-gray-400 {
  color: #9ca3af !important; /* Light gray for light mode */
}

.dark .text-gray-400 {
  color: #6b7280 !important; /* Medium gray for dark mode */
}

.text-gray-300 {
  color: #d1d5db !important; /* Very light gray for light mode */
}

.dark .text-gray-300 {
  color: #4b5563 !important; /* Medium-dark gray for dark mode */
}

/* Ensure white text is visible */
.text-white {
  color: #ffffff !important;
}

.dark .text-white {
  color: #ffffff !important;
}

/* Form inputs - ensure proper contrast */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

.dark input[type="text"],
.dark input[type="email"],
.dark input[type="tel"],
.dark select,
.dark textarea {
  background-color: #374151 !important; /* gray-700 */
  color: #f9fafb !important; /* gray-50 */
  border-color: #4b5563 !important; /* gray-600 */
}

/* Buttons - ensure proper contrast */
button,
.btn {
  color: #ffffff !important;
}

.dark button,
.dark .btn {
  color: #ffffff !important;
}

/* Links - ensure visibility */
a {
  color: #2563eb !important; /* blue-600 */
}

.dark a {
  color: #60a5fa !important; /* blue-400 */
}

a:hover {
  color: #1d4ed8 !important; /* blue-700 */
}

.dark a:hover {
  color: #93c5fd !important; /* blue-300 */
}

/* ============================================
   SECTION 3: HOVER EFFECTS AND TRANSITIONS
   ============================================ */

/* Global Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Button Hover Effects */
.btn-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-hover-scale {
    transition: transform 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

.btn-hover-glow {
    transition: box-shadow 0.3s ease;
}

.btn-hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Card Hover Effects */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.card-hover-scale {
    transition: transform 0.3s ease;
}

.card-hover-scale:hover {
    transform: scale(1.02);
}

.card-hover-border {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-border:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Link Hover Effects */
.link-hover-underline {
    position: relative;
    transition: color 0.3s ease;
}

.link-hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.link-hover-underline:hover::after {
    width: 100%;
}

.link-hover-slide {
    transition: transform 0.3s ease;
    display: inline-block;
}

.link-hover-slide:hover {
    transform: translateX(5px);
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
    transition: transform 0.5s ease;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

.img-hover-fade {
    transition: opacity 0.3s ease;
}

.img-hover-fade:hover {
    opacity: 0.8;
}

/* Menu Item Hover Effects */
.menu-item-hover {
    position: relative;
    transition: color 0.3s ease;
}

.menu-item-hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.menu-item-hover:hover::before {
    width: 100%;
    left: 0;
}

/* Loading Effects */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.loading-pulse {
    animation: pulse-loading 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Skeleton Loader */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.dark .skeleton-loader {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Form Input Hover Effects */
.input-hover-focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-hover-focus:hover {
    border-color: #3b82f6;
}

.input-hover-focus:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Icon Hover Effects */
.icon-hover-rotate {
    transition: transform 0.3s ease;
}

.icon-hover-rotate:hover {
    transform: rotate(360deg);
}

.icon-hover-bounce {
    transition: transform 0.3s ease;
}

.icon-hover-bounce:hover {
    transform: translateY(-5px);
}

/* Gradient Hover Effects */
.gradient-hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: background 0.3s ease;
}

.gradient-hover:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Page Load Animation */
.page-load-fade {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hover Scale with Shadow */
.hover-scale-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale-shadow:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Text Gradient Hover */
.text-gradient-hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.3s ease;
}

.text-gradient-hover:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Animation */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.border-animate:hover::before {
    left: 100%;
}

/* ============================================
   SECTION 4: FOOTER STYLES
   ============================================ */

/* Footer - All text and links white */
section.bg-taxhelpguy-blue,
section[class*="bg-taxhelpguy-blue"] {
    color: #ffffff !important;
}

section.bg-taxhelpguy-blue a,
section[class*="bg-taxhelpguy-blue"] a {
    color: #ffffff !important;
}

section.bg-taxhelpguy-blue a:hover,
section[class*="bg-taxhelpguy-blue"] a:hover {
    color: #e5e7eb !important; /* gray-200 for hover */
}

section.bg-taxhelpguy-blue .footer-services-menu-item,
section[class*="bg-taxhelpguy-blue"] .footer-services-menu-item {
    color: #ffffff !important;
}

section.bg-taxhelpguy-blue h1,
section.bg-taxhelpguy-blue h2,
section.bg-taxhelpguy-blue h3,
section.bg-taxhelpguy-blue h4,
section.bg-taxhelpguy-blue h5,
section.bg-taxhelpguy-blue h6,
section.bg-taxhelpguy-blue p,
section.bg-taxhelpguy-blue div,
section.bg-taxhelpguy-blue span,
section[class*="bg-taxhelpguy-blue"] h1,
section[class*="bg-taxhelpguy-blue"] h2,
section[class*="bg-taxhelpguy-blue"] h3,
section[class*="bg-taxhelpguy-blue"] h4,
section[class*="bg-taxhelpguy-blue"] h5,
section[class*="bg-taxhelpguy-blue"] h6,
section[class*="bg-taxhelpguy-blue"] p,
section[class*="bg-taxhelpguy-blue"] div,
section[class*="bg-taxhelpguy-blue"] span {
    color: #ffffff !important;
}

/* Ensure all links in footer are white */
footer a,
section.bg-taxhelpguy-blue a,
section[class*="bg-taxhelpguy-blue"] a {
    color: #ffffff !important;
    text-decoration: none;
}

footer a:hover,
section.bg-taxhelpguy-blue a:hover,
section[class*="bg-taxhelpguy-blue"] a:hover {
    color: #e5e7eb !important;
    text-decoration: underline;
}

/* Dark mode - keep footer white text */
.dark section.bg-taxhelpguy-blue,
.dark section[class*="bg-taxhelpguy-blue"] {
    color: #ffffff !important;
}

.dark section.bg-taxhelpguy-blue a,
.dark section[class*="bg-taxhelpguy-blue"] a {
    color: #ffffff !important;
}

.dark section.bg-taxhelpguy-blue a:hover,
.dark section[class*="bg-taxhelpguy-blue"] a:hover {
    color: #d1d5db !important; /* gray-300 for hover in dark mode */
}

/* Footer spacing fixes */
section.bg-taxhelpguy-blue .container h3.px-0,
section.bg-taxhelpguy-blue .container h3[class*="px-0"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

section.bg-taxhelpguy-blue {
    padding-top: 1rem !important; /* Reduced from p-8 (2rem) */
}

section.bg-taxhelpguy-blue h3.footer-services-menu-item {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

section.bg-taxhelpguy-blue .footer-services-menu-item {
    margin-left: 0 !important;
}

section.bg-taxhelpguy-blue .container {
    padding-left: 0.75rem !important; /* Reduced from px-4 (1rem) */
    padding-right: 0.75rem !important;
}

/* ============================================
   SECTION 5: MENU CONTRAST FIXES
   ============================================ */

/* Ensure dropdown menus have proper contrast */
.dropdown-menu {
    background-color: #ffffff !important;
}

.dark .dropdown-menu {
    background-color: #1f2937 !important; /* gray-800 */
}

.dropdown-menu a {
    color: #374151 !important; /* gray-700 */
}

.dark .dropdown-menu a {
    color: #e5e7eb !important; /* gray-200 */
}

.dropdown-menu a:hover {
    color: #2563eb !important; /* blue-600 */
    background-color: #eff6ff !important; /* blue-50 */
}

.dark .dropdown-menu a:hover {
    color: #60a5fa !important; /* blue-400 */
    background-color: #1e3a8a !important; /* blue-900 */
}

/* Ensure menu buttons have proper contrast */
header button,
header a {
    color: #374151 !important; /* gray-700 */
}

.dark header button,
.dark header a {
    color: #e5e7eb !important; /* gray-200 */
}

header button:hover,
header a:hover {
    color: #2563eb !important; /* blue-600 */
}

.dark header button:hover,
.dark header a:hover {
    color: #60a5fa !important; /* blue-400 */
}

/* Hero section - ensure white text is visible */
.section-gavel-scale-books {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%) !important; /* beautiful blue gradient */
    position: relative !important;
    color: #ffffff !important;
}

/* Dark overlay to ensure text visibility */
.section-gavel-scale-books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 138, 0.85) !important; /* dark blue overlay */
    z-index: 1;
}

.section-gavel-scale-books > * {
    position: relative;
    z-index: 2;
}

.section-gavel-scale-books h1,
.section-gavel-scale-books h2,
.section-gavel-scale-books h3,
.section-gavel-scale-books h4,
.section-gavel-scale-books h5,
.section-gavel-scale-books h6,
.section-gavel-scale-books p,
.section-gavel-scale-books span,
.section-gavel-scale-books div {
    color: #ffffff !important;
}

.dark .section-gavel-scale-books {
    background-color: #1e40af !important; /* slightly brighter blue for dark mode */
}

.dark .section-gavel-scale-books::before {
    background-color: rgba(30, 64, 175, 0.9) !important; /* darker overlay for dark mode */
}

/* Ensure SVG background doesn't interfere with text */
.section-gavel-scale-books .tax-animated-bg {
    opacity: 0.05 !important; /* Very subtle */
}

.dark .section-gavel-scale-books .tax-animated-bg {
    opacity: 0.08 !important;
}

/* Main content sections with SVG background */
.bg-white .tax-animated-bg,
section.bg-white .tax-animated-bg {
    opacity: 0.05 !important;
}

.dark .bg-white .tax-animated-bg,
.dark section.bg-white .tax-animated-bg {
    opacity: 0.08 !important;
}

/* Mobile menu - ensure contrast */
#mobile-menu {
    background-color: #ffffff !important;
    color: #374151 !important;
}

.dark #mobile-menu {
    background-color: #1f2937 !important; /* gray-800 */
    color: #e5e7eb !important;
}

#mobile-menu a,
#mobile-menu button {
    color: #374151 !important;
}

.dark #mobile-menu a,
.dark #mobile-menu button {
    color: #e5e7eb !important;
}

#mobile-menu a:hover,
#mobile-menu button:hover {
    color: #2563eb !important;
    background-color: #eff6ff !important;
}

.dark #mobile-menu a:hover,
.dark #mobile-menu button:hover {
    color: #60a5fa !important;
    background-color: #1e3a8a !important;
}

/* ============================================
   SECTION 6: ABOUT PAGE HERO FIXES
   ============================================ */

/* Reduce hero section padding on about page */
.about-hero-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    min-height: auto !important;
}

/* Reduce content section top padding */
.about-content-section {
    padding-top: 1rem !important;
}

/* Ensure no extra margins */
.about-hero-section .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.about-hero-section h3 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.about-hero-section p {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* ============================================
   SECTION 8: HEADER LOGO PADDING
   ============================================ */

/* Add bottom padding to header logo */
header#top-of-page-header .flex-shrink-0 img,
header#middle-of-page-header .flex-shrink-0 img {
    padding-bottom: 0.75rem !important;
}

