.elementor-20 .elementor-element.elementor-element-68e6a7d{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--z-index:10;}.elementor-20 .elementor-element.elementor-element-68e6a7d:not(.elementor-motion-effects-element-type-background), .elementor-20 .elementor-element.elementor-element-68e6a7d > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#32A54D;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-20 .elementor-element.elementor-element-0ed3675{text-align:center;}.elementor-20 .elementor-element.elementor-element-0ed3675 .elementor-heading-title{font-family:"Alexandria", Sans-serif;font-size:30px;font-weight:900;line-height:45px;color:#FFFFFF;}.elementor-20 .elementor-element.elementor-element-be35a1f{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}/* Start custom CSS for shortcode, class: .elementor-element-f8fe3c6 *//* Card Layout */
.media-news-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: flex-start; /* Or 'center', 'space-between' */
    margin-bottom: 20px; /* Space below the list of cards */
}

.media-news-item { /* This is our main card element */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures image with border-radius doesn't poke out */
    background-color: lightgreen;
    width: calc(33.333% - 14px); /* For 3 cards per row, adjust based on gap */
    /* For 2 cards: calc(50% - 10px) */
    /* For 4 cards: calc(25% - 15px) */
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Ensures space if not handled by gap for last row */
}

.media-news-columns-stack { /* This div stacks image and title vertically */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows title section to push down if card has fixed height */
}

.media-news-image-section a,
.media-news-image-section img {
    display: block;
    width: 100%;   /* Image takes full width of its container */
    height: auto;  /* Maintain aspect ratio */
    /* Optional: for uniform image area height, e.g., for a consistent look */
    /* height: 200px; */
    /* object-fit: cover; */ /* Use with fixed height to cover area without distortion */
}
.media-news-image-section {
    line-height: 0; /* Remove any extra space below the image if it's inside a link */
    background-color: #f0f0f0; /* Light background for image area */
}

.media-news-title-section {
    padding: 10px 15px 15px; /* Padding for the title area (Top, Right/Left, Bottom) */
    text-align: left; /* Or 'center' if you prefer */
    flex-grow: 1; /* Helps if card heights need to be uniform and title content varies */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center title if you have fixed height cards */
}

.media-news-title-section h3 {
    font-size: 16px !important; /* Title font size - !important might be needed */
    margin: 0; /* Remove default h3 margins */
    line-height: 1.4;  /* Adjust for readability */
    font-weight: bold; /* Or 'normal' */
}

.media-news-title-section h3 a {
    text-decoration: none;
    color: black; /* Darker color for title */
    display: block; /* Make link fill the h3 for easier clicking */
}

.media-news-title-section h3 a:hover {
    color: #0073aa; /* WordPress blue, or your theme's link hover color */
    text-decoration: underline;
}

/* Responsive Card Layout Adjustments */
@media (max-width: 992px) { /* Tablets */
    .media-news-item {
        width: calc(50% - 10px); /* 2 cards per row */
    }
}

@media (max-width: 768px) { /* Mobile */
    .media-news-list-container {
        gap: 15px; /* Slightly smaller gap on mobile */
    }
    .media-news-item {
        width: 100%; /* Full width for single card per row */
    }
    .media-news-title-section h3 {
        font-size: 14px !important; /* Slightly larger on mobile for readability */
    }
}

/* Pagination Styles */
.media-news-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    clear: both; /* Ensure it's below floated elements if any */
}

.media-news-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Center the list items if text-align: center on parent */
}

.media-news-pagination li {
    display: inline-block; /* Arrange page numbers horizontally */
    margin: 0 2px;
}

.media-news-pagination a.page-numbers,
.media-news-pagination span.page-numbers { /* span is used for 'current' and 'dots' */
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa; /* Theme link color */
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.media-news-pagination a.page-numbers:hover,
.media-news-pagination a.page-numbers:focus {
    background-color: #f0f0f0; /* Light hover background */
    border-color: #ccc;
}

.media-news-pagination span.page-numbers.current {
    background-color: #0073aa; /* Theme primary color */
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.media-news-pagination span.page-numbers.dots {
    border: none;
    background: none;
    padding: 8px 4px;
}

/* PDF Modal Styles */
.pdf-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top of everything, very high z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* The modal itself shouldn't scroll, iframe will */
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    -webkit-backface-visibility: hidden; /* Fix potential rendering glitches */
}

.pdf-modal-content {
    background-color: #fff; /* White background for the content box */
    margin: 5vh auto; /* Vertical margin and centered horizontally */
    padding: 0; /* No padding, iframe will fill */
    border: 1px solid #555;
    width: 90%; /* Responsive width */
    height: 90vh; /* Responsive height */
    max-width: 1100px; /* Max sensible width for PDF viewer */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    border-radius: 5px; /* Optional rounded corners */
    overflow: hidden; /* Clip iframe if it tries to exceed border-radius */
}

.pdf-modal-close {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: -5px;      /* Position slightly outside the box */
    right: -5px;
    font-size: 24px; /* Adjust size */
    font-weight: bold;
    width: 36px;     /* Square button */
    height: 36px;
    line-height: 34px; /* Center the 'x' */
    text-align: center;
    border-radius: 50%; /* Circular button */
    cursor: pointer;
    z-index: 100001; /* Ensure close button is above iframe */
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
    border: 2px solid #fff;
}

.pdf-modal-close:hover,
.pdf-modal-close:focus {
    background-color: rgba(200, 0, 0, 0.9); /* Brighter red on hover */
    text-decoration: none;
    transform: scale(1.1); /* Slight grow effect on hover */
}

#pdfModalFrame { /* ID for the iframe */
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}

/* Optional: Prevent body scroll when modal is open */
body.pdf-modal-open {
    overflow: hidden;
}/* End custom CSS */