.path-details-page {
    --navy: #164b61;
    --navy-deep: #123d50;
    --teal: #278c9b;
    --teal-dark: #176d73;
    --green: #4d8c78;

    --yellow: #e5b842;
    --orange: #e79a59;
    --pink: #d77b98;
    --purple: #8a78b4;
    --blue: #6499bb;

    --text: #435f6b;
    --muted: #788b92;
    --line: rgba(22, 75, 97, 0.09);
    --white: #ffffff;

    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: none;
    min-height: 100vh;

    margin: 0;
    padding: 27px max(28px, calc((100% - 1184px) / 2)) 85px;

    direction: rtl;
    color: var(--navy);

    /* One continuous, colorful page background */
    background-color: #f8faf7;
    background-image:
        radial-gradient(
            ellipse at 5% 8%,
            rgba(248, 205, 218, 0.48) 0%,
            rgba(248, 205, 218, 0.18) 19%,
            transparent 39%
        ),
        radial-gradient(
            ellipse at 96% 20%,
            rgba(180, 225, 218, 0.48) 0%,
            rgba(180, 225, 218, 0.18) 22%,
            transparent 42%
        ),
        radial-gradient(
            ellipse at 78% 53%,
            rgba(215, 204, 239, 0.32) 0%,
            transparent 36%
        ),
        radial-gradient(
            ellipse at 10% 72%,
            rgba(255, 225, 168, 0.36) 0%,
            transparent 34%
        ),
        radial-gradient(
            ellipse at 55% 96%,
            rgba(190, 229, 215, 0.38) 0%,
            transparent 39%
        ),
        linear-gradient(
            135deg,
            #fffaf6 0%,
            #f5faf7 32%,
            #f8f6fc 66%,
            #fff9f1 100%
        );

    background-repeat: no-repeat;
    background-size: 100% 100%;

    border-radius: 0;

    /* Keep decorations inside the page without clipping content */
    overflow: visible;
}

.path-details-page *,
.path-details-page *::before,
.path-details-page *::after {
    box-sizing: border-box;
}

.path-details-page a {
    -webkit-tap-highlight-color: transparent;
}

.path-details-page img {
    max-width: 100%;
}


/* ==========================================================
   2. BREADCRUMB
========================================================== */

.path-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 22px;
    padding: 0 2px;

    color: #84949a;
    font-size: 12px;
    line-height: 1.8;
}

.path-breadcrumb a {
    color: var(--teal);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.path-breadcrumb a:hover {
    color: var(--navy);
}

.path-breadcrumb span:last-child {
    color: var(--navy);
    font-weight: 800;
}


/* ==========================================================
   3. COMPACT HERO
========================================================== */

.path-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 0;
    margin: 0 0 65px;
    padding: 42px 48px 38px;

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 30px 30px 30px 12px;

    background:
        radial-gradient(
            circle at 88% 7%,
            rgba(235, 194, 81, 0.31),
            transparent 25%
        ),
        radial-gradient(
            circle at 8% 95%,
            rgba(225, 128, 158, 0.25),
            transparent 27%
        ),
        radial-gradient(
            circle at 72% 100%,
            rgba(99, 159, 195, 0.23),
            transparent 29%
        ),
        linear-gradient(
            125deg,
            #153f54 0%,
            #195f70 48%,
            #288c91 100%
        );

    box-shadow:
        0 18px 42px rgba(22, 75, 97, 0.12),
        0 3px 9px rgba(22, 75, 97, 0.04);
}


/* Subtle highlight */

.path-hero::before {
    content: "";
    position: absolute;
    z-index: 0;

    width: 390px;
    height: 390px;
    top: -265px;
    right: 36%;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 25px rgba(255, 255, 255, 0.025),
        0 0 0 55px rgba(255, 255, 255, 0.02);

    pointer-events: none;
}

.path-hero::after {
    content: "✳";
    position: absolute;
    z-index: 1;

    left: 34px;
    top: 30px;

    color: rgba(255, 222, 126, 0.75);
    font-size: 34px;
    line-height: 1;

    pointer-events: none;
    animation: path-sparkle 8s ease-in-out infinite;
}


/* ==========================================================
   4. HERO DECORATIONS
========================================================== */

.path-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.path-shape-one {
    width: 230px;
    height: 230px;

    left: -145px;
    top: -115px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;

    background: rgba(233, 120, 155, 0.19);
    transform: rotate(-25deg);
}

.path-shape-two {
    width: 145px;
    height: 145px;

    right: 65px;
    top: -83px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    background: rgba(242, 201, 76, 0.17);
}

.path-shape-three {
    width: 175px;
    height: 110px;

    right: -75px;
    bottom: 20px;

    border-radius: 60% 40% 50% 50%;
    background: rgba(139, 115, 184, 0.21);

    transform: rotate(-20deg);
}

.path-shape-four {
    width: 67px;
    height: 67px;

    left: 38%;
    bottom: -36px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    background: rgba(242, 153, 74, 0.22);
    transform: rotate(35deg);
}


/* Dotted decoration */

.path-dots {
    position: absolute;
    z-index: 1;

    right: 25px;
    bottom: 22px;

    width: 90px;
    height: 70px;

    opacity: 0.20;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.9) 1.5px,
            transparent 1.5px
        );

    background-size: 13px 13px;
    pointer-events: none;
}


/* Floating dots */

.floating-dot {
    position: absolute;
    z-index: 2;
    display: block;

    border-radius: 50%;
    pointer-events: none;

    animation: path-dot-float 5s ease-in-out infinite;
}

.dot-one {
    width: 11px;
    height: 11px;

    left: 12%;
    top: 25%;

    background: var(--yellow);
}

.dot-two {
    width: 8px;
    height: 8px;

    left: 28%;
    top: 13%;

    background: var(--pink);
    animation-delay: 1s;
}

.dot-three {
    width: 13px;
    height: 13px;

    right: 32%;
    bottom: 18%;

    background: var(--orange);
    animation-delay: 1.5s;
}

.dot-four {
    width: 8px;
    height: 8px;

    right: 15%;
    top: 43%;

    background: rgba(255, 255, 255, 0.85);
    animation-delay: 2s;
}


/* ==========================================================
   5. HERO CONTENT
========================================================== */

.path-hero-content {
    position: relative;
    z-index: 4;

    max-width: 820px;
}


/* Label */

.path-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 17px;
    padding: 7px 13px 7px 8px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;

    font-size: 11px;
    font-weight: 800;

    backdrop-filter: blur(10px);
}

.label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 29px;
    height: 29px;

    color: var(--navy);
    background: var(--yellow);
    border-radius: 50%;

    font-size: 12px;

    box-shadow: 0 4px 12px rgba(242, 201, 76, 0.20);
}


/* Hero icon */

.path-hero-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 67px;
    height: 67px;

    margin: 0 0 17px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 21px 21px 21px 8px;

    font-size: 28px;

    backdrop-filter: blur(10px);
    box-shadow: 0 10px 23px rgba(0, 0, 0, 0.10);

    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.path-hero-icon:hover {
    transform: rotate(2deg) scale(1.04);
}

.icon-ring {
    position: absolute;
    inset: -6px;

    border: 1.5px dashed rgba(255, 255, 255, 0.27);
    border-radius: 24px 24px 24px 10px;

    pointer-events: none;
    animation: path-ring-rotate 22s linear infinite;
}


/* Hero title */

.path-hero h1 {
    max-width: 800px;
    margin: 0 0 12px;

    color: #ffffff;
    font-size: clamp(30px, 3.7vw, 45px);
    font-weight: 900;
    line-height: 1.42;
    letter-spacing: -0.8px;

    overflow-wrap: anywhere;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
}


/* Description */

.path-description {
    max-width: 690px;
    margin: 0;

    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
}


/* ==========================================================
   6. HERO INFO & CERTIFICATE ROW
========================================================== */

.path-hero-bottom {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 23px;
}


/* Shared info card */

.hero-info-card {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 135px;
    padding: 9px 12px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 13px 13px 13px 5px;

    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.08);
}

.hero-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 37px;
    height: 37px;

    color: var(--teal);
    background: #e5f3f0;
    border-radius: 11px;

    font-size: 15px;
}

.hero-info-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-info-card strong {
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.hero-info-card span {
    color: #788b91;
    font-size: 10px;
    line-height: 1.5;
}


/* Certificate */

.path-certificate {
    display: flex;
    align-items: center;
    gap: 10px;

    max-width: 365px;
    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 13px 13px 13px 5px;

    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.08);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(0, 0, 0, 0.11);
}

.certificate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 39px;
    height: 39px;

    color: #987018;
    background: linear-gradient(140deg, #fff5ce, #f5dfa0);
    border-radius: 11px;

    font-size: 16px;
}

.certificate-text {
    display: flex;
    flex-direction: column;
    gap: 3px;

    text-align: right;
}

.certificate-text strong {
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
}

.certificate-text span {
    color: #778990;
    font-size: 9.5px;
    line-height: 1.65;
}


/* Floating card */

.hero-floating-card {
    position: absolute;
    z-index: 3;

    left: 38px;
    bottom: 34px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 65px;
    height: 65px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px 18px 18px 7px;

    backdrop-filter: blur(9px);
    transform: rotate(6deg);

    animation: path-card-float 5s ease-in-out infinite;
}

.hero-floating-card i {
    color: var(--yellow);
    font-size: 18px;
}

.hero-floating-card span {
    font-size: 10px;
    font-weight: 800;
}


/* ==========================================================
   7. COURSES SECTION HEADING
========================================================== */

.path-courses-section {
    position: relative;
    padding: 0 0 12px;
}

.path-courses-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;

    margin-bottom: 29px;
}

.courses-heading {
    max-width: 680px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 8px;

    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 900;
}

.label-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 27px;
    height: 27px;

    color: #8c6915;
    background: #f9edc9;
    border: 1px solid rgba(213, 163, 50, 0.13);
    border-radius: 9px 9px 9px 3px;

    font-size: 10px;
}

.path-courses-header h2 {
    margin: 0;

    color: var(--navy);
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.4px;
}

.courses-heading p {
    margin: 6px 0 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}


/* Total count */

.courses-total {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    padding: 9px 12px;

    background: rgba(239, 248, 246, 0.90);
    border: 1px solid #dceee9;
    border-radius: 14px 14px 14px 5px;
}

.total-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 37px;
    height: 37px;

    color: var(--teal);
    background: #ffffff;
    border-radius: 11px;

    font-size: 14px;
}

.courses-total div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.courses-total strong {
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.courses-total div span {
    color: #7d8e92;
    font-size: 9px;
    line-height: 1.5;
}


/* ==========================================================
   8. COURSES GRID
========================================================== */

.path-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 23px;
}


/* ==========================================================
   9. COURSE CARD
========================================================== */

.path-course-card {
    --card-accent: #278c9b;
    --card-soft: #e8f4f1;
    --card-deep: #185e61;

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    min-width: 0;

    overflow: hidden;

    color: inherit;
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(22, 75, 97, 0.075);
    border-radius: 22px 22px 22px 8px;

    text-decoration: none;

    box-shadow:
        0 7px 20px rgba(22, 75, 97, 0.045),
        0 16px 34px rgba(22, 75, 97, 0.025);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        border-radius 0.28s ease;
}


/* Alternate subtle card palettes */

.path-course-card:nth-child(4n + 1) {
    --card-accent: #b38a2c;
    --card-soft: #faf1da;
    --card-deep: #715619;
}

.path-course-card:nth-child(4n + 2) {
    --card-accent: #4383a4;
    --card-soft: #e8f1f7;
    --card-deep: #285873;
}

.path-course-card:nth-child(4n + 3) {
    --card-accent: #bb6b83;
    --card-soft: #f8eaf0;
    --card-deep: #78384f;
}

.path-course-card:nth-child(4n + 4) {
    --card-accent: #54845a;
    --card-soft: #eaf3e7;
    --card-deep: #315f38;
}


/* Small colored top accent */

.path-course-card::before {
    content: "";
    position: absolute;
    z-index: 8;
    top: 0;
    right: 0;

    width: 0;
    height: 4px;

    background: var(--card-accent);
    transition: width 0.3s ease;
}

.path-course-card:hover {
    transform: translateY(-6px);

    border-color: color-mix(
        in srgb,
        var(--card-accent) 25%,
        white
    );

    border-radius: 22px 22px 8px 22px;

    box-shadow:
        0 13px 28px rgba(22, 75, 97, 0.075),
        0 23px 42px rgba(22, 75, 97, 0.045);
}

.path-course-card:hover::before {
    width: 100%;
}

.path-course-card:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}


/* ==========================================================
   10. COURSE IMAGE
========================================================== */

.path-course-image {
    position: relative;
    isolation: isolate;

    height: 205px;
    flex-shrink: 0;

    overflow: hidden;
    background: var(--card-soft);
}

.path-course-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s cubic-bezier(0.2, 0.7, 0.25, 1),
        filter 0.3s ease;
}

.path-course-card:hover .path-course-image img {
    transform: scale(1.055);
    filter: saturate(1.04);
}


/* Image overlay */

.course-image-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(17, 54, 69, 0.36),
        transparent 57%
    );

    pointer-events: none;
}


/* Course number */

.course-number {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px 10px 10px 4px;

    font-size: 10px;
    font-weight: 900;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
    backdrop-filter: blur(8px);
}


/* Course type badge */

.path-course-type {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    max-width: calc(100% - 70px);
    padding: 7px 10px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--card-deep);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px 10px 10px 4px;

    font-size: 10px;
    font-weight: 900;

    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.path-course-type i {
    color: var(--card-accent);
    font-size: 10px;
}


/* View icon */

.course-view-icon {
    position: absolute;
    z-index: 4;
    bottom: 13px;
    left: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;

    font-size: 11px;

    opacity: 0;
    transform: translateX(-6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.path-course-card:hover .course-view-icon,
.path-course-card:focus-visible .course-view-icon {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================
   11. COURSE CONTENT
========================================================== */

.path-course-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 19px 19px 17px;
}

.path-course-content h3 {
    margin: 0 0 9px;

    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.65;
    overflow-wrap: anywhere;

    transition: color 0.22s ease;
}

.path-course-card:hover .path-course-content h3 {
    color: var(--card-deep);
}

.path-course-content p {
    margin: 0 0 15px;

    color: #6f8289;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.9;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================
   12. COURSE META
========================================================== */

.course-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
    margin-bottom: 15px;
}


/* Rating */

.path-course-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 8px;

    color: #5e6870;
    background: #fff8e7;
    border: 1px solid #f5e9c7;
    border-radius: 9px;

    font-size: 11px;
}

.path-course-rating i {
    color: #d8a62e;
    font-size: 10px;
}

.path-course-rating strong {
    color: #586870;
    font-weight: 900;
}

.path-course-rating span {
    color: #89979b;
    font-size: 9px;
}


/* Certificate label */

.mini-certificate {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 8px;

    color: #6f598d;
    background: #f4eff8;
    border: 1px solid #e9e0f0;
    border-radius: 9px;

    font-size: 9px;
    font-weight: 900;
}

.mini-certificate i {
    color: #8a78b4;
    font-size: 10px;
}


/* ==========================================================
   13. COURSE FOOTER
========================================================== */

.path-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px;

    padding-top: 13px;

    border-top: 1px solid rgba(22, 75, 97, 0.075);
}

.course-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #788a90;
    font-size: 10px;
    line-height: 1.6;
}

.course-duration i {
    color: var(--card-accent);
    font-size: 11px;
}

.view-course {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--card-accent);
    font-size: 11px;
    font-weight: 900;

    transition: color 0.2s ease, transform 0.2s ease;
}

.path-course-card:hover .view-course {
    color: var(--card-deep);
    transform: translateX(-3px);
}

.view-course i {
    font-size: 10px;
}


/* ==========================================================
   14. EMPTY STATE
========================================================== */

.path-empty {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 62px 24px;

    text-align: center;

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(233, 120, 155, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(242, 201, 76, 0.15),
            transparent 24%
        ),
        rgba(255, 255, 255, 0.66);

    border: 1px solid rgba(22, 75, 97, 0.08);
    border-radius: 26px 26px 26px 9px;
}


/* Empty state decorations */

.empty-decoration {
    position: absolute;
    z-index: -1;

    border-radius: 50%;
    pointer-events: none;
}

.empty-one {
    width: 150px;
    height: 150px;

    left: -65px;
    top: -70px;

    background: rgba(233, 120, 155, 0.11);
}

.empty-two {
    width: 130px;
    height: 130px;

    right: -55px;
    bottom: -65px;

    background: rgba(242, 201, 76, 0.14);
}


/* Empty icon */

.path-empty-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    color: var(--teal);
    background: #e5f3ef;
    border: 1px solid #d9eee8;
    border-radius: 22px 22px 22px 7px;

    font-size: 26px;

    box-shadow: 0 9px 22px rgba(39, 140, 155, 0.09);
    transform: rotate(-3deg);
}

.path-empty h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 8px;

    color: var(--navy);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.6;
}

.path-empty p {
    position: relative;
    z-index: 1;

    max-width: 470px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}


/* Empty button */

.empty-button {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 21px;
    padding: 11px 17px;

    color: #ffffff;
    background: var(--navy);
    border-radius: 12px 12px 12px 4px;

    font-size: 11px;
    font-weight: 900;
    text-decoration: none;

    transition:
        background 0.22s ease,
        transform 0.22s ease;
}

.empty-button:hover {
    color: #ffffff;
    background: var(--teal-dark);
    transform: translateY(-2px);
}


/* ==========================================================
   15. BOTTOM CALL TO ACTION
========================================================== */

.path-bottom-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    margin-top: 68px;
    padding: 46px 25px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 27px 27px 27px 10px;

    background:
        radial-gradient(
            circle at 16% 22%,
            rgba(233, 120, 155, 0.21),
            transparent 26%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(242, 201, 76, 0.23),
            transparent 27%
        ),
        linear-gradient(
            125deg,
            #164b61,
            #207887 62%,
            #398f91
        );

    box-shadow: 0 16px 36px rgba(22, 75, 97, 0.12);
}


/* CTA decorations */

.cta-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.cta-shape-one {
    width: 180px;
    height: 180px;

    left: -85px;
    top: -100px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.025);
}

.cta-shape-two {
    width: 130px;
    height: 130px;

    right: -55px;
    bottom: -72px;

    background: rgba(255, 255, 255, 0.055);
}


/* CTA content */

.cta-content {
    position: relative;
    z-index: 2;

    max-width: 620px;
    margin: 0 auto;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin-bottom: 12px;

    color: var(--navy);
    background: var(--yellow);
    border-radius: 13px 13px 13px 5px;

    font-size: 19px;
    transform: rotate(-4deg);
}

.cta-content h2 {
    margin: 0 0 9px;

    color: #ffffff;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 900;
    line-height: 1.5;
}

.cta-content p {
    max-width: 510px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.95;
}


/* CTA button */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 20px;
    padding: 11px 18px;

    color: var(--navy);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px 12px 12px 4px;

    font-size: 11px;
    font-weight: 900;
    text-decoration: none;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.22s ease,
        background 0.22s ease;
}

.cta-button:hover {
    color: var(--navy);
    background: #ffefb5;
    transform: translateY(-3px);
}


/* ==========================================================
   16. TABLET
========================================================== */

@media (max-width: 1000px) {
    .path-details-page {
        padding-right: 23px;
        padding-left: 23px;
    }

    .path-hero {
        padding: 38px 38px 34px;
        margin-bottom: 55px;
    }

    .path-hero h1 {
        max-width: 690px;
        font-size: clamp(30px, 4.2vw, 40px);
    }

    .path-hero-content {
        max-width: 740px;
    }

    .hero-floating-card {
        left: 24px;
        bottom: 24px;
        width: 58px;
        height: 58px;
    }

    .path-courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 21px;
    }

    .path-course-image {
        height: 205px;
    }

    .path-course-content {
        padding: 18px;
    }

    .path-bottom-cta {
        margin-top: 55px;
    }
}


/* ==========================================================
   17. SMALLER TABLETS
========================================================== */

@media (max-width: 760px) {
    .path-hero {
        padding: 34px 30px 30px;
    }

    .path-hero-content {
        max-width: 100%;
    }

    .hero-floating-card {
        display: none;
    }

    .path-courses-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .courses-total {
        align-self: flex-start;
    }

    .path-course-image {
        height: 195px;
    }
}


/* ==========================================================
   18. MOBILE
========================================================== */

@media (max-width: 600px) {
    .path-details-page {
        width: 100%;
        max-width: 100%;
        padding: 19px 15px 60px;
    }

    .path-breadcrumb {
        gap: 6px;
        margin-bottom: 17px;
        font-size: 10px;
    }


    /* Compact hero */

    .path-hero {
        padding: 29px 22px 24px;
        margin-bottom: 45px;

        border-radius: 23px 23px 23px 8px;
    }

    .path-hero::after {
        top: 20px;
        left: 17px;
        font-size: 25px;
    }

    .path-shape-one {
        width: 155px;
        height: 155px;
        left: -100px;
        top: -80px;
    }

    .path-shape-two {
        width: 100px;
        height: 100px;
        right: 15px;
        top: -58px;
    }

    .path-shape-three {
        width: 120px;
        height: 80px;
        right: -65px;
        bottom: 10px;
    }

    .path-shape-four {
        width: 45px;
        height: 45px;
        left: 40%;
        bottom: -25px;
        border-radius: 13px;
    }

    .path-dots {
        width: 60px;
        height: 48px;
        right: 12px;
        bottom: 12px;
        background-size: 11px 11px;
    }

    .path-label {
        gap: 7px;
        margin-bottom: 15px;
        padding: 6px 10px 6px 7px;
        font-size: 10px;
    }

    .label-icon {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .path-hero-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
        border-radius: 17px 17px 17px 6px;
        font-size: 23px;
    }

    .icon-ring {
        inset: -5px;
        border-radius: 20px 20px 20px 8px;
    }

    .path-hero h1 {
        margin-bottom: 10px;
        font-size: clamp(26px, 7.2vw, 34px);
        line-height: 1.48;
        letter-spacing: -0.4px;
    }

    .path-description {
        font-size: 12px;
        line-height: 1.95;
    }

    .path-hero-bottom {
        gap: 9px;
        margin-top: 19px;
    }

    .hero-info-card {
        min-width: 0;
        padding: 8px 10px;
        gap: 8px;
    }

    .hero-info-icon {
        width: 33px;
        height: 33px;
        font-size: 13px;
    }

    .hero-info-card strong {
        font-size: 14px;
    }

    .hero-info-card span {
        font-size: 9px;
    }

    .path-certificate {
        width: 100%;
        max-width: 100%;
        padding: 9px 10px;
        gap: 9px;
    }

    .certificate-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .certificate-text strong {
        font-size: 10px;
    }

    .certificate-text span {
        font-size: 9px;
    }


    /* Courses heading */

    .path-courses-header {
        gap: 14px;
        margin-bottom: 23px;
    }

    .section-label {
        gap: 7px;
        margin-bottom: 7px;
        font-size: 11px;
    }

    .label-number {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }

    .path-courses-header h2 {
        font-size: 25px;
        line-height: 1.5;
    }

    .courses-heading p {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.9;
    }

    .courses-total {
        padding: 8px 10px;
        gap: 9px;
    }

    .total-icon {
        width: 33px;
        height: 33px;
        font-size: 13px;
    }

    .courses-total strong {
        font-size: 14px;
    }

    .courses-total div span {
        font-size: 9px;
    }


    /* Single-column course cards */

    .path-courses-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .path-course-card {
        border-radius: 20px 20px 20px 7px;
    }

    .path-course-card:hover {
        transform: translateY(-3px);
    }

    .path-course-image {
        height: clamp(185px, 53vw, 235px);
    }

    .course-number {
        top: 10px;
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .path-course-type {
        top: 10px;
        right: 10px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .course-view-icon {
        width: 32px;
        height: 32px;
        opacity: 1;
        transform: none;
    }

    .path-course-content {
        padding: 17px 17px 15px;
    }

    .path-course-content h3 {
        margin-bottom: 8px;
        font-size: 17px;
        line-height: 1.65;
    }

    .path-course-content p {
        margin-bottom: 13px;
        font-size: 12px;
        line-height: 1.85;
    }

    .course-meta-row {
        gap: 7px;
        margin-bottom: 13px;
    }

    .path-course-rating {
        padding: 6px 7px;
        font-size: 10px;
    }

    .mini-certificate {
        padding: 6px 7px;
        font-size: 9px;
    }

    .path-course-footer {
        gap: 8px;
        padding-top: 12px;
    }

    .course-duration,
    .view-course {
        font-size: 10px;
    }


    /* Empty state */

    .path-empty {
        padding: 44px 18px;
        border-radius: 22px 22px 22px 7px;
    }

    .path-empty-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 15px;
        font-size: 23px;
    }

    .path-empty h3 {
        font-size: 19px;
    }

    .path-empty p {
        font-size: 11px;
    }


    /* CTA */

    .path-bottom-cta {
        margin-top: 45px;
        padding: 38px 19px;
        border-radius: 22px 22px 22px 8px;
    }

    .cta-icon {
        width: 39px;
        height: 39px;
        font-size: 17px;
    }

    .cta-content h2 {
        font-size: 24px;
        line-height: 1.55;
    }

    .cta-content p {
        font-size: 11px;
        line-height: 1.9;
    }

    .cta-button {
        margin-top: 18px;
        padding: 10px 15px;
        font-size: 11px;
    }
}


/* ==========================================================
   19. VERY SMALL MOBILE
========================================================== */

@media (max-width: 370px) {
    .path-details-page {
        padding-right: 11px;
        padding-left: 11px;
    }

    .path-hero {
        padding: 25px 17px 21px;
    }

    .path-hero h1 {
        font-size: 26px;
    }

    .path-description {
        font-size: 11px;
    }

    .path-hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-info-card {
        width: fit-content;
    }

    .path-courses-header h2 {
        font-size: 23px;
    }

    .path-course-image {
        height: 180px;
    }

    .path-course-content {
        padding: 16px 14px;
    }

    .path-course-content h3 {
        font-size: 16px;
    }

    .path-course-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-meta-row {
        justify-content: flex-start;
    }

    .path-bottom-cta {
        padding: 34px 15px;
    }

    .cta-content h2 {
        font-size: 22px;
    }
}


/* ==========================================================
   20. ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .path-details-page *,
    .path-details-page *::before,
    .path-details-page *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Keep the robot icon and path name on the same line */
.path-hero h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Keep the robot icon directly before the path name */
.path-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    margin: 0;
}

/* Remove the decorative ring behind the robot icon */
.path-hero-icon .icon-ring {
    display: none !important;
}

/* Remove any small decorative dot attached to the title */
.path-hero h1::before,
.path-hero h1::after {
    content: none !important;
    display: none !important;
}

/* Mobile alignment */
@media (max-width: 600px) {
    .path-hero h1 {
        gap: 9px;
    }
}

/* Main title row */
.path-hero .path-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 13px;

    width: 100%;
    max-width: 800px;
    margin: 0 0 12px;

    direction: rtl;
    color: #ffffff;
    font-size: clamp(30px, 3.7vw, 45px);
    font-weight: 900;
    line-height: 1.42;
    letter-spacing: -0.8px;

    overflow-wrap: anywhere;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
}

/* Icon beside the path name */
.path-hero .path-title-icon {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 55px;

    width: 55px;
    height: 55px;
    margin: 0;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 17px 17px 17px 6px;

    font-size: 26px;
    text-shadow: none;

    box-shadow: 0 8px 19px rgba(0, 0, 0, 0.09);
    backdrop-filter: blur(10px);

    transition: transform 0.3s ease;
}

.path-hero .path-title-icon:hover {
    transform: scale(1.06) rotate(-3deg);
}

/* Path name */
.path-hero .path-title-text {
    display: inline-block;
    flex: 0 1 auto;
    min-width: 0;

    color: #ffffff;
    overflow-wrap: anywhere;
}

/* Remove decorative circles or pseudo-elements around the icon/title */
.path-hero .path-title-icon::before,
.path-hero .path-title-icon::after,
.path-hero .path-title-row::before,
.path-hero .path-title-row::after {
    content: none !important;
    display: none !important;
}

/* Tablet */
@media (max-width: 1000px) {
    .path-hero .path-title-row {
        max-width: 690px;
        font-size: clamp(30px, 4.2vw, 40px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .path-hero .path-title-row {
        gap: 10px;
        margin-bottom: 10px;
        font-size: clamp(26px, 7.2vw, 34px);
        line-height: 1.48;
        letter-spacing: -0.4px;
    }

    .path-hero .path-title-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;

        border-radius: 14px 14px 14px 5px;
        font-size: 21px;
    }
}

/* Very small mobile */
@media (max-width: 370px) {
    .path-hero .path-title-row {
        gap: 8px;
        font-size: 26px;
    }

    .path-hero .path-title-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        font-size: 19px;
    }
}

.path-details-page .path-course-card {
    --card-accent: #438b8b;
    --card-soft: #eaf5f1;
    --card-deep: #205e61;
    --card-glow: rgba(67, 139, 139, 0.15);

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    color: var(--navy);
    text-decoration: none;

    background:
        radial-gradient(
            circle at 100% 0%,
            var(--card-soft) 0,
            transparent 43%
        ),
        rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(22, 75, 97, 0.09);
    border-radius: 25px 25px 25px 9px;

    box-shadow:
        0 5px 12px rgba(22, 75, 97, 0.035),
        0 13px 28px rgba(22, 75, 97, 0.055);

    transform: translateY(0);

    transition:
        transform 0.35s cubic-bezier(.2, .75, .25, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease,
        border-radius 0.3s ease;
}

/* Individual soft color identities */

.path-details-page .path-course-card:nth-child(4n + 1) {
    --card-accent: #bd922f;
    --card-soft: #fbf0d3;
    --card-deep: #705315;
    --card-glow: rgba(189, 146, 47, 0.16);
}

.path-details-page .path-course-card:nth-child(4n + 2) {
    --card-accent: #4386a9;
    --card-soft: #e5f0f8;
    --card-deep: #285773;
    --card-glow: rgba(67, 134, 169, 0.16);
}

.path-details-page .path-course-card:nth-child(4n + 3) {
    --card-accent: #bd7089;
    --card-soft: #f8e8ef;
    --card-deep: #78384f;
    --card-glow: rgba(189, 112, 137, 0.16);
}

.path-details-page .path-course-card:nth-child(4n + 4) {
    --card-accent: #608d60;
    --card-soft: #e9f2e5;
    --card-deep: #315f38;
    --card-glow: rgba(96, 141, 96, 0.16);
}

/* Colorful corner glow */

.path-details-page .path-course-card::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 145px;
    height: 145px;

    top: 145px;
    right: -90px;

    border-radius: 50%;
    background: var(--card-glow);

    opacity: 0;
    transform: scale(.65);

    transition:
        opacity .4s ease,
        transform .5s ease;

    pointer-events: none;
}

/* Animated accent line */

.path-details-page .path-course-card::before {
    content: "";
    position: absolute;
    z-index: 5;

    top: 0;
    right: 18px;

    width: 42px;
    height: 5px;

    border-radius: 0 0 8px 8px;
    background: var(--card-accent);

    transition:
        width .35s ease,
        right .35s ease;
}

.path-details-page .path-course-card:hover {
    transform: translateY(-9px) rotate(-.35deg);

    border-color: color-mix(
        in srgb,
        var(--card-accent) 32%,
        white
    );

    border-radius: 25px 25px 9px 25px;

    box-shadow:
        0 10px 20px var(--card-glow),
        0 25px 48px rgba(22, 75, 97, 0.10);
}

.path-details-page .path-course-card:hover::before {
    right: 22px;
    width: 76px;
}

.path-details-page .path-course-card:hover::after {
    opacity: 1;
    transform: scale(1.25);
}

.path-details-page .path-course-card:focus-visible {
    outline: 3px solid var(--card-accent);
    outline-offset: 5px;
}


/* ----------------------------------------------------------
   2. IMAGE — BOLDER, RICHER, MORE CINEMATIC
---------------------------------------------------------- */

.path-details-page .path-course-image {
    position: relative;
    isolation: isolate;

    height: 225px;
    flex-shrink: 0;

    overflow: hidden;

    background: var(--card-soft);
    border-radius: 0 0 25px 0;
}

/* Give the image a little extra depth */

.path-details-page .path-course-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(16, 48, 62, .03) 0%,
            transparent 40%,
            rgba(16, 48, 62, .28) 100%
        );

    pointer-events: none;
}

.path-details-page .path-course-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.015);

    transition:
        transform .7s cubic-bezier(.2, .7, .2, 1),
        filter .45s ease;
}

.path-details-page .path-course-card:hover
.path-course-image img {
    transform: scale(1.09) rotate(.6deg);
    filter: saturate(1.12) contrast(1.025);
}

/* Keep the existing overlay from darkening the image too much */

.path-details-page .course-image-overlay {
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(17, 54, 69, .23),
        transparent 55%
    );
}

/* Course number — overlapping sticker style */

.path-details-page .course-number {
    top: 15px;
    left: 15px;

    width: 39px;
    height: 39px;

    color: var(--card-deep);
    background: rgba(255, 255, 255, .96);

    border: 3px solid rgba(255, 255, 255, .7);
    border-radius: 13px 13px 13px 5px;

    font-size: 11px;
    font-weight: 900;

    box-shadow: 0 5px 14px rgba(18, 48, 60, .13);

    transform: rotate(-5deg);

    transition:
        transform .3s ease,
        background .3s ease;
}

.path-details-page .path-course-card:hover .course-number {
    transform: rotate(0deg) scale(1.07);
    background: var(--card-soft);
}

/* Course type — soft floating pill */

.path-details-page .path-course-type {
    top: 16px;
    right: 15px;

    max-width: calc(100% - 80px);
    padding: 9px 12px;

    color: var(--card-deep);
    background: rgba(255, 255, 255, .95);

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 11px 11px 11px 4px;

    font-size: 10px;
    font-weight: 900;

    box-shadow: 0 5px 15px rgba(18, 48, 60, .08);

    transition:
        transform .3s ease,
        background .3s ease;
}

.path-details-page .path-course-card:hover .path-course-type {
    transform: translateY(-2px);
    background: #fff;
}

.path-details-page .path-course-type i {
    color: var(--card-accent);
}

/* Discover icon */

.path-details-page .course-view-icon {
    bottom: 15px;
    left: 15px;

    width: 41px;
    height: 41px;

    color: var(--card-deep);
    background: rgba(255, 255, 255, .97);

    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 5px 15px rgba(18, 48, 60, .12);

    opacity: 0;
    transform: translate(-7px, 5px) scale(.88);

    transition:
        opacity .3s ease,
        transform .3s ease,
        background .3s ease;
}

.path-details-page .path-course-card:hover .course-view-icon,
.path-details-page .path-course-card:focus-visible .course-view-icon {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* ----------------------------------------------------------
   3. COURSE CONTENT — CLEARER HIERARCHY
---------------------------------------------------------- */

.path-details-page .path-course-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px 21px 19px;
}

/* Tiny accent marker above the title */

.path-details-page .path-course-content h3 {
    position: relative;

    margin: 0 0 11px;
    padding-right: 14px;

    color: #164b61;

    font-size: 18px;
    font-weight: 900;
    line-height: 1.75;
    letter-spacing: -.2px;

    overflow-wrap: anywhere;

    transition:
        color .3s ease,
        transform .3s ease;
}

.path-details-page .path-course-content h3::before {
    content: "";

    position: absolute;
    top: .62em;
    right: 0;

    width: 5px;
    height: 23px;

    border-radius: 5px;
    background: var(--card-accent);

    transition:
        height .3s ease,
        background .3s ease;
}

.path-details-page .path-course-card:hover
.path-course-content h3 {
    color: var(--card-deep);
    transform: translateX(-2px);
}

.path-details-page .path-course-card:hover
.path-course-content h3::before {
    height: 30px;
}

.path-details-page .path-course-content p {
    margin: 0 0 18px;

    color: #536d77;

    font-size: 12px;
    font-weight: 500;
    line-height: 2;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ----------------------------------------------------------
   4. META CHIPS — MORE COHESIVE
---------------------------------------------------------- */

.path-details-page .course-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
    margin-bottom: 17px;
}

/* Rating */

.path-details-page .path-course-rating {
    gap: 6px;
    padding: 8px 10px;

    color: #62552e;
    background: #fff7e3;
    border: 1px solid #f0e2bd;
    border-radius: 11px 11px 11px 4px;

    font-size: 11px;

    transition:
        transform .25s ease,
        background .25s ease;
}

.path-details-page .path-course-rating i {
    color: #d3a02d;
}

.path-details-page .path-course-rating strong {
    color: #665525;
    font-weight: 900;
}

.path-details-page .path-course-rating span {
    color: #7b7770;
    font-size: 10px;
}

.path-details-page .path-course-card:hover .path-course-rating {
    transform: translateY(-2px);
    background: #fff2cf;
}

/* Certificate chip */

.path-details-page .mini-certificate {
    gap: 6px;
    padding: 8px 10px;

    color: #66517f;
    background: #f2edf8;
    border: 1px solid #e4d9f0;
    border-radius: 11px 11px 11px 4px;

    font-size: 10px;
    font-weight: 900;

    transition:
        transform .25s ease,
        background .25s ease;
}

.path-details-page .mini-certificate i {
    color: #8871ae;
}

.path-details-page .path-course-card:hover .mini-certificate {
    transform: translateY(-2px);
    background: #ebe2f5;
}


/* ----------------------------------------------------------
   5. FOOTER — A MORE OBVIOUS CALL TO ACTION
---------------------------------------------------------- */

.path-details-page .path-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 15px;

    border-top: 1px dashed rgba(22, 75, 97, .17);
}

.path-details-page .course-duration {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #627982;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
}

.path-details-page .course-duration i {
    color: var(--card-accent);
    font-size: 12px;
}

/* CTA link becomes a small accent button on hover */

.path-details-page .view-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 11px;

    color: var(--card-deep);
    background: var(--card-soft);
    border: 1px solid transparent;
    border-radius: 11px 11px 11px 4px;

    font-size: 11px;
    font-weight: 900;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease,
        padding .25s ease;
}

.path-details-page .view-course i {
    font-size: 10px;
    transition: transform .25s ease;
}

.path-details-page .path-course-card:hover .view-course {
    color: #fff;
    background: var(--card-deep);
    transform: translateY(-2px);
}

.path-details-page .path-course-card:hover .view-course i {
    transform: translateX(-3px);
}


/* ----------------------------------------------------------
   6. ENTRANCE MOTION
---------------------------------------------------------- */

@keyframes course-card-enter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.path-details-page .path-courses-grid > .path-course-card {
    animation: course-card-enter .55s ease both;
}

.path-details-page .path-courses-grid > .path-course-card:nth-child(2) {
    animation-delay: .06s;
}

.path-details-page .path-courses-grid > .path-course-card:nth-child(3) {
    animation-delay: .12s;
}

.path-details-page .path-courses-grid > .path-course-card:nth-child(4) {
    animation-delay: .18s;
}

.path-details-page .path-courses-grid > .path-course-card:nth-child(5) {
    animation-delay: .24s;
}

.path-details-page .path-courses-grid > .path-course-card:nth-child(6) {
    animation-delay: .30s;
}


/* ----------------------------------------------------------
   7. TABLET
---------------------------------------------------------- */

@media (max-width: 1000px) {
    .path-details-page .path-course-image {
        height: 215px;
    }

    .path-details-page .path-course-content {
        padding: 20px 19px 18px;
    }

    .path-details-page .path-course-content h3 {
        font-size: 17px;
    }
}


/* ----------------------------------------------------------
   8. MOBILE
---------------------------------------------------------- */

@media (max-width: 600px) {
    .path-details-page .path-courses-grid {
        gap: 22px;
    }

    .path-details-page .path-course-card {
        border-radius: 22px 22px 22px 8px;
    }

    .path-details-page .path-course-card:hover {
        transform: translateY(-3px);
    }

    .path-details-page .path-course-image {
        height: clamp(205px, 59vw, 255px);
        border-radius: 0 0 22px 0;
    }

    .path-details-page .course-number {
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
    }

    .path-details-page .path-course-type {
        top: 13px;
        right: 12px;
        padding: 8px 10px;
        font-size: 9px;
    }

    .path-details-page .course-view-icon {
        width: 38px;
        height: 38px;
        opacity: 1;
        transform: none;
    }

    .path-details-page .path-course-content {
        padding: 20px 18px 17px;
    }

    .path-details-page .path-course-content h3 {
        font-size: 18px;
        line-height: 1.75;
    }

    .path-details-page .path-course-content p {
        font-size: 12px;
        line-height: 1.95;
    }

    .path-details-page .course-meta-row {
        gap: 8px;
    }

    .path-details-page .path-course-footer {
        align-items: center;
        gap: 9px;
    }

    .path-details-page .view-course {
        padding: 9px 10px;
    }
}


/* ----------------------------------------------------------
   9. ACCESSIBILITY — REDUCED MOTION
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .path-details-page .path-courses-grid > .path-course-card {
        animation: none !important;
    }

    .path-details-page .path-course-card,
    .path-details-page .path-course-card *,
    .path-details-page .path-course-card::before,
    .path-details-page .path-course-card::after {
        transition: none !important;
    }
}



/* ==========================================================
   COURSE CARD — DESCRIPTION APPEARS ON HOVER
========================================================== */

/* Hide the description initially */
.path-details-page .path-course-content p {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.35s ease,
        margin-top 0.3s ease,
        visibility 0.3s ease;
}

/* Reveal the description when hovering over the card */
.path-details-page .path-course-card:hover
.path-course-content p {
    opacity: 1;
    visibility: visible;
    max-height: 150px;
    margin-top: 10px;
    transform: translateY(0);
}

/* Also reveal it for keyboard navigation */
.path-details-page .path-course-card:focus-within
.path-course-content p {
    opacity: 1;
    visibility: visible;
    max-height: 150px;
    margin-top: 10px;
    transform: translateY(0);
}

/* Keep descriptions accessible on touch screens */
@media (hover: none) {
    .path-details-page .path-course-content p {
        opacity: 1;
        visibility: visible;
        max-height: 150px;
        margin-top: 10px;
        transform: none;
    }
}

/* ==========================================================
   PATH HERO — LARGER DESCRIPTION, SAME CARD SIZE
========================================================== */

/* Make the path description larger and more readable */
.path-details-page .path-hero .path-description {
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 500;
    max-width: 750px;

    /* Prevent the larger text from expanding the hero */
    position: relative;
    z-index: 2;
}

/* Remove decorative circles and shapes behind the description */
.path-details-page .path-hero .path-shape,
.path-details-page .path-hero .floating-dot,
.path-details-page .path-hero .path-dots {
    /* Keep other hero decorations unless they overlap the description */
}

/* Hide the floating circle/shape behind the description */
.path-details-page .path-hero .path-shape-three {
    display: none !important;
}

/* Keep the description readable on smaller screens */
@media (max-width: 768px) {
    .path-details-page .path-hero .path-description {
        font-size: 1.08rem;
        line-height: 1.8;
    }
}

/* ==========================================================
   PATH HERO — BIGGER DESCRIPTION WITHOUT BIGGER HERO
========================================================== */

/* Keep the hero at its existing size */
.path-details-page .path-hero {
    /* Preserve your existing height and padding */
    box-sizing: border-box;
}

/* Let the description use more horizontal space */
.path-details-page .path-hero .path-description {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;

    /* Remove restrictions that force early line breaks */
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;

    /* Don't add extra space around the description */
    margin-top: 10px;
    margin-bottom: 10px;

    position: relative;
    z-index: 2;
}

/* Remove the decorative shape behind the description */
.path-details-page .path-hero .path-shape-three {
    display: none !important;
}

/* Responsive text size */
@media (max-width: 768px) {
    .path-details-page .path-hero .path-description {
        font-size: 1.08rem;
        line-height: 1.6;
    }
}

/* ==========================================================
   PATH HERO — USE THE EMPTY SPACE ON THE LEFT
========================================================== */

/* Let the hero content occupy the full available width */
.path-details-page .path-hero-content {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Expand the description toward the left */
.path-details-page .path-description {
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;

    text-align: right;
    margin-left: 0;
    margin-right: 0;
}

/* Keep the hero's original outer dimensions */
.path-details-page .path-hero {
    box-sizing: border-box;
}

/* Smaller screens */
@media (max-width: 768px) {
    .path-details-page .path-description {
        font-size: 1.08rem;
        line-height: 1.7;
    }
}

/* ==========================================================
   HERO INFO — SUBTLE TEXT SIZE ADJUSTMENT
========================================================== */

/* Course count: 13 */
.path-details-page .hero-info-card strong {
    font-size: 1.15rem;
}

/* دورات تدريبية */
.path-details-page .hero-info-card span {
    font-size: 0.85rem;
}

/* شهادة إتمام 🎓 */
.path-details-page .certificate-text strong {
    font-size: 0.95rem;
}

/* Keep the certificate description on one line */
.path-details-page .certificate-text span {
    font-size: 0.78rem;
    white-space: nowrap;
    line-height: 1.4;
}

/* Prevent the certificate text area from shrinking */
.path-details-page .certificate-text {
    min-width: 0;
    flex: 1;
}

.path-details-page .path-certificate {
    min-width: max-content;
}

@media (max-width: 768px) {
    .path-details-page .certificate-text span {
        font-size: 0.72rem;
        white-space: normal;
    }

    .path-details-page .path-certificate {
        min-width: 0;
    }
}
