/* ---------- 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: 700;
    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: 600;
    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: 1px solid var(--sm-hairline, #e7e9ec);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.sm-speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(26, 31, 43, 0.24);
    border-color: transparent;
}

.sm-card-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--sm-paper, #fff);
    line-height: 0 !important;
    margin: 0 !important;
}

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

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

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

/* Flat colored category pill, same visual language as the site's story-card tags */
.sm-card-badge {
    display: inline-block;
    background: var(--sm-primary, #456d90);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 11px !important;
    border-radius: 6px;
    white-space: nowrap;
    margin: 0 0 12px !important;
}

.sm-card-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px !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);
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.sm-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    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: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 0 16px;
}

.sm-pdp-name {
    font-size: 38px;
    font-weight: 700;
    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: 700;
    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: 700;
    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: 700;
    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: 700;
    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: 700;
    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: 700;
    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: 600;
    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: 700;
    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: 600;
}

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

@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: 700;
    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: 700;
    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: 700;
    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: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--sm-primary, #456d90);
    background: #fff;
    color: var(--sm-primary, #456d90);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.sm-carousel-arrow:hover {
    background: var(--sm-primary, #456d90);
    color: #fff;
}

@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;
    }
}
