/* ---------- Filter Bar ---------- */
.sm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.sm-filter-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #0a1628;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767f89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 160px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-filter-apply-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #456d90;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sm-filter-apply-btn:hover {
    background: #1a1f2b;
}

.sm-filter-reset-btn {
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.sm-filter-reset-btn:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* ---------- Speaker Cards Grid ---------- */
.sm-speaker-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px !important;
    margin: 30px 0 !important;
    width: 100% !important;
}

.sm-speaker-grid > .sm-speaker-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    float: none !important;
    display: block;
}

/* ---------- Speaker Card: redesign with PathJeevani brand colors ---------- */
.sm-speaker-grid,
.sm-speaker-carousel,
.sm-archive-wrap {
    --sm-primary: #456d90;  /* teal-blue, from PathJeevani logo wordmark */
    --sm-secondary: #eab714; /* gold, from PathJeevani logo underline */
    --sm-ink: #1a1f2b;
    --sm-paper: #ffffff;
    --sm-muted: #767f89;
    --sm-hairline: #e7e9ec;
}

.sm-speaker-card {
    background: var(--sm-paper, #fff);
    border: 0;
    border-bottom: 3px solid var(--sm-secondary, #eab714);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(22, 40, 58, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sm-speaker-card * {
    box-sizing: border-box;
}

.sm-speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -14px rgba(22, 40, 58, 0.28);
}

.sm-card-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef2f6;
    line-height: 0 !important;
    margin: 0 !important;
}

.sm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
    transition: transform 0.5s ease;
}

.sm-speaker-card:hover .sm-card-img {
    transform: scale(1.06);
}

.sm-card-body {
    padding: 16px 18px 16px !important;
    margin: 0 !important;
    text-align: left;
}

/* Flat colored category pill, same visual language as the site's story-card tags */
.sm-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    max-width: calc(100% - 28px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sm-card-badge {
    position: static;
    max-width: 100%;
    background: var(--sm-primary, #456d90);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    padding: 4px 9px !important;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
}

.sm-card-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--sm-ink, #1a1f2b);
}

.sm-card-meta {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sm-muted, #767f89);
    overflow-wrap: anywhere;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.sm-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sm-ink, #1a1f2b);
    text-decoration: none;
    margin: 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--sm-hairline, #e7e9ec);
    transition: color 0.2s ease;
}

.sm-card-cta .sm-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
    color: var(--sm-secondary, #eab714);
}

.sm-card-cta:hover {
    color: var(--sm-primary, #456d90);
}

.sm-card-cta:hover .sm-arrow {
    transform: translateX(4px);
}

/* ---------- Single Speaker Page: premium product-page style ---------- */
.sm-pdp-wrap {
    max-width: 1280px;
    margin: 90px auto 70px;
    padding: 0 40px;
    --sm-primary: #456d90;
    --sm-secondary: #eab714;
    --sm-ink: #1a1f2b;
    --sm-muted: #767f89;
    --sm-hairline: #e7e9ec;
    --sm-tint: #f2f5f8;
}

.sm-pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 64px;
    align-items: stretch;
}

.sm-pdp-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    line-height: 0 !important;
    margin: 0 !important;
    box-shadow: 0 24px 48px -24px rgba(26, 31, 43, 0.35);
}

.sm-pdp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.sm-pdp-info {
    display: flex;
    flex-direction: column;
    padding-top: 6px;
}

.sm-pdp-badge {
    display: inline-block;
    background: var(--sm-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    width: fit-content;
    margin: 0 6px 10px 0;
}

.sm-pdp-name {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--sm-ink);
}

.sm-pdp-subtitle {
    font-size: 16px;
    color: var(--sm-muted);
    margin: 0 0 14px;
}

.sm-pdp-overview {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--sm-muted);
    margin: 0 0 22px;
}

.sm-pdp-specs {
    width: 100%;
    font-size: 14.5px;
    background: var(--sm-tint) !important;
    border-radius: 16px;
    padding: 6px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(26, 31, 43, 0.04);
}

.sm-pdp-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: transparent !important;
}

.sm-pdp-spec-row:not(:last-child) {
    border-bottom: 1px solid rgba(26, 31, 43, 0.08);
}

.sm-pdp-spec-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sm-muted);
    font-weight: 500;
}

.sm-pdp-spec-icon {
    width: 16px;
    height: 16px;
    color: var(--sm-primary);
    flex-shrink: 0;
}

.sm-pdp-spec-value {
    font-weight: 600;
    color: var(--sm-ink);
}

.sm-pdp-cta-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.sm-pdp-book-btn {
    flex: 1;
    background: var(--sm-primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sm-pdp-book-btn:hover {
    background: var(--sm-ink);
    transform: translateY(-2px);
}

.sm-pdp-whatsapp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sm-pdp-whatsapp-btn:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
}

.sm-pdp-whatsapp-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

/* ---------- About section, full width below the image row ---------- */
.sm-pdp-about {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--sm-hairline);
}

.sm-pdp-about h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--sm-ink);
    margin: 0 0 16px;
}

.sm-pdp-about-text {
    line-height: 1.75;
    color: var(--sm-muted);
    font-size: 15px;
    max-width: 70em;
}



.sm-single-contact-box {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px 24px;
}

/* ---------- Book This Speaker Button ---------- */
.sm-book-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #0a1628;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sm-book-btn:hover {
    background: #2563eb;
}

/* ---------- Enquiry Modal ---------- */
.sm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 43, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sm-modal-overlay.sm-modal-open {
    display: flex;
}

.sm-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 520px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px -20px rgba(26, 31, 43, 0.4);
    border-top: 5px solid #456d90;
    animation: sm-modal-pop 0.25s ease;
}

@keyframes sm-modal-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sm-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f5f8;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #767f89;
    transition: background 0.2s ease, color 0.2s ease;
}

.sm-modal-close:hover {
    background: #456d90;
    color: #fff;
}

.sm-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1f2b;
    margin: 0 0 6px;
    padding-right: 30px;
}

.sm-modal-subtitle {
    font-size: 14px;
    color: #767f89;
    margin: 0 0 26px;
}

.sm-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sm-modal-field {
    margin-bottom: 16px;
}

.sm-modal-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #454c56;
    margin-bottom: 6px;
}

.sm-modal-field input,
.sm-modal-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d7dbe0;
    border-radius: 9px;
    font-size: 14px;
    color: #1a1f2b;
    background: #fbfbfc;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sm-modal-field input::placeholder,
.sm-modal-field textarea::placeholder {
    color: #a7acb3;
}

.sm-modal-field input:focus,
.sm-modal-field textarea:focus {
    outline: none;
    border-color: #456d90;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(69, 109, 144, 0.12);
}

.sm-modal-field textarea {
    min-height: 90px;
    resize: vertical;
}

.sm-modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: #456d90;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sm-modal-submit-btn:hover {
    background: #1a1f2b;
    transform: translateY(-1px);
}

.sm-modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sm-enquiry-status {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 0;
}

.sm-enquiry-status.sm-success {
    color: #16a34a;
    font-weight: 500;
}

.sm-enquiry-status.sm-error {
    color: #dc2626;
    font-weight: 500;
}

@media (max-width: 560px) {
    .sm-modal-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.sm-single-contact-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #0a1628;
}

.sm-single-contact-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-single-contact-box li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #374151;
}

/* ---------- Batch pagination (Load More) ---------- */
.sm-batch-hidden {
    display: none !important;
}

/* ---------- View All Speakers button (home page preview) ---------- */
.sm-view-all-wrap {
    text-align: center;
    margin: 36px 0 10px;
}

.sm-view-all-btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--sm-primary, #456d90);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sm-view-all-btn:hover {
    background: var(--sm-secondary, #eab714);
    color: #1a1f2b;
}

/* ---------- Load More button (All Speakers archive page) ---------- */
.sm-load-more-wrap {
    text-align: center;
    margin: 36px 0 10px;
}

.sm-load-more-btn {
    padding: 14px 34px;
    background: #fff;
    color: var(--sm-primary, #456d90);
    border: 2px solid var(--sm-primary, #456d90);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sm-load-more-btn:hover {
    background: var(--sm-primary, #456d90);
    color: #fff;
}

/* ---------- All Speakers archive page ---------- */
.sm-archive-wrap {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.sm-archive-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--sm-ink, #1a1f2b);
    margin: 0 0 24px;
}

/* ---------- Speaker Carousel (home page) ---------- */
.sm-speaker-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
}

.sm-speaker-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 16px;
    flex: 1;
    scrollbar-width: none;
}

.sm-speaker-carousel::-webkit-scrollbar {
    display: none;
}

.sm-speaker-carousel .sm-speaker-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 220px;
    scroll-snap-align: start;
}

.sm-carousel-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1f2b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sm-carousel-arrow svg {
    width: 13px;
    height: 13px;
    display: block;
}

.sm-carousel-arrow:hover {
    background: #fff;
    color: #1a1f2b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .sm-pdp-grid {
        grid-template-columns: minmax(0, 380px) 1fr;
        gap: 40px;
    }
    .sm-pdp-wrap {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .sm-speaker-carousel .sm-speaker-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .sm-speaker-carousel .sm-speaker-card {
        flex: 0 0 85%;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sm-pdp-grid {
        grid-template-columns: 1fr;
    }
    .sm-pdp-cta-row {
        flex-direction: column;
    }
    .sm-speaker-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .sm-speaker-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   v1.2  PJ-carousel style: heading row, View All button,
   overlay arrows, full mobile responsiveness.
   Font family is NOT set here: the website's default is used.
   ========================================================= */
.sm-head,
.sm-speaker-grid,
.sm-speaker-carousel-wrap,
.sm-filter-bar,
.sm-pdp-wrap,
.sm-modal-overlay {
    --sm-gold: #e8b512;
}

.sm-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 22px;
}

.sm-head-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: #1a1f2b;
    white-space: nowrap;
}

.sm-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #c5cbd3, rgba(197, 203, 211, 0));
}

.sm-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: #fff;
    color: #15181d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid var(--sm-gold, #e8b512);
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.sm-viewall:hover {
    color: #456d90;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.sm-head-archive {
    margin-bottom: 24px;
}

/* old title / old bottom view-all are replaced by the heading row */
.sm-archive-title {
    font-size: 32px;
    font-weight: 600;
}

/* Filters: font follows the site, easy to tap */
.sm-filter-select,
.sm-filter-apply-btn,
.sm-filter-reset-btn,
.sm-load-more-btn,
.sm-book-btn,
.sm-pdp-book-btn,
.sm-pdp-whatsapp-btn,
.sm-modal-submit-btn,
.sm-modal-field input,
.sm-modal-field textarea {
    font-family: inherit;
}

.sm-filter-apply-btn {
    border-bottom: 2px solid var(--sm-gold, #e8b512);
}

/* Carousel arrows: white circles floating over the cards, like PJ carousel */
.sm-speaker-carousel-wrap {
    display: block;
}

.sm-carousel-arrow {
    position: absolute;
    top: calc(50% - 8px);
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #456d90;
    box-shadow: 0 4px 14px rgba(22, 40, 58, 0.28);
}

.sm-carousel-prev {
    left: 8px;
}

.sm-carousel-next {
    right: 8px;
}

.sm-carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.sm-carousel-arrow:hover {
    background: #456d90;
    color: #fff;
    transform: translateY(-50%);
    box-shadow: 0 6px 18px rgba(22, 40, 58, 0.32);
}

.sm-speaker-carousel {
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1320px) {
    .sm-carousel-prev { left: -21px; }
    .sm-carousel-next { right: -21px; }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1100px) {
    .sm-speaker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
    .sm-head-title,
    .sm-archive-title {
        font-size: 28px;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 899px) {
    .sm-head-title,
    .sm-archive-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .sm-speaker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
    .sm-pdp-wrap {
        margin: 40px auto 50px;
    }
    .sm-pdp-grid {
        gap: 28px;
    }
    .sm-pdp-img-wrap {
        max-width: 420px;
        margin: 0 auto !important;
    }
    .sm-archive-wrap {
        margin: 30px auto;
    }
}

/* ---------- Phones (iPhone, Samsung, Oppo, Vivo, Redmi...) ---------- */
@media (max-width: 600px) {
    .sm-head {
        gap: 12px;
        margin-bottom: 16px;
    }
    .sm-head-title,
    .sm-archive-title {
        font-size: 22px;
        white-space: normal;
    }
    .sm-head-line {
        display: none;
    }
    .sm-head .sm-viewall {
        margin-left: auto;
        padding: 8px 12px;
        font-size: 13px;
    }
    .sm-head-archive .sm-head-line {
        display: block;
    }

    /* filters: two selects per row, buttons share a row */
    .sm-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }
    .sm-filter-select {
        min-width: 0;
        max-width: none;
        width: 100%;
        font-size: 13px;
        padding: 10px 30px 10px 12px;
        background-position: right 10px center;
    }
    .sm-filter-apply-btn,
    .sm-filter-reset-btn {
        width: 100%;
        padding: 11px 10px;
    }

    /* cards: two per row, compact */
    .sm-speaker-grid {
        gap: 12px !important;
        margin: 20px 0 !important;
    }
    .sm-card-body {
        padding: 12px 12px 12px !important;
    }
    .sm-card-name {
        font-size: 15px;
    }
    .sm-card-meta {
        font-size: 12px;
        margin-bottom: 10px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sm-card-cta {
        font-size: 11.5px;
        padding-top: 10px !important;
    }
    .sm-card-badges {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        gap: 4px;
    }
    .sm-card-badge {
        font-size: 10.5px;
        padding: 3px 7px !important;
    }
    .sm-speaker-card:hover {
        transform: none;
    }

    /* carousel: one card + peek of next, swipe */
    .sm-speaker-carousel {
        gap: 12px;
    }
    .sm-speaker-carousel .sm-speaker-card {
        flex: 0 0 78%;
        min-width: 0;
    }
    .sm-speaker-carousel .sm-card-body {
        padding: 14px 16px 14px !important;
    }
    .sm-speaker-carousel .sm-card-name {
        font-size: 17px;
    }
    .sm-speaker-carousel .sm-card-meta {
        font-size: 13px;
    }
    .sm-speaker-carousel .sm-card-cta {
        font-size: 12.5px;
    }
    .sm-speaker-carousel .sm-card-badges {
        top: 12px;
        left: 12px;
    }
    .sm-speaker-carousel .sm-card-badge {
        font-size: 11px;
        padding: 4px 9px !important;
    }
    .sm-carousel-arrow {
        width: 34px;
        height: 34px;
    }
    .sm-carousel-arrow svg {
        width: 15px;
        height: 15px;
    }
    .sm-carousel-prev { left: 4px; }
    .sm-carousel-next { right: 4px; }

    .sm-load-more-btn {
        width: 100%;
        max-width: 320px;
    }

    /* single speaker page */
    .sm-pdp-wrap {
        padding: 0 16px;
        margin: 28px auto 40px;
    }
    .sm-pdp-name {
        font-size: 26px;
    }
    .sm-pdp-subtitle {
        font-size: 15px;
    }
    .sm-pdp-specs {
        padding: 4px 16px;
    }
    .sm-pdp-spec-row {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 12px 0;
    }
    .sm-pdp-spec-value {
        text-align: right;
        overflow-wrap: anywhere;
    }
    .sm-pdp-cta-row {
        margin-top: 22px;
    }
    .sm-pdp-about {
        margin-top: 36px;
        padding-top: 24px;
    }

    /* enquiry popup */
    .sm-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .sm-modal-box {
        padding: 30px 20px 24px;
        border-radius: 18px;
        max-height: 92vh;
    }
    .sm-modal-title {
        font-size: 20px;
    }
    .sm-modal-field input,
    .sm-modal-field textarea {
        font-size: 16px; /* stops iOS zoom on focus */
    }
}

/* very small phones */
@media (max-width: 359px) {
    .sm-speaker-grid {
        grid-template-columns: 1fr !important;
    }
    .sm-head-title,
    .sm-archive-title {
        font-size: 20px;
    }
    .sm-filter-bar {
        grid-template-columns: 1fr;
    }
}

/* touch screens: bigger tap targets */
@media (hover: none) {
    .sm-speaker-card:hover .sm-card-img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-speaker-card,
    .sm-card-img,
    .sm-speaker-carousel {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* v1.3 photo always fills the card box, whatever height the theme sets on img */
.sm-speaker-card .sm-card-img-wrap {
    aspect-ratio: 4 / 5;
    height: auto;
}
.sm-speaker-card .sm-card-img-wrap img.sm-card-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}
.sm-pdp-img-wrap img.sm-pdp-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}


/* =========================================================
   FILTER DROPDOWNS: single caret, one-line text, fully responsive
   ========================================================= */

/* The arrow is a real <svg> inside .sm-select-wrap. The select itself has no
   background/arrow, so theme or plugin select styles cannot add a second one. */
.sm-filter-bar .sm-select-wrap {
    position: relative;
    display: block;
    min-width: 160px;
    max-width: 260px;
}
.sm-filter-bar .sm-select-wrap .sm-filter-select {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: #fff !important;
    background-image: none !important;
    padding-right: 36px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3;
}
.sm-filter-bar .sm-select-wrap .sm-filter-select::-ms-expand { display: none; }
.sm-filter-bar .sm-filter-select option { white-space: nowrap; font-size: 14px; }
.sm-filter-bar .sm-select-wrap::before,
.sm-filter-bar .sm-select-wrap::after,
.sm-filter-bar .sm-select-wrap .sm-filter-select::before,
.sm-filter-bar .sm-select-wrap .sm-filter-select::after {
    content: none !important;
    display: none !important;
}
.sm-filter-bar .sm-select-wrap .sm-select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    color: #767f89;
    pointer-events: none;
}

/* Theme JS wraps every select in div.custom-select-wrp and adds its own ::after
   chevron (icon font) — that was the second/double arrow. Switch it off here. */
.sm-filter-bar .custom-select-wrp {
    display: block !important;
    width: 100% !important;
    position: static !important;
}
.sm-filter-bar .custom-select-wrp::before,
.sm-filter-bar .custom-select-wrp::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 900px) {
    .sm-filter-bar .sm-select-wrap .sm-filter-select { font-size: 13.5px; }
}

/* phones: 2 short filters on top, long ones get a full row */
@media (max-width: 600px) {
    .sm-filter-bar .sm-select-wrap { max-width: none; min-width: 0; width: 100%; }
    .sm-filter-bar .sm-select-wrap:nth-child(1) { order: 1; }                         /* Experience */
    .sm-filter-bar .sm-select-wrap:nth-child(3) { order: 2; }                         /* Gender */
    .sm-filter-bar .sm-select-wrap:nth-child(2) { order: 3; grid-column: 1 / -1; }    /* Location */
    .sm-filter-bar .sm-select-wrap:nth-child(4) { order: 4; grid-column: 1 / -1; }    /* Specialization */
    .sm-filter-bar .sm-filter-apply-btn { order: 5; }
    .sm-filter-bar .sm-filter-reset-btn { order: 6; }
    .sm-filter-bar .sm-select-wrap .sm-filter-select { font-size: 13px; padding-right: 30px !important; }
    .sm-filter-bar .sm-select-wrap .sm-select-caret { right: 10px; }
}
@media (max-width: 380px) {
    .sm-filter-bar .sm-select-wrap .sm-filter-select { font-size: 12.5px; padding-left: 10px !important; }
}

/* no sideways scroll anywhere */
.sm-archive-wrap,
.sm-pdp-wrap,
.sm-filter-bar,
.sm-speaker-grid { max-width: 100%; box-sizing: border-box; }
.sm-pdp-info,
.sm-pdp-grid > * { min-width: 0; }
.sm-pdp-name,
.sm-pdp-overview,
.sm-pdp-about-text { overflow-wrap: anywhere; }
.sm-pdp-img,
.sm-card-img { max-width: 100%; }
.sm-modal-box { box-sizing: border-box; max-width: min(520px, 100%); }
.sm-modal-field input,
.sm-modal-field textarea { max-width: 100%; }
