/**
 * Press Releases Plugin Styles
 */

:root {
    --press-release-primary: #004a87;
    --press-release-text: #333;
    --press-release-text-light: #666;
    --press-release-bg: #f2f2f2;
    --press-release-card-bg: #fff;
    --press-release-border: #e0e0e0;
    --press-release-radius: 8px;
    /* Rounded corners as shown in the mockup */
    --press-release-transition: all 0.3s ease;
}

/* Prevent horizontal scroll globally to allow edge-to-edge bleed */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
    overscroll-behavior-x: none;
}

/* Hide the horizontal scrollbar track in webkit browsers */
::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0;
}

.press-releases-carousel-section {
    max-width: none !important;
    width: auto !important;
    margin-right: calc(50% - 50vw);
    position: relative;
    z-index: 1;
    contain: paint;
}

/* Card Styling */
.press-release-card {
    background: #f2f2f2;
    border-radius: var(--press-release-radius);
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    transition: var(--press-release-transition);
}

.press-release-content {
    padding: 40px 30px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.press-release-title {
    color: var(--press-release-primary);
    font-size: 20px !important;
    margin: 0px 0px 15px 0px !important;
    line-height: 25px !important;
    font-weight: 600;
}

h3.press-release-title {
    margin-bottom: 36px !important;
}

.press-release-excerpt p {
    margin-bottom: 0px;
}

.press-release-excerpt {
    font-size: 16px;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.press-release-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0px;
}

.press-release-date {
    font-size: 16px;
    color: #8B8B8B;
}

.read-more-link {
    color: #0A4480;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-link:hover {
    color: #0A4480;
}

.read-more-link .btn-chevron {
    margin-left: 1px;
    display: inline-flex;
    align-items: center;
    transition: margin-left 0.2s ease;
    font-weight: bold;
    margin-top: 4px;
    
}

.btn-chevron i.icon-right-arrow1 {
    -webkit-text-stroke: 1.5px currentColor;
}

.btn-chevron i {
    font-weight: bold !important;
}

/* Swiper Container Specifics */
.press-releases-swiper-container {
    padding: 10px 0 60px !important;
    position: relative;
    margin-right: 0 !important;
    width: 100% !important;
}

@media (max-width: 1032px) {
    .press-releases-carousel-section {
        margin-right: 0;
        overflow-x: visible;
    }

    .press-releases-swiper-container {
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* No fade overlay for the partially visible 4th card to keep it clean and visible */

.swiper-slide {
    height: auto !important;
    display: flex;
}

.press-releases-carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 40px;
    padding: 0 calc(50vw - 50%) 0 0px;
    padding-right: 60px !important;
}

@media (max-width: 1032px) {
    .press-releases-carousel-nav {
        padding-right: 0px !important;
    }
	.press-releases-archive-container{
		padding:0px 0px!important;
	}
}

/* See All Button Styling */
.map-learn-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #0A4480;
    border-style: solid;
    border-width: 3px;
    border-color: #0A4480;
    border-radius: 20px;
    padding: 11px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px !important;
    transition: all 0.3s ease;
    gap: 12px;
    letter-spacing: -1px;
}

/*
.map-learn-btn:hover {
    background: #0A4480 !important;
    color: #fff !important;
}
    */

.map-learn-btn .btn-chevron svg path {
    stroke: #0A52B9;
    transition: stroke 0.3s ease;
}

/*
.map-learn-btn:hover .btn-chevron svg path {
    stroke: #fff !important;
}
*/
/* Swiper Navigation Wrapper */
.swiper-navigation-wrapper {
    display: flex;
    gap: 30px;
    position: relative;
    width: 150px;
    height: 30px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    width: 60px !important;
    height: 30px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--press-release-transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
}

.swiper-button-prev {
    color: #CBCBCB !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='24' viewBox='0 0 60 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 12H2M2 12L12 2M2 12L12 22' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.swiper-button-next {
    color: #CBCBCB !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='24' viewBox='0 0 60 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12H58M58 12L48 2M58 12L48 22' stroke='%23004a87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.swiper-button-next:hover {
    opacity: 1;
    z-index: 12;
}

.swiper-button-prev:hover {
    opacity: 1;
    z-index: 12;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='24' viewBox='0 0 60 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 12H2M2 12L12 2M2 12L12 22' stroke='%23004a87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Swiper Pagination - Hidden by default on Desktop/Tablet */
.press-releases-swiper-container .swiper-pagination {
    display: none;
}

/* Mobile Resolution Styles (<= 500px) */
@media (max-width: 500px) {
    .press-releases-swiper-container {
        padding-bottom: 60px !important;
    }

    .press-releases-swiper-container .swiper-pagination {
        display: flex !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin: 30px auto 30px !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 11;
        width: auto !important;
    }

    /* Style the bullets */
    .press-releases-swiper-container .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        background: #d8d8d8 !important;
        opacity: 1 !important;
        border-radius: 50% !important;
        margin: 0 !important;
        transition: all 0.3s ease !important;
        cursor: pointer;
    }

    /* Style the active bullet */
    .press-releases-swiper-container .swiper-pagination-bullet-active {
        width: 32px !important;
        height: 2px !important;
        background: var(--press-release-primary) !important;
        border-radius: 2px !important;
    }

    /* Hide arrows and center navigation layout */
    .swiper-navigation-wrapper {
        display: none !important;
    }

    .press-releases-carousel-nav {
        margin-top: 20px !important;
        padding: 0 !important;
        justify-content: center !important;
        display: flex !important;
        width: 100% !important;
    }

    .see-all-container {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
    }
}

/* Archive Page Grid Layout and Load More Styles */
.press-releases-archive-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 !important;
}

.press-releases-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 50px;
}

.press-releases-archive-grid .press-release-card {
    height: 100%;
}

.press-releases-archive-grid .press-release-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.press-releases-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
}

#press-releases-load-more-btn {
    cursor: pointer;
    border: 3px solid #0A4480;
    background: #fff;
    color: #0A4480;
    border-radius: 20px;
    padding: 11px 35px;
    font-weight: 700;
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    letter-spacing: -1px;
}

/*#press-releases-load-more-btn:hover {
    background: #0A4480 !important;
    color: #fff !important;
}
    */

#press-releases-load-more-btn .btn-chevron svg path {
    stroke: #0A52B9;
    transition: stroke 0.3s ease;
}

/*
#press-releases-load-more-btn:hover .btn-chevron svg path {
    stroke: #fff !important;
}
*/
@media (max-width: 1032px) and (min-width: 769px) {
    .press-releases-archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .press-releases-archive-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .press-release-content {
        padding: 30px 20px 20px 20px !important;
    }

    .press-release-title {
        font-size: 18px !important;
        line-height: 22px !important;
    }

    h3.press-release-title {
        margin-bottom: 20px !important;
    }

    .press-release-excerpt {
        margin-bottom: 25px !important;
        font-size: 15px !important;
    }
}

/* Single Press Release Page Container Width overrides */
body.single-press-release {
    width: 100% !important;
    max-width: 100% !important;
}

body.single-press-release .grid-container {
    max-width: 1920px !important;
}