/* New category header module - Bottom Baseline Alignment */
.category-header {
    display: flex;
    align-items: flex-end;
    /* Anchors everything to the bottom edge */
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background-color: transparent;
    margin-bottom: 30px;
    position: relative;
}

.main-title {
    font-family: 'Poppins', 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 20px;
    background-color: #0b549b;
    color: #ffffff;
    padding: 12px 25px;
    margin: 0;
    position: relative;
    white-space: nowrap;
    line-height: 1;
    z-index: 2;
}

/* Downward triangle indicator */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #0b549b;
}

.separator {
    flex-grow: 1;
    height: 3px;
    background-color: #0b549b;
    margin: 0;
    position: relative;
}

.more-news-link {
    color: #0b549b;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Poppins', 'Mukta', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid rgba(11, 84, 155, 0.15);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    margin-bottom: -1px;
    /* Aligns button border with line */
    position: relative;
    z-index: 2;
}

.more-news-link::after {
    content: '→';
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.more-news-link:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
    transform: translateY(-2px);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .main-title {
        font-size: 18px;
        padding: 10px 18px;
    }

    .main-title::after {
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 8px;
        bottom: -8px;
    }

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


/* 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 {
    position: fixed;
    right: 40px;
    bottom: 40px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(11, 84, 155, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 84, 155, 0.1);
}

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

.progress-wrap::after {
    position: absolute;
    content: '\f062';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #0b549b;
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    z-index: 1;
    transition: all 300ms ease;
}

.progress-wrap:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(241, 62, 81, 0.25);
    background-color: #ffffff;
}

.progress-wrap:hover::after {
    color: #F13E51;
    transform: translateY(-2px);
}

/* Remove the old before arrow as we use hover on wrap now */
.progress-wrap::before {
    display: none;
}

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

.progress-wrap svg.progress-circle path {
    stroke: #F13E51;
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 300ms ease;
}

.progress-wrap:hover svg.progress-circle path {
    stroke-width: 5;
}

/* Sidebar enhancements */
#sidebar {
    background: linear-gradient(180deg, #0b549b 0%, #086a5a 100%);
    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: #0b549b;
}

#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: #F13E51;
    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;
    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: #F13E51;
    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 */
/* YouTube Button in Header */
.right__btns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Push to right */
    gap: 15px;
    height: 46px;
    /* Match nav height */
}

.header__nav .nav__wrap .row {
    align-items: center;
    height: 46px;
}

.right__btns li {
    display: flex;
    align-items: center;
    margin: 0 !important;
    /* Override style.css margin-top: 11px */
    height: 46px;
    /* Match .nav__wrap height */
}

.youtube_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff0000;
    color: #fff !important;
    padding: 20px 10px;
    border-radius: 0;
    font-family: 'Mukta', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    height: 32px;
    margin-top: -7px;
    border-radius: 5px;
}

.youtube_btn i {
    font-size: 18px;
}

.youtube_btn:hover {
    background: #cc0000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    color: #ffffff !important;
}

.youtube_btn:active {
    transform: translateY(0) scale(0.98);
}

/* Header UI cleanup */
.right__btns .search__ {
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.right__btns .search__:hover {
    color: #F13E51;
}

@media (max-width: 768px) {
    .youtube_btn span {
        display: none;
    }

    .youtube_btn {
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ff0000;
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
    }

    .youtube_btn i {
        font-size: 24px;
        color: #fff !important;
        margin: 0;
    }

    .right__btns {
        gap: 0;
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .right__btns li {
        margin: 0 !important;
        height: 100%;
        display: flex;
        align-items: center;
    }
}