/* pagination */

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.custom-pagination a,
.custom-pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.custom-pagination a:hover {
    background-color: #f1f1f1;
}

.custom-pagination .active {
    background-color: #2FADA1;
    color: white;
    border-color: #2FADA1;
    font-weight: bold;
}

.custom-pagination .disabled {
    color: #aaa;
    border-color: #eee;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

/* new label */

.new-label-gradient {
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    background: linear-gradient(45deg, #FFC857, #2FADA1);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite, pulse 1.5s infinite;
    /* text-transform: uppercase; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* news details */

/* Isolate text editor content from global styles */
.text-editor-content {
    isolation: isolate;
}

.text-editor-content>* {
    all: revert;
}

/* Ensure lists are visible */
.text-editor-content ul,
.text-editor-content ol {
    display: block !important;
    list-style-position: outside !important;
    margin: 16px 0 !important;
    padding-left: 40px !important;
}

.text-editor-content ul {
    list-style-type: disc !important;
}

.text-editor-content ol {
    list-style-type: decimal !important;
}

.text-editor-content li {
    display: list-item !important;
    margin: 4px 0 !important;
}

.news-content {
    margin-top: 0;
    color: #1e1e1e;
    font-size: 0.9rem;
    font-weight: 400;
}

/* news list */

.news-bx {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.card-con {
    flex: 1 1 auto;
    /* padding: 2px; */
}

.card-img {
    flex-shrink: 0;
    /* image does not shrink */
    position: relative;
}

.list-img {
    width: 100%;
    /* fill container width */
    height: 157px;
    object-fit: cover;
}

.hed {
    font-size: 16px;
    font-weight: 600;
}

/* news details */

.newsimg {
    width: 813px;
    height: 499px;
}

/* news gallery */

.news-gallery .galimg {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.news-gallery .galimg img.list-img {
    width: 100%;
    height: 180px;
    /* uniform thumbnail size */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* home - recent news slider */

/* Swiper news cards - fixed title height, uniform card height */
.newsSwiper .news-bx {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    /* fill swiper-slide */
}

.newsSwiper .news-bx .card-con {
    /* Fixed height to accommodate 2 lines */
    height: 50px;
    /* adjust based on font-size and line-height */
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 5px 8px;
}

.newsSwiper .news-bx .card-con p.hed {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;

    /* truncate after 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newsSwiper .news-bx .card-img {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    height: 157px;
    /* fixed image height */
    overflow: hidden;
    border-radius: 8px;
    margin-top: 5px;
}

.newsSwiper .news-bx .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* whats new */

/* Make accordion open/close instantly */
.accordion .accordion-collapse {
    transition: none !important;
}
