/* EventPro Public Styles */
.ep-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 24px 0; }

/* Event Card */
.ep-event-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ep-event-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.ep-card-img { height: 180px; background-size: cover; background-position: center; }
.ep-card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f3f4f6; }
.ep-card-body { padding: 18px; }
.ep-pub-badge { display: inline-block; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.ep-card-title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.ep-card-title a { color: #111; text-decoration: none; }
.ep-card-title a:hover { color: #4f46e5; }
.ep-card-desc { font-size: 13px; color: #6b7280; margin: 0 0 12px; line-height: 1.6; }
.ep-card-meta { font-size: 12px; color: #6b7280; display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ep-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f3f4f6; padding-top: 12px; }
.ep-price { font-size: 18px; font-weight: 700; color: #111; }
.ep-btn { display: inline-block; background: #4f46e5; color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: background .15s; }
.ep-btn:hover { background: #4338ca; color: #fff; }
.ep-btn-full { display: block; text-align: center; width: 100%; box-sizing: border-box; margin-top: 14px; padding: 12px; font-size: 15px; }

/* Event Detail */
.ep-event-detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin: 24px 0; align-items: start; }
.ep-detail-main h1 { font-size: 28px; margin: 0 0 16px; }
.ep-detail-desc { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 24px; }

/* Sessions */
.ep-sessions { margin: 24px 0; }
.ep-sessions h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ep-session-row { display: flex; align-items: start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.ep-session-num { width: 28px; height: 28px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ep-session-row div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ep-session-row span { font-size: 12px; color: #6b7280; }

/* Instructor Card */
.ep-instructor-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; gap: 14px; align-items: start; margin-top: 24px; }
.ep-instructor-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.ep-instructor-card div { display: flex; flex-direction: column; gap: 3px; }
.ep-instructor-card strong { font-size: 15px; }
.ep-instructor-card a { font-size: 12px; color: #4f46e5; }
.ep-instructor-card p { font-size: 13px; color: #6b7280; margin: 4px 0 0; }

/* Sidebar */
.ep-detail-sidebar { position: sticky; top: 20px; }
.ep-sidebar-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.ep-price-display { font-size: 30px; font-weight: 800; color: #111; margin-bottom: 18px; }
.ep-sidebar-row { display: flex; gap: 10px; align-items: start; margin-bottom: 14px; font-size: 14px; }
.ep-sidebar-row div { display: flex; flex-direction: column; gap: 2px; }
.ep-sidebar-row strong { font-weight: 600; }
.ep-capacity-bar { margin: 16px 0; }
.ep-cap-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.ep-cap-track { height: 6px; background: #e5e7eb; border-radius: 3px; }
.ep-cap-fill { height: 100%; background: #4f46e5; border-radius: 3px; transition: width .3s; }

/* Registration Form */
.ep-register-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; margin-top: 32px; }
.ep-register-wrap h3 { margin: 0 0 20px; font-size: 18px; }
.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ep-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ep-form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.ep-form-group input, .ep-form-group select, .ep-form-group textarea {
    padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px; font-family: inherit; color: #111; outline: none;
    transition: border .15s; width: 100%; box-sizing: border-box;
}
.ep-form-group input:focus, .ep-form-group select:focus, .ep-form-group textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px #4f46e520; }
.ep-form-group textarea { resize: vertical; min-height: 80px; }
.ep-submit-btn { background: #4f46e5; color: #fff; border: none; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; width: 100%; }
.ep-submit-btn:hover { background: #4338ca; }
.ep-submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.ep-capacity-note { font-size: 13px; color: #6b7280; margin: 0 0 12px; }

/* Alerts */
.ep-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.ep-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.ep-alert-warn    { background: #fffbeb; color: #92600a; border: 1px solid #fcd34d; }
.ep-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.ep-success-msg, .ep-error-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.ep-success-msg { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.ep-error-msg   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.ep-pub-empty { color: #9ca3af; text-align: center; padding: 40px; }

/* Archive page */
.ep-archive-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.ep-archive-header { margin-bottom: 28px; }
.ep-archive-header h1 { font-size: 32px; margin: 0 0 16px; }
.ep-cat-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-cat-btn { display: inline-block; padding: 6px 16px; border-radius: 20px; border: 1px solid #d1d5db; color: #374151; font-size: 13px; font-weight: 500; text-decoration: none; transition: all .15s; }
.ep-cat-btn:hover, .ep-cat-btn.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.ep-pagination { margin-top: 28px; display: flex; gap: 6px; }
.ep-pagination .page-numbers { padding: 7px 14px; border: 1px solid #d1d5db; border-radius: 8px; color: #374151; text-decoration: none; font-size: 13px; }
.ep-pagination .page-numbers.current { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.ep-card-link { display: block; text-decoration: none; }

/* Hero on single event */
.ep-hero { height: 300px; background-size: cover; background-position: center; position: relative; }
.ep-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.7)); display: flex; align-items: flex-end; }
.ep-hero-inner { padding: 28px 32px; }
.ep-hero-title { color: #fff; font-size: 32px; margin: 8px 0 0; }
.ep-single-header { padding: 28px 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px; }
.ep-single-header h1 { font-size: 28px; margin: 8px 0 0; }
.ep-single-event { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }

/* Section styling */
.ep-section { margin-bottom: 32px; }
.ep-section-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
.ep-instructor-name { font-size: 16px; display: block; }
.ep-instructor-email { font-size: 13px; color: #4f46e5; display: block; margin-top: 2px; }
.ep-instructor-bio { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 8px 0 0; }
.ep-instructor-avatar { width: 60px; height: 60px; border-radius: 50%; background: #eff6ff; color: #1d4ed8; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ep-instructor-avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-tag { background: #f3f4f6; color: #374151; padding: 4px 12px; border-radius: 20px; font-size: 12px; }

/* Sidebar extras */
.ep-sidebar-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ep-cap-full { background: #dc2626; }
.ep-sidebar-instructor { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; font-size: 13px; }
.ep-sidebar-instructor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ep-sidebar-instructor div { display: flex; flex-direction: column; gap: 1px; }
.ep-sidebar-instructor span { color: #9ca3af; font-size: 11px; }
.ep-sidebar-instructor strong { font-size: 13px; }

/* Widget */
.ep-widget-list { margin: 0; padding: 0; list-style: none; }
.ep-widget-item { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.ep-widget-item:last-child { border-bottom: none; }
.ep-widget-title { font-weight: 600; font-size: 14px; color: #111; text-decoration: none; display: block; margin-bottom: 4px; }
.ep-widget-title:hover { color: #4f46e5; }
.ep-widget-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #6b7280; }
.ep-widget-price { font-weight: 600; color: #111; margin-top: 2px; }

/* Responsive */
@media ( max-width: 768px ) {
    .ep-event-detail { grid-template-columns: 1fr; }
    .ep-detail-sidebar { position: static; }
    .ep-form-row { grid-template-columns: 1fr; }
    .ep-events-grid { grid-template-columns: 1fr; }
    .ep-hero { height: 200px; }
    .ep-hero-title { font-size: 22px; }
}
