/* =========================================
   Resources Desktop — Modern Layout
   ========================================= */

.resc-sec-modern {
    background: #f4f6f9;
    padding: 30px 0;
}

.resc-fluid-wrap {
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Sticky row — ONE sticky element, all three panels move together ---- */
.resc-row {
    position: sticky;
    top: 70px;
    height: calc(100vh - 160px);
    align-items: stretch;
}

/* All columns fill the sticky row height */
.resc-left-sidebar,
.resc-main-content,
.resc-right-sidebar {
    height: 100%;
}

/* ---- Left Sidebar ---- */
.resc-left-sidebar {
    padding-right: 0;
}

.resc-sidebar-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    height: Auto;
}

.resc-sidebar-title {
    background: #1f5183;
    color: #fff;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.resc-sidebar-title i {
    margin-right: 8px;
    opacity: 0.85;
}

.resc-cat-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.resc-cat-list li {
    list-style: none;
}

.resc-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.resc-cat-link:hover {
    background: #f1f5f9;
    color: #1f5183;
    /* border-left-color: #1f5183; */
    text-decoration: none;
}

.resc-cat-link.active {
    background: #e8f0f9;
    color: #1f5183;
    font-weight: 600;
    /* border-left-color: #1f5183; */
}

/* .resc-cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s;
} */

.resc-cat-link.active .resc-cat-dot,
.resc-cat-link:hover .resc-cat-dot {
    background: #1f5183;
}

/* ---- Middle Content ---- */
.resc-main-content {
    padding: 0 16px;
    height: 100%;
}

.resc-main-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

/* Header: flex-shrink 0 — always at top, never displaced */
.resc-panel-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #1f5183;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
}

/* Cards scroll area — fills remaining height, hidden scrollbar */
.resc-main-scroll {
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: none;
    min-height: 0; /* critical: allows flex child to shrink below content height */
}

.resc-main-scroll::-webkit-scrollbar {
    display: none;
}

.tabcontent-res {
    display: none;
}

.tabcontent-res.active-res {
    display: block;
}

.resc-tab-panel {
    padding: 16px;
}

.resc-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.resc-panel-accent {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #1f5183;
    border-radius: 4px;
    flex-shrink: 0;
}

.resc-nav-btns {
    display: flex;
    gap: 8px;
}

.resc-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f5183;
    color: #fff;
    border: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    position: static;
    transform: none;
    margin: 0;
}

.resc-nav-btn:hover {
    background: #18ba60;
    transform: scale(1.08);
}

.resc-nav-btn::after,
.resc-nav-btn::before {
    display: none;
}

.resc-grid {
    margin: 0;
    padding: 16px;
}

.resc-grid-item {
    padding: 8px;
}

/* ---- Resource Card ---- */
.resc-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.resc-card:hover {
    box-shadow: 0 8px 24px rgba(31,81,131,0.13);
    transform: translateY(-3px);
    text-decoration: none;
}

.resc-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.resc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 81, 131, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.resc-overlay-desc {
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
    margin: 0;
}

.resc-card:hover .resc-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.resc-read-btn {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.resc-card-body {
    padding: 12px 14px;
}


.resc-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #1f5183;
    background: #e8f0f9;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.resc-views {
    font-size: 11px;
    color: #94a3b8;
}

.resc-views i {
    margin-right: 3px;
}

/* ---- Right Sidebar ---- */
.resc-right-sidebar {
    padding-left: 0;
}

.resc-right-inner {
    overflow: hidden;
    height: 100%;
}


.resc-search-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 20px;
}

.resc-search-title,
.resc-trending-title {
    background: #1f5183;
    color: #fff;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.resc-search-title i,
.resc-trending-title i {
    margin-right: 7px;
    opacity: 0.85;
}

.resc-search-input-wrap {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 8px;
}

.resc-search-input-wrap input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s;
}

.resc-search-input-wrap input:focus {
    border-color: #1f5183;
}

.resc-search-input-wrap button {
    width: 36px;
    height: 36px;
    background: #18ba60;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.resc-search-input-wrap button:hover {
    background: #15a354;
}

.resc-search-results {
    list-style: none;
    padding: 0 14px 6px;
    margin: 0;
}

.resc-search-results .list-group-item {
    padding: 7px 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

/* ---- Trending ---- */
.resc-trending {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

.resc-trending-card {
    display: block;
    position: relative;
    height: 140px;
    overflow: hidden;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: opacity 0.2s;
    margin-bottom: 10px;
    border-radius: 6px;
}

.resc-trending-card:last-child {
    border-bottom: none;
}

.resc-trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resc-trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,30,55,0.82) 0%, rgba(15,30,55,0.2) 60%, transparent 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.resc-trending-overlay p {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
}

.resc-trending-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #18ba60;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    pointer-events: none;
    align-self: flex-start;
}

/* =========================================
   Old sidebar styles (kept for compatibility)
   ========================================= */
@media only screen and (min-width: 769px) {
    .res-sidebar .cc-sidebar {
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
        position: sticky;
        top: 70px;
    }

    .res-sidebar .categorytitle {
        background-color: #1f5183;
        color: #fff;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .res-sidebar .ecsp_div {
        padding: 8px 0;
        background: #fff;
    }

    .res-sidebar ul.tab2 {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .res-sidebar ul.tab2 li {
        list-style: none;
    }

    .res-sidebar ul.tab2 li a.tablinks-res {
        display: block;
        padding: 9px 16px;
        color: #334155;
        font-size: 13px;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .res-sidebar ul.tab2 li a.tablinks-res:hover {
        background-color: #f1f5f9;
        color: #1f5183;
        border-left-color: #1f5183;
    }

    .res-sidebar ul.tab2 li a.tablinks-res.active {
        background-color: #e8f0f9;
        color: #1f5183;
        font-weight: 600;
        border-left-color: #1f5183;
    }
}

/* =========================================
   Legacy
   ========================================= */
.navbar-fixed-top .site-brand img {
	width: 200px;
}
.navbar-fixed-top.header-wrap {
	height: 60px;
	border-bottom: none;
}
.navbar-fixed-top .site-main-navigation {
	top: 4px;
}
.navbar-fixed-top .site-brand {
	top: 8px;
}
.sticky_nav_container{
	border-top: 1px solid #e5e3e3;
}
.tab-sec.fixed{
	position: fixed;
	top: 50px;
	z-index: 970;
	padding: 7px 0px;
}
.tab-sec.fixed .prev .fa, .tab-sec.fixed .next .fa {
	height: 35px;
	width: 35px;
	line-height: 35px;
	font-size: 25px;

}
.tab-sec.fixed ul li a {
	height: 35px;
	line-height: 35px;
	border-radius: 5px;
}
.rsp-space{
	padding-top: 100px;
}
.menu-left-right ul li a.active{
	background: #18ba60;
}
.resocues-tab{
    position: sticky;
    top: 50px;
    z-index: 999;
}
.resocues .owl-nav{
    top: inherit;
    position: absolute;
    right: inherit;
    margin: 0px !important;
    top: 0px;
    width: 100%;
}
.resocues .owl-nav button{
    margin: inherit !important;
    left: inherit !important;
}
.resocues .owl-nav button.owl-prev{
    left: -20px !important;
    position: absolute;
}
.resocues .owl-nav button.owl-next{
    right: 4px;
    position: absolute;
    left: inherit !important;
}
.resocues li{
    list-style: none;
    padding: 0px 5px;
}
.carousel-wrap .owl-nav{
    display: block !important;
    top: -70px !important;
}
.resocues{
    margin: 0px;
}
.resocues-tab{
    padding: 10px 0px;
}
.resources-view{
    padding: 50px 0px;
}
.career-space{
    padding: 50px 0px;
}
/* =========================================
   Resources Desktop Sidebar (training-style)
   ========================================= */
@media only screen and (min-width: 769px) {
    .res-sidebar .cc-sidebar {
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
        position: sticky;
        top: 70px;
    }

    .res-sidebar .categorytitle {
        background-color: #1f5183;
        color: #fff;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .res-sidebar .ecsp_div {
        padding: 8px 0;
        background: #fff;
    }

    .res-sidebar ul.tab2 {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .res-sidebar ul.tab2 li {
        list-style: none;
    }

    .res-sidebar ul.tab2 li a.tablinks-res {
        display: block;
        padding: 9px 16px;
        color: #334155;
        font-size: 13px;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .res-sidebar ul.tab2 li a.tablinks-res:hover {
        background-color: #f1f5f9;
        color: #1f5183;
        border-left-color: #1f5183;
    }

    .res-sidebar ul.tab2 li a.tablinks-res.active {
        background-color: #e8f0f9;
        color: #1f5183;
        font-weight: 600;
        border-left-color: #1f5183;
    }

    .tabcontent-res {
        display: none;
    }

    .tabcontent-res.active-res {
        display: block;
    }
}

@media screen and (max-width: 991px) {
    .blog-sec{}
.resc-sec .owl-nav{
    display: none !important;
}
.carousel-wrap .owl-nav{
    display: none !important;
}
.cv-space1{
    padding: 20px 0px;
}
.career-view {
    padding-top: 0px;
    padding-bottom: 0px;
}
.cv-space2{
    padding: 20px 20px;
    margin-bottom: 30px;
    margin-top: 35px;
}
  }

/* =========================================
   Resource / Blog Detail Banner — Modern
   ========================================= */

.resource-detail-banner .over-h2 {
    text-align: center;
    padding: 32px 48px 28px;
    background: rgba(14, 42, 74, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    min-width: 340px;
    max-width: 820px;
}

/* Label — plain uppercase (h1 and h2 both used across pages) */
.resource-detail-banner .over-h2 h1,
.resource-detail-banner .over-h2 h2 {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* Main title */
.resource-detail-banner .over-h2 p {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    margin-bottom: 0;
}

/* Thin white rule below the label */
.resource-detail-banner .over-h2 h1::after,
.resource-detail-banner .over-h2 h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.40);
    margin: 10px auto 0;
}

@media (max-width: 768px) {
    .resource-detail-banner .over-h2 { padding: 22px 24px 20px; min-width: 0; }
    .resource-detail-banner .over-h2 h1,
    .resource-detail-banner .over-h2 h2 { font-size: 13px; letter-spacing: 2.5px; }
    .resource-detail-banner .over-h2 p  { font-size: 18px; }
}