/**
 * News 24 Shortcodes Styles
 * Matches the design of news24-680.com
 * Author: Web Design Mike
 * Version: 1.2.0
 * Last Updated: March 18, 2026
 * 
 * Changelog:
 * 1.2.0 - Overlapping card layout for post list, black/maroon color scheme
 * 1.1.0 - Added overlay cards for featured section, post list styles
 * 1.0.0 - Initial release with grid, sidebar, pagination styles
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --news24-primary: #d32f2f;
    --news24-primary-dark: #b71c1c;
    --news24-text: #222222;
    --news24-text-light: #666666;
    --news24-text-muted: #999999;
    --news24-bg: #ffffff;
    --news24-bg-light: #f5f5f5;
    --news24-border: #e0e0e0;
    --news24-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --news24-radius: 4px;
    --news24-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --news24-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --news24-transition: 0.2s ease;
}

/* ==========================================================================
   Post Grid
   ========================================================================== */

.news24-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.news24-grid--cols-1 {
    grid-template-columns: 1fr;
}

.news24-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.news24-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news24-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .news24-grid--cols-4,
    .news24-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news24-grid--cols-4,
    .news24-grid--cols-3,
    .news24-grid--cols-2 {
        grid-template-columns: 1fr;
    }

    .news24-card__title {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .news24-card__meta {
        font-size: 12px !important;
    }

    .news24-card__category {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }

    .news24-card__content {
        padding: 12px !important;
    }
}

/* ==========================================================================
   Post Card
   ========================================================================== */

.news24-card {
    background: var(--news24-bg);
    border-radius: var(--news24-radius);
    overflow: hidden;
    box-shadow: var(--news24-shadow);
    transition: box-shadow var(--news24-transition), transform var(--news24-transition);
}

.news24-card:hover {
    box-shadow: var(--news24-shadow-hover);
    transform: translateY(-2px);
}

.news24-card__image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.news24-card__category-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #fff !important;
    border-radius: 2px;
    z-index: 2;
}

.news24-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--news24-transition);
}

.news24-card:hover .news24-card__image {
    transform: scale(1.05);
}

.news24-card__content {
    padding: 16px;
}

.news24-card__category {
    display: inline-block;
    background: var(--news24-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background var(--news24-transition);
}

.news24-card__category:hover {
    background: var(--news24-primary-dark);
    color: #ffffff;
}

.news24-card__title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0;
    color: #222222 !important;
}

.news24-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--news24-transition);
}

.news24-card__title a:hover {
    color: var(--news24-primary);
}

.news24-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #666666 !important;
}

.news24-card__author {
    font-weight: 600;
    color: var(--news24-text-light);
}

.news24-card__separator {
    color: var(--news24-border);
}

.news24-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--news24-text-muted);
    text-decoration: none;
    margin-left: auto;
    transition: color var(--news24-transition);
}

.news24-card__comments:hover {
    color: var(--news24-primary);
}

.news24-card__comments svg {
    width: 14px;
    height: 14px;
}

/* Small card variant */
.news24-card--small .news24-card__image-link {
    aspect-ratio: 16 / 9;
}

.news24-card--small .news24-card__content {
    padding: 12px;
}

.news24-card--small .news24-card__title {
    font-size: 14px;
    margin-bottom: 8px;
}

.news24-card--small .news24-card__meta {
    font-size: 11px;
}

/* Minimal card variant (image + category overlay + title only) */
.news24-card--minimal .news24-card__content {
    padding: 10px 0;
}

.news24-card--minimal .news24-card__title {
    margin-bottom: 0;
    font-size: 14px;
}

.news24-card--minimal .news24-card__title a {
    color: #222 !important;
    text-decoration: none !important;
}

.news24-card--minimal .news24-card__title a:hover {
    color: #666 !important;
}

/* ==========================================================================
   Featured Block - Overlay Style (matches News24-680 homepage)
   ========================================================================== */

.news24-featured {
    margin-bottom: 32px;
    padding: 0;
    border: none;
    outline: none;
}

.news24-featured__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2px;
    align-items: stretch;
}

.news24-featured__main {
    display: flex;
    flex-direction: column;
}

.news24-featured__main .news24-overlay-card {
    flex: 1;
    height: 100%;
}

.news24-featured__side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

/* Overlay Card Styles */
.news24-overlay-card {
    position: relative;
    overflow: hidden;
    background: #000;
}

.news24-overlay-card__link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.news24-overlay-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news24-overlay-card:hover .news24-overlay-card__image {
    transform: scale(1.05);
}

.news24-overlay-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.news24-overlay-card__comments {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}

.news24-overlay-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 10;
    pointer-events: none;
}

.news24-overlay-card__content a {
    pointer-events: auto;
}

.news24-overlay-card__category {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 5;
    transition: opacity 0.2s ease;
}

.news24-overlay-card__category:hover,
.news24-overlay-card__category:focus,
.news24-overlay-card__category:active {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0.9;
}

.news24-overlay-card__title {
    font-family: var(--news24-font);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.news24-overlay-card__title a {
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.news24-overlay-card__title a:hover,
.news24-overlay-card__title a:focus,
.news24-overlay-card__title a:active {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0.9;
}

.news24-overlay-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.news24-overlay-card__author {
    font-weight: 600;
}

.news24-overlay-card__separator {
    color: rgba(255,255,255,0.5);
}

/* Large overlay card (main featured) */
.news24-overlay-card--large {
    min-height: 400px;
}

.news24-overlay-card--large .news24-overlay-card__content {
    padding: 24px;
}

.news24-overlay-card--large .news24-overlay-card__title {
    font-size: 22px;
}

/* Small overlay card (side grid) */
.news24-overlay-card--small {
    min-height: 200px;
}

.news24-overlay-card--small .news24-overlay-card__content {
    padding: 12px;
}

.news24-overlay-card--small .news24-overlay-card__category {
    font-size: 10px;
    padding: 2px 6px;
    margin-bottom: 8px;
}

.news24-overlay-card--small .news24-overlay-card__title {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .news24-featured__grid {
        grid-template-columns: 1fr 1fr;
    }

    .news24-featured__main {
        min-height: 300px;
    }

    .news24-overlay-card--large {
        min-height: 300px;
    }

    .news24-overlay-card--large .news24-overlay-card__title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news24-featured__grid {
        grid-template-columns: 1fr;
    }

    .news24-featured__side {
        grid-template-columns: repeat(2, 1fr);
    }

    .news24-overlay-card--small {
        min-height: 160px;
    }

    .news24-overlay-card--large .news24-overlay-card__title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .news24-overlay-card--small .news24-overlay-card__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .news24-overlay-card__meta {
        font-size: 11px !important;
    }

    .news24-overlay-card__category {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.news24-breadcrumbs {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--news24-border);
}

.news24-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.news24-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news24-breadcrumbs__item:not(:last-child)::after {
    content: "›";
    color: var(--news24-text-muted);
}

.news24-breadcrumbs__item a {
    color: var(--news24-text-light);
    text-decoration: none;
    transition: color var(--news24-transition);
}

.news24-breadcrumbs__item a:hover {
    color: var(--news24-primary);
}

.news24-breadcrumbs__current {
    color: var(--news24-text);
    font-weight: 600;
}

/* ==========================================================================
   Subcategory Navigation
   ========================================================================== */

.news24-subcategory-nav {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--news24-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.news24-subcategory-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news24-subcategory-nav__item {
    flex-shrink: 0;
}

.news24-subcategory-nav__link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--news24-text);
    background: var(--news24-bg-light);
    border: 1px solid var(--news24-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--news24-transition);
}

.news24-subcategory-nav__link:hover {
    background: var(--news24-text);
    border-color: var(--news24-text);
    color: #ffffff;
}

.news24-subcategory-nav__link--active {
    background: var(--news24-primary);
    border-color: var(--news24-primary);
    color: #ffffff;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.news24-filter-bar {
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 2px solid var(--news24-border);
}

.news24-filter-bar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news24-filter-bar__item {
    flex-shrink: 0;
}

.news24-filter-bar__link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--news24-text-light);
    text-decoration: none;
    border-radius: var(--news24-radius);
    transition: all var(--news24-transition);
}

.news24-filter-bar__link:hover {
    background: var(--news24-bg-light);
    color: var(--news24-text);
}

.news24-filter-bar__link--active {
    background: var(--news24-text);
    color: #ffffff;
}

/* ==========================================================================
   Sidebar Posts
   ========================================================================== */

.news24-sidebar-posts {
    background: var(--news24-bg);
    border: 1px solid var(--news24-border);
    border-radius: var(--news24-radius);
    overflow: hidden;
}

.news24-sidebar-posts__title {
    font-family: var(--news24-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 16px;
    background: var(--news24-bg-light);
    border-bottom: 1px solid var(--news24-border);
}

.news24-sidebar-posts__list {
    padding: 8px 0;
}

.news24-sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--news24-bg-light);
    transition: background var(--news24-transition);
}

.news24-sidebar-post:last-child {
    border-bottom: none;
}

.news24-sidebar-post:hover {
    background: var(--news24-bg-light);
}

.news24-sidebar-post__image-link {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--news24-radius);
    overflow: hidden;
}

.news24-sidebar-post__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news24-sidebar-post__content {
    flex: 1;
    min-width: 0;
}

.news24-sidebar-post__category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--news24-primary);
    text-decoration: none;
    margin-bottom: 4px;
}

.news24-sidebar-post__category:hover {
    text-decoration: underline;
}

.news24-sidebar-post__title {
    font-family: var(--news24-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.news24-sidebar-post__title a {
    color: var(--news24-text);
    text-decoration: none;
    transition: color var(--news24-transition);
}

.news24-sidebar-post__title a:hover {
    color: var(--news24-primary);
}

.news24-sidebar-post__meta {
    font-size: 11px;
    color: var(--news24-text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.news24-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--news24-border);
}

.news24-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news24-pagination .page-numbers li {
    display: inline-block;
}

.news24-pagination .page-numbers a,
.news24-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--news24-text);
    background: var(--news24-bg);
    border: 1px solid var(--news24-border);
    border-radius: var(--news24-radius);
    text-decoration: none;
    transition: all var(--news24-transition);
}

.news24-pagination .page-numbers a:hover {
    background: var(--news24-text);
    border-color: var(--news24-text);
    color: #ffffff;
}

.news24-pagination .page-numbers .current {
    background: var(--news24-primary);
    border-color: var(--news24-primary);
    color: #ffffff;
}

/* ==========================================================================
   Post List (Single Column with Overlapping Card Layout)
   Matches News24-680 homepage - white card overlaps bottom of image
   ========================================================================== */

/* Override Beaver Builder container backgrounds */
.fl-module-html:has(.news24-post-list),
.fl-module-html:has(.news24-post-list) .fl-module-content,
.fl-col:has(.news24-post-list),
.fl-col-content:has(.news24-post-list),
.fl-row:has(.news24-post-list),
.fl-row-content:has(.news24-post-list),
div:has(> .news24-post-list) {
    background: transparent !important;
    background-color: transparent !important;
}

.news24-post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
}

.news24-post-list__item {
    position: relative;
    background: #ffffff !important;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Image wrapper - no overflow hidden so card can overlap */
.news24-post-list__image-wrap {
    position: relative;
    overflow: visible;
}

.news24-post-list__image-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.news24-post-list__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news24-post-list__item:hover .news24-post-list__image {
    transform: scale(1.03);
}

/* Dark bar at bottom of image - now using border-top on content instead */
.news24-post-list__bar {
    display: none;
}

/* Content card that overlaps the image */
.news24-post-list__content {
    position: relative;
    background: #ffffff !important;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 24px 24px;
    border-top: 4px solid #1a1a1a;
    z-index: 2;
}

.news24-post-list__title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0;
}

.news24-post-list__title a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color var(--news24-transition);
}

.news24-post-list__title a:hover {
    color: #791621 !important;
}

.news24-post-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    margin-bottom: 16px;
}

.news24-post-list__category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    background: #791621;
}

.news24-post-list__category:hover {
    opacity: 0.9;
}

.news24-post-list__author {
    font-weight: 600;
    color: #1a1a1a !important;
}

.news24-post-list__separator {
    color: #999 !important;
}

.news24-post-list__date {
    color: #666 !important;
}

.news24-post-list__comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: background var(--news24-transition);
}

.news24-post-list__comments:hover {
    background: #e0e0e0;
}

.news24-post-list__comments svg {
    flex-shrink: 0;
}

.news24-post-list__excerpt,
.news24-post-list .news24-post-list__excerpt,
.news24-post-list__item .news24-post-list__excerpt,
.news24-post-list__content .news24-post-list__excerpt,
p.news24-post-list__excerpt {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #222222 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

/* Override any link color inheritance */
.news24-post-list__excerpt a,
.news24-post-list__content a:not(.news24-post-list__category) {
    color: #222222 !important;
    text-decoration: none !important;
}

/* Desktop: meta rows inline, comments pushed right */
.news24-post-list__meta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news24-post-list__meta-row:last-child {
    flex: 1;
    justify-content: flex-start;
}

.news24-post-list__meta-row:last-child .news24-post-list__comments {
    margin-left: auto;
}

@media (max-width: 768px) {
    .news24-post-list__title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .news24-post-list__content {
        margin-top: 0;
        padding: 12px 16px 16px;
    }

    .news24-post-list__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news24-post-list__meta-row {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .news24-post-list__meta,
    .news24-post-list__author,
    .news24-post-list__date {
        font-size: 12px !important;
    }

    .news24-post-list__category {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }

    .news24-post-list__excerpt {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .news24-post-list__comments {
        margin-left: 0;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   Related Articles
   ========================================================================== */

.news24-related {
    margin-top: 48px;
}

.news24-related__title {
    font-family: var(--news24-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--news24-primary);
    display: inline-block;
}

.news24-related__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.news24-related__tab {
    font-family: var(--news24-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    color: #333 !important;
    text-decoration: none !important;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-bottom: none;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news24-related__tab:hover {
    background: #e8e8e8;
    color: #000 !important;
}

.news24-related__tab--active {
    background: #791621;
    color: #fff !important;
    border-color: #791621;
}

.news24-related__tab--active:hover {
    background: #791621;
    color: #fff !important;
}

/* ==========================================================================
   No Posts Message
   ========================================================================== */

.news24-no-posts {
    text-align: center;
    padding: 48px 24px;
    color: var(--news24-text-muted);
    font-size: 16px;
}

/* ==========================================================================
   Popular Categories
   ========================================================================== */

.news24-popular-categories {
    background: transparent !important;
    padding: 0;
}

.news24-popular-categories__title {
    display: none;
}

.news24-popular-categories__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

.news24-popular-categories__item {
    border-bottom: none;
}

.news24-popular-categories__item:last-child {
    border-bottom: none;
}

.news24-popular-categories__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    text-decoration: none !important;
    color: #fff !important;
    transition: color 0.2s ease;
}

.news24-popular-categories__link:hover {
    color: rgba(255,255,255,0.7) !important;
}

.news24-popular-categories__name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

.news24-popular-categories__count {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

/* ==========================================================================
   Mobile - Related Posts & Popular Categories
   ========================================================================== */

@media (max-width: 768px) {
    .news24-related__title {
        font-size: 14px !important;
    }

    .news24-popular-categories {
        padding: 16px;
    }

    .news24-popular-categories__title {
        font-size: 14px !important;
    }

    .news24-popular-categories__link {
        padding: 10px 0;
        font-size: 14px !important;
    }

    .news24-popular-categories__count {
        font-size: 13px !important;
    }
}

/* ==========================================================================
   Post Tags
   ========================================================================== */

.news24-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 25px 0;
}

.news24-tags__label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    padding: 6px 10px;
    border-radius: 2px;
}

.news24-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.news24-tags__tag {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff !important;
    background: #666;
    padding: 6px 10px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border-radius: 2px;
}

.news24-tags__tag:hover {
    background: #555;
    color: #fff !important;
}

/* ==========================================================================
   More Posts Button
   ========================================================================== */

.news24-more-button-wrapper {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}

.news24-more-button {
    display: inline-block;
    padding: 14px 50px;
    background: #791621;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 0;
    transition: background 0.2s ease;
}

.news24-more-button:hover,
.news24-more-button:focus {
    background: #5a1018;
    color: #fff !important;
    text-decoration: none !important;
}

.news24-more-button--back {
    background: #444;
}

.news24-more-button--back:hover,
.news24-more-button--back:focus {
    background: #333;
}

.news24-more-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Single Post Content
   ========================================================================== */

.news24-single-post {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.news24-single-post__header {
    margin-bottom: 25px;
}

.news24-single-post__category {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 2px;
    margin-bottom: 12px;
}

.news24-single-post__category:hover {
    opacity: 0.9;
    color: #fff !important;
}

.news24-single-post__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #222;
}

.news24-single-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666;
}

.news24-single-post__author {
    font-weight: 500;
}

.news24-single-post__comments-link {
    color: #666 !important;
    text-decoration: none !important;
}

.news24-single-post__comments-link:hover {
    color: #333 !important;
}

.news24-single-post__featured-image {
    margin-bottom: 25px;
}

.news24-single-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news24-single-post__content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: 100%;
    overflow: hidden;
}

.news24-single-post__content p {
    margin-bottom: 1.5em;
}

.news24-single-post__content img {
    max-width: 100%;
    height: auto;
}

.news24-single-post__content iframe,
.news24-single-post__content embed,
.news24-single-post__content video {
    max-width: 100%;
}

.news24-single-post__comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .news24-single-post__title {
        font-size: 24px;
    }
    
    .news24-single-post__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Hide visually but keep accessible for screen readers */
.news24-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Single Post Layout - Complete 2-Column Layout
   ========================================================================== */

.news24-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news24-single-layout__main {
    min-width: 0;
    overflow: hidden;
}

.news24-single-layout__sidebar {
    min-width: 0;
}

/* Categories */
.news24-single-layout__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.news24-single-layout__category {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 2px;
}

.news24-single-layout__category:hover {
    opacity: 0.9;
}

/* Title */
.news24-single-layout__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #222;
}

/* Meta */
.news24-single-layout__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.news24-single-layout__meta a {
    color: #666 !important;
    text-decoration: none !important;
}

.news24-single-layout__meta a:hover {
    color: #333 !important;
}

.news24-single-layout__separator {
    color: #ccc;
}

/* Social Share Buttons */
.news24-single-layout__share {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.news24-single-layout__share--bottom {
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news24-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.news24-share-btn:hover {
    opacity: 0.85;
}

.news24-share-btn--facebook { background: #3b5998; }
.news24-share-btn--twitter { background: #000; }
.news24-share-btn--pinterest { background: #bd081c; }
.news24-share-btn--whatsapp { background: #25d366; }

/* Featured Image */
.news24-single-layout__featured-image {
    margin-bottom: 25px;
}

.news24-single-layout__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.news24-single-layout__content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.news24-single-layout__content p {
    margin-bottom: 1.5em;
}

.news24-single-layout__content img {
    max-width: 100%;
    height: auto;
}

.news24-single-layout__content iframe,
.news24-single-layout__content embed,
.news24-single-layout__content video {
    max-width: 100%;
}

/* Post Navigation */
.news24-single-layout__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.news24-single-layout__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333 !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.news24-single-layout__nav-link:hover {
    background: #eee;
}

.news24-single-layout__nav-link--next {
    text-align: right;
    justify-content: flex-end;
}

.news24-single-layout__nav-arrow {
    font-size: 18px;
    color: #999;
}

.news24-single-layout__nav-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Author Box */
.news24-single-layout__author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin: 30px 0;
}

.news24-single-layout__author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.news24-single-layout__author-info {
    flex: 1;
}

.news24-single-layout__author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222 !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 8px;
}

.news24-single-layout__author-name:hover {
    color: #666 !important;
}

.news24-single-layout__author-bio {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Comments */
.news24-single-layout__comments {
    margin-top: 40px;
}

/* Sidebar */
.news24-single-layout__sidebar .widget {
    margin-bottom: 30px;
}

.news24-single-layout__sidebar .widget-title,
.news24-single-layout__sidebar .widgettitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #791621;
    padding: 10px 15px;
    margin: 0 0 15px 0;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .news24-single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news24-single-layout__sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .news24-single-layout {
        padding: 15px;
    }
    
    .news24-single-layout__title {
        font-size: 24px;
    }
    
    .news24-single-layout__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news24-single-layout__separator {
        display: none;
    }
    
    .news24-single-layout__nav {
        flex-direction: column;
    }
    
    .news24-single-layout__nav-link {
        min-width: 100%;
    }
    
    .news24-single-layout__author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .news24-single-layout__author-avatar {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Container Shortcodes - Flexible Row/Column Layout
   ========================================================================== */

.news24-row {
    box-sizing: border-box;
}

.news24-row * {
    box-sizing: border-box;
}

.news24-main {
    min-width: 0;
    overflow: hidden;
}

.news24-main img,
.news24-main iframe,
.news24-main video,
.news24-main embed {
    max-width: 100%;
    height: auto;
}

.news24-sidebar {
    min-width: 0;
}

.news24-sidebar .widget {
    margin-bottom: 25px;
}

.news24-sidebar .widget-title,
.news24-sidebar .widgettitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #791621;
    padding: 10px 15px;
    margin: 0 0 15px 0;
}

/* Mobile: Stack columns */
@media (max-width: 992px) {
    .news24-row {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .news24-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .news24-row {
        padding: 15px !important;
    }
}

/* ==========================================================================
   Beaver Builder Column Fix
   Add class "news24-fixed-row" to your BB row to lock columns in place
   ========================================================================== */

/* Force CSS Grid on the row's column group */
.news24-fixed-row > .fl-row-content-wrap > .fl-row-content > .fl-col-group {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 40px !important;
    align-items: start !important;
}

/* Ensure columns don't overflow */
.news24-fixed-row .fl-col {
    min-width: 0 !important;
    overflow: hidden !important;
    width: auto !important;
    max-width: none !important;
}

/* Fix for content inside columns */
.news24-fixed-row .fl-col-content {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Fix images, iframes, embeds */
.news24-fixed-row .fl-col-content img,
.news24-fixed-row .fl-col-content iframe,
.news24-fixed-row .fl-col-content video,
.news24-fixed-row .fl-col-content embed,
.news24-fixed-row .fl-col-content table {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix comment form */
.news24-fixed-row .fl-comments,
.news24-fixed-row .fl-comment-form,
.news24-fixed-row .comment-respond,
.news24-fixed-row #respond {
    max-width: 100% !important;
    overflow: hidden !important;
}

.news24-fixed-row textarea,
.news24-fixed-row input[type="text"],
.news24-fixed-row input[type="email"],
.news24-fixed-row input[type="url"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile: Stack columns */
@media (max-width: 992px) {
    .news24-fixed-row > .fl-row-content-wrap > .fl-row-content > .fl-col-group {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Sidebar goes below on mobile */
    .news24-fixed-row .fl-col:last-child {
        order: 2;
    }
}


