/* ============================================================
   WPD MALAYSIA — SPEAKERS DIRECTORY & PROFILE
   File: wp-content/themes/wpd-malaysia/assets/css/speakers.css
   Updated: 09 October 2026
   Scoped to .wpd-speakers — does not style other site pages.
   ============================================================ */

/* 01 — Colours and typography */
.wpd-speakers {
  --sp-navy: #091b37;
  --sp-navy-mid: #102c54;
  --sp-navy-light: #194276;
  --sp-gold: #e4b65f;
  --sp-gold-soft: #f0ce8e;
  --sp-white: #fffaf1;
  --sp-muted: #d0ddec;
  --sp-card: #ffffff;
  --sp-ink: #112b4c;
  --sp-gradient: linear-gradient(128deg, #071830 0%, #102b52 49%, #1b4376 100%);
  font-family: Inter, Arial, sans-serif;
  color: var(--sp-white);
  line-height: 1.55;
  background: var(--sp-gradient);
}
.wpd-speakers, .wpd-speakers *, .wpd-speakers *::before, .wpd-speakers *::after { box-sizing: border-box; }
.wpd-speakers .wpd-sp-wrap { width: min(1280px, 88%); margin-inline: auto; }
.wpd-speakers h1, .wpd-speakers h2, .wpd-speakers h3, .wpd-speakers p { margin-top: 0; }
.wpd-speakers h1, .wpd-speakers h2 { font-family: Lora, Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
/* Explicit heading colors prevent existing theme heading styles from turning headings dark on navy. */
.wpd-speakers .wpd-sp-intro h1,
.wpd-speakers .wpd-sp-section-heading h2,
.wpd-speakers .wpd-sp-profile-content h1 { color: var(--sp-white) !important; }
.wpd-speakers h1 em, .wpd-speakers h2 em { color: var(--sp-gold) !important; font-weight: 500; }
.wpd-speakers .wpd-sp-eyebrow { color: var(--sp-gold-soft); font-size: clamp(.72rem,.8vw,.85rem); letter-spacing: .17em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.wpd-speakers .wpd-sp-eyebrow span { margin: 0 .55em; opacity: .7; }
.wpd-speakers .wpd-sp-textlink { display: inline-flex; align-items: center; gap: 1rem; color: var(--sp-gold-soft); text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .45rem; transition: gap .2s ease, color .2s ease; }
.wpd-speakers .wpd-sp-textlink:hover, .wpd-speakers .wpd-sp-textlink:focus-visible { color: #fff; gap: 1.35rem; }
.wpd-speakers a:focus-visible { outline: 3px solid var(--sp-gold); outline-offset: 4px; }

/* 02 — Opening hero: elegant blue gradient; legible headline */
.wpd-speakers .wpd-sp-intro {
  background: radial-gradient(ellipse at 83% 20%, rgba(63,112,171,.25), transparent 40%), var(--sp-gradient);
  min-height: min(780px, calc(100svh - 82px));
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 7vh, 6rem) 0;
}
.wpd-speakers .wpd-sp-intro-inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(190px, .6fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.wpd-speakers .wpd-sp-intro h1 { font-size: clamp(3rem,5.4vw,5.75rem); max-width: 820px; margin-bottom: 1.25rem; text-wrap: balance; }
.wpd-speakers .wpd-sp-intro-copy > p:not(.wpd-sp-eyebrow) { font-size: clamp(.93rem,1vw,1.06rem); line-height: 1.7; max-width: 780px; color: var(--sp-muted); margin-bottom: .95rem; }
.wpd-speakers .wpd-sp-intro .wpd-sp-textlink { margin-top: .6rem; }
.wpd-speakers .wpd-sp-intro-aside { border-left: 1px solid rgba(228,182,95,.6); padding: 1.8rem 0 1.8rem clamp(1.2rem,3vw,3rem); display: flex; flex-direction: column; letter-spacing: .12em; }
.wpd-speakers .wpd-sp-intro-aside span { color: var(--sp-gold); font-size: 1.65rem; font-family: Lora, Georgia, serif; }
.wpd-speakers .wpd-sp-intro-aside strong { color: var(--sp-white); font-size: clamp(4rem,7.2vw,7.4rem); font-weight: 300; letter-spacing: -.07em; line-height: 1.08; }
.wpd-speakers .wpd-sp-intro-aside small { color: var(--sp-muted); margin-top: .7rem; font-size: .72rem; }

/* 03 — Speaker directory: two compact rows of four + three */
.wpd-speakers .wpd-sp-lineup {
  background: radial-gradient(ellipse at 15% 80%, rgba(37,90,148,.25), transparent 45%), linear-gradient(145deg,#0b2040 0%,#113059 58%,#081c39 100%);
  padding: clamp(2rem,4vh,3rem) 0 clamp(2.3rem,4vh,3.5rem);
}
.wpd-speakers .wpd-sp-section-heading { text-align: center; max-width: 760px; margin: 0 auto clamp(1.2rem,2vh,1.7rem); }
.wpd-speakers .wpd-sp-section-heading .wpd-sp-eyebrow { margin-bottom: .3rem; }
.wpd-speakers .wpd-sp-section-heading h2 { font-size: clamp(2.2rem,3.3vw,3.5rem); margin-bottom: .22rem; }
.wpd-speakers .wpd-sp-section-heading > p:last-child { color: var(--sp-muted); margin-bottom: 0; font-size: .9rem; }
.wpd-speakers .wpd-sp-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.65rem,1.2vw,1.05rem); }
.wpd-speakers .wpd-sp-card { display: flex; flex-direction: column; min-width: 0; color: var(--sp-ink); background: var(--sp-card); text-decoration: none; border: 1px solid rgba(228,182,95,.25); border-radius: 9px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.wpd-speakers .wpd-sp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.wpd-speakers .wpd-sp-card-portrait { position: relative; width: 100%; aspect-ratio: 2.1 / 1; overflow: hidden; background: linear-gradient(135deg,#6985a6,#152e50); }
.wpd-speakers .wpd-sp-card-portrait img,
.wpd-speakers .wpd-sp-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 23%; transition: transform .35s ease; }
.wpd-speakers .wpd-sp-card:hover img { transform: scale(1.035); }
.wpd-speakers .wpd-sp-placeholder { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: .4em; background: linear-gradient(145deg,#28537f,#0b294f); color: rgba(255,255,255,.8); font-family: Lora,Georgia,serif; font-size: 1.3rem; letter-spacing: .1em; }
.wpd-speakers .wpd-sp-placeholder b { font-weight: 400; color: var(--sp-gold); }
.wpd-speakers .wpd-sp-photo-arrow { position: absolute; right: .6rem; top: .6rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--sp-gold); color: var(--sp-navy); font-size: .9rem; }
.wpd-speakers .wpd-sp-card-info { padding: .85rem .95rem .7rem; flex: 1; display: flex; flex-direction: column; }
.wpd-speakers .wpd-sp-kicker { color: #866029; font-size: .64rem; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; margin-bottom: .3rem; }
.wpd-speakers .wpd-sp-card h3 { color: var(--sp-ink) !important; font-family: Lora,Georgia,serif; font-size: clamp(1.02rem,1.25vw,1.31rem); line-height: 1.2; margin-bottom: .35rem; }
.wpd-speakers .wpd-sp-card p { color: #52637b; font-size: .78rem; line-height: 1.35; margin-bottom: .55rem; }
.wpd-speakers .wpd-sp-card-action { margin-top: auto; padding-top: .42rem; border-top: 1px solid #e5e9ee; display: flex; justify-content: space-between; align-items: center; color: #164272; text-transform: uppercase; letter-spacing: .07em; font-size: .66rem; font-weight: 800; }

/* 04 — Individual profile pages: same gradient, high contrast */
.wpd-speakers .wpd-sp-profile-section { background: var(--sp-gradient); min-height: calc(100svh - 82px); padding: clamp(2rem,5vh,3.5rem) 0 clamp(3rem,6vh,5rem); }
.wpd-speakers .wpd-sp-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .8rem; color: var(--sp-muted); margin-bottom: clamp(1.5rem,3vw,2.6rem); }
.wpd-speakers .wpd-sp-breadcrumbs a { color: var(--sp-gold-soft); text-decoration: none; }
.wpd-speakers .wpd-sp-breadcrumbs a:hover { text-decoration: underline; }
.wpd-speakers .wpd-sp-profile-layout { display: grid; grid-template-columns: minmax(230px,.78fr) minmax(0,1.22fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.wpd-speakers .wpd-sp-profile-photo { aspect-ratio: 4/5; overflow: hidden; position: relative; background: #1e416b; box-shadow: 15px 15px 0 rgba(228,182,95,.18); border-radius: 5px; }
.wpd-speakers .wpd-sp-profile-content { padding-top: .4rem; }
.wpd-speakers .wpd-sp-profile-content h1 { font-size: clamp(2.8rem,4.4vw,5rem); margin-bottom: 1.1rem; }
.wpd-speakers .wpd-sp-profile-role { color: var(--sp-gold-soft); font-size: clamp(1.02rem,1.45vw,1.25rem); font-weight: 650; margin-bottom: 1rem; }
.wpd-speakers .wpd-sp-positions { color: var(--sp-muted); padding-left: 1.2rem; margin: 0 0 1.5rem; font-size: .94rem; }
.wpd-speakers .wpd-sp-positions li { margin-bottom: .3rem; }
.wpd-speakers .wpd-sp-bio { padding-top: 1.3rem; border-top: 1px solid rgba(240,206,142,.35); margin-bottom: 1.7rem; }
.wpd-speakers .wpd-sp-bio .wpd-sp-eyebrow { margin-bottom: .6rem; }
.wpd-speakers .wpd-sp-bio p:last-child { color: #e3ebf6; line-height: 1.85; font-size: 1rem; max-width: 690px; }

/* 05 — Smaller desktops and tablets: favour legibility over forced clipping */
@media (max-width: 1100px) {
  .wpd-speakers .wpd-sp-intro-inner { grid-template-columns: 1fr; }
  .wpd-speakers .wpd-sp-intro-aside { display: none; }
  .wpd-speakers .wpd-sp-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wpd-speakers .wpd-sp-card-portrait { aspect-ratio: 1.85/1; }
}
@media (max-width: 720px) {
  .wpd-speakers .wpd-sp-wrap { width: min(90%,620px); }
  .wpd-speakers .wpd-sp-intro { min-height: auto; padding: 4rem 0; }
  .wpd-speakers .wpd-sp-intro h1 { font-size: clamp(2.65rem,9vw,4.1rem); }
  .wpd-speakers .wpd-sp-lineup { padding: 2.5rem 0 3rem; }
  .wpd-speakers .wpd-sp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wpd-speakers .wpd-sp-profile-layout { grid-template-columns: 1fr; }
  .wpd-speakers .wpd-sp-profile-photo { width: min(100%,380px); margin-inline: auto; aspect-ratio: 4/4.5; }
  .wpd-speakers .wpd-sp-profile-content h1 { font-size: clamp(2.5rem,8vw,4rem); }
}
@media (max-width: 470px) {
  .wpd-speakers .wpd-sp-grid { grid-template-columns: 1fr; }
  .wpd-speakers .wpd-sp-card { display: grid; grid-template-columns: 38% minmax(0,62%); }
  .wpd-speakers .wpd-sp-card-portrait { aspect-ratio: auto; min-height: 175px; }
  .wpd-speakers .wpd-sp-card-info { padding: .9rem; }
  .wpd-speakers .wpd-sp-card h3 { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wpd-speakers *, .wpd-speakers *::before, .wpd-speakers *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* =========================================================
   WPD SPEAKERS — LIGHT SECTION & PORTRAIT CONTROLS
   ========================================================= */

/* 01. LIGHT GRADIENT BACKGROUND */
.wpd-speakers .wpd-sp-lineup {
    background: linear-gradient(
        125deg,
        #faf9f5 0%,
        #eef3f8 46%,
        #dce8f3 100%
    );
}

/* 02. SECTION HEADING COLOURS */
.wpd-speakers .wpd-sp-lineup h2 {
    color: #102b52;
}

.wpd-speakers .wpd-sp-lineup h2 em {
    color: #a47b3b;
}

.wpd-speakers .wpd-sp-lineup .wpd-sp-eyebrow {
    color: #977039;
}

.wpd-speakers .wpd-sp-section-heading > p:last-child {
    color: #52647a;
}

/* 03. SPEAKER CARDS */
.wpd-speakers .wpd-sp-lineup .wpd-sp-card {
    background: #ffffff;
    border: 1px solid #e1e7ed;
    box-shadow: 0 4px 18px rgba(12, 36, 70, 0.05);
}

.wpd-speakers .wpd-sp-lineup .wpd-sp-card:hover {
    box-shadow: 0 14px 30px rgba(12, 36, 70, 0.12);
}

/* 04. PHOTO CONTROLS — GLOBAL SETTINGS */
.wpd-speakers .wpd-sp-grid {
    --portrait-height: 158px;
    --portrait-zoom: 1;
}

.wpd-speakers .wpd-sp-card-portrait {
    height: var(--portrait-height);
    min-height: 0;
    aspect-ratio: auto;
    background: #f5f6f7;
    overflow: hidden;
}

/* 05. DISPLAY COMPLETE IMAGE */
.wpd-speakers .wpd-sp-card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: scale(var(--portrait-zoom));
    transition: transform 0.35s ease;
}

/* Keep chosen zoom level when hovering */
.wpd-speakers .wpd-sp-card:hover
.wpd-sp-card-portrait img {
    transform: scale(var(--portrait-zoom));
}

/* 06. INDIVIDUAL SPEAKER ZOOM CONTROLS */

/* Igor Kondrashin */
.wpd-speakers .wpd-sp-card:nth-child(1) {
    --portrait-zoom: 0.95;
}

/* Solehah Yaacob */
.wpd-speakers .wpd-sp-card:nth-child(2) {
    --portrait-zoom: 0.95;
}

/* Supyan Hussin */
.wpd-speakers .wpd-sp-card:nth-child(3) {
    --portrait-zoom: 0.95;
}

/* Mohd Fadir Embong */
.wpd-speakers .wpd-sp-card:nth-child(4) {
    --portrait-zoom: 0.95;
}

/* Mohd Ghazali Ismail */
.wpd-speakers .wpd-sp-card:nth-child(5) {
    --portrait-zoom: 0.95;
}

/* Abu Bakar As-Sidek */
.wpd-speakers .wpd-sp-card:nth-child(6) {
    --portrait-zoom: 0.95;
}

/* Mohammad Nizar Mat Nor */
.wpd-speakers .wpd-sp-card:nth-child(7) {
    --portrait-zoom: 0.95;
}

/* 07. MOBILE PHOTO HEIGHT */
@media (max-width: 720px) {
    .wpd-speakers .wpd-sp-grid {
        --portrait-height: 145px;
    }
}

@media (max-width: 470px) {
    .wpd-speakers .wpd-sp-card-portrait {
        height: auto;
        min-height: 180px;
    }
}

/* Main heading: Meet the */
.wpd-speakers .wpd-sp-section-heading h2 {
    color: #102b52 !important;
}

/* Italic heading: thinkers. */
.wpd-speakers .wpd-sp-section-heading h2 em {
    color: #b88a45 !important;
}