/* ── Pathology Section ── */
.bg-appointment2 {
    background: linear-gradient(rgba(10, 121, 121, 0.459), rgba(2, 9, 20, 0)), url(../img/pathology.jpg) center center no-repeat !important;
    background-size: cover;
}
.path-section {
    position: relative;
    padding: 50px 0 60px;
    background: transparent;
}

/* ── Section Badge ── */
.path-section .section-badge-path {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.path-section .section-badge-path::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00c9a7);
    border-radius: 4px;
}

/* ── Controls Row ── */
.path-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}

.path-controls h1 {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.path-btn-group {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.path-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.path-btn:hover {
    background: #fff;
    color: #0d6efd;
    border-color: #fff;
    transform: scale(1.08);
}

.path-btn:active {
    transform: scale(0.95);
}

/* ── Scroll Wrapper ── */
.scrolling-wrapper-path {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 20px;
    padding: 6px 4px 18px;
}

.scrolling-wrapper-path::-webkit-scrollbar {
    display: none;
}

/* ── Path Card ── */
.path-card {
    flex: 0 0 auto;
    width: 260px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease;
    cursor: pointer;
    border: none;
}

.path-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(13, 110, 253, 0.15);
}

/* ── Card Image Wrapper ── */
.path-card-img-wrap {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
}

.path-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.path-card:hover .path-card-img-wrap img {
    transform: scale(1.07);
}

/* ── Path Pill Badge on Image ── */
.path-card-img-wrap .img-badge-path {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
}

/* ── Card Body ── */
.path-card-body {
    padding: 15px 16px 18px;
    background: #fff;
}

.path-card-body a {
    text-decoration: none;
    color: inherit;
}

.path-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0d6efd;
    text-transform: capitalize;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color 0.2s;
}

.path-card:hover .path-card-title {
    color: #0a58ca;
}

.path-card-divider {
    height: 2px;
    width: 36px;
    background: linear-gradient(90deg, #0d6efd, #00c9a7);
    border-radius: 4px;
    margin-bottom: 10px;
}

.path-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: #0d6efd;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.path-meta-row:last-child {
    margin-bottom: 0;
}

.path-meta-row i {
    color: #0d6efd;
    font-size: 0.82rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.path-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e9f0ff;
}

.path-view-link {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s;
}

.path-card:hover .path-view-link {
    gap: 9px;
    color: #0a58ca;
}

/* ── Progress Bar ── */
.path-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 22px;
    overflow: hidden;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #00c9a7);
    border-radius: 10px;
    transition: width 0.35s ease;
    width: 0%;
}

/* ════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════ */

@media (max-width: 399px) {
    .path-card { width: calc(100vw - 60px); }
    .path-card-img-wrap { height: 155px; }
    .path-controls h1 { font-size: 1.2rem; }
    .scrolling-wrapper-path { gap: 14px; padding-left: 2px; padding-right: 14px; }
}

@media (min-width: 400px) and (max-width: 575px) {
    .path-card { width: calc(100vw - 80px); }
    .path-card-img-wrap { height: 165px; }
    .path-controls h1 { font-size: 1.3rem; }
    .scrolling-wrapper-path { gap: 16px; padding-left: 2px; padding-right: 16px; }
}

@media (min-width: 576px) and (max-width: 767px) {
    .path-card { width: 230px; }
    .path-card-img-wrap { height: 165px; }
    .path-controls h1 { font-size: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .path-card { width: 245px; }
    .path-card-img-wrap { height: 175px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .path-card { width: 255px; }
}

@media (min-width: 1400px) {
    .path-card { width: 280px; }
    .path-card-img-wrap { height: 210px; }
}