@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

.press-new-section {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.press-new-section .press-controls {
    gap: 15px;
}

.press-new-section .search-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    width: 355px;
    height: 40px;
    border: 1px solid #212529;
    border-radius: 100px;
    background: #ffffff;
    max-width: 100%;
}

.press-new-section .search-input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: 100% !important;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #212529 !important;
    box-shadow: none !important;
    flex-grow: 1;
    outline: none !important;
}

.press-new-section .search-input::placeholder {
    color: rgba(33, 37, 41, 0.33);
}

.press-new-section .search-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.press-new-section .btn-year,
.press-new-section .btn-format,
.press-new-section .btn-publication {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    height: 40px;
    background: #ED1470;
    border: 1px solid #ED1470;
    border-radius: 100px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.press-new-section .btn-year {
    width: 101px;
}

.press-new-section .btn-format,
.press-new-section .btn-publication {
    min-width: 120px;
}

.press-new-section .btn-year:hover,
.press-new-section .btn-year:focus,
.press-new-section .btn-format:hover,
.press-new-section .btn-format:focus,
.press-new-section .btn-publication:hover,
.press-new-section .btn-publication:focus {
    background-color: #c9144d;
    border-color: #c9144d;
    box-shadow: none !important;
}

.press-new-section .btn-reset {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    height: 40px;
    background: #FFFFFF;
    border: none;
    color: #212529;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    outline: none !important;
}

.press-new-section .btn-reset:hover,
.press-new-section .btn-reset:focus {
    background-color: transparent;
    color: #c9144d;
    box-shadow: none !important;
    text-decoration: none;
}

.press-new-section .reset-x {
    font-size: 11px;
    margin-right: 8px;
    display: inline-block;
    line-height: 1;
}

.press-new-section .btn-year::after,
.press-new-section .btn-format::after,
.press-new-section .btn-publication::after {
    display: none !important;
    /* hide default bootstrap caret */
}

.press-new-section .btn-year-text,
.press-new-section .btn-format-text,
.press-new-section .btn-publication-text {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-align: right;
    color: #FFFFFF;
}

.press-new-section .dropdown-caret-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.press-new-section .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #efefef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin-top: 5px;
}

#publication-options,
#format-options {
    max-height: 300px;
    overflow-y: auto;
}

.press-new-section .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.press-new-section .dropdown-item:hover {
    background-color: #fff0f3;
    color: #e61c5d;
}

.press-new-section .dropdown-item.active {
    background-color: #e61c5d;
    color: #ffffff;
}

/* Select2 Custom Styles for Press New */
.press-new-section .select-wrapper {
    display: inline-block;
    min-width: 175px;
}

.press-new-section .select-wrapper-year {
    min-width: 140px;
}

.press-new-section .select2-container {
    width: 100% !important;
}

.press-new-section .select2-container--default .select2-selection--single {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 36px 0 16px;
    height: 40px;
    background: #ED1470;
    border: 1px solid #ED1470;
    border-radius: 100px !important;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    outline: none !important;
}

.press-new-section .select2-container--default .select2-selection--single:hover,
.press-new-section .select2-container--default.select2-container--open .select2-selection--single,
.press-new-section .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.press-new-section .select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    background-color: #c9144d;
    border-color: #c9144d;
    border-radius: 100px !important;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 38px;
    color: #FFFFFF;
    padding-left: 0;
    padding-right: 20px;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 12px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #FFFFFF transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-left: -5px;
    margin-top: -3px;
}

.press-new-section .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #FFFFFF transparent;
    border-width: 0 5px 6px 5px;
    margin-left: -5px;
    margin-top: -3px;
}

.press-new-section .btn-year-clear {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    margin-left: 4px;
    margin-right: 2px;
}

.press-new-section .btn-year-clear:hover {
    color: #ffd1dc;
    opacity: 0.9;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    margin: 0;
    padding: 2px 4px;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #ffd1dc;
    opacity: 0.9;
}

.press-new-section .select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #FFFFFF;
    opacity: 0.9;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    margin: 0;
    padding: 2px 4px;
}

.select2-container--default .select2-dropdown.press-select2-dropdown {
    border-radius: 12px;
    border: 1px solid #efefef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin-top: 5px;
    overflow: hidden;
    z-index: 1050;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-search--dropdown {
    padding: 8px 12px;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-search__field:focus {
    border-color: #ED1470;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-results__option {
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #fff0f3;
    color: #ED1470;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-results__option[aria-selected=true] {
    background-color: #ED1470;
    color: #ffffff;
}

.select2-container--default .select2-dropdown.press-select2-dropdown .select2-results>.select2-results__options {
    max-height: 250px;
}

/* Press Card links styling */
.press-new-section .press-card-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.press-new-section div.press-card-link {
    cursor: default;
}

/* Standard card styling */
.press-new-section .press-card {
    padding: 50px 20px 50px 20px;
    background: #ffffff;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid #495057;
    position: relative;
}

.press-new-section .press-content-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.press-new-section .press-text-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex-grow: 1;
    padding-right: 140px;
}

.press-new-section .press-title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px !important;
    line-height: 27px !important;
    color: #212529;
    margin: 0;
    transition: color 0.25s ease;
    padding-top: 0px;
    width: 100%;
}

.press-new-section .press-meta-info {
    display: block;
    padding: 0px;
    margin-top: 6px;
    line-height: 22px;
}

.press-new-section .publication-name,
.press-new-section .publication-name-link,
.press-new-section .publication-name-text,
.press-new-section .more-sources-btn,
.press-new-section .hide-sources-btn {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    color: #ED1470;
}

.press-new-section .publication-name-link {
    text-decoration: underline;
}

.press-new-section .publication-name-link:hover {
    color: #c40e5c;
    text-decoration: underline;
}

.press-new-section .more-sources-btn,
.press-new-section .hide-sources-btn {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.press-new-section .more-sources-btn:hover,
.press-new-section .hide-sources-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.press-new-section .meta-ellipse-dot {
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 4px;
    background: #ED1470;
    border-radius: 50%;
    margin: 0 8px;
}

.press-new-section .news-date {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #212529;
}

.press-new-section .news-date {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #212529;
    transition: font-weight 0.25s ease;
}

.press-new-section .press-media-column {
    display: block;
}

.press-new-section .arrow-icon-wrapper {
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 41.5px;
}

.press-new-section .press-article-image {
    width: 130px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    right: 20px;
    bottom: 20px;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.press-new-section .opacity-logo {
    opacity: 0.75;
    transition: opacity 0.25s ease;
    mix-blend-mode: multiply;
    filter: contrast(1);
}

/* Hovered card styling */
.press-new-section .press-card:hover {
    background: #FFEAF1;
    border-bottom: 1px solid transparent;
}

/* Hovered card previous item border to transparent */
.press-new-section .press-card-link:has(+ .press-card-link:hover) .press-card {
    border-bottom-color: transparent;
}

.press-new-section .press-card:hover .arrow-icon-wrapper {
    display: flex;
}

.press-new-section .press-card:hover .opacity-logo {
    opacity: 1;
}

/* Media query adjustments */
@media (max-width: 768px) {
    .press-new-section .press-card {
        padding: 30px 15px;
    }

    .press-new-section .press-content-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .press-new-section .press-text-column {
        padding-right: 0;
    }

    .press-new-section .press-media-column {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
    }

    .press-new-section .arrow-icon-wrapper {
        position: static;
        order: 2;
    }

    .press-new-section .press-article-image {
        position: static;
        width: 110px;
        height: 50px;
        order: 1;
    }
}

/* Load More Button Styling */
.press-new-section .btn-load-more {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    height: 48px;
    background: #FFFFFF;
    border: 2px solid #ED1470;
    border-radius: 100px;
    color: #ED1470 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.press-new-section .btn-load-more:hover {
    background: #ED1470;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(237, 20, 112, 0.3);
}

.press-new-section .btn-load-more:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 20, 112, 0.4);
}

.press-new-section .btn-load-more .spinner-border {
    border-color: currentColor;
    border-right-color: transparent;
}

.press-new-section .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    display: inline-block;
    vertical-align: text-bottom;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}