/* ===================================================================
   WORKSHOP LIST (ARCHIVE) STYLES
=================================================================== */

.dt-lms-courses-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) {
    .dteb-workshops-list.dt-lms-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

.dteb-workshops-list .dt-lms-course-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e4e7;
    border-radius: 16px;
    overflow: hidden;
}

.dteb-workshops-list .dt-lms-course-card img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #e2e4e7;
}

.dteb-workshops-list .dt-lms-course-details { padding: 20px; gap: 12px; display: flex; flex-direction: column; }
.dteb-workshops-list .dt-lms-course-details h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.dteb-meta-line { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #555; flex-wrap: wrap; }
.dteb-meta-item { display: flex; align-items: center; gap: 6px; }
.dteb-instructor { font-size: 15px; color: #555; }
.dteb-description { font-size: 15px; color: #475569; line-height: 1.6; }
.dteb-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.dteb-price { font-size: 28px; font-weight: 700; color: #111; }
.dteb-card-footer .button { background-color: #a987c2; color: white; padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: 500; }


/* ===================================================================
   SINGLE WORKSHOP LANDING PAGE STYLES
=================================================================== */
.dteb-landing-page-container { max-width: 1100px; margin: 2em auto; }
.dteb-hero { text-align: center; padding: 40px 20px; }
.dteb-hero h1 { font-size: 48px; margin: 0 0 10px; }
.dteb-hero h2 { font-size: 22px; color: #555; font-weight: 400; margin: 0 0 30px; }
.dteb-hero-cta { background-color: #a987c2; color: white; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-size: 18px; font-weight: 600; }

.dteb-main-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 20px; }
@media (min-width: 960px) { .dteb-main-layout { grid-template-columns: 2fr 1fr; } }

.dteb-sidebar .dteb-details-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 50px;
}
.dteb-details-panel ul { list-style: none; padding: 0; margin: 0; }
.dteb-details-panel li { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; font-size: 16px; }
.dteb-details-panel li:last-child { border-bottom: none; }
.dteb-details-panel .icon { font-size: 24px; color: #a987c2; width: 24px; }
.dteb-details-panel .price { font-size: 32px; font-weight: 700; color: #111; text-align: center; margin: 20px 0 0; }

.dteb-main-content .dteb-section { margin-bottom: 50px; }
.dteb-main-content h3 { font-size: 24px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 20px; }
.dteb-main-content .what-you-learn ul { list-style-type: '✓'; padding-left: 25px; }
.dteb-main-content .what-you-learn li { padding-left: 10px; margin-bottom: 10px; font-size: 17px; }

.dteb-session-list { list-style: none; padding: 0; }
.dteb-session-list li { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 10px; }

.dteb-instructor-bio { display: flex; gap: 20px; align-items: center; }
.dteb-instructor-bio img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.dteb-instructor-bio p { margin: 0; line-height: 1.6; }

#dteb-booking-form {
    background: #fff;
    border: 2px solid #a987c2;
    border-radius: 12px;
    padding: 30px;
}

/* ===================================================================
   WORKSHOP LIST (ARCHIVE) STYLES
=================================================================== */

.dt-lms-courses-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) {
    .dteb-workshops-list.dt-lms-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

.dteb-workshops-list .dt-lms-course-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e4e7;
    border-radius: 16px;
    overflow: hidden;
    /* --- [NEW] Make the card a flex column to help with alignment --- */
    display: flex;
    flex-direction: column;
}

.dteb-workshops-list .dt-lms-course-card img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #e2e4e7;
}

.dteb-workshops-list .dt-lms-course-details {
    padding: 20px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    /* --- [NEW] This makes the details section grow to fill empty space --- */
    flex-grow: 1;
}

.dteb-workshops-list .dt-lms-course-details h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.dteb-meta-line { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #555; flex-wrap: wrap; }
.dteb-meta-item { display: flex; align-items: center; gap: 6px; }
.dteb-instructor { font-size: 15px; color: #555; }
.dteb-description { font-size: 15px; color: #475569; line-height: 1.6; }
.dteb-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.dteb-price { font-size: 28px; font-weight: 700; color: #111; }
.dteb-card-footer .button { background-color: #a987c2; color: white; padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: 500; }


/* ===================================================================
   SINGLE WORKSHOP LANDING PAGE STYLES
=================================================================== */
.dteb-landing-page-container { max-width: 1100px; margin: 2em auto; }
.dteb-hero { text-align: center; padding: 40px 20px; }
.dteb-hero h1 { font-size: 48px; margin: 0 0 10px; }
.dteb-hero h2 { font-size: 22px; color: #555; font-weight: 400; margin: 0 0 30px; }
.dteb-hero-cta { background-color: #a987c2; color: white; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-size: 18px; font-weight: 600; }

.dteb-main-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 20px; }
@media (min-width: 960px) { .dteb-main-layout { grid-template-columns: 2fr 1fr; } }

.dteb-sidebar .dteb-details-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 50px;
}
.dteb-details-panel ul { list-style: none; padding: 0; margin: 0; }
.dteb-details-panel li { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; font-size: 16px; }
.dteb-details-panel li:last-child { border-bottom: none; }
.dteb-details-panel .icon { font-size: 24px; color: #a987c2; width: 24px; }
.dteb-details-panel .price { font-size: 32px; font-weight: 700; color: #111; text-align: center; margin: 20px 0 0; }

.dteb-main-content .dteb-section { margin-bottom: 50px; }
.dteb-main-content h3 { font-size: 24px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 20px; }
.dteb-main-content .what-you-learn ul { list-style-type: '✓'; padding-left: 25px; }
.dteb-main-content .what-you-learn li { padding-left: 10px; margin-bottom: 10px; font-size: 17px; }

.dteb-session-list { list-style: none; padding: 0; }
.dteb-session-list li { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 10px; }

.dteb-instructor-bio { display: flex; gap: 20px; align-items: center; }
.dteb-instructor-bio img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.dteb-instructor-bio p { margin: 0; line-height: 1.6; }

#dteb-booking-form {
    background: #fff;
    border: 2px solid #a987c2;
    border-radius: 12px;
    padding: 30px;
}

/**
 * File: frontend.css
 * Description: I've removed the duplicated styles and integrated the flexbox enhancements for better card alignment.
 */
/* ===================================================================
   WORKSHOP LIST (ARCHIVE) STYLES
=================================================================== */

.dt-lms-courses-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) {
    .dteb-workshops-list.dt-lms-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

.dteb-workshops-list .dt-lms-course-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e4e7;
    border-radius: 16px;
    overflow: hidden;
    /* Make the card a flex column to help with alignment */
    display: flex;
    flex-direction: column;
}

.dteb-workshops-list .dt-lms-course-card img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #e2e4e7;
}

.dteb-workshops-list .dt-lms-course-details {
    padding: 20px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    /* This makes the details section grow to fill empty space */
    flex-grow: 1;
}

.dteb-workshops-list .dt-lms-course-details h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.dteb-meta-line { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #555; flex-wrap: wrap; }
.dteb-meta-item { display: flex; align-items: center; gap: 6px; }
.dteb-instructor { font-size: 15px; color: #555; }
.dteb-description { font-size: 15px; color: #475569; line-height: 1.6; }
.dteb-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.dteb-price { font-size: 28px; font-weight: 700; color: #111; }
.dteb-card-footer .button { background-color: #a987c2; color: white; padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: 500; }
/* In single-dt_workshop.php style block */
