/* Master CSS - Unified Styles for All Pages */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Awesome Bold Icons */
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900 !important;
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free";
    font-weight: 400 !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400 !important;
}

/* Ensure icons are properly displayed */
i[class*="fa-"] {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Enhanced font fallback stack with Noto Serif Medium 500 */
:root {
    --font-serif: 'Noto Serif', 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', 'Baskerville', 'Droid Serif', serif;
    --font-weight-base: 500; /* Medium weight for better readability */
    --font-weight-heading: 600; /* Semi-bold for headings */
    --font-weight-bold: 700; /* Bold for emphasis */
}

/* Font Fallbacks and Loading - Enhanced with Medium 500 */
/* Primary font loading with error handling */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Alternative font loading method as backup */
@font-face {
    font-family: 'Noto Serif Fallback';
    src: local('Georgia'), local('Times New Roman'), local('Book Antiqua');
    font-weight: 400 900;
    font-display: swap;
}

/* Font loading optimization */
.font-loading {
    font-display: swap;
    visibility: hidden;
}

.font-loaded {
    visibility: visible;
}

/* Progressive enhancement - start with system fonts */
body {
    font-family: 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', 'Baskerville', serif;
    font-weight: 500;
}

/* Enhance with Noto Serif when available */
.font-loaded body {
    font-family: var(--font-serif);
}

/* Enhanced fallback for when Google Fonts fail to load */
@supports not (font-display: swap) {
    body, h1, h2, h3, h4, h5, h6 {
        font-family: 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', 'Baskerville', serif !important;
        font-weight: 500 !important;
    }
}

/* Network error fallback with better font matching */
.fonts-failed body,
.fonts-failed h1, 
.fonts-failed h2, 
.fonts-failed h3, 
.fonts-failed h4, 
.fonts-failed h5, 
.fonts-failed h6 {
    font-family: 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', 'Baskerville', serif !important;
    font-weight: 500 !important;
}

/* Ensure fallback fonts also use Medium 500 when available */
.fonts-failed * {
    font-weight: 500 !important;
}

.fonts-failed h1, 
.fonts-failed h2, 
.fonts-failed h3 {
    font-weight: 600 !important; /* Semi-bold for headings even in fallback */
}

.fonts-failed .font-bold,
.fonts-failed strong,
.fonts-failed b {
    font-weight: 700 !important; /* Maintain bold in fallback */
}

/* Enhanced body typography with Noto Serif Medium 500 */
body {
    font-family: var(--font-serif);
    font-weight: var(--font-weight-base); /* Medium 500 for better readability */
    line-height: 1.7; /* Improved line height for better reading */
    color: #2d3748; /* Slightly darker for better contrast */
    font-display: swap;
    background-color: #fff;
    font-size: 16px; /* Standard base font size */
    letter-spacing: 0.01em; /* Subtle letter spacing for clarity */
    /* Add top padding to account for fixed top bar */
    padding-top: 0;
    transition: padding-top 0.3s ease;
    /* Better text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* When page loads, calculate and set proper padding */
body.has-top-bar {
    padding-top: var(--top-bar-height, 60px);
}

/* When top bar is hidden, remove padding */
body.top-bar-hidden {
    padding-top: 0;
}

/* Enhanced heading typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: var(--font-weight-heading); /* Semi-bold 600 for headings */
    line-height: 1.4; /* Better line height for headings */
    font-display: swap;
    letter-spacing: -0.01em; /* Tighter letter spacing for headings */
    color: #fff; /* Darker color for headings */
}

/* Specific heading weights for hierarchy */
h1 {
    font-weight: 700; /* Bold for main headings */
    font-size: 2.25rem; /* 36px */
}

h2 {
    font-weight: 600; /* Semi-bold for section headings */
    font-size: 1.875rem; /* 30px */
}

h3 {
    font-weight: 600; /* Semi-bold for subsection headings */
    font-size: 1.5rem; /* 24px */
}

h4, h5, h6 {
    font-weight: 500; /* Medium for smaller headings */
}

/* Enhanced Font Weight Classes with Medium 500 Standard */
.font-bold, 
strong, 
b {
    font-weight: var(--font-weight-bold) !important; /* 700 */
}

.font-extrabold {
    font-weight: 800 !important;
}

.font-black {
    font-weight: 900 !important;
}

.font-semibold {
    font-weight: var(--font-weight-heading) !important; /* 600 */
}

.font-medium {
    font-weight: var(--font-weight-base) !important; /* 500 - Our new standard */
}

.font-normal {
    font-weight: 400 !important;
}

/* Noto Serif specific weight classes */
.noto-light { font-weight: 400; }
.noto-medium { font-weight: var(--font-weight-base); } /* 500 */
.noto-semibold { font-weight: var(--font-weight-heading); } /* 600 */
.noto-bold { font-weight: var(--font-weight-bold); } /* 700 */
.noto-extrabold { font-weight: 800; }
.noto-black { font-weight: 900; }

/* Enhanced styling for important elements with Medium 500 */
.main-navigation h1 {
    font-weight: 900 !important; /* Bold for park name */
    font-family: var(--font-serif);
}

.nav-link {
    font-weight: var(--font-weight-base); /* Medium 500 for navigation links */
}

.marquee {
    font-weight: var(--font-weight-heading) !important; /* Semi-bold 600 for marquee text */
    font-family: var(--font-serif);
}

/* Button text with medium weight */
.lang-btn,
.font-size-btn,
.theme-btn {
    font-weight: var(--font-weight-base); /* Medium 500 */
    font-family: var(--font-serif);
}

/* Enhanced paragraph and content styling */
p {
    font-weight: var(--font-weight-base); /* Medium 500 for better readability */
    line-height: 1.7;
}

/* List items with medium weight */
li {
    font-weight: var(--font-weight-base); /* Medium 500 */
}

/* Form elements with medium weight */
input, textarea, select {
    font-weight: var(--font-weight-base); /* Medium 500 */
    font-family: var(--font-serif);
}

/* Table content with medium weight */
td, th {
    font-weight: var(--font-weight-base); /* Medium 500 */
}

/* Footer headings bold */
.main-footer h3 {
    font-weight: 700;
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', serif;
}

/* Slide content bold */
.slide-title {
    font-weight: 800 !important;
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', serif;
}

.slide-subtitle {
    font-weight: 600;
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', 'Book Antiqua', 'Palatino', serif;
}

/* Ensure proper font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Bold utility classes for content */
.text-bold { font-weight: 700 !important; }
.text-extrabold { font-weight: 800 !important; }
.text-black { font-weight: 900 !important; }
.text-semibold { font-weight: 600 !important; }

/* Font Size System */
.font-small, body.font-small {
    font-size: 12px;
}

.font-small h1 { font-size: 24px; }
.font-small h2 { font-size: 20px; }
.font-small h3 { font-size: 18px; }
.font-small h4 { font-size: 16px; }

.font-standard, body.font-standard {
    font-size: 14px;
}

.font-standard h1 { font-size: 28px; }
.font-standard h2 { font-size: 24px; }
.font-standard h3 { font-size: 20px; }
.font-standard h4 { font-size: 18px; }

.font-large, body.font-large {
    font-size: 16px;
}

.font-large h1 { font-size: 32px; }
.font-large h2 { font-size: 28px; }
.font-large h3 { font-size: 24px; }
.font-large h4 { font-size: 20px; }

/* Responsive Park Name Sizing - handled by Tailwind responsive classes */

/* Small devices - park name adjustments */
@media (max-width: 640px) {
    .font-small .main-navigation h1 { font-size: 12px !important; font-weight: 700; }
    .font-standard .main-navigation h1 { font-size: 14px !important; font-weight: 700; }
    .font-large .main-navigation h1 { font-size: 16px !important; font-weight: 700; }
}

/* Medium devices - park name adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .font-small .main-navigation h1 { font-size: 14px !important; font-weight: 700; }
    .font-standard .main-navigation h1 { font-size: 16px !important; font-weight: 700; }
    .font-large .main-navigation h1 { font-size: 18px !important; font-weight: 700; }
}

/* Large devices - park name adjustments */
@media (min-width: 769px) {
    .font-small .main-navigation h1 { font-size: 18px !important; font-weight: 800; }
    .font-standard .main-navigation h1 { font-size: 20px !important; font-weight: 800; }
    .font-large .main-navigation h1 { font-size: 24px !important; font-weight: 800; }
}

/* Enhanced Theme System with Better Green Colors */
:root {
    /* Improved Green Theme - More Natural and Appealing */
    --primary-color: #059669; /* Emerald 600 - More sophisticated green */
    --primary-rgb: 5, 150, 105;
    --primary-dark: #047857; /* Emerald 700 - Deeper green */
    --primary-dark-rgb: 4, 120, 87;
    --primary-light: #34d399; /* Emerald 400 - Brighter accent */
    --primary-light-rgb: 52, 211, 153;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    
    /* Additional green shades for variety */
    --primary-lighter: #a7f3d0; /* Emerald 200 - Very light green */
    --primary-lighter-rgb: 167, 243, 208;
    --primary-darker: #065f46; /* Emerald 800 - Very dark green */
    --primary-darker-rgb: 6, 95, 70;
}

body.green-theme {
    /* Enhanced Green Theme with Natural Forest Colors */
    --primary-color: #059669; /* Emerald 600 - Professional green */
    --primary-rgb: 5, 150, 105;
    --primary-dark: #047857; /* Emerald 700 - Rich forest green */
    --primary-dark-rgb: 4, 120, 87;
    --primary-light: #34d399; /* Emerald 400 - Fresh spring green */
    --primary-light-rgb: 52, 211, 153;
}

body.blue-theme {
    --primary-color: #2563eb; /* Blue 600 - More professional */
    --primary-rgb: 37, 99, 235;
    --primary-dark: #1d4ed8; /* Blue 700 */
    --primary-dark-rgb: 29, 78, 216;
    --primary-light: #60a5fa; /* Blue 400 */
    --primary-light-rgb: 96, 165, 250;
}

body.brown-theme {
    --primary-color: #92400e; /* Amber 700 - Warmer brown */
    --primary-rgb: 146, 64, 14;
    --primary-dark: #78350f; /* Amber 800 */
    --primary-dark-rgb: 120, 53, 15;
    --primary-light: #f59e0b; /* Amber 500 */
    --primary-light-rgb: 245, 158, 11;
}

/* Additional Typography Utilities for Better Reading Experience */
.text-readable {
    font-weight: var(--font-weight-base); /* Medium 500 */
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.text-heading {
    font-weight: var(--font-weight-heading); /* Semi-bold 600 */
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.text-emphasis {
    font-weight: var(--font-weight-bold); /* Bold 700 */
    color: var(--primary-dark);
}

/* Enhanced link styling */
a {
    font-weight: var(--font-weight-base); /* Medium 500 */
    transition: all 0.2s ease;
}

a:hover {
    font-weight: var(--font-weight-heading); /* Semi-bold 600 on hover */
}

/* Card and content area improvements */
.card-content {
    font-weight: var(--font-weight-base); /* Medium 500 */
    line-height: 1.7;
}

.card-title {
    font-weight: var(--font-weight-heading); /* Semi-bold 600 */
    color: var(--text-color);
}

/* Improved button styling */
button, .btn {
    font-weight: var(--font-weight-base); /* Medium 500 */
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
}

button:hover, .btn:hover {
    font-weight: var(--font-weight-heading); /* Semi-bold 600 on hover */
}

/* Enhanced form styling */
label {
    font-weight: var(--font-weight-heading); /* Semi-bold 600 for labels */
    color: var(--text-color);
}

/* Improved quote and blockquote styling */
blockquote {
    font-weight: var(--font-weight-base); /* Medium 500 */
    font-style: italic;
    line-height: 1.8;
    color: var(--text-light);
}

/* Enhanced code and pre styling */
code, pre {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-weight: 400; /* Normal weight for code */
}

.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }

/* Particles.js Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.03) 0%, 
        rgba(var(--primary-dark-rgb), 0.05) 50%,
        rgba(var(--primary-light-rgb), 0.02) 100%);
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Enhanced particles visibility with new green theme */
body.green-theme #particles-js {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.03) 0%, 
        rgba(4, 120, 87, 0.05) 50%,
        rgba(52, 211, 153, 0.02) 100%);
}

body.blue-theme #particles-js {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(29, 78, 216, 0.05) 50%,
        rgba(96, 165, 250, 0.02) 100%);
}

body.brown-theme #particles-js {
    background: linear-gradient(135deg, 
        rgba(146, 64, 14, 0.03) 0%, 
        rgba(120, 53, 15, 0.05) 50%,
        rgba(245, 158, 11, 0.02) 100%);
}

/* Particles canvas styling */
#particles-js canvas {
    display: block;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Subtle animation for particles container */
@keyframes particleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--primary-light-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(var(--primary-dark-rgb), 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

/* Content Layer */
.top-info-bar,
.main-navigation,
.marquee-container,
.hero-slider,
.main-content,
.main-footer,
.back-to-top {
    position: relative;
    z-index: 10;
}

/* Ensure proper layering hierarchy */
.top-info-bar {
    z-index: 1000;
}

.main-navigation {
    z-index: 1001; /* Always above marquee */
}

.marquee-container {
    z-index: 50; /* Below navigation */
}

/* When navigation is sticky, ensure it stays above marquee */
.main-navigation.sticky {
    z-index: 1001;
    position: sticky;
    top: 0;
}

/* Top Info Bar - Only visible at top */
.top-info-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Ensure it slides up when hidden */
}

.top-info-bar.hidden {
    transform: translateY(-100%);
}

/* Language Controls */
.lang-btn {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Font Size Controls */
.font-size-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.font-size-btn:nth-child(2) { font-size: 8px; }  /* Small A */
.font-size-btn:nth-child(3) { font-size: 10px; } /* Standard A */
.font-size-btn:nth-child(4) { font-size: 12px; } /* Large A */

.font-size-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.font-size-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.font-size-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.font-size-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.font-size-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Theme Controls */
.theme-btn {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.theme-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Main Navigation */
.main-navigation {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1001; /* Higher than marquee */
    transition: all 0.3s ease;
    /* Ensure navigation stays above marquee */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Force hardware acceleration for better performance */
    will-change: transform;
    transform: translateZ(0);
    /* Remove any inline styles */
    top: 0 !important;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    z-index: 1002; /* Ensure mobile menu button is clickable */
    position: relative;
}

#mobile-menu {
    background: white;
    border-top: 1px solid var(--border-color);
    z-index: 1001; /* Same as navigation */
    position: relative;
}

/* Marquee Section - Enhanced with Dynamic Speed Control */
.marquee-container {
    background: linear-gradient(90deg, #1f2937, #111827, #1f2937);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    position: relative;
    z-index: 50; /* Lower than navigation but above content */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    min-height: 40px;
    /* Ensure marquee doesn't interfere with navigation */
    margin-top: 0;
    /* Force hardware acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.marquee {
    display: inline-block;
    animation: marquee-scroll 60s linear infinite;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    will-change: transform;
    white-space: nowrap;
    /* Ensure consistent readable speed */
    animation-timing-function: linear;
}

/* Dynamic marquee speed based on content length */
.marquee.speed-slow {
    animation-duration: 80s;
}

.marquee.speed-normal {
    animation-duration: 60s;
}

.marquee.speed-fast {
    animation-duration: 40s;
}

@keyframes marquee-scroll {
    0% { 
        transform: translateX(100vw); 
    }
    100% { 
        transform: translateX(-100%); 
    }
}

/* Pause on hover for better readability */
.marquee-container:hover .marquee {
    animation-play-state: paused;
}

/* Add some sparkle effect */
.marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: sparkle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.marquee {
    position: relative;
    z-index: 2;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Hero Slider - Enhanced with Responsive Media Queries */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)); */
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 80%;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

/* Responsive Slider Media Queries */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.5rem;
    }
    
    .slider-btn {
        width: 60px;
        height: 60px;
    }
    
    .prev-btn { left: 30px; }
    .next-btn { right: 30px; }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-slider {
        height: 65vh;
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-slider {
        height: 55vh;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
    
    .slide-counter {
        top: 15px;
        right: 15px;
        font-size: 13px;
        padding: 6px 10px;
    }
        table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    color: rgb(7 1 253) !important;
    content: "►";
}
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 8px;
    }
        table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    color: rgb(7 1 253) !important;
    content: "►";
}
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .hero-slider {
        height: 45vh;
        min-height: 250px;
    }

    table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    color: rgb(7 1 253) !important;
    content: "►";
}
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .slide-content {
        bottom: 15%;
        max-width: 90%;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }
    
    .slider-dots {
        bottom: 15px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slide-counter {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 3px 6px;
    }
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 2rem 0;
    /* Ensure proper spacing from navigation */
}

/* Enhanced Dynamic Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Footer background pattern */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--primary-light-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(var(--primary-dark-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.main-footer > * {
    position: relative;
    z-index: 2;
}

.main-footer h3 {
    color: var(--primary-light);
    font-weight: var(--font-weight-heading);
    position: relative;
}

.main-footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

.main-footer h4 {
    color: var(--primary-light);
    font-weight: var(--font-weight-base);
}

.main-footer a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Social media icons hover effects */
.main-footer .social-media-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-footer .social-media-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.main-footer .social-media-icon:hover::before {
    left: 100%;
}

/* Statistics cards */
.main-footer .stat-card {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.main-footer .stat-card:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Newsletter section */
.main-footer .newsletter-section {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-dark-rgb), 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    backdrop-filter: blur(10px);
}

.main-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.main-footer .newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.main-footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.main-footer .newsletter-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-footer .newsletter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.main-footer .newsletter-button:hover::before {
    left: 100%;
}

.main-footer .newsletter-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Footer links with icons */
.main-footer .footer-link {
    transition: all 0.2s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.main-footer .footer-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    padding-left: 8px;
}

.main-footer .footer-link i {
    transition: all 0.2s ease;
    width: 16px;
    text-align: center;
}

.main-footer .footer-link:hover i {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Copyright section */
.main-footer .copyright-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .main-footer {
        margin-top: 2rem;
    }
    
    .main-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .main-footer h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .main-footer h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .main-footer .social-media-icon {
        width: 36px;
        height: 36px;
    }
    
    .main-footer .stat-card {
        padding: 0.75rem;
    }
    
    .main-footer .newsletter-section {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .main-footer .grid {
        gap: 1.5rem;
    }
    
    .main-footer .social-media-icon {
        width: 32px;
        height: 32px;
    }
    
    .main-footer .newsletter-input,
    .main-footer .newsletter-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Top Info Bar - Mobile Responsive */
    .top-info-bar {
        padding: 0;
    }
    
    /* Mobile 2-line layout with compact spacing */
    .top-info-bar .block > div {
        padding-top: 4px;
        padding-bottom: 4px;
    }
    
    /* Park Name - Mobile Responsive */
    .main-navigation .container > div {
        padding: 12px 0;
    }
    
    .main-navigation h1 {
        line-height: 1.2;
        word-break: break-word;
    }
    
    /* Ensure navigation stays above marquee on mobile */
    .main-navigation {
        z-index: 1001 !important;
        position: sticky !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
    }
    
    .marquee-container {
        z-index: 50 !important;
        position: relative !important;
    }
    
    /* Slider Responsive */
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }
    
    /* Controls - Mobile Responsive */
    .font-size-btn,
    .theme-btn,
    .lang-btn {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    
    .font-size-btn:nth-child(2) { font-size: 6px; }  /* Small A */
    .font-size-btn:nth-child(3) { font-size: 8px; }  /* Standard A */
    .font-size-btn:nth-child(4) { font-size: 10px; } /* Large A */
    
    .font-size-btn.active {
        transform: scale(1.03);
    }
    
    .font-size-btn.active::before {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }
    
    .theme-btn {
        width: 16px;
        height: 16px;
    }
    
    /* Marquee - Mobile Responsive with Consistent Speed */
    .marquee {
        font-size: 12px;
        animation-duration: 50s; /* Slightly faster on mobile for better readability */
    }
    
    .marquee-container {
        padding: 8px 0;
        min-height: 32px;
    }
    
    /* Adjust marquee speed based on screen size */
    .marquee.speed-slow {
        animation-duration: 65s;
    }
    
    .marquee.speed-normal {
        animation-duration: 50s;
    }
    
    .marquee.speed-fast {
        animation-duration: 35s;
    }
}

@media (max-width: 640px) {
    /* Extra small devices */
    .top-info-bar {
        font-size: 11px;
    }
    
    /* Even more compact mobile top bar */
    .top-info-bar .block > div {
        padding-top: 3px;
        padding-bottom: 3px;
    }
    
    .main-navigation h1 {
        font-size: 14px !important;
    }
    
    .font-size-btn,
    .theme-btn,
    .lang-btn {
        width: 16px;
        height: 16px;
        font-size: 7px;
    }
    
    .theme-btn {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-slider {
        height: 40vh;
        min-height: 250px;
    }
    
    /* Very compact top bar for very small screens */
    .top-info-bar {
        font-size: 10px;
    }
    
    .top-info-bar .block > div {
        padding-top: 2px;
        padding-bottom: 2px;
    }
    
    .main-navigation h1 {
        font-size: 12px !important;
    }
    
    /* Ultra compact controls for very small screens */
    .font-size-btn,
    .theme-btn,
    .lang-btn {
        width: 14px;
        height: 14px;
        font-size: 6px;
    }
    
    .font-size-btn:nth-child(2) { font-size: 5px; }  /* Small A */
    .font-size-btn:nth-child(3) { font-size: 6px; }  /* Standard A */
    .font-size-btn:nth-child(4) { font-size: 7px; }  /* Large A */
    
    .font-size-btn.active {
        transform: scale(1.02);
    }
    
    .font-size-btn.active::before {
        display: none; /* Hide border animation on very small screens */
    }
    
    .theme-btn {
        width: 12px;
        height: 12px;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .top-info-bar,
    .main-navigation,
    .marquee-container,
    .hero-slider,
    .back-to-top {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
/* Dropdown Menu Styles */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Desktop Dropdown Styles */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu Container */
.group .absolute {
    transition: all 0.2s ease-in-out;
    transform-origin: top center;
    transform: translateY(-10px) scale(0.95);
}

.group:hover .absolute {
    transform: translateY(0) scale(1);
}

/* Dropdown Menu Items */
.group .absolute a {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 4px;
}

.group .absolute a:hover {
    background-color: #f9fafb;
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mobile Menu Styles */
.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-submenu {
    background-color: #f9fafb;
    border-left: 3px solid var(--primary-color);
    margin-left: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.mobile-submenu.hidden {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}

.mobile-submenu:not(.hidden) {
    max-height: 200px;
    padding: 8px 0;
}

.mobile-submenu a {
    padding: 8px 16px;
    display: block;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.mobile-submenu a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Chevron Animation */
.fa-chevron-down {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .group .absolute {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-item,
    .mobile-submenu {
        display: none !important;
    }
}
/* Font Size Classes - Enhanced for All Devices */
.font-small {
    --font-size-base: 0.75rem;      /* 12px */
    --font-size-sm: 0.6875rem;      /* 11px */
    --font-size-lg: 0.875rem;       /* 14px */
    --font-size-xl: 1rem;           /* 16px */
    --font-size-2xl: 1.125rem;      /* 18px */
    --font-size-3xl: 1.25rem;       /* 20px */
    --font-size-4xl: 1.5rem;        /* 24px */
}

.font-standard {
    --font-size-base: 0.87rem;         /* 16px */
    --font-size-sm: 0.875rem;       /* 14px */
    --font-size-lg: 1.125rem;       /* 18px */
    --font-size-xl: 1.25rem;        /* 20px */
    --font-size-2xl: 1.5rem;        /* 24px */
    --font-size-3xl: 1.875rem;      /* 30px */
    --font-size-4xl: 2.25rem;       /* 36px */
}

.font-large {
    --font-size-base: 1rem;      /* 20px */
    --font-size-sm: 1.125rem;       /* 18px */
    --font-size-lg: 1.375rem;       /* 22px */
    --font-size-xl: 1.5rem;         /* 24px */
    --font-size-2xl: 1.875rem;      /* 30px */
    --font-size-3xl: 2.25rem;       /* 36px */
    --font-size-4xl: 2.75rem;       /* 44px */
}

/* Apply font sizes to common elements */
.font-small p,
.font-small span,
.font-small div,
.font-small li,
.font-small td,
.font-small th,
.font-small label,
.font-small input,
.font-small textarea,
.font-small select {
    font-size: var(--font-size-base) !important;
}

.font-standard p,
.font-standard span,
.font-standard div,
.font-standard li,
.font-standard td,
.font-standard th,
.font-standard label,
.font-standard input,
.font-standard textarea,
.font-standard select {
    font-size: var(--font-size-base) !important;
}

.font-large p,
.font-large span,
.font-large div,
.font-large li,
.font-large td,
.font-large th,
.font-large label,
.font-large input,
.font-large textarea,
.font-large select {
    font-size: var(--font-size-base) !important;
}

/* Headings scaling */
.font-small h1 { font-size: var(--font-size-4xl) !important; }
.font-small h2 { font-size: var(--font-size-3xl) !important; }
.font-small h3 { font-size: var(--font-size-2xl) !important; }
.font-small h4 { font-size: var(--font-size-xl) !important; }
.font-small h5 { font-size: var(--font-size-lg) !important; }
.font-small h6 { font-size: var(--font-size-base) !important; }

.font-standard h1 { font-size: var(--font-size-4xl) !important; }
.font-standard h2 { font-size: var(--font-size-3xl) !important; }
.font-standard h3 { font-size: var(--font-size-2xl) !important; }
.font-standard h4 { font-size: var(--font-size-xl) !important; }
.font-standard h5 { font-size: var(--font-size-lg) !important; }
.font-standard h6 { font-size: var(--font-size-base) !important; }

.font-large h1 { font-size: var(--font-size-4xl) !important; }
.font-large h2 { font-size: var(--font-size-3xl) !important; }
.font-large h3 { font-size: var(--font-size-2xl) !important; }
.font-large h4 { font-size: var(--font-size-xl) !important; }
.font-large h5 { font-size: var(--font-size-lg) !important; }
.font-large h6 { font-size: var(--font-size-base) !important; }

/* Small text elements */
.font-small .text-xs,
.font-small .text-sm,
.font-small small {
    font-size: var(--font-size-sm) !important;
}

.font-standard .text-xs,
.font-standard .text-sm,
.font-standard small {
    font-size: var(--font-size-sm) !important;
}

.font-large .text-xs,
.font-large .text-sm,
.font-large small {
    font-size: var(--font-size-sm) !important;
}

/* Responsive font size adjustments */
@media (max-width: 768px) {
    .font-small {
        --font-size-base: 0.8125rem;    /* 13px on mobile */
        --font-size-sm: 0.75rem;        /* 12px on mobile */
        --font-size-lg: 0.9375rem;      /* 15px on mobile */
        --font-size-xl: 1.0625rem;      /* 17px on mobile */
        --font-size-2xl: 1.1875rem;     /* 19px on mobile */
        --font-size-3xl: 1.375rem;      /* 22px on mobile */
        --font-size-4xl: 1.625rem;      /* 26px on mobile */
    }
    
    .font-standard {
        --font-size-base: 1rem;         /* 16px on mobile */
        --font-size-sm: 0.875rem;       /* 14px on mobile */
        --font-size-lg: 1.125rem;       /* 18px on mobile */
        --font-size-xl: 1.25rem;        /* 20px on mobile */
        --font-size-2xl: 1.5rem;        /* 24px on mobile */
        --font-size-3xl: 1.75rem;       /* 28px on mobile */
        --font-size-4xl: 2rem;          /* 32px on mobile */
    }
    
    .font-large {
        --font-size-base: 1.1875rem;    /* 19px on mobile */
        --font-size-sm: 1rem;           /* 16px on mobile */
        --font-size-lg: 1.3125rem;      /* 21px on mobile */
        --font-size-xl: 1.4375rem;      /* 23px on mobile */
        --font-size-2xl: 1.6875rem;     /* 27px on mobile */
        --font-size-3xl: 2rem;          /* 32px on mobile */
        --font-size-4xl: 2.375rem;      /* 38px on mobile */
    }
}

@media (max-width: 480px) {
    .font-small {
        --font-size-base: 0.875rem;     /* 14px on small mobile */
        --font-size-sm: 0.8125rem;      /* 13px on small mobile */
        --font-size-lg: 1rem;           /* 16px on small mobile */
        --font-size-xl: 1.125rem;       /* 18px on small mobile */
        --font-size-2xl: 1.25rem;       /* 20px on small mobile */
        --font-size-3xl: 1.5rem;        /* 24px on small mobile */
        --font-size-4xl: 1.75rem;       /* 28px on small mobile */
    }
    
    .font-standard {
        --font-size-base: 1rem;         /* 16px on small mobile */
        --font-size-sm: 0.9375rem;      /* 15px on small mobile */
        --font-size-lg: 1.125rem;       /* 18px on small mobile */
        --font-size-xl: 1.25rem;        /* 20px on small mobile */
        --font-size-2xl: 1.5rem;        /* 24px on small mobile */
        --font-size-3xl: 1.75rem;       /* 28px on small mobile */
        --font-size-4xl: 2rem;          /* 32px on small mobile */
    }
    
    .font-large {
        --font-size-base: 1.125rem;     /* 18px on small mobile */
        --font-size-sm: 1rem;           /* 16px on small mobile */
        --font-size-lg: 1.25rem;        /* 20px on small mobile */
        --font-size-xl: 1.375rem;       /* 22px on small mobile */
        --font-size-2xl: 1.625rem;      /* 26px on small mobile */
        --font-size-3xl: 1.875rem;      /* 30px on small mobile */
        --font-size-4xl: 2.25rem;       /* 36px on small mobile */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .font-size-btn.active {
        background: white;
        color: black;
        border-color: black;
    }
    
    .font-size-btn.active::before {
        border-color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .font-size-btn {
        transition: none;
    }
    
    .font-size-btn.active::before {
        animation: none;
    }
    
    @keyframes pulse-border {
        0%, 100% { opacity: 0.4; transform: none; }
        50% { opacity: 0.8; transform: none; }
    }
}

/* Print styles */
@media print {
    .font-size-btn {
        display: none !important;
    }
    
    /* Use standard font sizes for print */
    .font-small,
    .font-standard,
    .font-large {
        --font-size-base: 12pt;
        --font-size-sm: 10pt;
        --font-size-lg: 14pt;
        --font-size-xl: 16pt;
        --font-size-2xl: 18pt;
        --font-size-3xl: 24pt;
        --font-size-4xl: 32pt;
    }
}
/* Fix for main navigation heading - ensure font size classes override responsive classes */
.main-navigation h1 {
    font-weight: 700 !important; /* Bold but not extra bold */
}

/* Font size overrides for main navigation heading */
.font-small .main-navigation h1 {
    font-size: var(--font-size-lg) !important; /* 14px for small */
}

.font-standard .main-navigation h1 {
    font-size: var(--font-size-xl) !important; /* 20px for standard */
}

.font-large .main-navigation h1 {
    font-size: var(--font-size-2xl) !important; /* 30px for large */
}

/* Responsive overrides for main navigation heading */
@media (max-width: 640px) {
    .font-small .main-navigation h1 {
        font-size: var(--font-size-base) !important; /* 12px on mobile */
    }
    
    .font-standard .main-navigation h1 {
        font-size: var(--font-size-lg) !important; /* 18px on mobile */
    }
    
    .font-large .main-navigation h1 {
        font-size: var(--font-size-xl) !important; /* 24px on mobile */
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-small .main-navigation h1 {
        font-size: var(--font-size-lg) !important; /* 14px on tablet */
    }
    
    .font-standard .main-navigation h1 {
        font-size: var(--font-size-xl) !important; /* 20px on tablet */
    }
    
    .font-large .main-navigation h1 {
        font-size: var(--font-size-2xl) !important; /* 30px on tablet */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-small .main-navigation h1 {
        font-size: var(--font-size-xl) !important; /* 16px on desktop */
    }
    
    .font-standard .main-navigation h1 {
        font-size: var(--font-size-2xl) !important; /* 24px on desktop */
    }
    
    
    .font-large .main-navigation h1 {
        font-size: var(--font-size-3xl) !important; /* 36px on desktop */
    }
}

@media (min-width: 1025px) {
    .font-small .main-navigation h1 {
        font-size: var(--font-size-xl) !important; /* 16px on large desktop */
    }
    
    .font-standard .main-navigation h1 {
        font-size: var(--font-size-2xl) !important; /* 24px on large desktop */
    }
    
    .font-large .main-navigation h1 {
        font-size: var(--font-size-3xl) !important; /* 36px on large desktop */
    }
}

/* Ensure the heading doesn't get too large on any device */
.main-navigation h1 {
    max-width: 300px;
    line-height: 1.2 !important;
    word-wrap: break-word;
    hyphens: auto;
}

/* Additional specificity to override Tailwind classes */
.font-small .main-navigation h1.text-sm,
.font-small .main-navigation h1.sm\:text-lg,
.font-small .main-navigation h1.md\:text-xl,
.font-small .main-navigation h1.lg\:text-2xl {
    font-size: var(--font-size-lg) !important;
}

.font-standard .main-navigation h1.text-sm,
.font-standard .main-navigation h1.sm\:text-lg,
.font-standard .main-navigation h1.md\:text-xl,
.font-standard .main-navigation h1.lg\:text-2xl {
    font-size: var(--font-size-xl) !important;
}

.font-large .main-navigation h1.text-sm,
.font-large .main-navigation h1.sm\:text-lg,
.font-large .main-navigation h1.md\:text-xl,
.font-large .main-navigation h1.lg\:text-2xl {
    font-size: var(--font-size-2xl) !important;
}

/* Mobile specific overrides with higher specificity */
@media (max-width: 640px) {
    .font-small .main-navigation h1.text-sm,
    .font-small .main-navigation h1.sm\:text-lg,
    .font-small .main-navigation h1.md\:text-xl,
    .font-small .main-navigation h1.lg\:text-2xl {
        font-size: var(--font-size-base) !important;
    }
    
    .font-standard .main-navigation h1.text-sm,
    .font-standard .main-navigation h1.sm\:text-lg,
    .font-standard .main-navigation h1.md\:text-xl,
    .font-standard .main-navigation h1.lg\:text-2xl {
        font-size: var(--font-size-lg) !important;
    }
    
    .font-large .main-navigation h1.text-sm,
    .font-large .main-navigation h1.sm\:text-lg,
    .font-large .main-navigation h1.md\:text-xl,
    .font-large .main-navigation h1.lg\:text-2xl {
        font-size: var(--font-size-xl) !important;
    }
}

/* Ensure font weight is not extra bold */
.main-navigation h1.font-bold {
    font-weight: 700 !important; /* Bold, not extra bold (900) */
}

/* Override any potential font-black or font-extrabold classes */
.main-navigation h1.font-black,
.main-navigation h1.font-extrabold {
    font-weight: 700 !important;
}
/* Ultra high specificity overrides for navigation heading */
body.font-small .main-navigation h1[class*="text-"] {
    font-size: var(--font-size-lg) !important;
    font-weight: 700 !important;
}

body.font-standard .main-navigation h1[class*="text-"] {
    font-size: var(--font-size-xl) !important;
    font-weight: 700 !important;
}

body.font-large .main-navigation h1[class*="text-"] {
    font-size: var(--font-size-2xl) !important;
    font-weight: 700 !important;
}

/* Mobile ultra high specificity overrides */
@media (max-width: 640px) {
    body.font-small .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-base) !important;
    }
    
    body.font-standard .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-large .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-xl) !important;
    }
}

/* Tablet ultra high specificity overrides */
@media (min-width: 641px) and (max-width: 768px) {
    body.font-small .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-standard .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-xl) !important;
    }
    
    body.font-large .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-2xl) !important;
    }
}

/* Desktop ultra high specificity overrides */
@media (min-width: 769px) {
    body.font-small .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-xl) !important;
    }
    
    body.font-standard .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-2xl) !important;
    }
    
    body.font-large .main-navigation h1[class*="text-"] {
        font-size: var(--font-size-3xl) !important;
    }
}

/* Data attribute targeting for even higher specificity */
.main-navigation h1[data-font-size="small"] {
    font-size: var(--font-size-lg) !important;
    font-weight: 700 !important;
}

.main-navigation h1[data-font-size="standard"] {
    font-size: var(--font-size-xl) !important;
    font-weight: 700 !important;
}

.main-navigation h1[data-font-size="large"] {
    font-size: var(--font-size-2xl) !important;
    font-weight: 700 !important;
}

@media (max-width: 640px) {
    .main-navigation h1[data-font-size="small"] {
        font-size: var(--font-size-base) !important;
    }
    
    .main-navigation h1[data-font-size="standard"] {
        font-size: var(--font-size-lg) !important;
    }
    
    .main-navigation h1[data-font-size="large"] {
        font-size: var(--font-size-xl) !important;
    }
}

/* Override any inline styles that might be applied */
.main-navigation h1[style*="font-size"] {
    font-size: var(--font-size-xl) !important;
}

body.font-small .main-navigation h1[style*="font-size"] {
    font-size: var(--font-size-lg) !important;
}

body.font-large .main-navigation h1[style*="font-size"] {
    font-size: var(--font-size-2xl) !important;
}

/* Ensure consistent line height and spacing */
.main-navigation h1 {
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
/* Nuclear option - completely override all Tailwind text size classes for navigation heading */
.main-navigation h1.text-sm,
.main-navigation h1.text-base,
.main-navigation h1.text-lg,
.main-navigation h1.text-xl,
.main-navigation h1.text-2xl,
.main-navigation h1.text-3xl,
.main-navigation h1.text-4xl {
    font-size: var(--font-size-xl) !important;
    font-weight: 700 !important;
}

body.font-small .main-navigation h1.text-sm,
body.font-small .main-navigation h1.text-base,
body.font-small .main-navigation h1.text-lg,
body.font-small .main-navigation h1.text-xl,
body.font-small .main-navigation h1.text-2xl,
body.font-small .main-navigation h1.text-3xl,
body.font-small .main-navigation h1.text-4xl {
    font-size: var(--font-size-lg) !important;
}

body.font-large .main-navigation h1.text-sm,
body.font-large .main-navigation h1.text-base,
body.font-large .main-navigation h1.text-lg,
body.font-large .main-navigation h1.text-xl,
body.font-large .main-navigation h1.text-2xl,
body.font-large .main-navigation h1.text-3xl,
body.font-large .main-navigation h1.text-4xl {
    font-size: var(--font-size-2xl) !important;
}

/* Override responsive Tailwind classes */
@media (min-width: 640px) {
    .main-navigation h1.sm\:text-sm,
    .main-navigation h1.sm\:text-base,
    .main-navigation h1.sm\:text-lg,
    .main-navigation h1.sm\:text-xl,
    .main-navigation h1.sm\:text-2xl,
    .main-navigation h1.sm\:text-3xl,
    .main-navigation h1.sm\:text-4xl {
        font-size: var(--font-size-xl) !important;
    }
    
    body.font-small .main-navigation h1.sm\:text-sm,
    body.font-small .main-navigation h1.sm\:text-base,
    body.font-small .main-navigation h1.sm\:text-lg,
    body.font-small .main-navigation h1.sm\:text-xl,
    body.font-small .main-navigation h1.sm\:text-2xl,
    body.font-small .main-navigation h1.sm\:text-3xl,
    body.font-small .main-navigation h1.sm\:text-4xl {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-large .main-navigation h1.sm\:text-sm,
    body.font-large .main-navigation h1.sm\:text-base,
    body.font-large .main-navigation h1.sm\:text-lg,
    body.font-large .main-navigation h1.sm\:text-xl,
    body.font-large .main-navigation h1.sm\:text-2xl,
    body.font-large .main-navigation h1.sm\:text-3xl,
    body.font-large .main-navigation h1.sm\:text-4xl {
        font-size: var(--font-size-2xl) !important;
    }
}

@media (min-width: 768px) {
    .main-navigation h1.md\:text-sm,
    .main-navigation h1.md\:text-base,
    .main-navigation h1.md\:text-lg,
    .main-navigation h1.md\:text-xl,
    .main-navigation h1.md\:text-2xl,
    .main-navigation h1.md\:text-3xl,
    .main-navigation h1.md\:text-4xl {
        font-size: var(--font-size-xl) !important;
    }
    
    body.font-small .main-navigation h1.md\:text-sm,
    body.font-small .main-navigation h1.md\:text-base,
    body.font-small .main-navigation h1.md\:text-lg,
    body.font-small .main-navigation h1.md\:text-xl,
    body.font-small .main-navigation h1.md\:text-2xl,
    body.font-small .main-navigation h1.md\:text-3xl,
    body.font-small .main-navigation h1.md\:text-4xl {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-large .main-navigation h1.md\:text-sm,
    body.font-large .main-navigation h1.md\:text-base,
    body.font-large .main-navigation h1.md\:text-lg,
    body.font-large .main-navigation h1.md\:text-xl,
    body.font-large .main-navigation h1.md\:text-2xl,
    body.font-large .main-navigation h1.md\:text-3xl,
    body.font-large .main-navigation h1.md\:text-4xl {
        font-size: var(--font-size-2xl) !important;
    }
}

@media (min-width: 1024px) {
    .main-navigation h1.lg\:text-sm,
    .main-navigation h1.lg\:text-base,
    .main-navigation h1.lg\:text-lg,
    .main-navigation h1.lg\:text-xl,
    .main-navigation h1.lg\:text-2xl,
    .main-navigation h1.lg\:text-3xl,
    .main-navigation h1.lg\:text-4xl {
        font-size: var(--font-size-xl) !important;
    }
    
    body.font-small .main-navigation h1.lg\:text-sm,
    body.font-small .main-navigation h1.lg\:text-base,
    body.font-small .main-navigation h1.lg\:text-lg,
    body.font-small .main-navigation h1.lg\:text-xl,
    body.font-small .main-navigation h1.lg\:text-2xl,
    body.font-small .main-navigation h1.lg\:text-3xl,
    body.font-small .main-navigation h1.lg\:text-4xl {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-large .main-navigation h1.lg\:text-sm,
    body.font-large .main-navigation h1.lg\:text-base,
    body.font-large .main-navigation h1.lg\:text-lg,
    body.font-large .main-navigation h1.lg\:text-xl,
    body.font-large .main-navigation h1.lg\:text-2xl,
    body.font-large .main-navigation h1.lg\:text-3xl,
    body.font-large .main-navigation h1.lg\:text-4xl {
        font-size: var(--font-size-2xl) !important;
    }
}

/* Mobile specific overrides */
@media (max-width: 640px) {
    .main-navigation h1.text-sm,
    .main-navigation h1.text-base,
    .main-navigation h1.text-lg,
    .main-navigation h1.text-xl,
    .main-navigation h1.text-2xl,
    .main-navigation h1.text-3xl,
    .main-navigation h1.text-4xl {
        font-size: var(--font-size-lg) !important;
    }
    
    body.font-small .main-navigation h1.text-sm,
    body.font-small .main-navigation h1.text-base,
    body.font-small .main-navigation h1.text-lg,
    body.font-small .main-navigation h1.text-xl,
    body.font-small .main-navigation h1.text-2xl,
    body.font-small .main-navigation h1.text-3xl,
    body.font-small .main-navigation h1.text-4xl {
        font-size: var(--font-size-base) !important;
    }
    
    body.font-large .main-navigation h1.text-sm,
    body.font-large .main-navigation h1.text-base,
    body.font-large .main-navigation h1.text-lg,
    body.font-large .main-navigation h1.text-xl,
    body.font-large .main-navigation h1.text-2xl,
    body.font-large .main-navigation h1.text-3xl,
    body.font-large .main-navigation h1.text-4xl {
        font-size: var(--font-size-xl) !important;
    }
}

/* Ensure font weight is never extra bold */
.main-navigation h1 {
    font-weight: 700 !important; /* Bold, not extra bold */
    max-font-weight: 700 !important;
}

/* Override any font-black or font-extrabold that might be applied */
.main-navigation h1.font-black,
.main-navigation h1.font-extrabold,
.main-navigation h1[class*="font-9"] {
    font-weight: 700 !important;
}

