/* RelishPro Font Face */
@font-face {
    font-family: 'RelishPro';
    src: url('/fonts/Relish Pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RelishPro';
    src: url('/fonts/Relish Pro Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RelishPro';
    src: url('/fonts/Relish Pro Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'RelishPro';
    src: url('/fonts/Relish Pro Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* HalperNL Website Styles */
:root {
    --primary-color: #ef6622;
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-top: -1px;
}

body {
    font-family: 'RelishPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode - Body & Base Styles */
body.dark-mode {
    background-color: #0a0a0a;
    color: rgba(255, 255, 255, 0.9);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* Dark Mode - Typography */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode p {
    color: rgba(255, 255, 255, 0.85);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Divider utility class */
.divider {
    width: 80px;
    height: 5px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 1rem auto;
}

.divider-small {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 1rem auto;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Dark Mode - Links */
body.dark-mode a {
    color: var(--primary-color);
}

body.dark-mode a:hover {
    color: #ff7a3d;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Dark mode header */
body.dark-mode .header {
    background-color: #000000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Normal header state when scrolled (kept for compatibility) */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Always white header on profile and admin pages */
body.header-always-white .header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.header-always-white .header #header-logo {
    content: url('../images/logo.png');
}

body.header-always-white .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord) {
    color: var(--text-color) !important;
}

body.header-always-white .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord):hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.1) !important;
}

body.header-always-white .header .mobile-menu-toggle {
    color: var(--secondary-color) !important;
}

body.header-always-white .header .mobile-menu-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.1) !important;
}

body.header-always-white .header .user-menu-toggle {
    color: var(--text-color) !important;
}

body.header-always-white .header .user-menu-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.1) !important;
}

body.header-always-white .header .user-dropdown {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

body.header-always-white .header .user-dropdown .dropdown-item {
    color: var(--text-color) !important;
    border-bottom-color: var(--border-color) !important;
}

body.header-always-white .header .user-dropdown .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Dark mode for always-white header */
body.dark-mode.header-always-white .header {
    background-color: #000000 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode.header-always-white .header #header-logo {
    content: url('../images/logo-wit.png');
}

body.dark-mode.header-always-white .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord) {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode.header-always-white .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord):hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.2) !important;
}

body.dark-mode.header-always-white .header .dark-mode-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode.header-always-white .header .dark-mode-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.2) !important;
}

body.dark-mode.header-always-white .header .mobile-menu-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode.header-always-white .header .mobile-menu-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.2) !important;
}

body.dark-mode.header-always-white .header .user-menu-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode.header-always-white .header .user-menu-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.2) !important;
}

body.dark-mode.header-always-white .header .user-dropdown {
    background: #000000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode.header-always-white .header .user-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode.header-always-white .header .user-dropdown .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.2) !important;
    color: var(--primary-color) !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.nav-item {
    position: relative;
}

/* User Dropdown Menu */
.user-dropdown {
    animation: fadeInDown 0.2s ease-out;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-item {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* User dropdown styling */
.user-dropdown {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.user-dropdown .dropdown-item {
    color: var(--text-color);
    border-bottom-color: var(--border-color);
}

.user-dropdown .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.1);
    color: var(--primary-color);
}

/* Dark mode user dropdown */
body.dark-mode .user-dropdown {
    background: #000000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .user-dropdown .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.2) !important;
    color: var(--primary-color) !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

/* Nav links styling - always visible */
.nav-link:not(.active):not(.admin):not(.merchandise):not(.discord) {
    color: var(--text-color);
}

.nav-link:not(.active):not(.admin):not(.merchandise):not(.discord):hover {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.1);
}

/* Dark mode nav links */
body.dark-mode .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord) {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord):hover {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.2);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.15);
    font-weight: 600;
}


.nav-link.merchandise {
    background: linear-gradient(135deg, var(--primary-color), #ff7a3d);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(239, 102, 34, 0.3);
}

.nav-link.merchandise:hover {
    background: linear-gradient(135deg, #d55a1a, var(--primary-color));
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 102, 34, 0.4);
}

.nav-link.merchandise.active {
    background: linear-gradient(135deg, var(--secondary-color), #333);
    color: var(--accent-color);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-link.admin {
    background: linear-gradient(135deg, var(--secondary-color), #333);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-link.admin:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff7a3d);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 102, 34, 0.4);
}

.nav-link.admin.active {
    background: linear-gradient(135deg, var(--primary-color), #ff7a3d);
    color: var(--accent-color);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(239, 102, 34, 0.3);
}

.nav-link.discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.nav-link.discord:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.nav-link.discord i {
    margin-right: 0.5rem;
}

/* Live indicator in header - Always white text in both light and dark mode */
.nav-link.live-indicator {
    background: #dc3545 !important;
    color: white !important;
    font-weight: 600;
    position: relative;
}

.nav-link.live-indicator:hover {
    background: #c82333 !important;
    color: white !important;
}

.nav-link.live-indicator.active {
    background: #dc3545 !important;
    color: white !important;
}

/* Ensure live indicator stays white in light mode */
body:not(.dark-mode) .nav-link.live-indicator,
body:not(.dark-mode) .header .nav-link.live-indicator {
    color: white !important;
}

body:not(.dark-mode) .nav-link.live-indicator:hover,
body:not(.dark-mode) .header .nav-link.live-indicator:hover {
    color: white !important;
}

body:not(.dark-mode) .nav-link.live-indicator.active,
body:not(.dark-mode) .header .nav-link.live-indicator.active {
    color: white !important;
}

/* Mobile menu live indicator - always white */
.header .nav-menu .nav-link.live-indicator {
    color: white !important;
}

.header .nav-menu .nav-link.live-indicator:hover {
    color: white !important;
}

/* Override header-always-white for live indicator */
body.header-always-white .header .nav-link.live-indicator {
    color: white !important;
}

body.header-always-white .header .nav-link.live-indicator:hover {
    color: white !important;
}

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

.live-pulse {
    animation: pulse 2s infinite;
    display: inline-block;
    vertical-align: middle;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dark-mode-toggle:hover {
    background-color: rgba(239, 102, 34, 0.1);
    color: var(--primary-color);
}

/* Dark mode toggle button in dark mode */
body.dark-mode .dark-mode-toggle {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(239, 102, 34, 0.2);
    color: var(--primary-color);
}

/* Dark mode header styling - already covered in main header rule above */
body.dark-mode .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord) {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .header .nav-link:not(.active):not(.admin):not(.merchandise):not(.discord):hover {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.2);
}

body.dark-mode .header .mobile-menu-toggle {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .header .mobile-menu-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(239, 102, 34, 0.2);
}

body.dark-mode .header .user-menu-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .header .user-menu-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(239, 102, 34, 0.2) !important;
}

body.dark-mode .header .user-dropdown {
    background: #000000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .header .user-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .header .user-dropdown .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.2) !important;
    color: var(--primary-color) !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Hero Section */
.hero,
.section.hero-top {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--accent-color);
    padding: 0;
    padding-bottom: 4rem;
    padding-top: 6rem;
    text-align: center;
    margin-top: -80px;
    padding-top: calc(6rem + 80px);
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.45rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-cta:hover {
    background-color: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

/* Ensure buttons with orange background always have white text */
/* But NOT buttons with white background */
.btn[style*="background-color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
.btn[style*="background-color: #ef6622"]:not([style*="background: white"]):not([style*="background-color: white"]),
.btn[style*="background: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
.btn[style*="background: #ef6622"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background-color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background-color: #ef6622"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background: #ef6622"]:not([style*="background: white"]):not([style*="background-color: white"]) {
    color: white !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--accent-color) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color) !important;
}

/* Ensure buttons on orange backgrounds have proper colors */
/* Only apply if button doesn't already have white background */
[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
[style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
[style*="background-color: var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
[style*="background-color: #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]) {
    color: var(--primary-color) !important;
    background-color: white !important;
}

[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
[style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
[style*="background-color: var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
[style*="background-color: #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover {
    color: white !important;
    background-color: var(--secondary-color) !important;
}

/* Preserve white background buttons with orange text - highest priority */
.btn[style*="background: white"],
.btn[style*="background-color: white"],
button[style*="background: white"],
button[style*="background-color: white"],
a.btn[style*="background: white"],
a.btn[style*="background-color: white"],
a[style*="background: white"].btn,
a[style*="background-color: white"].btn {
    background-color: white !important;
}

/* Ensure white background buttons keep orange text */
.btn[style*="background: white"][style*="color"],
.btn[style*="background-color: white"][style*="color"],
button[style*="background: white"][style*="color"],
button[style*="background-color: white"][style*="color"],
a.btn[style*="background: white"][style*="color"],
a.btn[style*="background-color: white"][style*="color"],
a[style*="background: white"].btn[style*="color"],
a[style*="background-color: white"].btn[style*="color"] {
    /* Preserve inline color styles */
}

/* Specific rule for white background + primary color */
.btn[style*="background: white"][style*="var(--primary-color)"],
.btn[style*="background-color: white"][style*="var(--primary-color)"],
button[style*="background: white"][style*="var(--primary-color)"],
button[style*="background-color: white"][style*="var(--primary-color)"],
a.btn[style*="background: white"][style*="var(--primary-color)"],
a.btn[style*="background-color: white"][style*="var(--primary-color)"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color) !important;
}

/* CRITICAL: Preserve white background buttons with orange text - highest priority */
/* Match ANY button that has "background: white" in style, regardless of order */
a.btn[style*="background: white"],
a.btn[style*="background-color: white"],
.btn[style*="background: white"],
.btn[style*="background-color: white"],
button.btn[style*="background: white"],
button.btn[style*="background-color: white"],
a[style*="background: white"].btn,
a[style*="background-color: white"].btn,
button[style*="background: white"].btn,
button[style*="background-color: white"].btn {
    background-color: white !important;
}

/* Ensure white background buttons keep orange text color - match if style contains both */
a.btn[style*="background: white"][style*="var(--primary-color)"],
a.btn[style*="background-color: white"][style*="var(--primary-color)"],
.btn[style*="background: white"][style*="var(--primary-color)"],
.btn[style*="background-color: white"][style*="var(--primary-color)"],
button.btn[style*="background: white"][style*="var(--primary-color)"],
button.btn[style*="background-color: white"][style*="var(--primary-color)"],
a[style*="background: white"].btn[style*="var(--primary-color)"],
a[style*="background-color: white"].btn[style*="var(--primary-color)"],
button[style*="background: white"].btn[style*="var(--primary-color)"],
button[style*="background-color: white"].btn[style*="var(--primary-color)"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Match buttons with white background AND primary color text (order independent) */
a.btn[style*="background: white"][style*="color"],
a.btn[style*="background-color: white"][style*="color"],
.btn[style*="background: white"][style*="color"],
.btn[style*="background-color: white"][style*="color"] {
    /* If it has white background and a color attribute, preserve the color */
    background-color: white !important;
}

/* Explicit match for buttons with white background and primary color */
a.btn[style*="background: white"][style*="primary-color"],
a.btn[style*="background-color: white"][style*="primary-color"],
.btn[style*="background: white"][style*="primary-color"],
.btn[style*="background-color: white"][style*="primary-color"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* ULTIMATE FIX: Any button with white background MUST have visible text */
/* Match buttons that have white background in their style attribute */
a.btn[style*="background: white"],
a.btn[style*="background-color: white"],
.btn[style*="background: white"],
.btn[style*="background-color: white"] {
    background-color: white !important;
}

/* If button has white background AND any color reference to primary, use orange text */
a.btn[style*="background: white"][style*="primary"],
a.btn[style*="background-color: white"][style*="primary"],
.btn[style*="background: white"][style*="primary"],
.btn[style*="background-color: white"][style*="primary"],
a.btn[style*="background: white"][style*="#ef6622"],
a.btn[style*="background-color: white"][style*="#ef6622"],
.btn[style*="background: white"][style*="#ef6622"],
.btn[style*="background-color: white"][style*="#ef6622"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Ensure all buttons have proper text color */
.btn,
button.btn,
a.btn {
    color: inherit;
}

.btn-primary,
button.btn-primary,
a.btn-primary {
    color: white !important;
}

/* Buttons with orange background (not white background) */
.btn[style*="background-color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background-color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
a[style*="background-color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]) {
    color: white !important;
}

.btn-secondary,
button.btn-secondary,
a.btn-secondary {
    color: white !important;
}

/* Fix buttons with orange background and orange text (but not white background buttons) */
.btn[style*="background-color: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
.btn[style*="background: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background-color: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
button[style*="background: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
a.btn[style*="background-color: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]),
a.btn[style*="background: var(--primary-color)"][style*="color: var(--primary-color)"]:not([style*="background: white"]):not([style*="background-color: white"]) {
    color: white !important;
}

/* Fix buttons inside orange gradient backgrounds - but preserve white background buttons */
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]) {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

/* CRITICAL: Explicitly preserve white background buttons inside banner cards */
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"],
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"],
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background: white"],
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background-color: white"],
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"],
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"],
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background: white"],
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background-color: white"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"]:hover,
.banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"]:hover,
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background: white"]:hover,
.banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background-color: white"]:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

/* Cards */
.card {
    background-color: var(--accent-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

/* Dark Mode - Cards */
body.dark-mode .card {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    border-color: rgba(239, 102, 34, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: white;
    padding: 0.5rem;
}

/* Dark Mode - Card Image */
body.dark-mode .card-image {
    background-color: #2a2a2a;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    margin-bottom: 1rem;
}

/* Dark Mode - Card Text */
body.dark-mode .card-text {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .card-title {
    color: rgba(255, 255, 255, 0.95);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    justify-content: center;
}
.grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
    justify-content: center;
}
.grid-4 { 
    grid-template-columns: repeat(4, 1fr); 
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 102, 34, 0.1);
}

/* Dark Mode - Forms */
body.dark-mode .form-label {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .form-control {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 102, 34, 0.3);
    background-color: #333333;
}

body.dark-mode textarea.form-control {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode input[type="datetime-local"],
body.dark-mode select {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark Mode - Sections */
body.dark-mode .section {
    background-color: transparent;
}

body.dark-mode .section[style*="background: #f5f5f5"],
body.dark-mode .section[style*="background-color: #f5f5f5"],
body.dark-mode .section[style*="background-color: var(--light-gray)"] {
    background-color: #1a1a1a !important;
}

body.dark-mode .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--accent-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Dark Mode - Footer (footer already has dark background, but ensure text is visible) */
body.dark-mode .footer {
    /* Footer already has dark background image, keep as is */
}

body.dark-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Dark Mode - Social Links */
body.dark-mode .social-link {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
}

body.dark-mode .social-link:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    margin-right: 2rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dark Mode - Pagination */
body.dark-mode .pagination {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .pagination-info {
    color: rgba(255, 255, 255, 0.8);
}

.pagination-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 102, 34, 0.3);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 102, 34, 0.3);
}

.pagination-link.disabled {
    background-color: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.pagination-link.disabled:hover {
    background-color: #f8f9fa;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

/* FAQ Accordion */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question.active {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-bottom: 1px solid var(--primary-color);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question.active h3 {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.faq-question.active .faq-icon {
    color: var(--accent-color);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--accent-color);
    opacity: 0;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 300px;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Dark Mode - FAQ */
body.dark-mode .faq-item {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .faq-question {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .faq-question:hover {
    background-color: #2a2a2a;
}

body.dark-mode .faq-question h3 {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .faq-question.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom-color: var(--primary-color);
}

body.dark-mode .faq-question.active h3 {
    color: white;
}

body.dark-mode .faq-icon {
    color: var(--primary-color);
}

body.dark-mode .faq-question.active .faq-icon {
    color: white;
}

body.dark-mode .faq-answer {
    background-color: #1a1a1a;
}

body.dark-mode .faq-answer.active {
    background-color: #1a1a1a;
}

body.dark-mode .faq-answer p {
    color: rgba(255, 255, 255, 0.85);
}

/* Header Sections - Black Font Weight */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h1,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h2,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h3,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h4,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h5,
.section[style*="background: linear-gradient(135deg, var(--secondary-color)"] h6,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h1,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h2,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h3,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h4,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h5,
.section[style*="background: linear-gradient(135deg, var(--primary-color)"] h6 {
    font-weight: 900 !important;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Dark Mode - Text Utilities */
body.dark-mode .text-muted,
body.dark-mode small {
    color: rgba(255, 255, 255, 0.6) !important;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: none;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-radius: 0 0 15px 15px;
        border: none;
        border-top: none;
    }
    
    /* Mobile menu with white background */
    .header .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Dark mode mobile menu */
    body.dark-mode .header .nav-menu {
        background-color: #000000;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    /* Mobile menu links */
    .header .nav-menu .nav-link {
        color: var(--text-color);
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }
    
    .header .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background-color: rgba(239, 102, 34, 0.1);
    }
    
    /* Dark mode mobile menu links */
    body.dark-mode .header .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    body.dark-mode .header .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background-color: rgba(239, 102, 34, 0.2);
    }
    
    .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    /* Ruimte tussen Word Premium knop en Inloggen link in mobiel menu */
    .header .nav-menu .nav-link.btn-primary {
        margin-bottom: 1rem !important;
    }
    
    /* Admin link (Inloggen) in mobiel menu moet wit zijn */
    .header .nav-menu .nav-link.admin {
        color: white !important;
        margin-top: 0.5rem !important;
    }
    
    .header .nav-menu .nav-link.admin:hover {
        color: white !important;
    }
    
    /* User dropdown menu mobile styles */
    .user-menu-toggle {
        width: 100%;
        justify-content: center !important;
        text-align: center;
    }
    
    /* User dropdown menu toggle */
    .header .nav-menu .user-menu-toggle {
        color: var(--text-color) !important;
    }
    
    .header .nav-menu .user-menu-toggle:hover {
        color: var(--primary-color) !important;
        background-color: rgba(239, 102, 34, 0.1) !important;
    }
    
    /* Dark mode user dropdown menu toggle */
    body.dark-mode .header .nav-menu .user-menu-toggle {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    body.dark-mode .header .nav-menu .user-menu-toggle:hover {
        color: var(--primary-color) !important;
        background-color: rgba(239, 102, 34, 0.2) !important;
    }
    
    .user-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 0.5rem !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* User dropdown */
    .header .nav-menu .user-dropdown {
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Dark mode user dropdown */
    body.dark-mode .header .nav-menu .user-dropdown {
        background-color: #000000 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item {
        text-align: center !important;
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    /* Dropdown items */
    .header .nav-menu .dropdown-item {
        color: var(--text-color) !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    .header .nav-menu .dropdown-item:hover {
        background-color: rgba(239, 102, 34, 0.1) !important;
        color: var(--primary-color) !important;
    }
    
    /* Dark mode dropdown items */
    body.dark-mode .header .nav-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-mode .header .nav-menu .dropdown-item:hover {
        background-color: rgba(239, 102, 34, 0.2) !important;
        color: var(--primary-color) !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    
    .hero,
    .section.hero-top {
        margin-top: -80px;
        padding-top: calc(5rem + 80px);
        padding-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero,
    .section.hero-top {
        margin-top: -80px;
        padding-top: calc(5rem + 80px);
        padding-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   COMPREHENSIVE DARK MODE STYLING
   ============================================ */

/* Dark Mode - General Backgrounds */
body.dark-mode {
    background-color: #0a0a0a;
}

body.dark-mode main {
    background-color: #0a0a0a;
}

/* Dark Mode - Sections with light backgrounds */
body.dark-mode .section[style*="background: #f5f5f5"],
body.dark-mode .section[style*="background-color: #f5f5f5"],
body.dark-mode .section[style*="background-color: var(--light-gray)"],
body.dark-mode section[style*="background-color: #f8f9fa"],
body.dark-mode section[style*="background-color: var(--light-gray)"] {
    background-color: #1a1a1a !important;
}

/* Dark Mode - White backgrounds in sections */
body.dark-mode div[style*="background: white"],
body.dark-mode div[style*="background-color: white"] {
    background-color: #1a1a1a !important;
}

/* Dark Mode - Light gray backgrounds in divs (e.g., policy pages, info boxes) */
body.dark-mode div[style*="background-color: var(--light-gray)"],
body.dark-mode .section div[style*="background-color: var(--light-gray)"],
body.dark-mode .container div[style*="background-color: var(--light-gray)"] {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - Text colors in light gray divs */
body.dark-mode div[style*="background-color: var(--light-gray)"] h1,
body.dark-mode div[style*="background-color: var(--light-gray)"] h2,
body.dark-mode div[style*="background-color: var(--light-gray)"] h3,
body.dark-mode div[style*="background-color: var(--light-gray)"] h4,
body.dark-mode div[style*="background-color: var(--light-gray)"] h5,
body.dark-mode div[style*="background-color: var(--light-gray)"] h6 {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-mode div[style*="background-color: var(--light-gray)"] p,
body.dark-mode div[style*="background-color: var(--light-gray)"] li,
body.dark-mode div[style*="background-color: var(--light-gray)"] strong {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode div[style*="background-color: var(--light-gray)"] a {
    color: var(--primary-color) !important;
}

body.dark-mode div[style*="background-color: var(--light-gray)"] a:hover {
    color: #ff7a3d !important;
}

/* Dark Mode - Borders */
body.dark-mode {
    --border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card,
body.dark-mode div[style*="border-top: 1px solid"],
body.dark-mode div[style*="border-bottom: 1px solid"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - Input fields and selects */
body.dark-mode input[type="file"] {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode input[type="file"]::file-selector-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

body.dark-mode input[type="file"]::file-selector-button:hover {
    background-color: #d55a1a;
}

/* Dark Mode - Checkboxes and Radio buttons */
body.dark-mode input[type="checkbox"],
body.dark-mode input[type="radio"] {
    accent-color: var(--primary-color);
}

/* Dark Mode - Tables */
body.dark-mode table {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode table th {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode table td {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode table tr:hover {
    background-color: #2a2a2a;
}

/* Dark Mode - Code blocks */
body.dark-mode code,
body.dark-mode pre {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Mode - Blockquotes */
body.dark-mode blockquote {
    border-left-color: var(--primary-color);
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
}

/* Dark Mode - HR */
body.dark-mode hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dark Mode - Buttons */
body.dark-mode .btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

body.dark-mode .btn-primary:hover {
    background-color: #d55a1a;
    color: white !important;
}

body.dark-mode .btn-secondary {
    background-color: #2a2a2a;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Dark Mode - Buttons outline */
body.dark-mode .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

body.dark-mode .btn-outline:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Dark Mode - Buttons on orange backgrounds - but preserve white background buttons */
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
body.dark-mode [style*="background-color: var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]),
body.dark-mode [style*="background-color: #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]) {
    color: var(--primary-color) !important;
    background-color: white !important;
}

body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
body.dark-mode [style*="background-color: var(--primary-color)"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover,
body.dark-mode [style*="background-color: #ef6622"] .btn:not([style*="background: white"]):not([style*="background-color: white"]):hover {
    color: white !important;
    background-color: var(--secondary-color) !important;
}

/* Dark Mode - Preserve white background buttons */
body.dark-mode .btn[style*="background: white"],
body.dark-mode .btn[style*="background-color: white"],
body.dark-mode button[style*="background: white"],
body.dark-mode button[style*="background-color: white"],
body.dark-mode a.btn[style*="background: white"],
body.dark-mode a.btn[style*="background-color: white"] {
    background-color: white !important;
}

body.dark-mode .btn[style*="background: white"][style*="color: var(--primary-color)"],
body.dark-mode .btn[style*="background-color: white"][style*="color: var(--primary-color)"],
body.dark-mode button[style*="background: white"][style*="color: var(--primary-color)"],
body.dark-mode button[style*="background-color: white"][style*="color: var(--primary-color)"],
body.dark-mode a.btn[style*="background: white"][style*="color: var(--primary-color)"],
body.dark-mode a.btn[style*="background-color: white"][style*="color: var(--primary-color)"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Dark Mode - Explicitly preserve white background buttons inside banner cards */
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background-color: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background: white"],
body.dark-mode .banner-card[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background-color: white"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* ============================================
   FINAL OVERRIDE: White background buttons MUST have orange text
   This rule comes last and overrides everything
   ============================================ */
.banner-card .btn[style*="background: white"],
.banner-card .btn[style*="background-color: white"],
.banner-card a.btn[style*="background: white"],
.banner-card a.btn[style*="background-color: white"],
[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"],
[style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"],
[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"],
[style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"],
[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background: white"],
[style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background-color: white"],
[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background: white"],
[style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background-color: white"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

body.dark-mode .banner-card .btn[style*="background: white"],
body.dark-mode .banner-card .btn[style*="background-color: white"],
body.dark-mode .banner-card a.btn[style*="background: white"],
body.dark-mode .banner-card a.btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] .btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, #ef6622"] a.btn[style*="background-color: white"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Dark Mode - Force text color to black/orange for white background buttons with "Word Premium" text */
body.dark-mode .banner-card a.btn[style*="background: white"],
body.dark-mode .banner-card a.btn[style*="background-color: white"],
body.dark-mode .banner-card .btn[style*="background: white"],
body.dark-mode .banner-card .btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"] {
    color: var(--primary-color) !important;
}

body.dark-mode .banner-card a.btn[style*="background: white"] *,
body.dark-mode .banner-card a.btn[style*="background-color: white"] *,
body.dark-mode .banner-card .btn[style*="background: white"] *,
body.dark-mode .banner-card .btn[style*="background-color: white"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"] * {
    color: var(--primary-color) !important;
}

body.dark-mode .banner-card a.btn[style*="background: white"] i,
body.dark-mode .banner-card a.btn[style*="background-color: white"] i,
body.dark-mode .banner-card .btn[style*="background: white"] i,
body.dark-mode .banner-card .btn[style*="background-color: white"] i,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"] i,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"] i,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"] i,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"] i {
    color: var(--primary-color) !important;
}

/* Dark Mode - Force text color for white background buttons - highest priority */
body.dark-mode .banner-card a[style*="background: white"][style*="color: var(--primary-color)"],
body.dark-mode .banner-card a[style*="background-color: white"][style*="color: var(--primary-color)"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a[style*="background: white"][style*="color: var(--primary-color)"],
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a[style*="background-color: white"][style*="color: var(--primary-color)"] {
    color: var(--primary-color) !important;
}

body.dark-mode .banner-card a[style*="background: white"][style*="color: var(--primary-color)"] *,
body.dark-mode .banner-card a[style*="background-color: white"][style*="color: var(--primary-color)"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a[style*="background: white"][style*="color: var(--primary-color)"] *,
body.dark-mode [style*="background: linear-gradient(135deg, var(--primary-color)"] a[style*="background-color: white"][style*="color: var(--primary-color)"] * {
    color: var(--primary-color) !important;
}

/* Dark Mode - Admin/Form pages */
body.dark-mode div[style*="background-color: #f8f9fa"] {
    background-color: #0a0a0a !important;
}

body.dark-mode div[style*="background: white"],
body.dark-mode div[style*="background-color: white"] {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode - Inline styles override */
body.dark-mode [style*="color: #333"],
body.dark-mode [style*="color: #666"],
body.dark-mode [style*="color: var(--text-color)"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode [style*="color: rgba(255, 255, 255"] {
    /* Keep white text on dark backgrounds */
}

/* Dark Mode - Social links */
/* Dark Mode Social Links - already defined above, remove duplicate */

/* Dark Mode - Video player controls (if any custom styling) */
body.dark-mode .custom-video-player {
    background-color: #000000;
}

/* Dark Mode - Loading spinners */
body.dark-mode .spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
}

/* Dark Mode - Alerts/Notifications */
body.dark-mode .alert {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    color: #4ade80;
}

body.dark-mode .alert-error,
body.dark-mode .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #f87171;
}

/* Dark Mode - Pagination Links */
body.dark-mode .pagination-link {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.dark-mode .pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.dark-mode .pagination-link.disabled {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pagination-link.disabled:hover {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.3);
}

/* Dark Mode - Admin Pagination (inline styles) */
body.dark-mode div[style*="color: #666"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode div[style*="background-color: white"],
body.dark-mode a[style*="background-color: white"],
body.dark-mode span[style*="background-color: white"] {
    background-color: #2a2a2a !important;
}

body.dark-mode a[style*="background-color: white"][style*="color: #333"],
body.dark-mode span[style*="background-color: white"][style*="color: #333"] {
    background-color: #2a2a2a !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - Exception: Keep white background and dark text for premium overlay buttons */
body.dark-mode div[style*="color: white"] a[style*="background: white"],
body.dark-mode div[style*="color: white"] a[style*="background-color: white"] {
    background-color: white !important;
    color: #333 !important;
}

body.dark-mode div[style*="color: white"] a[style*="background: white"][style*="color: rgb(51, 51, 51)"],
body.dark-mode div[style*="color: white"] a[style*="background-color: white"][style*="color: rgb(51, 51, 51)"],
body.dark-mode div[style*="color: white"] a[style*="background: white"][style*="color: #333"],
body.dark-mode div[style*="color: white"] a[style*="background-color: white"][style*="color: #333"] {
    background-color: white !important;
    color: #333 !important;
}

body.dark-mode a[style*="background-color: #e9ecef"],
body.dark-mode span[style*="background-color: #e9ecef"] {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode span[style*="color: #6c757d"] {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Dark Mode - Admin Pagination Container */
body.dark-mode .admin-pagination-container {
    background-color: #1a1a1a !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .pagination-result-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .pagination-result-text strong {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark Mode - Admin Pagination Links with inline styles */
body.dark-mode .admin-pagination-container a[style*="background-color: white"],
body.dark-mode .admin-pagination-container span[style*="background-color: white"] {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .admin-pagination-container a[style*="background-color: white"]:hover {
    background-color: #333333 !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

body.dark-mode .admin-pagination-container a[style*="background-color: var(--primary-color)"] {
    background-color: var(--primary-color) !important;
    color: white !important;
}

body.dark-mode .admin-pagination-container a[style*="background-color: var(--primary-color)"]:hover {
    background-color: #d55a1a !important;
    color: white !important;
}

body.dark-mode .admin-pagination-container span[style*="background-color: var(--primary-color)"] {
    background-color: var(--primary-color) !important;
    color: white !important;
}

body.dark-mode .admin-pagination-container span[style*="background-color: #e9ecef"] {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Dark Mode - Breadcrumbs */
body.dark-mode .breadcrumb {
    background-color: transparent;
}

body.dark-mode .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .breadcrumb a:hover {
    color: var(--primary-color);
}

/* Dark Mode - Badges */
body.dark-mode .badge {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode - Dropdowns (general) */
body.dark-mode .dropdown-menu {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(239, 102, 34, 0.2);
    color: var(--primary-color);
}

/* Dark Mode - Modals */
body.dark-mode .modal-content {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-header .close {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode - Tooltips */
body.dark-mode .tooltip-inner {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode - Progress bars */
body.dark-mode .progress {
    background-color: #2a2a2a;
}

body.dark-mode .progress-bar {
    background-color: var(--primary-color);
}

/* Dark Mode - List groups */
body.dark-mode .list-group-item {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .list-group-item:hover {
    background-color: #2a2a2a;
}

/* Dark Mode - Nav tabs */
body.dark-mode .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: transparent;
}

body.dark-mode .nav-tabs .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) transparent;
    color: var(--primary-color);
}

/* Dark Mode - Comments Section */
body.dark-mode .comments-section {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .comments-section h2 {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .comments-section h2 span {
    color: rgba(255, 255, 255, 0.6);
}

/* Comment form labels */
body.dark-mode .comments-section label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Comment form inputs and textareas */
body.dark-mode .comments-section input[type="text"],
body.dark-mode .comments-section input[type="email"],
body.dark-mode .comments-section textarea {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .comments-section input[type="text"]:focus,
body.dark-mode .comments-section input[type="email"]:focus,
body.dark-mode .comments-section textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none;
}

body.dark-mode .comments-section input::placeholder,
body.dark-mode .comments-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Individual comment items (including nested replies) */
body.dark-mode .comments-section div[style*="background-color: var(--light-gray)"] {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* But exclude the form container (it's handled separately above) */
body.dark-mode .comments-section > div > div[style*="background-color: var(--light-gray)"]:first-of-type {
    /* This is the form container, already styled above */
}

/* Comment text colors */
body.dark-mode .comments-section strong {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-mode .comments-section p {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .comments-section small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Reply form border and replies container */
body.dark-mode .comments-section div[id^="replyForm"] {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .comments-section div[style*="border-top: 1px solid var(--border-color)"] {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Success/Error messages */
body.dark-mode .comments-section div[style*="background-color: #d4edda"] {
    background-color: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
    border-color: rgba(40, 167, 69, 0.5) !important;
}

body.dark-mode .comments-section div[style*="background-color: #f8d7da"] {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
}

/* Empty state message */
body.dark-mode .comments-section div[style*="text-align: center"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .comments-section div[style*="text-align: center"] p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Dark Mode - Policy Pages: Ensure light gray divs are dark */
body.dark-mode .section div[style*="background-color: var(--light-gray)"],
body.dark-mode .container div[style*="background-color: var(--light-gray)"],
body.dark-mode div[style*="background-color: var(--light-gray)"] {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .section div[style*="background-color: var(--light-gray)"] h1,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] h2,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] h3,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] h4,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] h5,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] h6 {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-mode .section div[style*="background-color: var(--light-gray)"] p,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] li,
body.dark-mode .section div[style*="background-color: var(--light-gray)"] strong {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .section div[style*="background-color: var(--light-gray)"] a {
    color: var(--primary-color) !important;
}

body.dark-mode .section div[style*="background-color: var(--light-gray)"] a:hover {
    color: #ff7a3d !important;
}

/* Dark Mode - Admin Video Create/Edit Pages */
body.dark-mode div[style*="background-color: #f8f9fa"] {
    background-color: #0a0a0a !important;
}

body.dark-mode div[style*="background: white"][style*="padding: 2rem"],
body.dark-mode div[style*="background-color: white"][style*="padding: 2rem"] {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin form labels */
body.dark-mode label[style*="color: #333"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin form inputs */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="datetime-local"],
body.dark-mode textarea,
body.dark-mode select {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="datetime-local"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--primary-color) !important;
    outline: none;
}

body.dark-mode input[type="file"] {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Admin form text colors */
body.dark-mode p[style*="color: #666"],
body.dark-mode span[style*="color: #333"],
body.dark-mode p[style*="color: #333"] {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode strong[style*="color: #333"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin category checkboxes */
body.dark-mode label[style*="background: white"],
body.dark-mode label[style*="background-color: white"] {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode label[style*="background: white"]:hover,
body.dark-mode label[style*="background-color: white"]:hover {
    background-color: #333333 !important;
    border-color: var(--primary-color) !important;
}

body.dark-mode label[style*="background: white"] span[style*="color: #333"],
body.dark-mode label[style*="background-color: white"] span[style*="color: #333"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin info boxes */
body.dark-mode p[style*="background-color: #e7f3ff"] {
    background-color: rgba(239, 102, 34, 0.1) !important;
    border-left-color: var(--primary-color) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode p[style*="background-color: #e7f3ff"] strong {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Admin video preview containers */
body.dark-mode div[style*="margin-bottom: 1rem"] p[style*="color: #666"] {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Admin links */
body.dark-mode a[style*="color: var(--primary-color)"] {
    color: var(--primary-color) !important;
}

body.dark-mode a[style*="color: var(--primary-color)"]:hover {
    color: var(--secondary-color) !important;
}

/* Admin checkboxes */
body.dark-mode input[type="checkbox"] {
    accent-color: var(--primary-color);
    filter: brightness(0.8);
}

body.dark-mode input[type="checkbox"]:checked {
    filter: brightness(1.2);
}

/* Admin select dropdowns */
body.dark-mode select option {
    background-color: #2a2a2a !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin error messages */
body.dark-mode p[style*="color: #dc3545"] {
    color: #f87171 !important;
}

/* Admin video/thumbnail preview containers */
body.dark-mode video,
body.dark-mode img[alt="Thumbnail"],
body.dark-mode img[alt="Thumbnail preview"] {
    background-color: #000 !important;
}

/* Admin category labels hover fix for dark mode */
body.dark-mode label[style*="background: white"][onmouseout*="white"] {
    background-color: #2a2a2a !important;
}

body.dark-mode label[style*="background-color: white"][onmouseout*="white"] {
    background-color: #2a2a2a !important;
}

/* ============================================
   ABSOLUTE FINAL OVERRIDE: White background buttons
   This MUST be the last rule to ensure highest priority
   ============================================ */
a.btn[style*="background: white"][style*="primary-color"],
a.btn[style*="background-color: white"][style*="primary-color"],
.btn[style*="background: white"][style*="primary-color"],
.btn[style*="background-color: white"][style*="primary-color"],
.banner-card a.btn[style*="background: white"][style*="primary-color"],
.banner-card a.btn[style*="background-color: white"][style*="primary-color"],
.banner-card .btn[style*="background: white"][style*="primary-color"],
.banner-card .btn[style*="background-color: white"][style*="primary-color"],
[style*="linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"][style*="primary-color"],
[style*="linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"][style*="primary-color"],
[style*="linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"][style*="primary-color"],
[style*="linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"][style*="primary-color"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}

body.dark-mode a.btn[style*="background: white"][style*="primary-color"],
body.dark-mode a.btn[style*="background-color: white"][style*="primary-color"],
body.dark-mode .btn[style*="background: white"][style*="primary-color"],
body.dark-mode .btn[style*="background-color: white"][style*="primary-color"],
body.dark-mode .banner-card a.btn[style*="background: white"][style*="primary-color"],
body.dark-mode .banner-card a.btn[style*="background-color: white"][style*="primary-color"],
body.dark-mode .banner-card .btn[style*="background: white"][style*="primary-color"],
body.dark-mode .banner-card .btn[style*="background-color: white"][style*="primary-color"],
body.dark-mode [style*="linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background: white"][style*="primary-color"],
body.dark-mode [style*="linear-gradient(135deg, var(--primary-color)"] a.btn[style*="background-color: white"][style*="primary-color"],
body.dark-mode [style*="linear-gradient(135deg, var(--primary-color)"] .btn[style*="background: white"][style*="primary-color"],
body.dark-mode [style*="linear-gradient(135deg, var(--primary-color)"] .btn[style*="background-color: white"][style*="primary-color"] {
    background-color: white !important;
    color: var(--primary-color) !important;
}
