:root {
    /* Spacing Variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;

    /* Layout Variables */
    --container-max-width: 1200px;
    --container-padding: 1rem;

    /* Breakpoints (for reference in media queries) */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;

    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-med: 1rem;
    --font-size-base: 1.25rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-8xl: 4.5rem;
    --font-size-12xl: 6rem;

    /* Brand Colors */
    --notice-yellow: #fbc516;
    --notice-black: #1a1919;
    --notice-grey: #808285;
    --notice-white: #ffffff;

    /* Functional Colors */
    --notice-bg-primary: var(--notice-black);
    --notice-bg-secondary: #242424;  /* slightly lighter than black for layering */
    --notice-text-primary: var(--notice-white);
    --notice-text-secondary: var(--notice-grey);
    --notice-accent: var(--notice-yellow);
    
    /* Background tints for subtle variations */
    --notice-bg-grey-light: rgba(128, 130, 133, 0.1);
    --notice-bg-grey-medium: rgba(128, 130, 133, 0.2);
    
    /* Font Families */
    --font-primary: 'Roboto', sans-serif;
    --font-accent: 'Roboto', sans-serif;
    
    /* Font Weights */
    --font-regular: 400;
    --font-bold: 700;
}



/* Reset and Base Styles - Update to remove any default margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;  /* Prevent horizontal scrolling */
    position: relative;  /* Create new stacking context */
    width: 100% !important;
    margin: 0;
    padding: 0;
    overscroll-behavior-x: none;  /* Prevent horizontal overscroll */
    touch-action: pan-y pinch-zoom;  /* Only allow vertical touch actions */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height); /* Add this variable to your root */
}



/* Utility Classes for Typography */
.text-accent {
    font-family: var(--font-accent);
}

.text-yellow {
    color: var(--notice-accent);
}


/* Main Container Styles - Ensure no top margin/padding */
.notice-coalition-main {
    width: 100%;
    font-family: var(--font-primary);
    color: var(--notice-text-primary);
    background-color: var(--notice-bg-primary);
}

/* Navigation Styles - Position at very top */
.notice-nav {
    width: 100%;
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.nav-logo {
    margin-right: var(--spacing-xl);
}

.nav-logo img {
    height: 55px;
    width: auto;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin: 0 auto;
}

.nav-links a {
    color: var(--notice-text-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-bold);
    font-family: var(--font-accent);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--notice-accent);
}

/* Add selected nav link style */
.nav-links a.selected {
    color: var(--notice-accent);
    position: relative;
}

.nav-links a.selected::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--notice-accent);
}

/* CTA Button */
.nav-cta {
    margin-left: var(--spacing-xl);
}

 /* Button Styles */
 .notice-btn {
    background-color: var(--notice-accent);
    color: var(--notice-black);
    font-family: var(--font-accent);
    font-weight: var(--font-bold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.notice-btn:hover {
    transform: translateY(-2px);
}

/* Section Base Styles - Add content container */
.notice-coalition-main > section {
    width: 100%;
    padding: var(--spacing-2xl) 0; /* Remove horizontal padding */
    overflow-x: hidden;  /* Prevent horizontal scrolling within sections */
}

/* Alternating Background Colors for Visual Separation */
.notice-intro {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ensures full viewport height */
    overflow: hidden; /* Prevents video from spilling out */
    background-color: var(--notice-bg-primary);
    background-image: url('https://images.squarespace-cdn.com/content/5b9081c58ab7224793278e1d/aed970c9-6727-4c6a-baf8-66281a81dd8e/AdobeStock_819637284.jpeg?content-type=image%2Fjpeg');
    margin: 0; /* Ensure no margins */
    padding-top: var(--nav-height);
    top: 0; /* Align to top */
}


/* Updated Intro Content Styles */
.intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin-top: var(--spacing-2xl); /* Added more space below navigation */
}

.intro-text-container {
    max-width: 90%; /* Increased from previous max-width */
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.intro-catchphrase {
    font-family: var(--font-accent);
    font-size: var(--font-size-8xl);
    color: var(--notice-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 4px solid var(--notice-white);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-accent);
    font-size: var(--font-size-3xl);
    color: var(--notice-white);
}

/* Add content container for each section */
.section-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-link {
    font-family: var(--font-accent);
    font-size: var(--font-size-lg);
    color: var(--notice-accent);
    text-decoration: none;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.section-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--notice-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-link:hover::after {
    transform: scaleX(1);
}

/* Newsletter Section Styles */
.notice-newsletter {
    padding: var(--spacing-3xl) 0;
    display: flex;
    align-items: center;
}

/* Social Media Section / Footer Styles */
.notice-social {
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.notice-social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.social-icon {
    width: 64px;
    height: 64px;
    background-color: var(--notice-bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.social-icon i {
    font-size: 32px;
    color: var(--notice-white);
}

.notice-footer-logo {
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.notice-footer-logo img {
    height: 60px;
    width: auto;
}

.notice-footer-logo:hover {
    opacity: 0.8;
}

/* Add new alternating background colors */
.notice-coalition-main > section:not(.notice-intro):nth-child(odd) {
    background-color: var(--notice-bg-primary);
}

.notice-coalition-main > section:not(.notice-intro):nth-child(even) {
    background-color: var(--notice-bg-secondary);
}


/* Complete News & Events List Section */
.notice-news-events-list {
    padding: var(--spacing-3xl) 0;
    background-color: var(--notice-bg-secondary);
}

/* Filter Options */
.filter-container {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}



.filter-options {
    display: flex;
    gap: var(--spacing-md);
}

.filter-btn {
    background: none;
    border: none;
    color: var(--notice-text-primary);
    font-family: var(--font-accent);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color 0.3s ease;
}

.filter-btn:hover {
    color: var(--notice-accent);
}

.filter-btn.active {
    color: var(--notice-accent);
    position: relative;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--notice-accent);
}

/* Resources Grid - adjust width */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 100%;
}

/* Resource Card */
.resource-card {
    background-color: var(--notice-bg-secondary); 
    border-radius: 4px;
    overflow: hidden;
}

.resource-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.resource-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Optional: Add hover effect for the clickable image */
.resource-image:hover img {
    transform: scale(1.05);
}

/* Resource Content */
.resource-content {
    padding: var(--spacing-lg);
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}


/* Updated Resource Tag Style */
.resource-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-accent);
    font-size: var(--font-size-med);
    font-weight: var(--font-bold);
    color: var(--notice-accent);
    padding: 4px 12px;
    border-radius: 4px;
    border: 2px solid var(--notice-accent);
}

.resource-description {
    color: var(--notice-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-bold);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    min-height: 4.5em;
}

/* Updated Resource Footer */
.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.resource-link {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: transparent;
    border: 2px solid var(--notice-accent);
    color: var(--notice-accent);
    font-family: var(--font-accent);
    font-size: var(--font-size-base);
    font-weight: var(--font-bold);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
}


.resource-link:hover {
    background-color: var(--notice-accent);
    color: var(--notice-black);
}

/* Update resource links styling */
.resource-links {
    display: flex;
    gap: var(--spacing-md);
}

.resource-action {
    width: 24px; 
    height: 24px;
    font-size: var(--font-size-xl); /* Increase icon size */
    transition: transform 0.3s ease;
    color: var(--notice-accent); /* Color for the icons */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.resource-action:hover {
    transform: translateY(-2px);
}

.resource-action i {
    transition: transform 0.3s ease;
    font-size: var(--font-size-3xl);
}

.resource-action:hover i {
    transform: translateY(-2px);
}

/* Specific hover effect for play button */
.resource-action .fa-circle-play:hover {
    transform: scale(1.1);
}

/* Add this to your existing CSS */
.video-thumbnail {
    position: relative;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-overlay i {
    font-size: 4rem;
    color: var(--notice-accent);
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

/* Video modal styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--notice-white);
    font-size: 32px;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    /* Add responsive styling for resources grid on tablets */
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make filter options wrap to two lines on tablet */
    .filter-options {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: var(--spacing-md);
        justify-content: center;
    }
}


@media screen and (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.25rem;
    }

    .notice-coalition-main > section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-logo {
        margin-right: 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }

    .nav-cta {
        margin-left: 0;
    }

    
    .intro-catchphrase {
        font-size: calc(var(--font-size-4xl) * 0.8);
        letter-spacing: 0.1em;
        line-height: 1.6;
        margin-bottom: var(--spacing-lg);
    }

    .notice-newsletter {
        min-height: 300px;
        padding: var(--spacing-2xl) 0;
    }

    
    .notice-social {
        padding: var(--spacing-2xl) 0;
    }

    .notice-social-links {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
    }

    .social-icon {
        width: 48px;
        height: 48px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .notice-footer-logo img {
        height: 48px;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .filter-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}