/* ===== COURSE OVERVIEW CARDS ===== */
.course-cards-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

/* CARD */
.course-overview-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 35px 28px 30px;
    border: 1px solid rgba(33, 60, 114, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-overview-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #213C72, #4facfe);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-overview-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(33, 60, 114, 0.12);
    border-color: rgba(79, 172, 254, 0.3);
}

.course-overview-card:hover::before {
    opacity: 1;
}

/* FEATURED CARD */
.course-overview-card.featured {
    border: 2px solid rgba(79, 172, 254, 0.4);
    box-shadow: 0 12px 40px rgba(33, 60, 114, 0.1);
    transform: scale(1.03);
}

.course-overview-card.featured::before {
    opacity: 1;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe, #4facfe);
    background-size: 200%;
    animation: shimmerBar 3s linear infinite;
}

@keyframes shimmerBar {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.course-overview-card.featured:hover {
    transform: scale(1.03) translateY(-12px);
}

/* RIBBON */
.course-card-ribbon {
    position: absolute;
    top: 26px;
    right: -48px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 13px 45px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* BADGE */
.course-card-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.course-card-badge.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.course-card-badge.intermediate {
    background: rgba(79, 172, 254, 0.1);
    color: #2563eb;
}

.course-card-badge.expert {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* ICON */
.course-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #213C72, #4facfe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card-icon i {
    font-size: 26px;
    color: #fff;
}

.course-overview-card:hover .course-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.35);
}

/* TITLE */
.course-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* SUBTITLE */
.course-card-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4facfe;
    margin-bottom: 16px;
}

/* META */
.course-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 8px;
}

.course-card-meta span i {
    color: #213C72;
    font-size: 14px;
}

/* FEATURES */
.course-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.course-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
    padding: 7px 0;
    line-height: 1.4;
}

.course-card-features li i {
    color: #10b981;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* PRICE */
.course-card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
}

.price-new {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #213C72, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA BUTTON */
.course-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #213C72, #3b5fc9);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 60, 114, 0.4);
    color: #fff;
}

.course-card-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.course-card-btn:hover::before {
    left: 100%;
}

/* ACTION BUTTONS (View PPT + Download Syllabus) */
.course-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.course-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
}

.course-action-btn i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.course-action-btn:hover i {
    transform: scale(1.2);
}

/* SYLLABUS BUTTON — Solid Gradient */
.course-action-btn.syllabus-btn {
    background: linear-gradient(135deg, #213C72, #3b5fc9);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 60, 114, 0.2);
    width: 100%;
}

.course-action-btn.syllabus-btn:hover {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.35);
}

/* Shine effect for action buttons */
.course-action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.course-action-btn:hover::before {
    left: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .course-overview-card.featured {
        transform: scale(1);
    }

    .course-overview-card.featured:hover {
        transform: translateY(-8px);
    }

    .course-card-title {
        font-size: 1.15rem;
    }

    .price-new {
        font-size: 1.5rem;
    }

    .course-card-ribbon {
        font-size: 10px;
        padding: 4px 35px;
        right: -38px;
        top: 15px;
    }

    .course-card-actions {
        flex-direction: column;
    }

    .course-action-btn {
        font-size: 12.5px;
        padding: 10px 8px;
    }
}

/* ===== SECTION ===== */
.course-detail-section {
    background: transparent;
}

/* ===== ACCORDION BASE ===== */
.custom-accordion .accordion-item {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: 0.4s ease;
}

/* ✨ Glow border effect */
.custom-accordion .accordion-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s;
}

/* Hover effect */
.custom-accordion .accordion-item:hover {
    transform: translateX(-2px) scale();
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4);
}

.custom-accordion .accordion-item:hover::before {
    opacity: 1;
}

/* ===== HEADER ===== */
.custom-accordion .accordion-button {
    background: transparent;
    color: #000;
    font-weight: 400;
    font-size: 15px;
    padding: 16px 18px;
    box-shadow: none;
    transition: 0.3s;
}

/* ✨ Active state */
.custom-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* ✨ Arrow animation */
.custom-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #213C72, #ffffff);
    color: #fff;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* ===== BODY ===== */
.custom-accordion .accordion-body {
    color: #e5e5e5;
    font-size: 14px;
    padding: 15px 18px;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* LIST */
.custom-accordion ul {
    padding-left: 18px;
}

.custom-accordion li {
    color: black;
    margin-bottom: 6px;
    position: relative;
    padding-left: 8px;
}

/* ✨ Custom bullet */
.custom-accordion li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b5cf6;
}

/* ===== PROJECT HIGHLIGHT ===== */
.highlight-accordion .accordion-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* Glow for project */
.highlight-accordion {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== SMOOTH OPEN ANIMATION ===== */
.accordion-collapse {
    transition: all 0.4s ease;
}




/* ==== Offer Btn ===== */

/* ===== OFFER BANNER ===== */
.offer-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;

    background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
    background-size: 200%;

    padding: 12px 0;

}

/* TEXT TRACK */
.offer-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;

    animation: scrollText 10s linear infinite;
}

/* TEXT STYLE */
.offer-track span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* SCROLL ANIMATION */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* HOVER PAUSE (UX 👍) */
.offer-banner:hover .offer-track {
    animation-play-state: paused;
}



.enroll-cta {
    text-align: center;
}

/* BUTTON */
.enroll-cta a {
    display: inline-block;
    padding: 14px 40px;

    background: linear-gradient(135deg, #213C72, #3b5fc9);
    color: #fff;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;

    text-decoration: none;
    border-radius: 50px;

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ✨ Hover effect */
.enroll-cta a:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(33, 60, 114, 0.6);
}

/* ✨ Shine animation */
.enroll-cta a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);

    transition: 0.5s;
}

.enroll-cta a:hover::before {
    left: 100%;
}




/* ===== COURSE HEADER (ADD THIS) ===== */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 22px;
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);

    margin-bottom: 20px;
}

/* LEFT: TITLE */
.course-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.course-title p {
    font-size: 13px;
    color: #484848;
    margin: 2px 0 0;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .course-header {
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .course-price {
        align-self: flex-start;
    }

    .course-title h2 {
        font-size: 24px;
    }
}


/* PRICE CONTAINER */
.course-price .new-price {
    font-size: 24px;
    font-weight: 400;
    color: #000000;

    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* OLD PRICE */
.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 16px;
    font-weight: 200;
}




/* SECTION */
.tools-section {
    text-align: center;
}

/* TITLE */
.tools-title {
    color: #000000;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ICON WRAPPER */
.tools-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* SINGLE TOOL */
.tool {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 10px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

/* ICON */
.tool img {
    width: 55px;
    height: 55px;
    margin-bottom: 5px;
}

/* TEXT */
.tool span {
    font-size: 12px;
    color: #4d4d4d;
}

/* HOVER */
.tool:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}


/* ==== toogle view all ===== */
/* HIDDEN DEFAULT */
#moreWeeks {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

/* SHOW WITH ANIMATION */
#moreWeeks.show-more {
    max-height: 2000px;
    /* enough height */
    opacity: 1;
    transform: translateY(0);
}

/* BUTTON */
.view-toggle-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: none;

    background: linear-gradient(135deg, #213C72, #5c92ff);
    color: #fff;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.view-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}