:root {
    /* Updated Color Pattern */
    --pma-primary: #4b7ed1;
    --pma-secondary: #ffb800;
    --pma-navy: #020202;
    --pma-light-bg: #f4f7fa;
    --pma-text: #475569;
    --pma-border: #e2e8f0;
    --pma-error: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--pma-light-bg);
}

/* Prevent scrolling when drawer is open */
body.drawer-open {
    overflow: hidden;
}

.modern-hero-section {
    position: relative;
    margin-top: 150px;
    padding: 80px 0 70px;
    overflow: hidden;
    background-color: #020202;
    min-height: 320px;
    display: flex;
    align-items: center;
}
@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(2, 2, 2, 0.95) 0%,
        rgba(2, 2, 2, 0.7) 45%,
        rgba(2, 2, 2, 0.2) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 4px 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    display: none;
}
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    /* text-transform: uppercase; */
}

.breadcrumb-item a i {
    color: var(--pma-primary);
    font-size: 13px;
}

.breadcrumb-item a:hover {
    color: var(--pma-secondary);
}

.breadcrumb-item.active {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.breadcrumb-item.separator {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.hero-course-code {
    display: inline-block;
    background: rgba(75, 126, 209, 0.2);
    color: var(--pma-primary);
    border: 1px solid rgba(75, 126, 209, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    word-break: break-word;
}

.hero-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.hero-meta-badge i {
    color: var(--pma-secondary);
}

/* =========================================
            MAIN CONTENT & COURSE IMAGE
========================================= */
.course-body-wrapper {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

.course-media-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 2, 2, 0.15);
    border: 4px solid #fff;
    margin-bottom: 0;
}

.course-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-media-wrapper:hover .course-main-image {
    transform: scale(1.05);
}

.course-media-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    text-transform: uppercase;
}

.info-strip {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pma-border);
    margin-bottom: 40px;
    margin-top: -40px;
    position: relative;
    z-index: 12;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.info-strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-strip-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--pma-light-bg);
    color: var(--pma-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.info-strip-text h6 {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-strip-text p {
    font-size: 16px;
    font-weight: 800;
    color: var(--pma-navy);
    margin: 0;
}

.content-block {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--pma-border);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.block-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pma-navy);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pma-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-title i {
    color: var(--pma-primary);
}

.block-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--pma-text);
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--pma-navy);
    font-weight: 600;
}

.custom-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Pro", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    color: var(--pma-primary);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 22px;
}

.doc-list li::before {
    content: "\f15c";
    color: var(--pma-secondary);
}

/* =========================================
        INTERACTIVE DATE SELECTION GRID
========================================= */
.pulse-attention {
    animation: pulseBorder 1.5s ease-in-out;
}

@keyframes pulseBorder {
    0% {
        border-color: var(--pma-border);
        box-shadow: none;
    }
    30% {
        border-color: var(--pma-primary);
        box-shadow: 0 0 0 6px rgba(75, 126, 209, 0.2);
    }
    100% {
        border-color: var(--pma-border);
        box-shadow: none;
    }
}

.month-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
    border-bottom: 2px solid var(--pma-light-bg);
}

.month-nav::-webkit-scrollbar {
    display: none;
}

.month-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 15px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    outline: none;
}

.month-tab-btn:hover {
    color: var(--pma-navy);
}

.month-tab-btn.active {
    color: var(--pma-primary);
    border-bottom-color: var(--pma-primary);
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selection-card-label {
    cursor: pointer;
    display: block;
    margin: 0;
    height: 100%;
}

.selection-card-inner {
    background: #fff;
    border: 2px solid var(--pma-border);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selection-card-label:hover:not(.is-full) .selection-card-inner {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(2, 2, 2, 0.08);
}

.batch-radio {
    display: none;
}

.selection-card-inner .check-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    color: var(--pma-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.batch-radio:checked + .selection-card-inner {
    border-color: var(--pma-primary);
    background: #f0f7ff;
    box-shadow: 0 15px 35px rgba(75, 126, 209, 0.15);
    transform: translateY(-4px);
}

.batch-radio:checked + .selection-card-inner .check-icon {
    opacity: 1;
    transform: scale(1);
}

.selection-card-inner .day {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pma-navy);
    line-height: 1;
    margin-bottom: 5px;
    display: block;
    transition: 0.3s;
}

.selection-card-inner .month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    display: block;
    transition: 0.3s;
}

.batch-radio:checked + .selection-card-inner .day,
.batch-radio:checked + .selection-card-inner .month {
    color: var(--pma-primary);
}

.grid-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
}

.bg-success-subtle {
    background-color: #f0f7ff;
    color: var(--pma-primary);
}

.bg-warning-subtle {
    background-color: #fef3c7;
    color: #9a3412;
}

.bg-danger-subtle {
    background-color: #fee2e2;
    color: #991b1b;
}

.selection-card-label.is-full {
    cursor: not-allowed;
    opacity: 0.6;
}

.selection-card-label.is-full .selection-card-inner {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* =========================================
        DYNAMIC SIDEBAR & ADD TO CART
========================================= */
.sidebar-overlap {
    margin-top: -120px;
    position: sticky;
    top: 140px;
    z-index: 20;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 30px 60px rgba(2, 2, 2, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-huge {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pma-navy);
    line-height: 1;
    margin-bottom: 5px;
    word-break: break-word;
}

.price-tax {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
}

.status-box {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    margin-bottom: 25px;
    border: 2px dashed #cbd5e1;
    background: var(--pma-light-bg);
}

.status-box.active {
    border: 2px solid var(--pma-primary);
    background: #f0f7ff;
    box-shadow: 0 10px 25px rgba(75, 126, 209, 0.1);
    transform: scale(1.02);
}

.status-empty {
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.status-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
}

.status-filled {
    display: none;
}

.status-box.active .status-empty {
    display: none;
}

.status-box.active .status-filled {
    display: block;
    animation: fadeIn 0.4s ease;
}

.status-filled-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--pma-primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.status-filled-date {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pma-navy);
}

.btn-dynamic-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-dynamic-cart.state-scroll {
    background: var(--pma-navy);
    color: #fff;
    box-shadow: 0 10px 25px rgba(2, 2, 2, 0.2);
}

.btn-dynamic-cart.state-scroll:hover {
    background: #222;
    transform: translateY(-3px);
}

.btn-dynamic-cart.state-active {
    background: var(--pma-primary);
    color: #fff;
    box-shadow: 0 15px 30px rgba(75, 126, 209, 0.3);
}

.btn-dynamic-cart.state-active:hover {
    background: #3a62a3;
    transform: translateY(-3px);
}

.sidebar-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--pma-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--pma-navy);
}

.sidebar-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-features li span {
    color: var(--pma-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-features li span i {
    color: var(--pma-primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* =========================================
        MOBILE STICKY ACTION BAR
========================================= */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    border-top: 1px solid var(--pma-border);
    display: none;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.mobile-sticky-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pma-navy);
    line-height: 1;
}

.mobile-sticky-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.btn-mobile-dynamic {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    border: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mobile-dynamic.state-scroll {
    background: var(--pma-navy);
    color: #fff;
    box-shadow: 0 5px 15px rgba(2, 2, 2, 0.2);
}

.btn-mobile-dynamic.state-active {
    background: var(--pma-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(75, 126, 209, 0.3);
}

/* =========================================
        PREMIUM SLIDING CART DRAWER
========================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 2, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -15px 0 50px rgba(2, 2, 2, 0.2);
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--pma-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pma-light-bg);
}

.drawer-header h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pma-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-drawer-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pma-text);
    cursor: pointer;
    transition: 0.3s;
}

.close-drawer-btn:hover {
    background: var(--pma-error);
    color: #fff;
    border-color: var(--pma-error);
    transform: rotate(90deg);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f8fafc;
}

.cart-item-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(2, 2, 2, 0.04);
    position: relative;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    border-color: var(--pma-primary);
    box-shadow: 0 15px 30px rgba(75, 126, 209, 0.1);
}

.cart-item-img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--pma-border);
    flex-shrink: 0;
}

.cart-item-details h6 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pma-navy);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.cart-item-details p {
    font-size: 12px;
    color: var(--pma-text);
    margin-bottom: 8px;
    font-weight: 600;
    background: var(--pma-light-bg);
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}

.cart-price-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--pma-primary);
    margin: 0;
}

.remove-item-btn {
    background: #fef2f2;
    color: var(--pma-error);
    border: 1px solid #fecaca;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: var(--pma-error);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.success-tick {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--pma-primary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(75, 126, 209, 0.3);
    z-index: 5;
}

.drawer-footer {
    padding: 30px;
    border-top: 1px solid var(--pma-border);
    background: #fff;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.drawer-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--pma-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-total-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pma-navy);
}

.btn-checkout-premium {
    background: linear-gradient(135deg, var(--pma-primary) 0%, #3a62a3 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(75, 126, 209, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    border: none;
}

.btn-checkout-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(75, 126, 209, 0.4);
    color: white;
}

.btn-checkout-premium i {
    transition: transform 0.3s ease;
}

.btn-checkout-premium:hover i {
    transform: translateX(6px);
}

.btn-checkout-premium.disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .sidebar-overlap {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: 90px;
    }
    .modern-hero-section {
        margin-top: 100px;
        padding: 60px 0;
        min-height: 280px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .course-body-wrapper {
        margin-top: -40px;
        padding-bottom: 40px;
    }
    .info-strip {
        width: 100%;
        margin-top: -20px;
        padding: 20px;
        gap: 15px;
        border-radius: 16px;
    }
    .content-block {
        padding: 25px;
        border-radius: 16px;
    }
    .mobile-sticky-action-bar {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .premium-breadcrumb-wrapper {
        padding: 8px 14px;
    }
    .breadcrumb-item a,
    .breadcrumb-item.active {
        font-size: 11px;
    }
    .info-strip {
        grid-template-columns: 1fr;
    }
    .date-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .pricing-card {
        padding: 25px;
    }
    .price-huge {
        font-size: 2.2rem;
    }
    .selection-card-inner {
        padding: 20px 10px;
    }
    .selection-card-inner .day {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .modern-hero-section {
        margin-top: 80px;
    }
    .hero-course-code {
        font-size: 12px;
        padding: 4px 12px;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .drawer-header {
        padding: 20px;
    }
    .drawer-body {
        padding: 20px;
    }
    .drawer-footer {
        padding: 20px;
    }
    .cart-item-img {
        width: 65px;
        height: 65px;
    }
    .cart-item-details h6 {
        font-size: 13px;
    }
    .btn-checkout-premium {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .drawer-total-val {
        font-size: 1.5rem;
    }
}
