/* img-wrapper */

.new-card {
    position: relative;
    color: inherit;
    display: block;
    text-decoration: none;
}

.new-card:hover {
    color: inherit;
    text-decoration: none;
}

.new-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 1.5rem;
}

.new-card .visits {
    width: max-content;
    position: absolute;
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    top: 2rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #00000080;
    border: 1px solid #F8FAFC80;
    color: var(--white-1);
    padding: 0.5rem 1rem;
}

.new-card .content-wrapper {
    position: absolute;
    bottom: 1rem;
    padding: 1rem .75rem;
    width: 100%;
}

.new-card .content-wrapper .details {
    background: var(--white-1);
    padding: 1rem;
    border: 1px solid #E1EFFD;
    box-shadow: 0px 3px 8px 0px #191E220A;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new-card .content-wrapper .details .top {
    display: flex;
    gap: 0.5rem;
}

.new-card .content-wrapper .details .top .date {
    background: var(--wb-theme-primary);
    width: max-content;
    height: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: -3rem;
    color: var(--white-1);
    font-weight: bold;
}

.new-card .content-wrapper .details .top .date .day {
    font-size: 20px;
}

.new-card .content-wrapper .details .top .title {
    background: var(--wb-theme-secondary);
    padding: 1rem .75rem;
    border-radius: 0.75rem;
    width: 100%;
}

.new-card .content-wrapper .details .top .title span {
    color: white;
    font-weight: bold;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.new-card .content-wrapper .details .content span {
    color: var(--wb-theme-text);
    font-weight: 600;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    
}

.news-details-page {
    color: var(--wb-theme-text);
}

.news-details-layout {
    row-gap: 1.5rem;
}

.news-details-content,
.news-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-details-cover {
    width: 100%;
    aspect-ratio: 780 / 354;
    min-height: 16rem;
    object-fit: cover;
    border-radius: 1.5rem;
    display: block;
}

.news-details-body {
    color: var(--wb-theme-text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.95;
}

.news-details-body p:last-child {
    margin-bottom: 0;
}

.news-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-gallery-section h2,
.latest-news-card h2 {
    color: var(--wb-theme-text);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.news-gallery-item {
    border: 2px solid color-mix(in srgb, var(--wb-theme-primary) 28%, transparent);
    border-radius: 1rem;
    min-height: 12.5rem;
    overflow: hidden;
    display: block;
    background: var(--white-1);
}

.news-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 12.5rem;
    object-fit: cover;
    display: block;
}

.news-info-card,
.latest-news-card {
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px 0 #191E2208;
    padding: 1rem;
}

.news-info-card dl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.news-info-card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.news-info-card dt,
.news-info-card dd {
    margin: 0;
}

.news-info-card dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wb-theme-text);
    font-weight: 800;
}

.news-info-card dt svg,
.latest-news-content span svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.news-info-card dt svg path
 {
    fill: var(--wb-theme-primary);
    /* stroke: var(--wb-theme-primary); */
}


.news-info-card dd {
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: end;
}

.latest-news-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.latest-news-item {
    min-height: 8.5rem;
    border: 1px solid #EAEAEA;
    border-radius: 0.75rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 9.25rem minmax(0, 1fr);
    background: var(--white-1);
}

.latest-news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-news-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.latest-news-content h3 {
    margin: 0;
    min-height: 2.5rem;
    padding: 0.25rem 1rem;
    background: var(--wb-theme-secondary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.latest-news-content span {
    margin: 0.5rem 1rem 0;
    color: #727272;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    line-height: 1.7;
}

.latest-news-content span svg {
    width: 16px;
    height: 16px;
}

.latest-news-content span svg path {
    stroke: #727272;
}

.latest-news-content .btn {
    margin: auto 1rem 0.75rem;
    width: calc(100% - 2rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-weight: 600;
}

.latest-news-content .btn-primary-outline {
    border-color: var(--wb-theme-primary);
    color: var(--wb-theme-primary);
}

.latest-news-content .btn-primary-outline:hover {
    border-color: var(--wb-theme-primary);
    background: var(--wb-theme-primary);
    color: var(--white-1);
}

.news-empty-state {
    color: #6B7280;
    background: var(--white-1);
    border: 1px dashed #D5DCE1;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .news-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .news-details-cover {
        min-height: 13rem;
    }

    .news-gallery-grid,
    .latest-news-item {
        grid-template-columns: 1fr;
    }

    .latest-news-item img {
        height: 12rem;
        order: -1;
    }

    .news-info-card dl > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-info-card dd {
        text-align: start;
    }
}
