
.article-slider {
    border: 7px solid #eee;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.slider-counter {
    text-align: center;
    margin-top: 10px;
}

/* Arrow buttons base */
.article-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;        /* square */
    font-size: 28px;         /* large arrow */
    font-weight: bold;
    line-height: 0px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9;
    transition: background 0.2s ease, opacity 0.2s ease;
}

/* Left arrow */
.article-slider .slider-arrow.prev {
    left: 0;
}

/* Right arrow */
.article-slider .slider-arrow.next {
    right: 0;
}

/* Hover effect */
.article-slider .slider-arrow:hover {
    background: #111;
    opacity: 1;
}

/* Remove focus outline */
.article-slider .slider-arrow:focus {
    outline: none;
}

.slide {
    position: relative;
}

.slide-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    margin: 0;
    padding: 12px 16px;
    background: rgba(255,0,0,0.7) !important;
    color: #fff;
    box-sizing: border-box;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.slide-title a:hover {
    text-decoration: underline;
}

/* Pagination container */


.slider-pagination {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    margin: 0;
}


.slider-pagination .pager {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 0px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
    transition: background 0.2s ease;
}

/* Active state */
.slider-pagination .pager.active {
    background: #c00;
    color: #fff;
}

/* Hover */
.slider-pagination .pager:hover {
    background: #000;
}

/* Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Item */
.featured-item {
    display: block;
}

.featured-item.hidden {
    display: none;
}

/* Image */
.featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Title */
.featured-title {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.4;
}

/* Limit title to 3 lines */
.featured-title a {
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Load more */
.featured-loadmore-wrap {
    text-align: center;
    margin-top: 25px;
}

.featured-loadmore {
    padding: 10px 22px;
    background: #c00;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.featured-date {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Joomla icon alignment */
.featured-date .icon-clock {
    font-size: 12px;
    opacity: 0.8;
}

.clock-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: #888;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 11 11A11.013 11.013 0 0 0 12 1Zm0 20a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Zm.5-14h-1v6l5.25 3.15.5-.85-4.75-2.8Z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}


@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout */
.newsflash-layout {
    margin-bottom: 30px;
}

/* LEFT */
.newsflash-lead img {
    width: 100%;
    margin-bottom: 12px;
}

.newsflash-lead .newsflash-title {
    font-size: 22px;
    margin: 10px 0 5px;
}

.newsflash-lead .newsflash-intro {
    font-size: 14px;
    color: #555;
}

/* RIGHT */
.newsflash-list .newsflash-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.newsflash-thumb {
    flex: 0 0 50%;
}

.newsflash-thumb img {
    width: 100%;
    object-fit: cover;
}

.newsflash-content {
    flex: 1;
}

.newsflash-content h4 {
    font-size: 14px;
    margin: 0 0 4px;
}

/* Date */
.newsflash-date {
    font-size: 12px;
    color: #888;
}
/* Line clamp utility */
.newsflash-intro {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Lead article: 3 lines */
.newsflash-intro.lead-intro {
    -webkit-line-clamp: 3;
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
}

/* Side articles: 2 lines (or change to 3 if you want) */
.newsflash-intro.side-intro {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}


@media (max-width: 991px) {
    .newsflash-list .newsflash-item {
        flex-direction: column;
    }

    .newsflash-thumb {
        flex: 0 0 auto;
    }
}

.article-list-item {
    gap: 12px;
    margin-bottom: 12px;
}

.article-list-thumb img {
    width: 80px;
    height: auto;
    display: block;
}

.article-list-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-date {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsflash-full .newsflash-lead img {
    border-radius: 0;
}

.newsflash-full .newsflash-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}


/* Magazine card container */
.magazine-card {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Image */
.magazine-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay (hidden by default) */
.magazine-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 0, 0, 0.75); /* red overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Title */
.magazine-title {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Hover state */
.magazine-card:hover .magazine-overlay {
    opacity: 1;
    visibility: visible;
}

.article-list-item {
    display: flex;
    gap: 15px; /* optional spacing */
}

.article-list-thumb {
    flex: 0 0 40%;
    max-width: 40%;
}

.article-list-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.article-list-content {
    flex: 0 0 60%;
    max-width: 60%;
}






