/* Event page styles – Shipping Network Singapore */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Roboto', sans-serif;
    background: #e8eef3;
    color: #2d3748;
    line-height: 1.75;
    font-size: 16px;
}
/* Skip link (same as index.html) */
.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    background: #ffae42;
    color: #072638;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
    transition: top 0.2s;
}
.skip-link:focus { top: 14px; outline: 2px solid #ffae42; outline-offset: 2px; }

/* Navigation (same as index.html) */
nav {
    background-color: #072638;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.nav-brand {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.3px;
    opacity: 1;
}
.nav-brand .brand-name { color: #ffffff; }
.nav-brand .brand-location { color: #ffae42; }
.nav-brand:hover .brand-name { color: #ffffff; }
.nav-brand:hover .brand-location { color: #ffae42; }
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}
nav a:hover { opacity: 1; color: #ffae42; }
nav a.nav-cta {
    display: inline-block;
    padding: 5px 12px;
    background: #ffae42;
    color: #072638;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 1;
}
nav a.nav-cta:hover { background: #ffc266; color: #072638; opacity: 1; }

/* Page intro (speak.html-style – replaces dark hero) */
.page-intro {
    padding: 40px 20px 32px;
}
.page-intro .content-width { padding: 0 20px; }
.page-intro h1 {
    color: #072638;
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1.3;
}
.event-sold-out-tag {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.page-intro .subtitle {
    color: #ffae42;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 28px;
}
.page-intro p { margin-bottom: 8px; font-size: 16px; }
.intro-links { margin-top: 16px; }
.intro-links .back { margin-top: 0; }

/* On this page (table of contents) – same as speak.html */
.on-this-page {
    margin: 20px 0 24px;
    padding: 16px 20px;
    background: #ffffff;
    color: #072638;
    border-left: 4px solid #ffae42;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 4px rgba(7, 38, 56, 0.08);
}
.on-this-page p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #072638; }
.on-this-page ul { margin: 0; padding-left: 20px; list-style: none; display: block; }
.on-this-page li { margin-bottom: 8px; color: #072638; display: block; }
.on-this-page li:last-child { margin-bottom: 0; }
.on-this-page a { font-size: 15px; font-weight: 500; color: #072638; text-decoration: none; display: inline-block; }
.on-this-page a:hover { color: #ffae42; text-decoration: underline; }
section[id] { scroll-margin-top: 64px; }

/* Main content – structure as per speak.html */
main { padding-bottom: 60px; position: relative; z-index: 0; }
.content-width { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Dark background sections – add background-image in .section-bg-1, .section-bg-2, etc. to customize */
.section-bg {
    position: relative;
    background-color: #072638;
    background-size: cover;
    background-position: center;
    padding: 48px 20px;
    margin: 0;
}
.section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 38, 56, 0.82);
}
.section-bg .content-width { position: relative; z-index: 1; color: #fff; }
.section-bg h2 {
    color: #ffae42;
    font-size: 20px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 174, 66, 0.6);
}
.section-bg h2 i { margin-right: 8px; color: #ffae42; }
.section-bg p, .section-bg li { color: rgba(255, 255, 255, 0.95); margin-bottom: 8px; }
.section-bg p:last-child { margin-bottom: 0; }
.section-bg ol, .section-bg ul { margin-bottom: 10px; }
.section-bg li:last-child { margin-bottom: 0; }
.section-bg a { color: #ffae42; }
.section-bg a:hover { color: #ffc266; }
.section-bg .theme-label { color: rgba(255, 255, 255, 0.9); }
.section-bg .programme-block {
    background: rgba(255, 174, 66, 0.12);
    border-left-color: #ffae42;
}
.section-bg .programme-block h3 { color: #fff; }
.section-bg .programme-block p { color: rgba(255, 255, 255, 0.95); }
.section-bg .programme-block .subtitle { color: rgba(255, 255, 255, 0.75); }
.section-bg ol, .section-bg ul { margin-left: 22px; }
.section-bg li::marker { color: #ffae42; }
/* Placeholder classes for custom backgrounds – set background-image in these to override */
.section-bg-1 { /* e.g. background-image: url('images/event-detail-1.jpg'); */ }
.section-bg-2 { /* e.g. background-image: url('images/event-detail-2.jpg'); */ }
.section-bg-3 { /* e.g. background-image: url('images/event-detail-3.jpg'); */ }

/* Light sections (speak.html style) */
.section-plain {
    padding: 32px 20px;
}
.section-plain .content-width { padding: 0 20px; }
.section-plain h2 {
    color: #072638;
    font-size: 20px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffae42;
}
.section-plain h2 i,
.section-plain h3 i { margin-right: 8px; color: #ffae42; }
.section-plain h3 { color: #072638; font-size: 17px; margin: 0 0 10px; }
.section-plain p, .section-plain li { margin-bottom: 8px; font-size: 16px; }
.section-plain ol, .section-plain ul { margin-left: 24px; margin-bottom: 10px; }
.section-plain ul li { margin-bottom: 8px; }
.section-plain a { color: #072638; font-weight: 600; }
.section-plain a:hover { color: #ffae42; }

.section-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(7, 38, 56, 0.06);
    border: 1px solid rgba(7, 38, 56, 0.06);
}
.section-card:last-child { margin-bottom: 0; }
.section-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #072638;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffae42;
}
.section-card h2 i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 174, 66, 0.15);
    color: #ffae42;
    border-radius: 8px;
    font-size: 16px;
}
.section-card p { margin-bottom: 8px; font-size: 16px; }
.section-card p:last-child { margin-bottom: 0; }
.section-card ol, .section-card ul {
    margin-left: 22px;
    margin-bottom: 16px;
}
.section-card li {
    margin-bottom: 10px;
    padding-left: 4px;
}
.section-card li::marker { color: #ffae42; }
.section-card a { color: #072638; font-weight: 600; text-decoration: none; border-bottom: 1px solid #ffae42; }
.section-card a:hover { color: #ffae42; }

/* Theme section – label and programme blocks */
#theme-programme .content-width {
    position: relative;
}
.theme-label {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #072638;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(7, 38, 56, 0.08) 0%, rgba(7, 38, 56, 0.03) 100%);
    border: 1px solid rgba(7, 38, 56, 0.18);
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(7, 38, 56, 0.06);
}
.theme-label a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}
.theme-label a:hover {
    color: #ffae42;
}

/* Programme blocks – card style */
.programme-block {
    background: #f8fafc;
    border: 1px solid rgba(7, 38, 56, 0.12);
    border-left: 4px solid #072638;
    padding: 24px 28px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 12px rgba(7, 38, 56, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-left-color 0.2s ease;
}
.programme-block:hover {
    box-shadow: 0 6px 24px rgba(7, 38, 56, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-left-color: #0a3d54;
}
.programme-block:first-of-type { margin-top: 0; }
.programme-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #072638;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.programme-block h3 i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #072638 0%, #0a3d54 100%);
    color: #e8eef3;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(7, 38, 56, 0.2);
}
.programme-block p { margin-bottom: 6px; font-size: 16px; line-height: 1.6; }
.programme-block p:last-of-type { margin-bottom: 0; }
.programme-block .subtitle {
    font-size: 14px;
    color: #5a6a7a;
    margin-bottom: 0;
    line-height: 1.5;
}
/* Dark section override for programme blocks inside .section-bg */
.section-bg .programme-block {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}
.section-bg .programme-block:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.section-bg .programme-block h3 { color: #fff; }
.section-bg .programme-block h3 i {
    background: rgba(255, 255, 255, 0.15);
    color: #ffae42;
}
.section-bg .programme-block p,
.section-bg .programme-block .subtitle { color: rgba(255, 255, 255, 0.95); }
.section-bg .programme-block .subtitle { color: rgba(255, 255, 255, 0.8); }

/* Speakers subsection (Theme and programme) */
.speakers-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #072638;
    margin-top: 28px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.speakers-heading i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #072638 0%, #0a3d54 100%);
    color: #e8eef3;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(7, 38, 56, 0.2);
}
.speaker-list {
    margin: 12px 0 0 22px;
    padding: 0;
    list-style: disc;
}
.speaker-list li {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
}
.speaker-list li:last-child { margin-bottom: 0; }
.speaker-list a { color: #072638; text-decoration: none; }
.speaker-list a:hover { color: #ffae42; text-decoration: underline; }

/* Speakers with headshots (same circular treatment as index.html .leader-avatar) */
.speaker-list--with-photos {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}
/* Avatar row: full width on narrow viewports; absolute-fill image — reliable circular crop on iOS/Android */
.speaker-list--with-photos .speaker-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.speaker-list--with-photos .speaker-item:last-child {
    margin-bottom: 0;
}
.speaker-photo {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(7, 38, 56, 0.12);
    background: #e8eef3;
    /* Square box before paint; keeps circle stable when fonts/layout shift */
    aspect-ratio: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.speaker-photo .speaker-photo-link {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}
.speaker-photo .speaker-photo-link:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffae42;
}
.speaker-photo .speaker-photo-link:hover {
    opacity: 0.92;
}
.speaker-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
    /* iOS: clip + rounded corners on the bitmap */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}
.speaker-bio {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.speaker-bio strong {
    font-weight: 600;
}
.speaker-bio .speaker-presentation {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(7, 38, 56, 0.88);
}

/* speakers.html – upcoming event dates in dark section */
.section-bg .speakers-calendar-dates {
    margin: 16px 0 0;
    padding-left: 22px;
    list-style: disc;
}
.section-bg .speakers-calendar-dates li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}
.section-bg .speakers-calendar-dates li:last-child {
    margin-bottom: 0;
}
.section-bg .speakers-calendar-dates strong {
    color: #fff;
    font-weight: 600;
}
.section-bg .speakers-calendar-dates a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.section-bg .speakers-calendar-dates a:hover {
    color: #ffc266;
}

/* speakers.html – CTA block */
.speakers-cta-section {
    padding-top: 28px;
    padding-bottom: 48px;
}
.speakers-cta-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}
.speakers-cta-heading i {
    color: #ffae42;
    flex-shrink: 0;
}
.speakers-page-actions {
    margin-top: 8px;
    margin-bottom: 0;
}
.speakers-page-actions .btn-cta {
    display: inline-flex;
}
@media (max-width: 640px) {
    .speaker-list--with-photos .speaker-item {
        gap: 12px;
        align-items: flex-start;
    }
    .speaker-photo {
        width: 72px;
        height: 72px;
    }
}

/* Apply To Speak link (Theme and programme, networking events only) */
.apply-to-speak-link {
    margin-top: 24px;
    margin-bottom: 0;
}
.apply-to-speak-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #072638;
    text-decoration: none;
}
.apply-to-speak-link a:hover { color: #ffae42; }

/* Actions */
.event-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(7, 38, 56, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.back {
    display: inline-block;
    margin-top: 28px;
    color: #072638;
    font-weight: 600;
    text-decoration: none;
}
.back:hover { color: #ffae42; }
.back i { margin-right: 6px; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffae42;
    color: #072638;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover { background: #e69b3a; transform: translateY(-1px); }
.btn-cta i { font-size: 16px; }

/* Footer (exactly as index.html) */
footer {
    background-color: #072638;
    color: #ffffff;
    padding: 35px 20px;
    font-size: 13px;
}
footer p {
    font-size: 13px;
    margin: 0;
}
.footer-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}
.footer-brand .brand-name {
    color: #ffffff;
}
.footer-brand .brand-location {
    color: #ffae42;
}
.footer-content {
    text-align: right;
    flex: 1;
}
.footer-tagline {
    font-size: 16px;
    font-weight: 600;
    color: #ffae42;
    letter-spacing: 0.2px;
}
.footer-legal {
    font-size: 12px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.footer-legal a:hover {
    color: #ffae42;
}

@media (max-width: 640px) {
    .section-plain { padding: 24px 12px; }
    .section-bg { padding: 36px 16px; }
    .page-intro { padding: 32px 16px 28px; }
    .page-intro h1 { font-size: 24px; }
    .section-card { padding: 22px 20px; }
}
@media (max-width: 600px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-content { text-align: center; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #072638;
    color: #fff;
    border: 2px solid #ffae42;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #ffae42;
    color: #072638;
    transform: translateY(-2px);
}
.back-to-top:focus-visible {
    outline: 2px solid #ffae42;
    outline-offset: 2px;
}
