/* Main CSS File */
:root {
    /* Color Variables */
    --primary-color: #4B3EE8;
    --primary-light: #7A70EE;
    --primary-dark: #0C1189;
    --secondary-color: #f8f9fa;
    --accent-color: #EA3238;
    --text-color: #000000;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #495057;
    --black: #000000;
    
    /* Typography */
    --heading-font: 'Public Sans', sans-serif;
    --body-font: 'Public Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 4rem;
    
    /* Container Width */
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    position: relative;
}

/* Flag Background and blue line - removed as requested */
#flag-background,
.blue-line {
    display: none;
}

/* Properly style the skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
}

/* Ensure content is above the overlay */
.container, header, footer, section {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Focus styles for better accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus, [tabindex]:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    text-decoration: none;
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Styling */
section {
    padding: var(--spacing-xl) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

/* Ensure navbar items are vertically centered */
.navbar {
    min-height: 70px; /* Set a consistent height for the navbar */
}

.navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 1rem;
}

.navbar-start, .navbar-end {
    display: flex;
    align-items: center;
}

.navbar .menu {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar .menu li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
}

/* Fix dropdown menu display */
.dropdown-content {
    display: none;
}

/* Mobile menu specific styles */
#mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu:not(.hidden) {
    display: block !important;
}

#mobile-menu .mobile-menu-link {
    padding: 0.75rem 1rem;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#mobile-menu .mobile-menu-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile menu styling */
.dropdown-end .dropdown-content {
    right: 0;
    left: auto;
}

/* Increase padding for mobile menu items for better touch targets */
.mobile-menu-link {
    padding: 0.75rem 1rem !important;
    display: block;
    width: 100%;
}

/* Make the mobile menu button more prominent */
.navbar .btn-ghost {
    padding: 0.5rem;
}

/* Hide mobile menu on large screens */
@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    
    .lg\:flex {
        display: flex !important;
    }
}

/* Ensure the mobile menu is completely hidden on desktop */
@media (min-width: 1024px) {
    .navbar .dropdown,
    .navbar .dropdown-content {
        display: none !important;
    }
}

/* Ensure desktop menu is hidden on mobile screens */
@media (max-width: 1023px) {
    .menu.menu-horizontal.hidden.lg\:flex {
        display: none !important;
    }
    
    .navbar-end .hidden.lg\:flex {
        display: none !important;
    }
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    /* Ensure the menu button has enough space */
    .navbar .container {
        padding: 0.5rem;
    }
    
    /* Make dropdown menu full width on very small screens */
    @media (max-width: 400px) {
        .dropdown-content {
            width: 100vw;
            right: 0;
            left: auto;
            position: fixed;
            top: 70px;
        }
    }
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-links li {
    margin-left: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile menu toggle button styles - with higher specificity to override DaisyUI */
#mobile-menu-button.btn.btn-primary.mobile-menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0.5rem;
    min-width: 3rem;
    min-height: 3rem;
    transition: opacity 0.2s ease;
}

#mobile-menu-button.btn.btn-primary.mobile-menu-toggle:hover {
    opacity: 0.9;
}

#mobile-menu-button.btn.btn-primary.mobile-menu-toggle i {
    color: white;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    text-align: center;
    width: 100%;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        padding: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(75, 62, 232, 0.85), rgba(12, 17, 137, 0.85));
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

/* Hero flag background - decorative image - removed as requested
.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background-image: url('../images/hero-flag.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.8;
    z-index: 0;
    /* Decorative image, no alt text needed */
    aria-hidden: true;
}
*/

.hero h1, .hero h2 {
    color: #ffffff !important; /* Ensure white text in hero section */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

section.hero h2:after {
    margin: var(--spacing-lg) 0;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: rgba(12, 17, 137, 0.85);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.footer-nav ul {
    list-style: none;
    padding-left: 0;
}

.footer-nav li {
    margin-bottom: var(--spacing-sm);
}

.footer-nav a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}


ul.reach-out li{
    align-items: start;
    margin-bottom: .67rem;
}
.check-bullets {
    padding: 5px; margin-right: 1em;
}
.check-bullets > div {
    padding: 3px; 
}


#tweet-action-buttons {
    .btn i, .btn svg{
        fill: white;
        line-height: 1.3em;
        margin-left: 8px;
        margin-right: 2px;
        font-size: 1.3em;
    }
}

#why-now{
    p{
        text-align: left;
    }
    ul{
        text-align: left;
        margin-top: 1.5em;

        li{
            margin-bottom: 1em;
        }
    }

}
#get-involved, #reach-out, #mobilize, #tweet-carousel {
    .btn i, .btn svg{
        fill: white;
        line-height: 1.3em;
        margin-left: 16px;
        margin-right: 4px;
        font-size: 1.3em;
    }
   
}