/* ========================================
SCROLL PROGRESS BAR
======================================== */
#scroll-progress {
position: fixed;
top: 0; left: 0;
height: 3px;
width: 0%;
background: linear-gradient(90deg, #170006, #c0392b);
z-index: 9999;
transition: width 0.1s linear;
}

/* ========================================
STICKY FILTER BAR
======================================== */
.qual-filter-bar {
position: sticky;
top: 0;
z-index: 200;
background: #fff;
border-bottom: 1px solid #ececec;
box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.qual-filter-inner {
display: flex;
align-items: stretch;
overflow-x: auto;
scrollbar-width: none;
gap: 0;
}
.qual-filter-inner::-webkit-scrollbar { display: none; }
.qfb {
flex-shrink: 0;
padding: 22px 26px;
font-size: 16.5px;
font-weight: 700;
color: #170006;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
cursor: pointer;
display: flex;
align-items: center;
gap: 9px;
transition: color 0.22s, border-color 0.22s;
letter-spacing: 0.2px;
}
.qfb:hover { color: #fdb714; }
.qfb.active {
color: #fdb714;
border-bottom-color: #fdb714;
}
.qfb .badge {
background: #f1f1f1;
color: #888;
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 10px;
transition: background 0.22s, color 0.22s;
}
.qfb.active .badge,
.qfb:hover .badge {
background: #fdb714;
color: #fff;
}

/* ========================================
SIDE DOT NAV
======================================== */
.side-dot-nav {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 150;
display: flex;
flex-direction: column;
gap: 12px;
}
.sdn-item {
display: flex;
align-items: center;
gap: 0;
justify-content: flex-end;
cursor: pointer;
}
.sdn-label {
background: #170006;
color: #fff;
font-size: 11px;
font-weight: 600;
padding: 5px 11px;
border-radius: 6px;
white-space: nowrap;
opacity: 0;
transform: translateX(8px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
margin-right: 8px;
}
.sdn-item:hover .sdn-label {
opacity: 1;
transform: translateX(0);
}
.sdn-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #ccc;
transition: background 0.3s, transform 0.3s;
}
.sdn-item.active .sdn-dot,
.sdn-item:hover .sdn-dot {
background: #170006;
transform: scale(1.5);
}

/* ========================================
BODY BLOCK
======================================== */
.body-block {
margin-bottom: 72px;
opacity: 0;
transform: translateY(30px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.body-block.visible {
opacity: 1;
transform: translateY(0);
}
.body-block.hidden { display: none; }

/* HEADER */
.bb-header {
background: #781921;
border-radius: 18px 18px 0 0;
padding: 34px 42px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
position: relative;
overflow: hidden;
}
.bb-header::before,
.bb-header::after {
content: '';
position: absolute;
border-radius: 50%;
background: rgba(255,255,255,0.04);
pointer-events: none;
}
.bb-header::before { width: 260px; height: 260px; right: -80px; top: -100px; }
.bb-header::after  { width: 160px; height: 160px; right: 120px; bottom: -80px; }

.bb-header-left {
display: flex;
align-items: center;
gap: 22px;
position: relative;
z-index: 1;
flex: 1;
}
.bb-logo {
width: 74px;
height: 74px;
border-radius: 14px;
background: rgba(255,255,255,0.1);
border: 1.5px solid rgba(255,255,255,0.18);
display: flex;
align-items: center;
justify-content: center;
font-size: 10.5px;
font-weight: 800;
color: #fff;
text-align: center;
line-height: 1.4;
flex-shrink: 0;
letter-spacing: 0.3px;
}
.bb-atc-pill {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(255,255,255,0.1);
color: rgba(255,255,255,0.85);
font-size: 10.5px;
padding: 3px 11px;
border-radius: 20px;
border: 1px solid rgba(255,255,255,0.18);
font-weight: 600;
margin-bottom: 8px;
}
.bb-header h3 {
color: #fff;
font-size: 21px;
font-weight: 800;
margin: 0 0 5px;
}
.bb-header p {
color: rgba(255,255,255,0.58);
font-size: 13px;
margin: 0;
max-width: 480px;
line-height: 1.65;
}
.bb-btn {
position: relative;
z-index: 1;
flex-shrink: 0;
background: #fff;
color: #170006;
padding: 13px 26px;
border-radius: 10px;
font-weight: 700;
font-size: 13.5px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 18px rgba(0,0,0,0.2);
transition: background 0.3s, color 0.3s, transform 0.25s, box-shadow 0.25s;
white-space: nowrap;
}
.bb-btn:hover {
background: #c0392b;
color: #fff;
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(192,57,43,0.4);
}
.bb-btn svg { transition: transform 0.25s; }
.bb-btn:hover svg { transform: translateX(4px); }

/* COURSES STRIP */
.bb-courses {
background: #f4f5f7;
border-radius: 0 0 18px 18px;
padding: 30px 34px 38px;
border: 1px solid #e6e7ea;
border-top: none;
}

/* ========================================
COURSE CARD
======================================== */
.cc-wrap {
background: #fff;
border-radius: 14px;
overflow: hidden;
box-shadow: 0 2px 14px rgba(0,0,0,0.055);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
}
.cc-wrap:hover {
transform: translateY(-7px);
box-shadow: 0 18px 42px rgba(0,0,0,0.11);
}
.cc-img {
position: relative;
height: 195px;
overflow: hidden;
}
.cc-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.45s ease;
}
.cc-wrap:hover .cc-img img { transform: scale(1.07); }
.cc-img-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(23,0,6,0.6) 0%, transparent 55%);
}
.cc-body-tag {
position: absolute;
top: 13px; left: 13px;
background: rgba(23,0,6,0.72);
backdrop-filter: blur(5px);
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 4px 11px;
border-radius: 20px;
letter-spacing: 0.6px;
text-transform: uppercase;
}
.cc-level-tag {
position: absolute;
bottom: 13px; right: 13px;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(6px);
border: 1px solid rgba(255,255,255,0.3);
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 3px 10px;
border-radius: 20px;
}
.cc-body {
padding: 20px 22px 22px;
flex: 1;
display: flex;
flex-direction: column;
}
.cc-cat {
font-size: 11px;
font-weight: 700;
color: #c0392b;
text-transform: uppercase;
letter-spacing: 0.9px;
margin-bottom: 7px;
}
.cc-title {
font-size: 15.5px;
font-weight: 700;
color: #170006;
line-height: 1.42;
margin-bottom: 14px;
flex: 1;
}
.cc-title a { color: inherit; text-decoration: none; }
.cc-title a:hover { color: #c0392b; }
.cc-meta {
display: flex;
align-items: center;
gap: 18px;
padding: 12px 0;
border-bottom: 1px solid #f0f0f0;
margin-bottom: 14px;
}
.cc-meta-item {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: #888;
font-weight: 500;
}
.cc-cta {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 13px;
font-weight: 700;
color: #170006;
text-decoration: none;
transition: color 0.2s, gap 0.2s;
}
.cc-cta:hover { color: #c0392b; gap: 9px; }

/* ========================================
MISC
======================================== */
.footer { position: relative; z-index: 1; margin-top: 0; }
.footer-cta { padding: 40px 0 35px; }

@media (max-width: 991px) {
.side-dot-nav { display: none; }
.bb-header { padding: 26px 22px; border-radius: 14px 14px 0 0; }
.bb-courses { padding: 20px 16px 26px; }
}
@media (max-width: 767px) {
.bb-header { flex-direction: column; align-items: flex-start; }
.bb-btn { width: 100%; justify-content: center; }
.qfb { padding: 14px 16px; font-size: 12.5px; }
}