.post-type-archive-announcements #main-content .ctm_course_details {
    background: #efefef;
}

.agency-announcements-wrap {
    width: 100%;
    margin-bottom: 40px;
    font-family: inherit;
    margin-top: 20px;
    /* background-color: #e4e0e7; */
}

.announcements-title {
    font-family: "Tobias", sans-serif;
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 600;
    color: #333;
}

.view-all-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.view-all-link:hover {
    color: #000;
}

.announcements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.announcement-row {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Allow normal tiles to wrap if more than 3 */
}

.row-full {
    flex-direction: column;
}

/* Announcements Tile - Base Styling */
.announcements-tile {
    background: #ffffff;
    /* Light grey backdrop from mockup */
    border-radius: 16px;
    padding: 24px;
    border: none;
    transition: box-shadow 0.3s ease;
    margin-bottom: 0;
    /* Override default post margins */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.announcements-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.announcements-tile.normal-width {
    flex: 0 0 calc(33.333% - 13.5px);
    max-width: calc(33.333% - 13.5px);
    width: calc(33.333% - 13.5px);
    min-width: 250px;
}

.announcements-tile.full-width {
    flex: 0 0 100%;
    width: 100%;
}

.tile-inner {
    display: grid;
    gap: 15px 24px;
    flex: 1;
    /* Fill the tile height */
}

/* Full Width (Top Item) Layout */
.full-width .tile-inner {
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "img title"
        "img excerpt"
        "img footer";
}

/* If no image, title spans full line for full-width */
.full-width.no-image .tile-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "title"
        "excerpt"
        "footer";
}

.full-width.no-image .tile-image {
    display: none;
}

/* Normal Width (Bottom Items) Layout */
.normal-width .tile-inner {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "img title"
        "img excerpt"
        "spacer spacer"
        "footer footer";
    gap: 12px 15px;
}

/* If no image, title spans full line */
.normal-width.no-image .tile-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "title"
        "excerpt"
        "spacer"
        "footer";
}

.normal-width.no-image .tile-image {
    display: none;
}

.normal-width.no-image .tile-image+.tile-title {
    min-height: 60px;
}

.tile-image {
    grid-area: img;
    overflow: hidden;
    border-radius: 12px;
}

.full-width .tile-image {
    height: 180px;
}

.normal-width .tile-image {
    height: 60px;
    width: 60px;
}

.tile-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.tile-title {
    grid-area: title;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0;
    color: #1a1a1a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.normal-width .tile-title {
    font-size: 17px;
    align-self: flex-start;
    max-width: 100%;
}

.tile-excerpt {
    grid-area: excerpt;
    max-width: 100%;
}

.tile-excerpt p {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


.tile-footer {
    grid-area: footer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-link {
    color: #EB5A3E;
    font-weight: 500;
    text-decoration: underline;
    font-size: 14px;
}

.tile-date {
    font-size: 12px;
    color: #8c8c8c;
}

.agency-announcements-wrap .announcements-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {

    .announcements-grid,
    .announcement-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .announcements-tile.normal-width,
    .announcements-tile.full-width,
    .row-normal .announcements-tile.normal-width,
    .row-full .announcements-tile.full-width {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    /* Force all items into the same layout */
    .tile-inner,
    .full-width .tile-inner,
    .normal-width .tile-inner,
    .normal-width.no-image .tile-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }

    .tile-image,
    .full-width .tile-image,
    .normal-width .tile-image {
        grid-area: auto;
        height: 180px !important;
        width: 100% !important;
        flex: 0 0 auto;
        display: block !important;
    }

    .tile-title {
        grid-area: auto;
        font-size: 18px;
        align-self: stretch !important;
        max-width: 100%;
        width: 100%;
    }

    .tile-excerpt {
        display: block !important;
        /* Show excerpt on mobile for consistent look */
        grid-area: auto;
    }

    .tile-footer {
        grid-area: auto;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .announcements-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .post-type-archive-announcements .agency-announcements-wrap {
        /* padding: 0 15px !important; */
        margin-top: 75px;
    }

    /* 
    body.home .container-fluid>.container.ctm_section_wrapper {
        padding-inline: 4px;
    } */

    body.single .new_details_main_wrap_news,
    body.single-announcements .new_details_main_wrap_announcements {
        padding-block: 50px 113px !important;
    }
}

@media screen and (max-width: 767px) {

    .tile-excerpt p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

}

/* ==========================================================================
   Announcements Archive Page Styles
   ========================================================================== */





/* Load More Button Styling */
.load-more-wrapper {
    margin-top: 50px;
    margin-bottom: 80px;
}

/* News-style Load More Button Styling */
.news_load_more {
    color: #000 !important;
    background-color: transparent !important;
    transition: none !important;
}

.news_load_more:hover {
    color: #000 !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

#load-more-spinner {
    width: 3rem;
    height: 3rem;
    /* margin: 20px auto; */
}

/* Ensure consistent spacing in archive grid */
.agency-announcements-archive .announcements-grid {
    gap: 20px;
}

/* ==========================================================================
   Announcements Single Page Styles
   ========================================================================== */

/* ==========================================================================
   Common Detail Page Redesign (2026)
   Covers: News, Announcements, Partner Services, Standard Pages
   ========================================================================== */

.y26-common-page-detail {
    width: 100%;
}

.common-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column; /* Ensure main axis is vertical */
    align-items: center;    /* Center horizontally */
    justify-content: center; /* PERFECT vertical centering */
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    padding: 0 !important; /* Ensure no padding interferes */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content-single-page {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto; /* Let the parent center the block */
}

.hero-title-detail {
    font-family: "HelveticaNow", "Arial", "Helvetica", sans-serif;
    font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
    font-weight: 300;
    line-height: 1.25;
    font-variant-numeric: lining-nums;
    color: #fff !important;
    margin: 0 !important; /* Force reset all margins */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.hero-meta {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-meta .entry-meta > span,
.hero-meta .entry-meta > span a {
    color: #fff !important;
}

.common-section-header {
    max-width: 1140px;
    margin: 30px auto 15px;
    padding: 0 15px;
}

.section-top-title {
    font-size: 24px;
    font-weight: 700;
    color: #282828;
    margin: 0;
}

/* Content Region Styles (Core Typography) */
.contentRegion {
    --textsize-body: 1rem;
    --textsize-h1: clamp(2.5rem, calc(2rem + 1vw), 3.5rem);
    --textsize-h2: 1.66rem;
    --textsize-h3: 1.2rem;
    --textsize-h3-tablet: 2rem;
    --textsize-h4: 1rem;
    --textsize-input: 1rem;
    --textsize-map-popup: .8rem;
    --textsize-menu: 1rem;
    --textsize-small: 11px;

    line-height: 1.6;
    color: #333;
}

/* Ensure contentRegion respects inherited color on dark backgrounds */
.is-dark-bg .contentRegion,
.is-dark-bg .contentRegion h1,
.is-dark-bg .contentRegion h2,
.is-dark-bg .contentRegion h3,
.is-dark-bg .contentRegion h4,
.is-dark-bg .contentRegion h5,
.is-dark-bg .contentRegion h6 {
    color: inherit !important;
}

.contentRegion big {
    font-size: larger;
}

.contentRegion p:first-child {
    margin-top: 0;
}

.contentRegion p, 
.contentRegion ul, 
.contentRegion ol, 
.contentRegion pre, 
.contentRegion table, 
.contentRegion blockquote {
    margin: 0.5rem 0;
}

.contentRegion p+h1, .contentRegion p+h2, .contentRegion p+h3, .contentRegion p+h4, .contentRegion p+h5, .contentRegion p+h6, 
.contentRegion ul+h1, .contentRegion ul+h2, .contentRegion ul+h3, .contentRegion ul+h4, .contentRegion ul+h5, .contentRegion ul+h6, 
.contentRegion ol+h1, .contentRegion ol+h2, .contentRegion ol+h3, .contentRegion ol+h4, .contentRegion ol+h5, .contentRegion ol+h6, 
.contentRegion pre+h1, .contentRegion pre+h2, .contentRegion pre+h3, .contentRegion pre+h4, .contentRegion pre+h5, .contentRegion pre+h6, 
.contentRegion table+h1, .contentRegion table+h2, .contentRegion table+h3, .contentRegion table+h4, .contentRegion table+h5, .contentRegion table+h6, 
.contentRegion blockquote+h1, .contentRegion blockquote+h2, .contentRegion blockquote+h3, .contentRegion blockquote+h4, .contentRegion blockquote+h5, .contentRegion blockquote+h6 {
    margin-top: 2rem;
}

.contentRegion h1, 
.contentRegion h2, 
.contentRegion h3, 
.contentRegion h4, 
.contentRegion h5, 
.contentRegion h6 {
    margin: 1.25rem 0 0.5rem;
    color: #1a1a1a;
}

.contentRegion h3, 
.contentRegion .h3 {
    font-family: "HelveticaNow","Arial","Helvetica",sans-serif;
    font-size: var(--textsize-h3);
    font-weight: 700;
    line-height: 1.4em;
}

.contentRegion h4, .contentRegion h5, .contentRegion h6, .contentRegion .h4, .contentRegion .h5, .contentRegion .h6 {
    font-family: "HelveticaNow","Arial","Helvetica",sans-serif;
    font-size: var(--textsize-h4);
    font-weight: 700;
    line-height: 1.4em;
}

.contentRegion h5, .contentRegion h6, .contentRegion .h5, .contentRegion .h6 {
    text-transform: uppercase;
    font-size: var(--textsize-small);
    font-weight: 700;
}

.contentRegion blockquote > :last-child {
    margin-bottom: 0;
}

.contentRegion blockquote > :first-child {
    margin-top: 0;
}

.contentRegion a {
    color: var(--agency-primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.contentRegion a:hover {
    text-decoration: underline;
    color: var(--agency-primary-color);
}

.contentRegion ul:not([class]), 
.contentRegion ol:not([class]) {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.contentRegion ul:not([class]) > li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.contentRegion ol:not([class]) > li {
    margin-bottom: 0.5rem;
    list-style-type: decimal;
}

.contentRegion img {
    height: auto !important;
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 20px 0;
}

.contentRegion blockquote {
    padding: 0 0 0 1.25rem;
    margin: 1.5rem 0;
    border-left: 0.25rem solid var(--agency-primary-color);
    font-family: "HelveticaNow", "Arial", "Helvetica", sans-serif;
    font-style: italic;
    color: #555;
}

.contentRegion .block.bullet {
    padding-left: 1rem;
    text-indent: -1rem;
}

.contentRegion .block.bullet:before {
    content: "\00B7";
    display: inline-block;
    width: 0.66rem;
    color: var(--agency-primary-color);
    text-indent: 0;
}

/* Mobile Adjustments for Redesign */
@media (max-width: 767px) {
    .common-hero-banner {
        height: 250px;
    }

    .hero-title-detail {
        font-size: 28px;
    }

    .section-top-title {
        font-size: 20px;
    }

    .contentRegion h3, 
    .contentRegion .h3 {
        font-size: 20px;
    }
}