/* === Progress & Steps === */
.tp-course-progress-container {
    margin-bottom: 30px;
    font-family: sans-serif;
}

.tp-guest-cta h3 {
    margin-top: 0;
}

.tp-steps-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Default Circle Item */
.tp-step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    /* Default for Circle */
    height: 35px;
    border-radius: 50%;
    /* Default Circle */
    background-color: #e0e0e0;
    color: #666;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

/* Rectangle Override */
.tp-step-item.tp-step-rect {
    width: auto !important;
    /* Override width */
    padding: 0 12px;
    /* Horizontal padding */
    border-radius: 6px !important;
    /* Force Rounded Rect */
    aspect-ratio: auto;
    /* Reset aspect ratio if set */
}

.tp-step-item:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.tp-step-item.completed {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
    /* Ensure flex contents are nice */
    gap: 4px;
}

.tp-step-item.active {
    background-color: #2196f3;
    color: white;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

.tp-step-item.locked {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}


/* === Course Specs === */
.tp-course-specs-wrapper {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Reference Look: Clean list without bullets */
.tp-course-specs {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.tp-course-specs li {
    margin-bottom: 8px;
    padding-left: 24px;
    /* Space for icon */
    position: relative;
    color: #444;
}

.tp-course-specs li::before {
    content: "\f147";
    /* Dashicon checkmark */
    font-family: "dashicons";
    color: #4caf50;
    /* Green check */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    font-weight: bold;
}

/* Icons */
.tp-step-icon {
    font-size: 14px;
    line-height: 1;
}

.dashicons {
    font-family: 'dashicons';
}

/* === Course Grid & Cards === */
.tp-course-grid {
    display: grid;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

@media (min-width: 600px) {
    .tp-course-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.tp-course-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Deep soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f9f9f9;
    display: flex;
    flex-direction: column;
    max-width: 420px;
    /* Expanded Width */
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding-bottom: 25px;
    /* Bottom spacing */
}

.tp-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tp-course-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-end;
    /* Align to bottom overlap */
    justify-content: center;
}

.tp-course-card-image.placeholder {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    align-items: center;
    /* Center in placeholder */
}

/* New Header Title Style */
.tp-course-header-title {
    margin: 0;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transform: translateY(50%);
    /* Half overlap downwards */
    max-width: 90%;
    z-index: 10;
}

.tp-course-header-title a {
    text-decoration: none;
    color: #4a148c;
    /* Purple/Blue per reference */
}

.tp-course-header-title a:hover {
    color: #2196f3;
}

/* Adjust Body padding to account for title overlap */
.tp-course-card-body {
    padding: 40px 25px 0 25px;
    /* More top padding for title overlap */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.tp-course-meta {
    margin-bottom: 12px;
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 8px;
}

/* Reference Look: Price Box */
.tp-price-box {
    background-color: #e8f5e9;
    border: 1px dashed #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.tp-price-main {
    color: #2e7d32;
    font-weight: 800;
    font-size: 1.2em;
    margin-bottom: 4px;
}

.tp-price-sub {
    color: #4caf50;
    font-size: 0.85em;
    font-weight: 500;
}

.tp-course-footer {
    margin-top: auto;
    padding: 0 25px;
}

/* === Buttons (Dark/Dark Grey per reference) === */
a.tp-course-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 0;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: #454545;
    /* Dark Grey base */
    color: #fff !important;
    letter-spacing: 0.5px;
}

/* Hover State */
a.tp-course-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: #fff !important;
}

/* Log In Button - White with Dark Border option */
a.tp-course-btn.tp-btn-login {
    background: #fff;
    color: #454545 !important;
    border: 2px solid #454545;
    box-shadow: none;
}

a.tp-course-btn.tp-btn-login:hover {
    background: #454545;
    color: #fff !important;
}

/* Secondary Button (Visit Hub) */
a.tp-course-btn.tp-btn-secondary {
    background: transparent;
    color: #2196f3 !important;
    border: 1px solid transparent;
    box-shadow: none;
    font-weight: 600 !important;
    font-size: 0.9rem;
    padding: 10px 0;
}

a.tp-course-btn.tp-btn-secondary:hover {
    background: #f0f9ff;
    color: #1976d2 !important;
    transform: none;
    box-shadow: none;
    text-decoration: underline !important;
}

/* === Enrollment Card (Colorful & Attractive) === */
.tp-enrollment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.08);
    /* Soft Blue Shadow */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-enrollment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.tp-enrollment-card::before {
    /* Decorative Top Stripe */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #2196f3, #4caf50);
}

.tp-enroll-header {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tp-enroll-trust {
    color: #607d8b;
    font-size: 1em;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tp-enroll-trust .dashicons {
    color: #4caf50;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* CTA Buttons */
a.tp-enroll-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(90deg, #4caf50, #43a047);
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 1.1em;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

a.tp-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    background: linear-gradient(90deg, #43a047, #388e3c);
}

/* Variant: Log In To Enroll (Blue/Purple) */
a.tp-enroll-btn.tp-btn-guest {
    background: linear-gradient(90deg, #2196f3, #1976d2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

a.tp-enroll-btn.tp-btn-guest:hover {
    background: linear-gradient(90deg, #1976d2, #1565c0);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}
/* --- Dashboard & Progress Bar Animations --- */
.tp-course-progress-bg {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.tp-course-progress-fill {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    animation: tp-progress-stripe 1s linear infinite;
}
@keyframes tp-progress-stripe {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}
