/* ============================================================
   Webinar Guide — shortcode table styles
   Feel free to override these in your theme's CSS.

   QUICK REFERENCE — places to change sizes & colors:
   ┌─────────────────────────────────────────────────────────┐
   │ LABEL ROW size & bold  →  .webinar-guide-table thead th │
   │ LABEL colors           →  the three lines below thead   │
   │ BODY TEXT size         →  .webinar-guide-table td       │
   │ ID column color        →  .wg-col-id                    │
   │ Facilitator color      →  .wg-col-facilitator           │
   │ Title link color       →  .wg-col-title a               │
   │ Overview text color    →  .wg-overview-cell             │
   │ Overview bg color      →  .wg-overview-row              │
   └─────────────────────────────────────────────────────────┘
   ============================================================ */

/* ── Wrapper: kills the extra gap WordPress adds below shortcodes ── */
.wg-shortcode-wrap {
    margin-bottom: 0 !important;
}
/* Remove the extra bottom margin WordPress/theme injects on the paragraph
   that wraps the shortcode output. Adjust "0.5rem" to taste. */
.wg-shortcode-wrap + p,
.wg-shortcode-wrap + div {
    margin-top: 0.5rem;
}

.webinar-guide-table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.5;
    margin: 0.5rem 0 0;
}

.webinar-guide-table thead {
    background-color: #fff;
}

/* ── LABEL ROW — change font-size and font-weight here for all labels ── */
.webinar-guide-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 15px;       /* ← label size */
    font-weight: bold;     /* ← label weight */
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── LABEL COLORS — change each independently ── */
.webinar-guide-table thead th.wg-col-id          { color: #000; }
.webinar-guide-table thead th.wg-col-title        { color: #000; }
.webinar-guide-table thead th.wg-col-facilitator  { color: #000; }

.webinar-guide-table tbody tr.wg-main-row {
    border-bottom: 1px solid #e8e8e8;
}

.webinar-guide-table tbody tr.wg-overview-row {
    border-bottom: 1px solid #e8e8e8;
}

.webinar-guide-table tbody tr:last-child {
    border-bottom: none;
}

/* Rows with an overview: ID cell gets pointer cursor */
.webinar-guide-table tbody td.wg-col-id.wg-has-overview {
    cursor: pointer;
	text-decoration: none;  /*DML ADDED*/
}

.webinar-guide-table tbody td.wg-col-id.wg-has-overview:hover {
    color: #185FA5;
}

.webinar-guide-table tbody tr.wg-main-row:hover {
    background-color: #f0f6ff;
}

/* ── BODY TEXT — change font-size here for all data rows ── */
.webinar-guide-table td {
    padding: 10px 14px;
    vertical-align: top;
    color: #333;
    font-size: 16px;       /* ← body text size */
}

.webinar-guide-table tbody .wg-col-id {
    font-weight: normal;
    color: #000000;
    white-space: nowrap;
    width: 90px;
}

/* Expand arrow sits inline after the ID */
.webinar-guide-table tbody .wg-col-id .wg-expand-icon {
    display: inline-block;
    margin-left: 1px;
    font-size: 9px;
    color: #aaa;
    transition: color 0.15s;
}

.webinar-guide-table tbody .wg-col-id.wg-has-overview:hover .wg-expand-icon {
    color: #185FA5;
}


/* ── Clickable full ID span ── */
.wg-id-btn {
    cursor: pointer;
    color: #000;
    white-space: nowrap;
}

.wg-id-btn:hover,
.wg-id-btn.wg-id-btn-open {
    color: #185FA5;
	text-decoration: underline;  /*DML ADDED*/
}

.webinar-guide-table .wg-col-facilitator {
    white-space: nowrap;
    width: 200px;
    color: #000000;
}

.webinar-guide-table .wg-col-title {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.webinar-guide-table .wg-col-title a {
    color: #185FA5;
    text-decoration: none;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.webinar-guide-table .wg-col-title a:hover {
    text-decoration: underline;
}

/* ── Overview row — hidden by default ── */
.wg-overview-row {
    display: none;
    background-color: #f7f9fc;
}

.wg-overview-row.wg-overview-open {
    display: table-row;
}

.wg-overview-spacer {
    /* Aligns under the ID column */
    width: 90px;
}

.wg-overview-cell {
    padding: 6px 14px 14px 14px;
    font-size: 14px;        /* ← overview text size */
    color: #555;            /* ← overview text color */
    font-style: italic;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.webinar-guide-error {
    color: #a32d2d;
    font-size: 13px;
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
    .webinar-guide-table thead {
        display: none;
    }
    .webinar-guide-table tbody tr.wg-main-row {
        display: block;
        margin-bottom: 0.25rem;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        padding: 10px;
    }
    .webinar-guide-table tbody tr.wg-overview-row {
        display: none; /* hidden by default on mobile too */
        margin-bottom: 1rem;
        border: 1px solid #e8e8e8;
        border-top: none;
        border-radius: 0 0 6px 6px;
        padding: 0 10px 10px;
    }
    .webinar-guide-table tbody tr.wg-overview-row.wg-overview-open {
        display: block;
    }
    .webinar-guide-table td {
        display: block;
        padding: 4px 8px;
        width: auto !important;
    }
    .wg-overview-spacer {
        display: none;
    }
}


.webinar-guide-table th.wg-sortable        { cursor: pointer; user-select: none; }
.webinar-guide-table th.wg-sortable:hover  { /* your hover style, e.g. slightly lighter bg */ }
.webinar-guide-table .wg-sort-icon         { display: inline-block; margin-left: 5px; opacity: 1.0; font-size: 11px; }
/*.webinar-guide-table .wg-sort-icon         { display: inline-block; margin-left: 5px; opacity: 1.0; font-size: 11px; color: #9022a3; } */
.webinar-guide-table th.wg-sort-asc  .wg-sort-icon,
.webinar-guide-table th.wg-sort-desc .wg-sort-icon { opacity: 1; }


/* ============================================================
   Webinar Catalog — [webinar_catalog] shortcode styles

   QUICK REFERENCE:
   ┌─────────────────────────────────────────────────────────┐
   │ Category heading        →  .wg-cat-heading              │
   │ Title link color        →  .wg-cat-title-link           │
   │ Facilitator color/size  →  .wg-cat-facilitator          │
   │ Overview text           →  .wg-cat-overview             │
   │ Toggle button           →  .wg-cat-toggle-btn           │
   │ Guide toggle button     →  .wg-guide-toggle-btn         │
   └─────────────────────────────────────────────────────────┘
   ============================================================ */

.wg-catalog {
    margin: 0.5rem 0 0;
}

/* ── Category section ── */
.wg-cat-section {
    margin-bottom: 2rem;
}

.wg-cat-heading {
    font-size: 18px;           /* ← category heading size */
    font-weight: bold;
    color: #9022a3;            /* ← category heading color */
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 3px solid #36454F;
    padding-bottom: 4px;
    margin-bottom: 0.75rem;
}

/* ── Webinar list ── */
.wg-catalog .wg-cat-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wg-catalog .wg-cat-item {
    list-style: none !important;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.wg-catalog .wg-cat-item:last-child {
    border-bottom: none;
}

/* ── Title row: link + facilitator + toggle button ── */
.wg-cat-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
}

.wg-cat-title-link {
    font-size: 16px;           /* ← title size */
    color: #185FA5;            /* ← title link color */
    text-decoration: none;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    flex: 1 1 auto;
}

.wg-cat-title-link:hover {
    text-decoration: underline;
}

.wg-cat-facilitator {
    font-size: 14px;           /* ← facilitator size */
    color: #555;               /* ← facilitator color */
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Clickable ID span (has overview) ── */
.wg-cat-id-btn {
    cursor: pointer;
    color: #000;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
}

.wg-cat-id-btn:hover,
.wg-cat-id-btn.wg-cat-id-btn-open {
    color: #185FA5;
	text-decoration: underline;  /*DML ADDED*/
}

/* Plain ID (no overview) */
.wg-cat-id-plain {
    color: #000;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Overview panel ── */
.wg-cat-overview {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f7f9fc;
    /*border-left: 3px solid #185FA5; */
    font-size: 14px;           /* ← overview text size */
    color: #555;               /* ← overview text color */
    font-style: italic;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
     /*border-radius: 0 4px 4px 0;*/
}

/* ── Expand / Collapse All button — [webinar_catalog_toggle] ── */
/*
   QUICK CUSTOMISATION:
   ┌─────────────────────────────────────────────────────────┐
   │ Button background  →  background-color below            │
   │ Button text color  →  color below                       │
   │ Button border      →  border below                      │
   │ Hover background   →  .wg-cat-toggle-btn:hover          │
   │ Button size        →  font-size / padding below         │
   └─────────────────────────────────────────────────────────┘
*/
.wg-cat-toggle-btn {
    display: inline-block;
    margin: 0.5rem 0 1rem;
    padding: 8px 18px;
    font-size: 14px;           /* ← button text size   */
    font-weight: bold;
    color: #185FA5;            /* ← button text color  */
    background-color: #fff;    /* ← button background  */
    border: 2px solid #185FA5; /* ← button border      */
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color 0.15s, color 0.15s;
}

.wg-cat-toggle-btn:hover {
    background-color: #185FA5; /* ← hover background   */
    color: #fff;               /* ← hover text color   */
}

/* ── Expand / Collapse All button — [webinar_guide_toggle] ── */
/*
   QUICK CUSTOMISATION:
   ┌─────────────────────────────────────────────────────────┐
   │ Button background  →  background-color below            │
   │ Button text color  →  color below                       │
   │ Button border      →  border below                      │
   │ Hover background   →  .wg-guide-toggle-btn:hover        │
   │ Button size        →  font-size / padding below         │
   └─────────────────────────────────────────────────────────┘
*/
.wg-guide-toggle-btn {
    display: inline-block;
    margin: 0.5rem 0 1rem;
    padding: 8px 18px;
    font-size: 14px;           /* ← button text size   */
    font-weight: bold;
    color: #185FA5;            /* ← button text color  */
    background-color: #fff;    /* ← button background  */
    border: 2px solid #185FA5; /* ← button border      */
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color 0.15s, color 0.15s;
}

.wg-guide-toggle-btn:hover {
    background-color: #185FA5; /* ← hover background   */
    color: #fff;               /* ← hover text color   */
}

/* Responsive */
@media (max-width: 600px) {
    .wg-cat-title-row {
        flex-direction: column;
        gap: 4px;
    }
    .wg-cat-facilitator,
    .wg-cat-toggle {
        align-self: flex-start;
    }
}
