/* ==========================================================================
   DIPA Workshop List — CSS chỉ còn phần LAYOUT (grid/flex/spacing/bo góc).
   Font chữ, màu chữ/heading/link đều KHÔNG khai báo ở đây nữa -> tự kế thừa
   font-family + color của theme đang active trên site (không còn Barlow
   Condensed/Nunito Sans, không còn bảng màu riêng --teal/--cyan/--pink).
   Các nút hành động (.hero-button, .back, .dwl-btn-outline, .buy,
   .register-btn) dùng kiểu outline (border: currentColor; color: inherit)
   để tự đổi màu theo đúng màu chữ/link của theme.
   Chỉ giữ lại màu ngữ nghĩa (đỏ lỗi, xanh thành công, vàng đang chờ) vì đó
   là quy ước UI phổ quát, không phải màu thương hiệu.
   ========================================================================== */

*{box-sizing:border-box}

.view{display:none}
.active-view{display:block}

/* ===== Danh sách Workshop (course-list.php) ===== */
.courses-layout{display:grid;grid-template-columns:335px 1fr;gap:40px;padding:0 40px 60px}
.filters{background:rgba(127,127,127,.06);padding:30px 26px;min-height:560px;border-radius:8px}
.filters h3,.course-area>h1,.detail-heading h1,.content-narrow>h1{font-size:1.6em;font-weight:600;margin:0 0 28px}
.filters label{display:block;font-size:.9em;font-weight:600;margin:11px 0;line-height:1.35}
.filter-title{font-size:.85em!important;font-weight:700!important;margin-top:25px!important;text-transform:uppercase;letter-spacing:.03em}
.filters input{margin-right:8px}
.filters hr{border:0;border-top:1px solid rgba(127,127,127,.25);margin:24px 0}
.filters select,.select-row select{width:100%;padding:13px;border:1px solid rgba(127,127,127,.3);border-radius:6px;background:transparent;color:inherit;font:inherit}
.course-area{padding-top:6px}
.course-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px 32px}
.course-card{display:grid;grid-template-columns:132px 1fr;min-height:142px;border:1px solid rgba(127,127,127,.25);border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.03);cursor:pointer}
.course-card img{width:132px;height:142px;object-fit:cover}
.course-card div{padding:22px 24px}
.course-card h2{font-size:1.15em;line-height:1.25;margin:0 0 14px;font-weight:600}
.course-card p{font-size:.9em;margin:7px 0;opacity:.75}

/* ===== Chi tiết Workshop (course-detail.php) ===== */
.detail-wrap,.content-narrow{max-width:1110px;margin:0 auto;padding:34px 0 80px}
.detail-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.hero-course{display:grid;grid-template-columns:275px 1fr;border:1px solid rgba(127,127,127,.25);border-radius:16px;overflow:hidden}
.hero-course>img{width:100%;height:475px;object-fit:cover}
.hero-copy{padding:34px 40px}
.hero-copy h2{font-size:1.4em;line-height:1.2;margin:4px 0 36px;font-weight:600}
.hero-copy p{line-height:1.6;font-size:.95em}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:40px 0 26px;font-weight:600}
.facts span{font-size:.95em}
.hero-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}

/* Logo chứng chỉ/đối tác trong hero-course — chiều cao cố định 80px, rộng tự do. */
.dwl-certificates{display:flex;align-items:center;flex-wrap:wrap;gap:28px;margin:24px 0}
.dwl-certificates img{height:80px;width:auto;object-fit:contain}

/* ===== Nút hành động dùng chung — kiểu outline, tự kế thừa màu theme ===== */
button{border:0;cursor:pointer;font:inherit;color:inherit;background:transparent}
.hero-button,.dwl-btn-outline{display:inline-block;padding:11px 22px;border-radius:8px;border:1px solid currentColor;color:inherit;background:transparent;font-weight:600;text-decoration:none;cursor:pointer;font:inherit;line-height:1.2}
.hero-actions .outline{opacity:.85}
.back{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid currentColor;border-radius:8px;padding:8px 18px;font-weight:600;text-decoration:none;color:inherit}

/* ===== Lịch học sắp tới (dùng lại ở nhiều trang: chi tiết Workshop, giỏ hàng, đơn hàng, profile) ===== */
.content-narrow{max-width:1110px}
.select-row{display:flex;gap:18px;margin-bottom:23px;flex-wrap:wrap}
.select-row select{width:220px;border-radius:8px}
.date-list{display:flex;flex-direction:column;gap:17px}
.date-row{display:grid;grid-template-columns:1.1fr 1.2fr .75fr .55fr 110px;align-items:center;gap:18px;padding:18px 22px;background:rgba(127,127,127,.05);border:1px solid rgba(127,127,127,.2);border-radius:10px}
.date-row a{text-decoration:underline}
.date-row b{font-size:1.1em}
.sold{background:rgba(127,127,127,.15);color:inherit;opacity:.7;padding:10px 16px;border-radius:20px;font-weight:700}
.buy{width:56px;height:56px;border-radius:50%;justify-self:end;border:1px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:18px}
.more{display:block;text-align:center;margin:28px 0 55px;font-size:1.1em;text-decoration:underline}

/* ===== Mô tả khóa học / info card ===== */
.info-grid{display:grid;grid-template-columns:1.1fr 1fr .9fr;gap:22px}
.info-card{border:1px solid rgba(127,127,127,.25);border-radius:10px;overflow:hidden;background:rgba(127,127,127,.04)}
.info-card h2{margin:0;padding:17px 20px;border-bottom:1px solid rgba(127,127,127,.25);font-size:1.15em;font-weight:600}
.info-body{padding:24px;font-size:.95em;line-height:1.6}
.info-body strong{font-size:1.4em}
.info-body em{display:block;margin-top:18px;font-size:.9em}
.curriculum-title{font-size:1.2em;margin-top:45px;font-weight:600}
.curriculum{display:grid;grid-template-columns:1fr 1fr;gap:40px;font-size:.95em}
.curriculum li{margin:13px 0}

/* Module mô tả khoá học 2 cấp (repeater tự do, xem class-dwl-cpt.php):
   - .dwl-module-section = "Großer Abschnitt" (module lớn) — 1 container RIÊNG
     cho mỗi abschnitt (VD "Kursbeschreibung", "Kommende Termine"...), không
     có khung/nền riêng, chỉ tạo khoảng cách rõ ràng giữa các abschnitt.
   - .dwl-module-card = "kleines Modul" (module nhỏ) bên trong 1 abschnitt —
     mỗi cái 1 card trắng riêng, tiêu đề <h3>. Khác .info-card (lưới 3 cột cố định). */
.dwl-module-section{margin-bottom:48px}
.dwl-module-section:last-child{margin-bottom:0}
.dwl-module-section>.curriculum-title:first-child{margin-top:0}
.dwl-module-card{border:1px solid rgba(127,127,127,.25);border-radius:12px;background:rgba(127,127,127,.04);padding:28px 32px;margin-bottom:20px}
.dwl-module-card:last-child{margin-bottom:0}
.dwl-module-card h3{margin:0 0 16px;font-size:1.1em;font-weight:600}
.dwl-module-body{font-size:.95em;line-height:1.7}
.dwl-module-body p{margin:0 0 12px}
.dwl-module-body p:last-child{margin-bottom:0}

@media(max-width:1000px){
	.courses-layout{grid-template-columns:250px 1fr}
	.course-grid{grid-template-columns:1fr}
	.date-row{grid-template-columns:1fr 1fr}
	.date-row a,.date-row b,.date-row button{justify-self:start}
	.hero-course{grid-template-columns:220px 1fr}
	.detail-wrap,.content-narrow{padding-left:24px;padding-right:24px}
}
@media(max-width:720px){
	.courses-layout{display:block;padding:0 18px 40px}
	.filters{display:none}
	.course-grid{grid-template-columns:1fr}
	.course-card{grid-template-columns:105px 1fr}
	.course-card img{width:105px}
	.hero-course{grid-template-columns:1fr}
	.hero-course>img{height:280px}
	.hero-copy{padding:24px}
	.facts,.info-grid,.curriculum{grid-template-columns:1fr}
	.date-row{grid-template-columns:1fr;padding:17px}
	.content-narrow,.detail-wrap{padding-top:24px}
	.detail-heading{align-items:flex-start;gap:15px}
	.detail-heading h1{font-size:1.3em}
}

/* ===== Bổ sung cho DIPA Workshop List plugin (giỏ hàng, đơn hàng, tài khoản) ===== */
.date-row .pending{background:#fdf3d8;color:#8a6d1a;padding:10px 16px;border-radius:20px;font-weight:700;display:inline-block}
.date-row .confirmed{background:#e1f5ee;color:#0f6e56;padding:10px 16px;border-radius:20px;font-weight:700;display:inline-block}
.date-row .register-btn{border:1px solid currentColor;color:inherit;background:transparent;padding:10px 18px;border-radius:20px;font-weight:700;cursor:pointer;font:inherit}
.date-row .register-btn:disabled{opacity:.6;cursor:not-allowed}
.dwl-form-msg{grid-column:1/-1;font-size:.9em;font-weight:700;margin-top:-4px}
.dwl-form-msg.error{color:#c0392b}
.dwl-form-msg.success{color:#0f6e56}
.materials-locked{background:rgba(127,127,127,.05);border:1px dashed rgba(127,127,127,.4);border-radius:10px;padding:24px;margin:20px 0}
.materials-locked a{font-weight:700;text-decoration:underline}
.materials-list{list-style:none;padding:0;margin:20px 0;display:flex;flex-direction:column;gap:10px}
.materials-list li{background:rgba(127,127,127,.05);border:1px solid rgba(127,127,127,.2);border-radius:8px;padding:14px 18px}
.materials-list a{font-weight:700;text-decoration:underline}
.dwl-empty{padding:30px;text-align:center;font-size:1.1em;opacity:.75}
.dwl-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}
.dwl-modal-box{background:Canvas;color:CanvasText;border-radius:12px;padding:28px;max-width:380px;width:100%;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.dwl-modal-box h3{font-size:1.3em;margin:0 0 6px;font-weight:600}
.dwl-modal-box label{display:block;font-size:.9em;font-weight:600;margin:14px 0 6px}
.dwl-modal-box input{width:100%;padding:11px 14px;border:1px solid rgba(127,127,127,.35);border-radius:8px;font:inherit;color:inherit;background:transparent;box-sizing:border-box}
.dwl-modal-actions{display:flex;gap:10px;margin-top:20px}
.dwl-modal-actions button{flex:1}
.dwl-form{max-width:480px}
.dwl-form label{display:block;font-size:.9em;font-weight:600;margin:16px 0 6px}
.dwl-form input{width:100%;padding:11px 14px;border:1px solid rgba(127,127,127,.35);border-radius:8px;font:inherit;color:inherit;background:transparent;box-sizing:border-box}
.dwl-form input:disabled{background:rgba(127,127,127,.08);color:inherit;opacity:.6}
.dwl-form-hint{font-size:.8em;opacity:.7;margin-top:4px}
.dwl-profile-layout{display:grid;grid-template-columns:220px 1fr;gap:32px}
.dwl-tabs{display:flex;flex-direction:column;gap:4px}
.dwl-tabs button{text-align:left;background:transparent;border:0;padding:12px 16px;border-radius:8px;font-weight:600;font-size:.95em;cursor:pointer;color:inherit}
.dwl-tabs button.active{background:rgba(127,127,127,.15);font-weight:700}
.dwl-profile-panel[hidden]{display:none}
@media(max-width:720px){
	.dwl-profile-layout{grid-template-columns:1fr}
	.dwl-tabs{flex-direction:row;overflow-x:auto}
}

/* [workshop_login]: eigene Anmelden-/Konto-erstellen-Seite des Plugins. */
.dwl-auth-section{display:flex;flex-direction:column;align-items:center;gap:24px}
.dwl-auth-tabs{display:flex;gap:8px}
.dwl-auth-tab{background:transparent;border:1px solid currentColor;color:inherit;padding:10px 20px;border-radius:8px;font-weight:600;font-size:.95em;cursor:pointer;font:inherit;opacity:.6}
.dwl-auth-tab.active{opacity:1;background:rgba(127,127,127,.12)}
.dwl-auth-panel[hidden]{display:none}
.dwl-auth-panel .info-card h2{text-align:center}
