/* ==========================================================================
   Report Page Styles
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #FFD700;
    --color-secondary: #EFA32F;
    --color-dark: #18181B;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --font-size-base: 18px;

    /* Grays */
    --color-gray-100: #F3F4F6;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-border: #3F3F46;

    /* Typography */
    --font-family: 'Avenir LT Std';
    --font-size-sm: 18px;
    --font-size-base: 18px;
    --font-size-lg: 28px;
    --font-size-xl: 38px;
    --font-size-2xl: 120px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 30px;
    --spacing-2xl: 48px;

    /* Layout */
    --card-height: 550px;
    --card-mobile-height: 300px;
    --hero-height: 700px;

    /* Z-index */
    --z-background: -10;
    --z-overlay: 1;
    --z-content: 2;
}

/* Base Styles
   ========================================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: #131313;
    color: var(--color-white);
}

/* Typography
   ========================================================================== */
@font-face {
    font-family: 'Avenir LT Std';
    src: url('../fonts/Avenir LT Std 45 Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Avenir LT Std';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
}

.video-background {
    position: absolute;
    /*top: -420px;*/
    height: 100%;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: var(--z-background);
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top,
        rgba(19, 19, 19, 1) 0%,
        rgba(19, 19, 19, 0.8) 30%,
        rgba(19, 19, 19, 0) 100%
    );
    z-index: var(--z-background);
}

.hero-main-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 0;
    color: var(--color-white);
    font-family: 'Avenir LT Std';
    font-size: var(--font-size-2xl);
    text-align: center;
}

/* Search Section
   ========================================================================== */
.center-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 90px;
    height: 125px;
    text-align: center;
}

.search-filters-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
    justify-content: center;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.search-input {
    font-family: 'Avenir LT Std';
    width: 400px;
    padding: 10px 20px;
    padding-right: 40px;
    border: 1px solid var(--color-white);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-size: var(--font-size-base);
    height: 42px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-white);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-icon {
    position: absolute;
    right: 10px;
    bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Category Filter Styles */
.category-filters {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
    padding-bottom: 8px;
    justify-content: center;
}

.filter-link {
    font-family: var(--font-family);
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 16px;
    position: relative;
    width: 200px;
    text-align: center;
}

.filter-link.active {
    color: #FFD700;
    font-family: var(--font-family);
}

.filter-link.active::after {
    display: none;
}

/* Card Styles
   ========================================================================== */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}


.card-link:focus {
    outline: none;
    text-decoration: none;
    color: inherit;
}

/* Date Range
   ========================================================================== */
.date-range-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.date-range-label {
    color: var(--color-white);
    font-family: 'Avenir LT Std';
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 4px;
    height: 42px;
    box-sizing: border-box;
}

.date-input {
    background: transparent;
    border: none;
    color: var(--color-border);
    font-size: var(--font-size-base);
    padding: var(--spacing-xs);
    width: 80px;
    text-align: center;
    cursor: pointer;
}

.date-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.date-separator {
    color: var(--color-white);
    opacity: 0.5;
}

/* Publications Grid
   ========================================================================== */
.masonry-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: var(--max-width);
    margin: 40px 20px 0;
}

.card {
    position: relative;
    height: var(--card-height);
    grid-column: span 1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card.large {
    grid-column: span 2;
}


.category {
    position: absolute;
    top: var(--spacing-2xl);
    left: var(--spacing-xl);
    color: var(--color-white);
    font-family: 'Avenir LT Std';
    font-size: 36px;
    padding-right: 30px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: var(--z-content);
}

.card-content {
    position: absolute;
    bottom: 60px;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: var(--z-content);
}

.card h2 {
    color: var(--color-white);
    font-family: 'Avenir LT Std';
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.date {
    position: absolute;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Avenir LT Std';
    font-size: var(--font-size-base);
    z-index: var(--z-content);
}

/* Newsletter Section
   ========================================================================== */
.newsletter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.newsletter-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-title {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0 0 12px;
    font-family: 'Avenir LT Std';
}

.center-image-newsletter {
    position: relative;
    height: 58px;
    padding-top: var(--spacing-lg);
}

/* Responsive Design
   ========================================================================== */


@media (max-width: 768px) {

    /* Hero Section Styles */
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }

    .hero-main-text {
        font-size: 40px;
        top: 30%;
    }

    .center-search {
        position: relative;
        margin-top: 50vh;
        height: auto;
        padding-bottom: 40px;
        width: 100%;
    }

    /* Category Filters */
    .category-filters {
        flex-direction: column;
        gap: 16px;
        padding: 0;
        height: auto;
        margin: 0;
    }

    .filter-link {
        font-size: 24px;
        padding: 12px 0;
        display: block;
        width: 100%;

    }

    /* Search Section */
    .search-section {
        margin-top: 100px;
        padding: 0 24px;
    }

    .search-input {
        font-size: var(--font-size-base);;
        padding: 12px 20px;
        width: 100%;
        max-width: none;
    }

    /* Search Section Mobile Styles */

    .search-input-container {
        width: 100%;
        margin-bottom: 20px;
    }




    .search-section,
    .masonry-grid {
        padding: 0 var(--spacing-lg);
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .card.large {
        grid-column: span 1;
        height: var(--card-mobile-height);
    }

    .category {
        font-size: 24px;
        top: var(--spacing-lg);
        left: var(--spacing-lg);
    }

    .card-content {
        bottom: var(--spacing-2xl);
        left: var(--spacing-lg);
        right: var(--spacing-lg);
    }

    .card h2 {
        font-size: 24px;
        font-weight: 600;
    }

    .date {
        bottom: var(--spacing-lg);
        left: var(--spacing-lg);
    }

    .video-background {
        width: auto;
        min-width: 100%;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .masonry-grid {
        margin: 40px 0px 0;
    }
}
