@font-face {
    font-family: 'NewsCycle-Regular';
    src: url('../fonts/NewsCycle-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NewsCycle-Bold';
    src: url('../fonts/NewsCycle-Bold.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans-Regular';
    src: url('../fonts/OpenSans-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.sm-speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top:40px;
}

.sm-speaker-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* CARD */
.sm-speaker-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 40px;
}

.sm-speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* IMAGE */
.sm-speaker-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    object-position: top;
}

/* CONTENT */
.sm-speaker-content {
    padding: 20px;
}

/* NAME */
.sm-speaker-name {
    font-size: 24px !important;
    margin-top:20px;
    margin: 0 0 6px;
     color:#283B91;
  font-family: 'NewsCycle-Regular', sans-serif !important;
  font-weight: 700;
}

/* POSITION */
.sm-speaker-position {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px;
}

/* CATEGORY BADGE */
.sm-speaker-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    background: #A5C4C64D;
    color: #1E6B73;
    border-radius: 999px;
    margin-top:30px;
}

.sm-speaker-description {
    margin-top: 16px;
    font-size: 14px;
    color: #333;
}

/* MODAL */
.sm-speaker-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sm-speaker-modal-overlay.is-visible {
    display: flex;
}

.sm-speaker-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    max-height: 90vh; /* keep modal within viewport and allow internal scroll */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.sm-speaker-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
}

.sm-speaker-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.sm-speaker-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow-y: auto; /* scroll content when taller than modal */
}

.sm-speaker-modal-image {
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 24px;
}

.sm-speaker-modal-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.sm-speaker-modal-content {
    padding: 24px;
}

.sm-speaker-modal-name {
    font-size: 26px;
    margin: 0 0 8px;
    color: #283b91;
    font-weight: 700;
}

.sm-speaker-modal-position {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px;
}

.sm-speaker-modal-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    background: #A5C4C64D;
    color: #1E6B73;
    border-radius: 999px;
    margin-bottom: 16px;
}

.sm-speaker-modal-description {
    font-size: 14px;
    color: #333;
}

@media (max-width: 600px) {
    .sm-speaker-modal-body {
        grid-template-columns: 1fr;
    }

    .sm-speaker-modal {
        max-height: 95vh; /* a bit taller on small screens */
    }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .sm-speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .sm-speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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





/* ===================================================
   PAST CONFERENCES – TIMELINE (FINAL FIXED)
=================================================== */

.sm-timeline {
    position: relative;
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 20px;
}

/* CENTER LINE */
.sm-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #7b7fdc;
    transform: translateX(-50%);
}

/* ROW */
.sm-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 90px;
}

/* DOT */
.sm-timeline-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #2f9e9e;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* DOT OFFSET TOWARD IMAGE */
.text-first .sm-timeline-dot {
    left: calc(50% + 18px);
}

.image-first .sm-timeline-dot {
    left: calc(50% - 18px);
}

/* COLUMNS */
.sm-timeline-col {
    display: flex;
    width: 100%;
}

/* =========================
   WHITE CARD (FULL WIDTH)
========================= */
.sm-timeline-content {
    text-align: right !important;
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    width: 100%;              /* ✅ full column width */
}

/* TEXT ALIGNMENT TOWARD CENTER LINE */
.text-first .sm-text {
    justify-content: flex-end;
}

.text-first .sm-timeline-content {
    text-align: right;        /* ✅ aligns toward center */
}

.image-first .sm-text {
    justify-content: flex-start;
}

.image-first .sm-timeline-content {
    text-align: left;         /* ✅ aligns toward center */
}

/* CARD TEXT */
.sm-timeline-year {
    display: inline-block;
    padding: 8px 16px;
    background: #2B8A8E;
    color: #FFFFFF;
    border-radius:26px;
    font-size: 16px;
    margin-bottom: 14px;
}

.sm-timeline-title {
    font-size: 24px;
    color: #283B91;
    margin: 0 0 6px;
    font-weight: 400 !important;
    font-family: 'NewsCycle-Regular', sans-serif !important;
}

.sm-timeline-subtitle {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.sm-timeline-desc {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-top:20px;
}

/* IMAGE */
.sm-image {
    display: flex;
    justify-content: center;
}

.sm-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ORDER CONTROL */
.text-first .sm-text { order: 1; }
.text-first .sm-image { order: 2; }

.image-first .sm-image { order: 1; }
.image-first .sm-text { order: 2; }

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

    .sm-timeline {
        padding-left: 40px;
    }

    .sm-timeline::before {
        left: 12px;
        transform: none;
    }

    .sm-timeline-item {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 70px;
    }

    .sm-timeline-dot {
        left: 12px !important;
    }

    .sm-timeline-content {
        text-align: left; /* reset for mobile */
    }

    .sm-image img {
        max-width: 100%;
    }
}


