/* ==========================================================================
   Media Page Styles
   ========================================================================== */

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

    /* 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;

    /* Borders */
    --color-border: #3F3F46;

    /* Typography */
    --font-family: 'Avenir LT Std', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    --font-size-sm: 18px;
    --font-size-base: 18px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 36px;
    --font-size-4xl: 120px;

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

    /* Transitions */
    --transition-default: 0.2s ease;
}

/* 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;
}

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

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #131313;
    color: var(--color-white);
}


a {
    text-decoration: none;
    color: inherit;
}

/* Layout
   ========================================================================== */
.masonry-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 40px  20px;
}

.masonry-grid:has(.news-filter) {
    gap: 20px;
}

/* Card Component
   ========================================================================== */
.card {
    position: relative;
    overflow: hidden;
    height: 550px;
    grid-column: span 1;
    font-family: var(--font-family);
}

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

.card.news-filter {
    border: none;
}

.card {
    border: 0.5px solid var(--color-border);
}

.card .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.card.news-filter .background-image {
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card .category {
    position: absolute;
    top: 344px;
    left: 30px;
    font-size: var(--font-size-lg);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    z-index: 2;
}

.card .card-content {
    position: relative;
    padding-top: 390px;
    padding-left: 30px;
    z-index: 2;
    color: var(--color-white);
}

.card:has(.guest-header) .card-content {
    padding-top: 390px;
}

.card .card-content {
    padding-top: 390px;
}


.card h2 {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    margin: 0;
    padding-right: 30px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .date {
    position: absolute;
    top: 344px;
    right: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    z-index: 2;
}

.post-date {
    color: var(--color-white);
    font-size: var(--font-size-base);;
    margin-top: 15px;
    opacity: 0.8;
    display: block;
}

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

.video-background {
    position: absolute;
    /*top: -420px;*/
    height: 100%;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: -10;
    -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: -5;
}

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

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

.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: var(--font-family);
    width: 400px;
    padding: 10px 20px;
    padding-right: 40px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    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;
}

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

.date-range-label {
    color: var(--color-white);
    font-size: var(--font-size-base);
    margin-bottom: 4px;
    text-align: left;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #27272A;
    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: #3F3F46;
    font-size: var(--font-size-base);;
    padding: 4px;
    width: 80px;
    text-align: center;
    cursor: pointer;
}

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

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

/* Category Filters
   ========================================================================== */
.category-filters {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: 40px;
    padding-bottom: var(--spacing-md);
    justify-content: center;
}

.filter-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: 500;
    padding-bottom: var(--spacing-md);
    position: relative;
    text-align: center;
    min-width: 200px;
    transition: color var(--transition-default);
    font-family: var(--font-family);
}

.filter-link.active {
    color: var(--color-primary);
}

/* Guest Header Styles
   ========================================================================== */
.guest-header {
    position: absolute;
    background: rgba(0, 0, 0, 0.45);
    padding-left: 30px;
    z-index: 3;
    height: 180px;
    width: 100%;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: flex-start;
}

.card.show-guest .guest-header {
    display: flex;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-image {
    width: 140px;
    height: 140px;
    border-radius: 100%;
    overflow: hidden;
}

.guest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-details {
    color: var(--color-white);
}

.guest-label {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.guest-name {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 2px;
}

.guest-position {
    font-size: var(--font-size-base);;
    color: #ffffff;
}

/* Blog Header Styles
   ========================================================================== */
.blog-header {
    position: absolute;
    background: rgba(0, 0, 0, 0.45);
    padding-left: 30px;
    z-index: 3;
    height: 108px;
    width: 100%;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: flex-start;
}

.card.show-blog .blog-header {
    display: flex;
}

.blog-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-image {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details {
    color: var(--color-white);
}

.blog-label {
    font-size: var(--font-size-base);;
    letter-spacing: 1px;
    margin-top: 10px;
    padding-bottom: 0px;
}

.blog-name {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 0px;
    padding-right:50px
}



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

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

.newsletter-title {
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin: 0 0 12px;
}

.center-image-newsletter {
    position: relative;
    height: 58px;
    padding-top: 20px;
}

/* Flatpickr Theme Customization
   ========================================================================== */
.flatpickr-calendar.dark {
    background: #27272A;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family);
}

.flatpickr-calendar.dark .flatpickr-months,
.flatpickr-calendar.dark .flatpickr-month {
    background: #27272A;
    color: var(--color-white);
}

.flatpickr-calendar.dark .flatpickr-weekday {
    color: rgba(255, 255, 255, 0.5);
}

.flatpickr-calendar.dark .flatpickr-day {
    color: var(--color-white);
}

.flatpickr-calendar.dark .flatpickr-day.selected,
.flatpickr-calendar.dark .flatpickr-day:hover {
    background: var(--color-border);
    border-color: var(--color-border);
}

.flatpickr-calendar.dark .flatpickr-day.disabled {
    color: rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 768px) {


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

    .hero-main-text {
        font-size: 48px;
        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 24px;
    }

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

    .card,
    .card.large {
        grid-column: span 1;
    }


    .newsletter-section{
        width: auto;
    }

    .card h2{
        font-size: 24px;
        -webkit-line-clamp: 3;
    }

    .card .card-content {
        padding-right: 30px;
        padding-top: 380px;
    }

    .guest-image{
        width: 80px;
        height: 80px;
    }

    .guest-label {
        font-size: 20px;
        padding: 0px 0px 10px 0px;
        margin: 0px;
    }

    .guest-name {
        font-size: 20px;
        padding: 0px;
    }

    .guest-header {
        padding-left: 20px;
        padding-right: 20px;
        height: 140px;
        width: auto;
    }

    .blog-image{
        width: 80px;
        height: 80px;
    }

    .blog-header {
        padding-left: 20px;
        padding-right: 20px;
        height: 140px;
        width: auto;
    }

    .blog-label {
        font-size: 20px;
        padding: 0px 0px 10px 0px;
        margin: 0px;
    }

    .blog-name {
        font-size: 20px;
        padding: 0px;
    }
}


