/* =========================================================
   free-webinars.css
   Styles for /free-webinars/index.php
   ========================================================= */

/* ── Webinar grid ── */
.fw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* ── Webinar card — mirrors course card style ── */
.fw-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fw-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Hero image */
.fw-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 52%;
    overflow: hidden;
    background: #f0f0ee;
}

.fw-card-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.fw-card:hover .fw-card-image img {
    transform: scale(1.03);
}

/* Body */
.fw-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Accreditation / type label */
.fw-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

.fw-card-label.ppd  { color: var(--course-ppd,  #A72319); }
.fw-card-label.sbd  { color: var(--course-sbd,  #1a6e3c); }
.fw-card-label.ced  { color: var(--course-ced,  #4c2d8f); }
.fw-card-label.cie  { color: var(--course-cie,  #c45c00); }
.fw-card-label.nlp  { color: var(--course-nlp,  #0e7090); }

.fw-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #111111;
    margin-bottom: 10px;
}

.fw-card-desc {
    font-size: 15px;
    line-height: 23px;
    color: var(--mid-grey-color);
    font-weight: 300;
    margin-bottom: 20px;
    flex: 1;
}

/* Next date badge — pushed to consistent position by flex layout */
.fw-next-date {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-grey-color, #f5f5f3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    margin-top: auto;
}

.fw-next-date-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color, #A72319);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fw-next-date-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.fw-next-date-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fw-next-date-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--mid-grey-color);
}

.fw-next-date-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

/* More dates list */
.fw-more-dates {
    margin-bottom: 18px;
}

.fw-more-dates-toggle {
    font-size: 13px;
    color: var(--mid-grey-color);
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 8px;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.fw-more-dates-toggle:hover {
    color: var(--primary-color);
    background: none;
    border: none;
    text-decoration: none;
    box-shadow: none;
}

.fw-more-dates-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.fw-more-dates-toggle.open svg {
    transform: rotate(180deg);
}

.fw-dates-list {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.fw-dates-list.visible {
    display: flex;
}

.fw-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #efefef;
}

.fw-date-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fw-date-row-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.fw-date-row-date {
    font-size: 13px;
    color: #111;
    font-weight: 400;
}

.fw-date-row-time {
    font-size: 12px;
    color: var(--mid-grey-color);
    font-weight: 300;
}

.fw-date-row-book {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.fw-date-row-book:hover {
    text-decoration: underline;
}

/* Presenter strip */
.fw-presenter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.fw-presenter img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.fw-presenter-name {
    font-size: 13px;
    color: var(--mid-grey-color);
    font-weight: 300;
}

.fw-presenter-name strong {
    font-weight: 500;
    color: #333;
}

/* CTA buttons */
.fw-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.fw-card-actions .button {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 10px 12px;
}

/* No webinars state */
.fw-empty {
    text-align: center;
    padding: 32px;
    color: var(--mid-grey-color);
    font-size: 15px;
    font-weight: 300;
}

/* ── Landing page date rows ── */
/* Used on individual webinar type pages e.g. /free-webinars/life-coaching/ */

.fw-dates-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fw-landing-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 18px 24px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.fw-landing-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.fw-landing-row-presenter {
    flex-shrink: 0;
}

.fw-landing-row-presenter img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.fw-landing-row-when {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.fw-landing-row-day {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    min-width: 72px;
}

.fw-landing-row-date {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.fw-landing-row-who {
    font-size: 14px;
    color: var(--mid-grey-color);
    font-weight: 300;
    flex-shrink: 0;
    white-space: nowrap;
}

.fw-landing-row-action {
    flex-shrink: 0;
    margin-left: auto;
}

.fw-landing-row-action .button {
    font-size: 14px;
    padding: 10px 20px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .fw-landing-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 18px;
    }

    .fw-landing-row-when {
        flex-direction: column;
        gap: 2px;
    }

    .fw-landing-row-who { display: none; }

    .fw-landing-row-action {
        margin-left: 0;
        width: 100%;
    }

    .fw-landing-row-action .button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .fw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fw-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
