.post, .page {
    margin-bottom: 0;
}

.search-popup--style-two .site-header.layout--default .search-form-wrap {
	position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #252424d9;
    z-index: 10;
}

.search-popup--style-two .site-header.layout--default .search-form-wrap .search-form {
	margin-top: 50vh;
}

.search-popup--style-two input.search-field {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--theme-color-red);
    width: 40%;
    font-size: 25px;
}

.search-popup--style-two input.search-field:focus {
	border: none;
	outline: none;
	border-bottom: 3px solid var(--theme-color-red);
	color: #ffffff;
}


.search-popup--style-two input.search-field::placeholder {
	color: #ffffff;
}

.search-popup--style-two input.search-field:focus::placeholder {
	color: #ffffff;
    font-size: 28px;
}

.search-popup--style-two .search_close_btn {
	position: absolute;
    right: 20px;
    top: 20px;
    font-size: 37px;
    z-index: 999;
    color: var(--theme-color-red);
}

.search-popup--style-two .search_close_btn:hover {
	cursor: pointer;
}

.search-popup--style-two .search-submit {
    display: block;
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
}

body.search-popup--style-one .search_close_btn,
.search_close_btn {
    display: none;
}

.bodynoscroll .search_close_btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
}

/** search layout 3 **/

.search-popup--style-three .site-header.layout--default .search-form-wrap {
    position: fixed;
    left: 0px;
    width: 100%;
    padding: 80px 0px;
    top: 0;
    border-top: none;
    box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 20%);
    -webkit-box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 20%);
    -moz-box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 20%);
    z-index: 1;
}

.search-popup--style-three.logged-in .site-header.layout--default .search-form-wrap {
    top: 32px;
}

.search-popup--style-three .site-header.layout--default .search-form-wrap form {
    width: 60%;
    margin: 0 auto;
    display: flex;
}

.search-form-wrap form label {
    width: 100%;
    margin-right: 10px;
}

.search-popup--style-three .site-header.layout--default .search-form-wrap .search-field {
    width: 100%;
    height: 46px;
}

.digital_newspaper_dark_mode.search-popup--style-three .search-field {
    background: #27272b;
    border-color: #343434;
    color: var(--white-text);
}

.search-popup--style-three .site-header.layout--default .search-submit {
    padding-bottom: 10px;
    text-transform: uppercase;
    padding: 15px 40px;
}

.search-popup--style-three input.search-field:focus::placeholder,
.search-popup--style-three input.search-field {
    font-size: 20px;
    outline: none;
}

.search-popup--style-three .site-header.layout--default .search-wrap {
    position: initial;
}

.search-popup--style-three .search_close_btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;
}

body.search-popup--style-three.logged-in .site-header.layout--two .search_close_btn,
body.search-popup--style-three.logged-in .site-header.layout--three .search_close_btn {
    top: 52px;
}

.search-popup--style-three .search_close_btn:hover {
    cursor: pointer;
}

.search-popup--style-three .search_close_btn i {
    color: #fff;
    z-index: 99999;
    background-color: var(--theme-color-red);
    padding: 10px 15px 9px;
    border-radius: 2px;
    display: block;
    font-size: 0.86rem;
}

@media(max-width: 769px) {
    .search-popup--style-three .site-header.layout--default .search-form-wrap {
        padding: 50px 0 20px;
    }

    .search-popup--style-three.admin-bar .search-form-wrap {
        margin-top: 46px;
    }

    body.search-popup--style-three .site-header.layout--two .search_close_btn,
    body.search-popup--style-three .site-header.layout--three .search_close_btn {
        right: 20px;
        top: 9px;
    }

    .search-popup--style-three .site-header.layout--default .search-submit {
        padding: 10px 40px;
    }
}

body.digital-newspaper-post-blocks-hover--effect-one .row .news-carousel-post-wrap > div .blaze_box_wrap:hover {
    box-shadow: -2px 6px 15px 0px rgb(53 52 52 / 7%);
    -webkit-box-shadow: -2px 6px 15px 0px rgb(53 52 52 / 7%);
    -moz-box-shadow: -2px 6px 15px 0px rgba(53,52,52,0.85);
    transform: translateY(-2px);
}

footer .widget .opinions-items-wrap.column--one .blaze_box_wrap {
    background-color: transparent;
}

footer .opinions-items-wrap .opinion-item {
    background-color: transparent; 
}

/** additional css **/

.dark_bk .widget.widget_block:has(div.wp-block-spacer),
.dark_bk .widget.widget_block:has(hr.wp-block-separator) {
    background-color: transparent;
}

.single #theme-content, .archive #theme-content {
    padding-bottom: 20px;

}

.site-info.blaze_copyright_align_center {
    text-align: center;
}

/* live search */
.search-form-wrap .search-posts-wrap {
    max-height: 600px;
    overflow-y: scroll;
    padding-right: 8px;
}

.search-form-wrap .search-posts-wrap::-webkit-scrollbar {
    width: 4px;
}

.search-form-wrap .search-posts-wrap::-webkit-scrollbar-thumb {
    background-color: var(--theme-color-red);
    border-radius: 20px;
}

.search-results-wrap {
    padding: 15px 3px 0;
}

.search-results-wrap .article-item {
    display: flex;
    align-items: center;
    -webkit-align-items:center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-bottom-color);
}

.search-results-wrap .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-results-wrap .article-item .post-thumb-wrap {
    flex: 0 1 20%;
    margin-right: 15px;
}

.search-results-wrap .article-item .post-thumb-wrap img {
    display: block;
}

.search-results-wrap .article-item .post-element {
    flex: 0 1 80%;
}

.search-results-wrap .article-item .post-element .post-title {
    margin: 0 0 6px;
    line-height: 22px;
    font-size: calc(var(--post-title-size) * 0.68);
}

.search-results-wrap .article-item .post-element .post-date a {
    text-decoration: none;
}

.search-results-wrap .article-item .post-element .post-date time {
    color: var(--meta-text-color);
    font-size: calc(var(--meta-size)*0.93);
    font-family: var(--meta-family);
    font-weight: var(--meta-weight);
    text-transform: var(--meta-texttransform);
}

.search-results-wrap .view-all-search-button {
    padding: 8px 15px;
    width: 100%;
    display: block;
    background-color: var(--theme-color-red);
    color: var(--white-text);
    text-decoration: none;
    margin-top: 20px;
    border-radius: 2px;
    text-align: center;
    text-transform: capitalize;
    font-size: 0.96rem;
    letter-spacing: 0.3px;
}

.search-form.retrieving-posts label {
    position: relative;
}

.search-form.retrieving-posts label:before {
    content: '\f110';
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    display: inline-block;
    color: var(--live-search-color);
    background: var(--live-search-bk-color);
    position: absolute;
    right: 5px;
    border-radius: 50%;
    top: 6px;
    font-size: 1.1rem;
    -webkit-animation: tie-spin 3s infinite linear;
    animation: tie-spin 3s infinite linear;
}

.search-popup--style-three .search-form.retrieving-posts label:before {
    top: 10px;
    right: 8px;
}

.search-popup--style-two .search-form.retrieving-posts label:before {
    background-color: transparent;
    color: var(--white-text);
    right: 35px;
}

@keyframes tie-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.search-popup--style-three .search-results-wrap {
    width: 57%;
    background-color: var(--inner-container-bk);
    margin: 0 auto;
}

.search-popup--style-three .search-results-wrap .post-thumb-wrap img {
    width: 85px;
    height: 70px;
}

.search-popup--style-three .search-results-wrap .article-item .post-thumb-wrap {
    flex: 0 1 8%;
}

.search-popup--style-three .search-results-wrap .article-item .post-element {
    flex: 0 1 92%;
}

/* live search no image */
.search-results-wrap .post-thumb-wrap.no-feat-img {
    display: none;
}

/* Frontpage: No sidebar widgets, full-width primary content */
body.home #theme-content .row .primary-content,
body.front-page #theme-content .row .primary-content,
body.no-sidebar #theme-content .row .primary-content {
    max-width: 100% !important;
    flex: 0 1 100% !important;
    width: 100% !important;
}

body.home #theme-content .secondary-left-sidebar,
body.home #theme-content .secondary-sidebar,
body.front-page #theme-content .secondary-left-sidebar,
body.front-page #theme-content .secondary-sidebar {
    display: none !important;
}

/* ========================================================
   FRONTPAGE: LATEST NEWS & UPDATES (1 ROW 5 ARTICLES - ULTRA MODERN)
   ======================================================== */
.dn-latest-section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.dn-latest-section-header .digital-newspaper-block-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dn-latest-section-header .digital-newspaper-block-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.dn-latest-section-header .digital-newspaper-block-title span::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    border-radius: 2px;
}

.dn-latest-section-header .digital-newspaper-block-title i {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-frontpage-grid-5 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    align-items: stretch;
}

/* Modern Card Style */
.dn-grid5-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
}

.dn-grid5-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
    border-color: rgba(229, 9, 20, 0.35);
}

.dn-grid5-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dn-grid5-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    margin: 0;
    overflow: hidden;
    background: #0f172a;
}

.dn-grid5-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.dn-grid5-img,
.dn-grid5-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.dn-grid5-card:hover .dn-grid5-img,
.dn-grid5-card:hover .dn-grid5-thumb-link img {
    transform: scale(1.08);
}

.dn-grid5-overlay-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.dn-grid5-card:hover .dn-grid5-overlay-shine {
    opacity: 0.8;
}

/* Rank Badge */
.dn-grid5-rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category Pill */
.dn-grid5-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 3;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.dn-grid5-cat-badge:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

/* Card Body */
.dn-grid5-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.dn-grid5-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.dn-grid5-date i,
.dn-grid5-read-time i {
    color: #cbd5e1;
    margin-right: 4px;
}

.dn-grid5-read-time {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    background: rgba(229, 9, 20, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.dn-grid5-read-time i {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
    font-size: 9px;
    margin-right: 3px;
}

.dn-grid5-title {
    font-size: 14.5px;
    line-height: 1.38;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.dn-grid5-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dn-grid5-card:hover .dn-grid5-title a {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-grid5-excerpt {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dn-grid5-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}

.dn-grid5-read-more {
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.dn-grid5-read-more i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.dn-grid5-card:hover .dn-grid5-read-more {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-grid5-card:hover .dn-grid5-read-more i {
    transform: translateX(3px);
}

.dn-grid5-comments {
    font-size: 11px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive Grid Breakpoints for 5 Columns */
@media (min-width: 992px) {
    .dn-frontpage-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .dn-frontpage-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .dn-frontpage-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 479px) {
    .dn-frontpage-grid-5 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* ========================================================
   FRONTPAGE: WIDGET SECTIONS (TOP, MIDDLE, BOTTOM)
   ======================================================== */
.dn-frontpage-widget-section {
    margin: 25px 0 35px;
    width: 100%;
}

.dn-frontpage-top-widgets,
.dn-frontpage-bottom-widgets {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #edf0f5;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
}

.dn-frontpage-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .dn-frontpage-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.dn-front-widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #edf0f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dn-front-widget:last-child {
    margin-bottom: 0;
}