.news_single_block_container.barahola-card,
.grid .news_single_block_container.barahola-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.news_single_block_container.barahola-card:hover {
    transform: translateY(-3px);
    border-color: #d7e3f4;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.news_header_cont > .img_cont,
.barahola-card .news_header_cont > .img_cont,
.barahola-card .news_author_cont .img_cont,
.news_single_block_container .news_author_cont .img_cont,
.news_single_block_container .news_author_cont {
    display: none !important;
}

.barahola-card__source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px;
    width: 40px;
    height: 40px;
    border: 1px solid #dbeafe;
    border-radius: 50%;
    background: #eff6ff;
    color: #0369a1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.barahola-card__source-label {
    display: none !important;
}

.barahola-card__source:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.barahola-card__source-icon {
    flex: 0 0 auto;
}

.barahola-source-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.barahola-source-modal.is-visible {
    display: flex;
}

.barahola-source-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.barahola-source-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.barahola-source-modal__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.barahola-source-modal__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}

.barahola-source-modal__timer {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 700;
    color: #0284c7;
}

.barahola-source-modal__timer.is-hidden {
    display: none;
}

.barahola-source-modal__link-wrap {
    margin: 0 0 18px;
}

.barahola-source-modal__link-wrap[hidden] {
    display: none !important;
}

.barahola-source-modal__link {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #0284c7;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all;
    text-decoration: underline;
}

.barahola-source-modal__link:hover {
    color: #0369a1;
}

.barahola-source-modal__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.barahola-source-modal__cancel:hover {
    background: #cbd5e1;
}

.barahola-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
}

.barahola-card__header .wrapper,
.barahola-card__meta,
.news_single_block_container .news_header_cont .wrapper {
    width: 100% !important;
    flex: 1;
    min-width: 0;
    padding: 0 !important;
}

.news_single_block_container .news_header_cont .wrapper a:not(.barahola-card__date):not(.barahola-card__post-link) {
    display: none !important;
}

.barahola-card__date,
.barahola-card__post-link {
    display: inline-flex !important;
    align-items: center;
    font-size: 14px;
    color: #334155 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.barahola-card__date:hover,
.barahola-card__post-link:hover {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

.barahola-card__badge,
.barahola-card__header .type {
    position: static !important;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.barahola-card__gallery {
    margin-bottom: 16px;
}

.barahola-card__gallery-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f7;
    aspect-ratio: 4 / 3;
}

.barahola-card__gallery-main a {
    display: block;
    width: 100%;
    height: 100%;
}

.barahola-card__gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.barahola-card__gallery-main:hover img {
    transform: scale(1.03);
}

.barahola-card__gallery-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.barahola-card__gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.barahola-card__gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.barahola-card__thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 68px !important;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.barahola-card__thumb:hover,
.barahola-card__thumb.is-active {
    opacity: 1;
    border-color: #0ea5e9;
    transform: translateY(-1px);
}

.barahola-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barahola-card__fancybox-hidden-wrap {
    display: none !important;
}

.barahola-card__fancybox-hidden {
    display: none !important;
}

.barahola-card__videos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.barahola-card__video {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    overflow: hidden;
}

.barahola-card__video img {
    width: 100%;
    height: auto;
    display: block;
}

.barahola-card__video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.barahola-card__video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.barahola-card__body {
    margin-top: 4px;
}

.barahola-card__text,
.barahola-card .news_text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    letter-spacing: 0.01em;
}

.grid .barahola-card__text,
.grid .barahola-card .news_text {
    font-size: 15px;
    line-height: 1.65;
}

.barahola-card__expand,
.barahola-card .expend_text {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #0284c7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.barahola-card__expand:hover,
.barahola-card .expend_text:hover {
    text-decoration: underline;
}

.need_expend .barahola-card__text,
.need_expend .news_text {
    max-height: 220px;
    overflow: hidden;
    position: relative;
}

.need_expend .barahola-card__text::after,
.need_expend .news_text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 100%);
    pointer-events: none;
}

.barahola-card__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.single_post_top_info .barahola-card__gallery-main {
    aspect-ratio: 16 / 10;
    max-height: 520px;
}

/* Legacy galleries before re-import */
.news_attach_cont:not(.barahola-card__gallery-legacy) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news_attach_cont.barahola-card__gallery-legacy,
.news_single_block_container.barahola-card .barahola-card__gallery-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.news_single_block_container:not(.barahola-card) .news_attach_cont > a:not(.video):first-child {
    width: 100% !important;
    height: auto !important;
    max-height: 360px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}

.news_single_block_container:not(.barahola-card) .news_attach_cont > a:not(.video):not(:first-child) {
    width: 68px !important;
    height: 68px !important;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.news_single_block_container:not(.barahola-card) .news_attach_cont > a:not(.video):not(:first-child) img {
    object-fit: cover;
}

@media (max-width: 768px) {
    .news_single_block_container.barahola-card,
    .grid .news_single_block_container.barahola-card {
        padding: 14px;
        border-radius: 14px;
    }

    .barahola-card__thumb {
        width: 56px;
        height: 56px;
    }

    .barahola-card__text,
    .barahola-card .news_text {
        font-size: 15px;
    }
}
