/* Webinar element ----------------------------------------------------------- */
.fame-el-webinar {
    display: flex;
    align-items: stretch;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #E9EDF5;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 2px 25px rgba(8, 20, 102, 0.08);
    max-width: 100%;
    position: relative;
}
.fame-el-webinar .fame-web-media {
    flex: 0 0 40%;
    max-width: 240px;
    min-height: 240px;
}
.fame-el-webinar .fame-web-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.fame-el-webinar .fame-web-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 6px;
}
.fame-el-webinar .fame-web-title {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
}
.fame-el-webinar .fame-web-title a {
    color: #121F3E;
}
.fame-el-webinar .fame-web-desc {
    margin: 0;
    color: #656D7F;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}
.fame-el-webinar .fame-web-date { 
    margin: 0 0 12px;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: #121F3E;
}
.fame-el-webinar .fame-web-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fame-el-webinar .fame-web-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fame-blue, #0566E3);
    color: #fff;
    text-decoration: none;
    padding: 7px 25px;
    border-radius: 999px;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
}
.fame-el-webinar .fame-web-btn:hover { filter: brightness(.95); color: #fff; }
.fame-el-webinar .fame-web-cal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 80px;
    background-color: #EAF1FB;
    color: var(--fame-blue, #0566E3);
    font-size: 18px;
}
@media (max-width: 575px) {
    .fame-el-webinar { flex-direction: column; }
    .fame-el-webinar .fame-web-media { flex: none; max-width: none; }
    .fame-el-webinar .fame-web-media img { height: 180px; }
}


/* FAME Webinars — detail + listing styles. Loaded via <link> from the views. */
.fame-webinar-detail, .fame-webinars-list { --fw-blue: #0566E3; color: #1f2937; }
.fame-webinar-detail *, .fame-webinars-list * { box-sizing: border-box; }
.fw-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.fw-blue { color: var(--fw-blue); }
.fw-pill {
    display: inline-block; padding: 5px 16px; border: 1px solid var(--fw-blue);
    border-radius: 999px; background: #EAF1FB; color: var(--fw-blue);
    font-size: .8rem; font-weight: 600;
}

/* ---------- Hero ---------- */
.fw-hero { background-color: #DCEDFC; padding: 130px 0 150px; }
.fw-hero-grid { display: grid; grid-template-columns: 1.09fr .95fr; gap: 40px; align-items: center; }
.fw-crumb {
    display: inline-flex;
    background-color: var(--fw-blue);
    flex-wrap: wrap;
    align-items: center;
    font-size: .82rem;
    padding: 2px 12px;
    border-radius: 80px;
}
.fw-hero-left {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;   
}
.fw-crumb a, .fw-crumb span {
    color: #fff; border-radius: 999px; padding: 4px 2px; text-decoration: none;
}
.fw-crumb > span[aria-hidden] { background: none; color: #8aa0c4; padding: 0 2px; }
.fw-crumb a { background: var(--fw-blue); }

.fw-title {
    margin: 0;
    font-style: normal;
    font-weight: 900;
    font-size: 36px;
    line-height: 48px;
    color: #121F3E;
    width: 100%;
}
.fw-subtitle {
    width: 100%;
    color: var(--fw-blue);
    margin: 0;
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
}
.fw-body { width: 100%; color: #46506a; font-size: .95rem; line-height: 1.8; margin: 0 0 10px 0; }
.fw-body ul { list-style: none; margin: 0; padding: 0; }
.fw-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #656D7F;
}
.fw-body ul li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
    border-left: 2px solid #121F3E; border-bottom: 2px solid #121F3E;
    transform: rotate(-45deg);
}
.fame-mentors-swiper .swiper-slide .fame-has-shadow {position: relative;}
.fw-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--fw-blue);
    color: #fff;
    text-decoration: none;
    padding: 6px 20px 6px 6px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(5, 102, 227, .3);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    border: none;
}
.fw-register:hover { color: #fff; filter: brightness(.96); }
.fw-register-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    border-radius: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
}
.fw-register-icoarw {
    font-size: 13px;
}
.fw-hero-right { position: relative; }
.fw-hero-right img {
    display: block; width: 100%; height: auto; border-radius: 22px;
    background: linear-gradient(150deg, #7b5cff, #2a6df0); object-fit: cover;
    box-shadow: 0 20px 50px rgba(30, 40, 120, .18);
}

/* ---------- Info cards ---------- */
.fw-infocards { margin-top: -70px; }
.fw-infocards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fw-infocard {
    display: flex; align-items: center; gap: 14px;
    background-color: #fff; border-radius: 10px; padding: 35px;
    box-shadow: 0 12px 34px rgba(8, 20, 102, .08);
}
.fw-infocard-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 59px;
    height: 59px;
    border-radius: 12px;
    background-color: #F5F8F9;
    color: #121F3E;
    border: 1px solid #0063E3;
    border-radius: 100px 0px 100px 100px;
}
.fw-infocard-label {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #656D7F;
}
.fw-infocard-value {
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    color: #121F3E;
}

/* ---------- Section head ---------- */
.fw-section-head { text-align: center; margin-bottom: 34px; }
.fw-section-head .fw-pill { margin-bottom: 12px; }
.fw-section-title { font-size: 1.9rem; font-weight: 800; color: #0B1524; margin: 8px 0 0; }

/* ---------- What You Will Learn ---------- */
.fw-learn { padding: 70px 0; }
.fw-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fw-learn-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 6px 22px rgba(8, 20, 102, .04);
}
.fw-learn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
}
.fw-learn-icon { font-size: 1.05rem; }
.fw-learn-desc {
    margin: 0;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #656D7F;
}

/* ---------- Speakers ---------- */
.fw-speakers { padding: 20px 0 80px; }
.fw-speaker { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; margin-bottom: 40px; }
.fw-speaker:last-child { margin-bottom: 0; }
.fw-speaker-media img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 44px rgba(30, 40, 120, .14); }
.fw-speaker-body .fw-pill { margin-bottom: 12px; }
.fw-speaker-name { font-size: 1.7rem; font-weight: 800; color: #0B1524; margin: 0 0 4px; }
.fw-speaker-role { color: var(--fw-blue); font-weight: 600; margin-bottom: 12px; }
.fw-speaker-desc { color: #6c7488; font-size: .95rem; line-height: 1.8; margin-bottom: 18px; }
.fw-speaker-link {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #d6deea; border-radius: 999px; padding: 9px 20px;
    color: #0B1524; text-decoration: none; font-weight: 600; font-size: .88rem;
}
.fw-speaker-link:hover { border-color: var(--fw-blue); color: var(--fw-blue); }

/* ---------- Listing ---------- */
.fame-webinars-list { padding: 50px 0 70px; }
.fw-list-head { text-align: center; margin-bottom: 34px; }
.fw-list-head .fw-pill { margin-bottom: 12px; }
/* 2-column listing of horizontal webinar cards (fame-page-elements/webinar look). */
.fw-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fw-empty { text-align: center; color: #8a90a2; padding: 40px 0; }
.fame-el-webinar .fame-web-actions { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.fame-el-webinar .fame-web-cal { color: var(--fw-blue); font-size: 1.35rem; display: inline-flex; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .fw-hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .fw-infocards-grid { grid-template-columns: 1fr 1fr; }
    .fw-learn-grid { grid-template-columns: 1fr; }
    .fw-speaker { grid-template-columns: 1fr; gap: 22px; }
    .fw-list-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .fw-title { font-size: 1.5rem; }
    .fw-infocards-grid { grid-template-columns: 1fr; }
    .fw-list-grid { grid-template-columns: 1fr; }
    .fame-el-webinar { flex-direction: column; }
    .fame-el-webinar .fame-web-media { flex: none; max-width: none; width: 100%; }
    .fame-el-webinar .fame-web-media img { min-height: 180px; }
    .fw-section-title, .fw-speaker-name { font-size: 1.4rem; }
}

/* Listing search toolbar */
/* Search stays on the LEFT exactly as before; the scope chips sit on the right
   of the same row and wrap under it when there is no room. */
.fame-webinars-list .fw-search-toolbar {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.fame-webinars-list .fw-search { position: relative; max-width: 420px; flex: 1 1 280px; }
.fame-webinars-list .fw-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa6bf; pointer-events: none; }
.fame-webinars-list .fw-search-input {
    width: 100%; border: 1px solid #e2e9f3; border-radius: 999px;
    padding: 11px 18px 11px 42px; font-size: .92rem; color: #33384a; outline: none; background: #fff;
}
.fame-webinars-list .fw-search-input:focus { border-color: var(--fw-blue); box-shadow: 0 0 0 3px rgba(5, 102, 227, .12); }

/* Listing AJAX: spinner + load-more */
.fame-webinars-list .fw-search-spinner {
    position: absolute; right: 14px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px; border: 2px solid #dbe3f0; border-top-color: var(--fw-blue);
    border-radius: 50%; opacity: 0; transition: opacity .15s; animation: fw-spin .7s linear infinite;
}
.fame-webinars-list .fw-search-spinner.is-visible { opacity: 1; }
@keyframes fw-spin { to { transform: rotate(360deg); } }

/* Scope chips (All / Previous / Upcoming) — same AJAX request as the search
   box and load-more (fame-list-controller.js), so the three combine. */
.fame-webinars-list .fw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fame-webinars-list .fw-filter {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid #e2e9f3; border-radius: 999px; background: #fff;
    padding: 9px 16px; color: #33384a; font-size: .88rem; font-weight: 600; line-height: 1;
    cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.fame-webinars-list .fw-filter:hover { border-color: var(--fw-blue); color: var(--fw-blue); }
.fame-webinars-list .fw-filter:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(5, 102, 227, .12); }
.fame-webinars-list .fw-filter.is-active { background: var(--fw-blue); border-color: var(--fw-blue); color: #fff; }
.fame-webinars-list .fw-filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: #eef2fb; color: #6b7590; font-size: .72rem; font-weight: 700;
}
.fame-webinars-list .fw-filter.is-active .fw-filter-count { background: rgba(255, 255, 255, .22); color: #fff; }

@media (max-width: 640px) {
    /* One scrollable row instead of a tall wrapped block on a phone. */
    .fame-webinars-list .fw-filters {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; padding-bottom: 4px; margin-left: 0; width: 100%;
    }
    .fame-webinars-list .fw-filters::-webkit-scrollbar { display: none; }
    .fame-webinars-list .fw-filter { flex: 0 0 auto; }
}
.fame-webinars-list .fw-loadmore-wrap { text-align: center; margin-top: 34px; }
.fame-webinars-list .fw-loadmore {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e2e9f3; border-radius: 999px; padding: 10px 24px;
    color: #0B1524; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 8px 24px rgba(8, 20, 102, .06);
}
.fame-webinars-list .fw-loadmore:hover { border-color: var(--fw-blue); color: var(--fw-blue); }
.fame-webinars-list .fw-loadmore:disabled { opacity: .6; cursor: default; }

/* ---------- Register-to-attend popup ---------- */
.fw-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fw-modal[hidden] { display: none; }
.fw-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 21, 55, .55); }
.fw-modal-dialog { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto; padding: 34px 34px 30px; box-shadow: 0 30px 80px rgba(8, 20, 102, .3); }
.fw-modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--fw-blue); font-size: 26px; line-height: 1; cursor: pointer; }
.fw-modal-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: #0B1524; margin: 0 0 24px; }
.fw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fw-field { display: flex; flex-direction: column; }
.fw-field label { font-size: .8rem; color: #4a5163; margin-bottom: 5px; }
.fw-field input, .fw-field select { border: 1px solid #e2e9f3; background: #f6f8fb; border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: #33384a; outline: none; }
.fw-field input:focus, .fw-field select:focus { border-color: var(--fw-blue); background: #fff; }
.fw-terms { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: #4a5163; margin: 18px 0 14px; }
.fw-terms input { margin-top: 3px; }
.fw-form-msg { min-height: 18px; font-size: .85rem; }
.fw-form-msg.is-error { color: #d33; }
.fw-modal-submit { width: 100%; background: var(--fw-blue); color: #fff; border: none; border-radius: 8px; padding: 13px; font-weight: 700; letter-spacing: .5px; cursor: pointer; margin-top: 6px; }
.fw-modal-submit:hover { filter: brightness(.96); }
.fw-modal-submit:disabled { opacity: .6; cursor: default; }
.fw-modal-registered { text-align: center; color: #22a06b; font-weight: 600; padding: 24px 0; font-size: 1.05rem; }
.fw-login-required { text-align: center; }
.fw-login-note { color: #4a5163; margin-bottom: 16px; }
.fw-field .iti { width: 100%; }
.fw-field .iti input { width: 100%; }
@media (max-width: 575px) { .fw-form-grid { grid-template-columns: 1fr; } .fw-modal-dialog { padding: 26px 20px; } }

/* Paid-webinar packages CTA in the register popup (same style as the mock-test
   locked CTA — copied from fame-quiz-detail.css). */
.fw-modal-packages { margin-top: 6px; }
.fame-tag-package-cta { display: flex; flex-direction: column; gap: 14px; width: 100%; margin: 16px 0; }
.fame-tag-package-cta__group { border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; padding: 14px 16px; box-shadow: 0 1px 3px rgba(8, 20, 102, 0.04); }
.fame-tag-package-cta__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fame-tag-package-cta__head strong { font-size: 15px; color: #0f172a; letter-spacing: 0.1px; }
.fame-tag-package-cta__hint { color: #64748b; font-size: 13px; }
.fame-tag-package-cta__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.fame-tag-package-cta__item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid #d8e0eb; border-radius: 10px; color: #0f172a; background: #f8fafc; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.fame-tag-package-cta__item:hover { background: #eff6ff; border-color: #93c5fd; transform: translateY(-1px); color: #0f172a; text-decoration: none; }
.fame-tag-package-cta__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.fame-tag-package-cta__cta { display: inline-flex; align-items: center; gap: 4px; color: #2563eb; font-weight: 600; font-size: 12px; }

/* Instructor "About" bio text (from the instructor's dashboard profile). */
.fw-speaker-about { margin: 14px 0 0; font-size: 15px; line-height: 1.75; color: #475569; max-width: 760px; }

/* ---- New detail sections: Speakers / FAQs / Gallery / Accreditations ---- */
.fw-section { padding: 40px 0; }
.fw-section-head--center { text-align: center; }
.fw-section-sub { max-width: 720px; margin: 12px auto 0; color: #4a5163; font-size: 1rem; line-height: 1.7; }

/* Gallery — responsive masonry-ish grid of images. */
.fw-gallery { columns: 4 260px; column-gap: 16px; }
.fw-gallery-item { margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(11, 21, 36, .08); background: #eef2f8; }
.fw-gallery-item img { display: block; width: 100%; height: auto; }

/* Accreditations — centered row of logos. */
.fw-accred { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 40px; }
.fw-accred-item { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; filter: grayscale(1); opacity: .78; transition: filter .18s ease, opacity .18s ease, transform .18s ease; }
.fw-accred-item:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.fw-accred-item img { display: block; max-height: 72px; width: auto; max-width: 180px; object-fit: contain; }

@media (max-width: 767px) {
    .fw-gallery { columns: 2 150px; }
    .fw-accred-item img { max-height: 54px; max-width: 130px; }
}
