/* Press Releases Page Styles with BEM naming */
.press-releases {
    /* Align with global theme tokens where possible */
    --primary: var(--qc-color-primary, #6b46c1);
    --primary-dark: var(--qc-color-primary-dark, #553c9a);
    --primary-light: var(--qc-color-primary-light, #9f7aea);
    --primary-lighter: #e9d8fd;
    --primary-lightest: #f5f0ff;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --border-radius-sm: 0.125rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;

    color: var(--gray-800);
    line-height: 1.5;
    font-family: inherit;
}

/* Header Section */
.press-releases__header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.press-releases__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.press-releases__title {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.press-releases__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: white;
    border-radius: var(--border-radius-full);
}

.press-releases__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 780px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.press-releases__header-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.press-releases__highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.press-releases__header-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 576px) {
    .press-releases__header-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.press-releases__header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    transition: all 0.2s ease;
}

.press-releases__header-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.press-releases__header-link--solid {
    border-color: #fff;
    background: #fff;
    color: var(--primary-dark);
}

.press-releases__header-link--solid:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
}

/* Info Banner */
.press-releases__banner {
    background: var(--primary-lightest);
    color: var(--primary-dark);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--primary-lighter);
}

.press-releases__banner-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .press-releases__banner-text {
        font-size: 1.05rem;
    }
}

/* Main Content Layout */
.press-releases__content {
    padding: 2rem 0;
    background-color: var(--gray-50);
}

.press-releases__intro {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .press-releases__intro {
        padding: 1.5rem;
    }
}

.press-releases__intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .press-releases__intro-grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

.press-releases__intro-title {
    margin: 0 0 0.5rem 0;
    color: var(--gray-900);
    font-size: 1.1rem;
}

.press-releases__intro-text {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.press-releases__pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.press-releases__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-full);
    color: var(--gray-800);
    font-size: 0.85rem;
    font-weight: 600;
}

.press-releases__grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .press-releases__grid {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

/* Sidebar */
.press-releases__sidebar {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .press-releases__sidebar {
        position: sticky;
        top: 2rem;
        height: max-content;
        margin-bottom: 0;
    }
}

.press-releases__filter-panel {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.press-releases__panel-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
}

.press-releases__panel-title {
    color: white;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.press-releases__panel-body {
    padding: 1.5rem;
}

.press-releases__filter-group {
    margin-bottom: 1.25rem;
}

.press-releases__filter-group:last-child {
    margin-bottom: 0;
}

.press-releases__filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.press-releases__search-wrapper {
    position: relative;
}

.press-releases__search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.press-releases__search-input {
    padding-left: 2.5rem;
}

.press-releases__contact-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.press-releases__card-header {
    background: var(--primary-lightest);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--primary-lighter);
}

.press-releases__card-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.125rem;
}

.press-releases__card-body {
    padding: 1.5rem;
}

.press-releases__card-text {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.press-releases__card-icon {
    color: var(--primary);
}

.press-releases__card-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Main Content Area */
.press-releases__main {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .press-releases__main {
        padding: 2rem;
    }
}

.press-releases__main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .press-releases__main-header {
        flex-direction: row;
    }
}

.press-releases__main-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.press-releases__view-options {
    display: flex;
    gap: 0.5rem;
}

.press-releases__view-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.press-releases__view-btn:hover {
    background: var(--gray-200);
}

.press-releases__view-btn--active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.press-releases__results-summary {
    margin-bottom: 1.25rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.press-releases__results-summary strong {
    color: var(--gray-800);
}

.press-releases__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.press-releases__sort label {
    margin: 0;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.85rem;
}

.press-releases__sort select {
    min-width: 180px;
}

/* Timeline View */
.press-releases__timeline {
    position: relative;
    min-height: 240px;
}

.press-releases__timeline--list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.press-releases__timeline--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Loading Indicator */
.press-releases__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: var(--gray-600);
}

.press-releases__spinner {
    border: 4px solid rgba(107, 70, 193, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: press-releases-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes press-releases-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Press Release Cards */
.press-releases__item {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.press-releases__timeline--list .press-releases__item {
    flex-direction: column;
}

@media (min-width: 768px) {
    .press-releases__timeline--list .press-releases__item {
        flex-direction: row;
    }
}

.press-releases__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.press-releases__item-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
}

@media (min-width: 768px) {
    .press-releases__timeline--list .press-releases__item-image {
        width: 250px;
        height: auto;
    }
}

.press-releases__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.press-releases__item:hover .press-releases__item-img {
    transform: scale(1.05);
}

.press-releases__item-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(85, 60, 154, 0.92);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 800;
    z-index: 1;
}

.press-releases__item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.press-releases__item-category {
    display: inline-block;
    background: var(--primary-lightest);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    border: 1px solid var(--primary-lighter);
    width: fit-content;
}

.press-releases__item-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 800;
}

.press-releases__item-description {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.press-releases__item-link {
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    text-decoration: none;
}

.press-releases__item-link:hover {
    text-decoration: underline;
}

.press-releases__item-link-icon {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.press-releases__item-link:hover .press-releases__item-link-icon {
    transform: translateX(3px);
}

/* Empty State */
.press-releases__empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray-600);
}

.press-releases__empty-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.press-releases__empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-weight: 800;
}

.press-releases__empty-text {
    max-width: 680px;
    margin: 0.75rem auto 1.25rem auto;
    color: var(--gray-600);
}

.press-releases__empty-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Pagination */
.press-releases__pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.press-releases__pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.press-releases__pagination-item {
    margin: 0.25rem;
}

.press-releases__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-decoration: none;
    background: white;
}

.press-releases__pagination-link:hover {
    background: var(--gray-100);
    color: var(--primary);
    text-decoration: none;
}

.press-releases__pagination-item--active .press-releases__pagination-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.press-releases__pagination-item--disabled .press-releases__pagination-link {
    color: var(--gray-400);
    pointer-events: none;
    background-color: var(--gray-100);
}

/* Subscribe Section */
.press-releases__subscribe {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .press-releases__subscribe {
        padding: 4rem 2rem;
    }
}

.press-releases__subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.press-releases__subscribe-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.press-releases__subscribe-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

@media (min-width: 768px) {
    .press-releases__subscribe-title {
        font-size: 2rem;
    }
}

.press-releases__subscribe-text {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .press-releases__subscribe-text {
        font-size: 1.125rem;
    }
}

.press-releases__subscribe-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0 auto 2rem auto;
    max-width: 680px;
}

.press-releases__subscribe-form {
    max-width: 520px;
    margin: 0 auto;
}

.press-releases__form-group {
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .press-releases__form-group {
        flex-direction: row;
    }
}

.press-releases__form-control {
    height: 50px;
    border-radius: var(--border-radius-md);
    padding: 0.625rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    font-size: 1rem;
}

.press-releases__form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.press-releases__form-button {
    height: 50px;
    border-radius: var(--border-radius-md);
    background-color: rgba(0, 0, 0, 0.18);
    color: white;
    font-weight: 800;
    padding: 0 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.press-releases__form-button:hover {
    background-color: rgba(0, 0, 0, 0.26);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button styles */
.press-releases__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 800;
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
}

.press-releases__btn--block {
    display: block;
    width: 100%;
}

.press-releases__btn--primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.press-releases__btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.press-releases__btn--outline {
    color: var(--gray-700);
    border-color: var(--gray-300);
    background-color: transparent;
}

.press-releases__btn--outline:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
    text-decoration: none;
}

.press-releases__btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Mobile optimization for filter panel */
.press-releases__mobile-filters {
    display: none;
}

@media (max-width: 991px) {
    .press-releases__mobile-filters {
        display: flex;
        margin-bottom: 1.5rem;
    }

    .press-releases__mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        background-color: white;
        border: 1px solid var(--gray-300);
        border-radius: var(--border-radius-md);
        font-weight: 700;
        color: var(--gray-700);
        width: 100%;
    }

    .press-releases__filter-drawer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }

    .press-releases__filter-drawer--open {
        transform: translateY(0);
    }

    .press-releases__drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 1rem;
    }

    .press-releases__drawer-title {
        font-size: 1.125rem;
        font-weight: 900;
        color: var(--gray-800);
        margin: 0;
    }

    .press-releases__drawer-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--gray-500);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem;
        cursor: pointer;
    }

    .press-releases__filter-drawer .press-releases__panel-body {
        padding: 0;
    }

    .press-releases__drawer-actions {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }

    .press-releases__drawer-cancel,
    .press-releases__drawer-apply {
        flex: 1;
    }

    .press-releases__drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .press-releases__drawer-overlay--visible {
        opacity: 1;
        visibility: visible;
    }
}