/* ============================================================
   Category Header – Clean Editorial Style
   ============================================================ */

.category-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    position: relative;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 10px;
    gap: 0;
    overflow: visible;
}

/* No pseudo separator — border-bottom handles it */
.category-header::after {
    content: none;
}

/* ----- Title Block: bold red text, no background ----- */
.main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 25px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #c92127;
    background: none;
    border: none;
    position: static;
    display: inline-block;
    white-space: nowrap;
    clip-path: none;
    box-shadow: none;
    z-index: auto;
    transition: none;
    flex-shrink: 0;
}

/* Icons inside .main-title */
.main-title i {
    font-size: 24px;
    color: #c92127;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Remove all pseudo-elements from title */
.main-title::before,
.main-title::after {
    content: none;
    display: none;
}

/* ----- Separator: spacer that pushes link to far right ----- */
.separator {
    flex: 1;
    display: block;
    height: 0;
    background: none;
    margin: 0;
    opacity: 1;
}

/* ----- More News Link: plain text with arrow ----- */
.more-news-link {
    font-family: 'Anek Devanagari', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #444444 !important;
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: color 0.25s ease;
    margin-left: 0;
    position: static;
    flex-shrink: 0;
}

.more-news-link::before {
    content: none;
}

.more-news-link::after {
    content: '↗';
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    font-weight: 600;
    color: inherit;
    transition: none;
}

.more-news-link:hover {
    color: #c92127 !important;
    background: none !important;
    border-color: transparent;
    box-shadow: none;
}

.more-news-link:hover::after {
    transform: none;
    color: inherit;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .category-header {
        margin-bottom: 14px;
    }

    .main-title {
        font-size: 19px;
    }

    .more-news-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 17px;
    }

    .more-news-link {
        font-size: 11px;
    }
}


/* sticky sidebar */

.sticky-sidebar {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 10px;
    height: fit-content;
    margin-bottom: 30px;
}

/* Make sticky sidebar non-sticky on mobile */
@media (max-width: 768px) {
    .sticky-sidebar {
        position: static;
        top: auto;
    }
}


/* excerpt */

.post-content .protech-excerpt {
    font-size: 26px !important;
    line-height: 1.5;
    color: #666;
}

/* Hide excerpt on mobile */
@media (max-width: 768px) {
    .post-content .protech-excerpt {
        display: none;
    }
}

/* gap */

.gpb-1 {
    margin-bottom: 1px !important;
}

.gpb-2 {
    margin-bottom: 2px !important;
}

.gpb-3 {
    margin-bottom: 3px !important;
}

.gpb-4 {
    margin-bottom: 4px !important;
}

.gpb-5 {
    margin-bottom: 5px !important;
}

.gpb-6 {
    margin-bottom: 6px !important;
}

.gpb-7 {
    margin-bottom: 7px !important;
}

.gpb-8 {
    margin-bottom: 8px !important;
}

.gpb-9 {
    margin-bottom: 9px !important;
}

.gpb-10 {
    margin-bottom: 10px !important;
}

/* Gap utility classes that work without content */
.gap-1 {
    height: 1px !important;
    min-height: 1px !important;
}

.gap-2 {
    height: 2px !important;
    min-height: 2px !important;
}

.gap-3 {
    height: 3px !important;
    min-height: 3px !important;
}

.gap-4 {
    height: 4px !important;
    min-height: 4px !important;
}

.gap-5 {
    height: 5px !important;
    min-height: 5px !important;
}

.gap-6 {
    height: 6px !important;
    min-height: 6px !important;
}

.gap-7 {
    height: 7px !important;
    min-height: 7px !important;
}

.gap-8 {
    height: 8px !important;
    min-height: 8px !important;
}

.gap-9 {
    height: 9px !important;
    min-height: 9px !important;
}

.gap-10 {
    height: 10px !important;
    min-height: 10px !important;
}

.gap-15 {
    height: 15px !important;
    min-height: 15px !important;
}

.gap-20 {
    height: 20px !important;
    min-height: 20px !important;
}

.gap-25 {
    height: 25px !important;
    min-height: 25px !important;
}

.gap-30 {
    height: 30px !important;
    min-height: 30px !important;
}

/* Flexbox gap utilities */
.flex-gap-1 {
    gap: 1px !important;
}

.flex-gap-2 {
    gap: 2px !important;
}

.flex-gap-3 {
    gap: 3px !important;
}

.flex-gap-4 {
    gap: 4px !important;
}

.flex-gap-5 {
    gap: 5px !important;
}

.flex-gap-6 {
    gap: 6px !important;
}

.flex-gap-7 {
    gap: 7px !important;
}

.flex-gap-8 {
    gap: 8px !important;
}

.flex-gap-9 {
    gap: 9px !important;
}

.flex-gap-10 {
    gap: 10px !important;
}

.flex-gap-15 {
    gap: 15px !important;
}

.flex-gap-20 {
    gap: 20px !important;
}

.flex-gap-25 {
    gap: 25px !important;
}

.flex-gap-30 {
    gap: 30px !important;
}

/* end */



/* topup */

.progress-wrap {
    color: white;
    position: fixed;
    right: 50px;
    bottom: 50px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px #093e70;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    position: absolute;
    content: '↑';
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    color: #093e70;
    left: 0;
    top: -2px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.progress-wrap:hover::after {
    opacity: 0;
}

.progress-wrap::before {
    position: absolute;
    content: '↑';
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    opacity: 0;
    -webkit-text-fill-color: #ffeb3b;
    left: 0;
    top: -2px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 2;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.progress-wrap:hover::before {
    opacity: 1;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: #ffeb3b;
    stroke-width: 4;
    box-sizing: border-box;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

/* Sidebar enhancements */
#sidebar {
    background: #060f17;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.12);
}

#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

/* Provide a visible fallback for non-WebKit as well */
#sidebar {
    -ms-overflow-style: auto;
    /* IE 10+ */
}

/* Prevent body scrolling when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Explicitly ensure sidebar is above overlay and captures scroll */
#sidebar {
    z-index: 11111;
}

#sidebar .sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

#sidebar .sidebar-brand img {
    max-width: 180px;
    height: auto;
}

#sidebar .sidebar-brand .site-title {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Make logo area background white for better contrast */
#sidebar .sidebar-header {
    text-align: left;
}

#sidebar .sidebar-brand {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

#sidebar .sidebar-brand img {
    max-height: 48px;
    width: auto;
}

#sidebar .sidebar-brand .site-title {
    color: #093e70;
}

#dismiss {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 6px;
}

#dismiss:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

#sidebar .sidebar-search {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#sidebar .sidebar-search form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
}

.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-search-btn {
    background: #ffeb3b;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.sidebar-search-btn:hover {
    transform: translateY(-1px);
    background: #ff5567;
}

#sidebar ul.components {
    padding: 8px 0;
    border-bottom: none;
}

#sidebar ul li a {
    background: transparent !important;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08) !important;
}

#sidebar ul li.active>a,
#sidebar a[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12) !important;
}

#sidebar ul ul.dropdown-menu {
    background: rgba(0, 0, 0, 0.15);
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}

#sidebar ul ul.dropdown-menu li a {
    padding-left: 28px;
    font-weight: 500;
}

#sidebar ul li a .sidebar-dropdown-icon {
    margin-left: 12px;
    opacity: 1;
    color: #ffffff !important;
    font-size: 16px;
    width: 44px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: static !important;
    right: auto;
    top: auto;
    transform: none;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#sidebar ul li a:hover .sidebar-dropdown-icon,
#sidebar ul li.open>a .sidebar-dropdown-icon {
    background: #ffeb3b;
    color: #000000;
    border-color: #ffffff;
    transform: translateX(1px);
}

/* Submenu icon smaller to differentiate levels */
#sidebar ul li.dropdown-submenu>a .sidebar-dropdown-icon {
    width: 38px;
    height: 28px;
    font-size: 14px;
    opacity: 0.95;
}

/* Normalize icon margins */
#sidebar .fa-angle-right:before,
#sidebar .fa-angle-down:before,
#sidebar .fa-plus:before,
#sidebar .fa-minus:before {
    margin: 0 !important;
}

/* Ensure FA6 icons render inside our button even if other styles override content */
#sidebar .sidebar-dropdown-icon.fa-angle-right::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#sidebar .sidebar-dropdown-icon.fa-angle-down::before {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#sidebar .sidebar-dropdown-icon.fa-plus::before {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#sidebar .sidebar-dropdown-icon.fa-minus::before {
    content: "\f068";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-social {
    display: flex;
    gap: 10px;
}

.sidebar-social .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.sidebar-social .social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-copy {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Fix sidebar dropdown overlap and layout */
#sidebar .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
    display: none;
    margin: 0;
    padding: 0 0 0 0;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: transparent;
}

#sidebar li.open>.dropdown-menu {
    display: block;
}

#sidebar .dropdown-submenu>.dropdown-menu {
    margin-left: 0;
}

#sidebar .dropdown-submenu>a {
    padding-left: 28px;
}

/* Ensure expanding only pushes content downward, not overlay above */
#sidebar ul.components>li {
    position: relative;
}

#sidebar ul.components>li>ul.dropdown-menu {
    overflow: hidden;
}

/* Remove Bootstrap/Glyphicons arrows inside sidebar */
#sidebar a[aria-expanded="false"]::before,
#sidebar a[aria-expanded="true"]::before {
    content: none !important;
}



/* pagination    */


/* Enhanced pagination styling */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.ts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.ts-pagination li {
    margin: 0;
}

.ts-pagination a,
.ts-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ts-pagination a:hover {
    background: linear-gradient(135deg, #093e70 0%, #b20000 100%);
    color: white;
    border-color: #093e70;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 128, 109, 0.3);
}

.ts-pagination .current {
    background: linear-gradient(135deg, #093e70 0%, #b20000 100%);
    color: white;
    border-color: #093e70;
    box-shadow: 0 8px 25px rgba(19, 128, 109, 0.3);
}

.ts-pagination .prev,
.ts-pagination .next {
    font-weight: 600;
    min-width: 130px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.ts-pagination .prev:hover,
.ts-pagination .next:hover {
    background: linear-gradient(135deg, #093e70 0%, #b20000 100%);
    border-color: #093e70;
}

.ts-pagination .prev i,
.ts-pagination .next i {
    margin: 0 6px;
}


/* =========================================
   Latest News Section - White Background Style
   ========================================= */
.latest-news-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
}

.latest-news-header {
    background: #1e4a7e;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.latest-news-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Ek Mukta', sans-serif;
}

.latest-news-arrow {
    width: 32px;
    height: 32px;
    background: #2980b9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.latest-news-arrow:hover {
    background: #3498db;
}

.latest-news-arrow i {
    color: #ffffff;
    font-size: 18px;
}

.latest-news-list {
    padding: 0;
    background: #ffffff;
}

.latest-news-item {
    padding: 15px 16px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.latest-news-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background: #1e4a7e;
}

.latest-news-time {
    font-size: 13px;
    color: #666666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-news-time i {
    font-size: 14px;
    color: #666666;
}

.latest-news-content {
    line-height: 1.5;
}

.latest-news-headline {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    font-family: 'Ek Mukta', sans-serif;
}

.latest-news-headline a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-news-headline a:hover {
    color: #1e4a7e;
}

/* First word/category in blue color */
.latest-news-headline a .news-category {
    color: #1e4a7e;
    font-weight: 700;
}

.no-latest-news {
    color: #666666;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .latest-news-header {
        padding: 10px 12px;
    }

    .latest-news-title {
        font-size: 16px;
    }

    .latest-news-item {
        padding: 12px 12px;
    }

    .latest-news-headline {
        font-size: 15px;
    }

    .latest-news-time {
        font-size: 12px;
    }
}

/* Responsive design */
@media (max-width: 768px) {


    .ts-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ts-pagination a,
    .ts-pagination span {
        min-width: 45px;
        height: 45px;
        padding: 0 15px;
        font-size: 13px;
    }

    .ts-pagination .prev,
    .ts-pagination .next {
        min-width: 110px;
    }


}

/* ============================================================
   Section Title – Clean Editorial Style (matches second reference)
   Used by: .protech__section__title.with__border
   ============================================================ */

.protech__section__title.with__border {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    position: relative;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 10px;
    gap: 0;
}

/* Bold red title text – no background, no ribbon */
.protech__section__title.with__border h2 {
    font-family: 'Anek Devanagari', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #c92127;
    background: none;
    border: none;
    white-space: nowrap;
    clip-path: none;
    box-shadow: none;
    position: static;
    display: inline-block;
    flex-shrink: 0;
}

/* No pseudo-elements on the title itself */
.protech__section__title.with__border h2::before,
.protech__section__title.with__border h2::after {
    content: none;
    display: none;
}

/* Spacer — pushes "थप समाचार" link to the right */
.protech__section__title.with__border .section-spacer {
    flex: 1;
}

/* "थप समाचार ↗" more-link on the right */
.protech__section__title.with__border .more-link {
    font-family: 'Anek Devanagari', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.protech__section__title.with__border .more-link::after {
    content: '↗';
    font-size: 13px;
    line-height: 1;
}

.protech__section__title.with__border .more-link:hover {
    color: #c92127;
}

/* Responsive */
@media (max-width: 768px) {
    .protech__section__title.with__border h2 {
        font-size: 19px;
    }

    .protech__section__title.with__border .more-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .protech__section__title.with__border h2 {
        font-size: 17px;
    }
}