/* KindCongress – public site styles */
:root {
    --primary: #3e6db7;
    --primary-dark: #2f579a;
    --primary-light: #a9c4e4;
    --navy: #12294d;
    --navy-2: #0d1f3c;
    --bg: #f3f5f9;
    --band: #b9c9de;
    --text: #2b3445;
    --muted: #6b7688;
    --line: #e7ecf3;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(16, 35, 68, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { vertical-align: -3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 800px; }

/* ---------- header ---------- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(16, 35, 68, .06), 0 4px 14px rgba(16, 35, 68, .05);
}
.nav-wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; }
.logo-box {
    width: 46px; height: 46px; border-radius: 4px;
    background: linear-gradient(150deg, #7fa8dd, #3e6db7);
    color: #fff; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.logo-box small {
    position: absolute; bottom: 3px; left: 0; right: 0;
    font-size: 4.5px; letter-spacing: .3px; text-align: center; font-weight: 500; opacity: .9;
}
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a, .dropdown > a {
    color: #3d4a5f; font-size: 12px; font-weight: 600; letter-spacing: .6px;
    text-transform: uppercase; padding: 10px 11px; border-radius: 4px; display: block;
}
.main-nav > a:hover, .dropdown > a:hover, .main-nav > a.active, .dropdown > a.active { color: var(--primary); }
.main-nav > a.active { background: #eef3fb; }
.caret { font-size: 9px; opacity: .7; }
.dropdown { position: relative; }
.dropdown .menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border-radius: 6px; box-shadow: 0 10px 28px rgba(16,35,68,.16);
    padding: 6px 0; z-index: 60;
}
.dropdown:hover .menu { display: block; }
.dropdown .menu a { display: block; padding: 9px 16px; font-size: 13px; color: #3d4a5f; }
.dropdown .menu a:hover { background: #f0f5fc; color: var(--primary); }
.nav-auth { display: flex; align-items: center; gap: 8px; }
.inline-form { display: inline; }
.btn-nav {
    font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    padding: 8px 16px; border-radius: 999px; color: var(--primary);
    background: #eef3fb; border: 1px solid #dbe6f5; cursor: pointer; font-family: inherit;
}
.btn-nav:hover { background: #e2ecf9; }
.btn-nav.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-nav.primary:hover { background: var(--primary-dark); }
.btn-nav.dark { color: #5c6b84; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--navy); cursor: pointer; margin-left: auto; }

/* ---------- alerts ---------- */
.alert { margin: 14px 0; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.alert-success { background: #e5f5e9; color: #21703a; border: 1px solid #c8e9d1; }
.alert-error { background: #fdeaea; color: #a03030; border: 1px solid #f5caca; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(90, 130, 200, .35), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(62, 109, 183, .4), transparent 50%),
        linear-gradient(160deg, #0c1a33 0%, #12294d 55%, #0a1830 100%);
    color: #fff; text-align: center; padding: 96px 0 100px;
}
.hero h1 { font-size: 38px; letter-spacing: 4px; font-weight: 700; margin-bottom: 34px; }
.hero-search { display: flex; max-width: 580px; margin: 0 auto; box-shadow: 0 12px 34px rgba(0,0,0,.35); border-radius: 4px; overflow: hidden; }
.hero-search input {
    flex: 1; border: 0; padding: 15px 18px; font: inherit; font-size: 14px; outline: none; color: var(--text);
}
.hero-search button {
    width: 52px; border: 0; background: var(--primary); color: #fff; cursor: pointer; font-size: 16px;
}
.hero-search button:hover { background: var(--primary-dark); }

/* ---------- sections ---------- */
.section { padding: 58px 0; }
.section-alt { background: #fff; }
.sec-title { text-align: center; font-size: 28px; font-weight: 700; color: #16243c; margin-bottom: 6px; }
.sec-title span, .band-title span { color: var(--primary); }
.sec-sub { text-align: center; font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-bottom: 34px; }
.sec-title-left { font-size: 20px; margin: 34px 0 18px; color: #16243c; }
.section-more { text-align: center; margin-top: 34px; }

/* ---------- conference cards ---------- */
.conf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.conf-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; color: var(--text);
}
.conf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(16, 35, 68, .14); }
.conf-card.past { opacity: .75; }
.cc-media { position: relative; aspect-ratio: 16 / 10; background: #dde5f0; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; }
.cc-chips {
    position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column;
    align-items: flex-end; gap: 5px; max-width: 78%;
}
.chip {
    color: #fff; font-size: 10.5px; font-weight: 500; padding: 5px 10px; border-radius: 3px;
    line-height: 1.35; text-align: right; overflow-wrap: anywhere;
}
.chip-date    { background: #4a7dc7; }
.chip-cat     { background: rgba(74, 125, 199, .88); }
.chip-country { background: rgba(74, 125, 199, .68); }
.chip-city    { background: rgba(74, 125, 199, .48); }
.cc-title { padding: 13px 15px 16px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #22314b; }
.cc-cover { display: block; }
.cc-title-link { display: block; }
.cc-title-link:hover .cc-title { color: var(--primary); }
a.chip:hover { filter: brightness(1.15); }

/* ---------- countries ---------- */
.country-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.country-box {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: #33445f; transition: all .15s ease;
}
.country-box:hover { border-color: var(--primary-light); box-shadow: var(--shadow); color: var(--primary); transform: translateY(-2px); }
.country-box .flag {
    font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--primary);
    background: #e8effa; border-radius: 999px; padding: 4px 10px; line-height: 1;
}
.country-box small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* category pills + city pills */
.cat-strip, .city-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-pill, .city-pill {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
    font-size: 13px; font-weight: 600; color: #33445f; transition: all .15s ease;
}
.cat-pill:hover, .city-pill:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- dark bands (journals / speakers) ---------- */
.band-dark { background: linear-gradient(165deg, #16305a, #0d2144); padding: 56px 0; }
.band-dark-2 { background: linear-gradient(165deg, #14294d, #0a1a35); }
.band-title { text-align: center; color: #fff; font-size: 15px; letter-spacing: 3px; font-weight: 700; margin-bottom: 32px; }
.journal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.journal-card { text-align: center; color: #d7e1f2; font-size: 12px; }
.journal-card img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4); margin-bottom: 10px; transition: transform .18s ease;
}
.journal-card:hover img { transform: translateY(-4px); }
.journal-card:hover { color: #fff; }
.journals-page { grid-template-columns: repeat(4, 1fr); }

.speaker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.speakers-page { grid-template-columns: repeat(4, 1fr); }
.speaker-card { text-align: center; color: #d7e1f2; }
.speaker-card img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px;
    margin-bottom: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.speaker-card h4 { font-size: 13.5px; color: #fff; }
.speaker-card p { font-size: 11.5px; opacity: .75; }
.speaker-country { margin-top: 2px; }
.speaker-country a { color: #fff; }
.speaker-country a:hover { text-decoration: underline; }

/* ---------- centers ---------- */
.center-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.center-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.center-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.center-card:hover img { transform: scale(1.04); }
.center-loc {
    position: absolute; left: 12px; top: 14px; background: rgba(23, 58, 110, .88); color: #fff;
    font-size: 10.5px; padding: 6px 10px; border-radius: 3px;
}
.center-loc a { color: #fff; }
.center-loc a:hover { text-decoration: underline; }
.center-card h3 { padding: 12px 15px; font-size: 14px; color: #22314b; background: #fff; }
.center-name { display: block; }
.center-name:hover h3 { color: var(--primary); }
.center-photo { border-radius: 6px; margin-bottom: 16px; }

/* ---------- activities ---------- */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 34px; }
.act { display: flex; gap: 14px; }
.act-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; background: #e8effa;
    color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.act h4 { font-size: 14px; margin-bottom: 4px; }
.act h4 a { color: #22314b; }
.act h4 a:hover { color: var(--primary); }
.act p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- page band (inner page titles) ---------- */
.page-band { background: var(--band); padding: 42px 0 38px; }
.page-band h1 { font-size: 24px; color: #1d3557; font-weight: 700; max-width: 900px; }
.page-band p { color: #44598123; color: #4a5f83; font-size: 13.5px; margin-top: 6px; }
.band-crumb { font-size: 12px; letter-spacing: .5px; margin-bottom: 8px; }
.band-crumb a { color: #3a5178; font-weight: 600; }
.band-crumb a:hover { color: var(--primary); }
.band-flag { font-size: 26px; margin-right: 8px; }

/* ---------- taxonomy pages ---------- */
.tax-section { margin-top: 34px; }
.tax-section:first-of-type { margin-top: 6px; }
.tax-count { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- active filter notice ---------- */
.filter-notice {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 20px; font-size: 13px; box-shadow: var(--shadow);
}
.filter-notice .fn-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: #e8effa; color: #2c4a77; border-radius: 999px; padding: 5px 12px; font-weight: 600;
}
.filter-chip a { color: #6b83a8; font-size: 15px; line-height: 1; }
.filter-chip a:hover { color: #a03030; }
.filter-clear { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter-clear:hover { color: #a03030; }

/* ---------- cards / common ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 22px; }
.card-title { font-size: 17px; color: #16243c; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.empty-state { text-align: center; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 6px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    border: 0; cursor: pointer; font-family: inherit; transition: background .15s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: var(--primary-light); }
.btn-light:hover { background: #8fb3de; }
.btn.ghost { background: #eef3fb; color: var(--primary); }
.btn.ghost:hover { background: #e2ecf9; }
.btn.wide { width: 100%; }

/* ---------- conference detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.cover-img { max-width: 360px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 4px; }
.conf-desc { font-size: 14.5px; color: #3a475d; margin: 18px 0; }

.share-block h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.share-row { display: flex; border-radius: 5px; overflow: hidden; }
.share-btn {
    flex: 1; color: #fff; font-size: 11.5px; font-weight: 500; padding: 11px 4px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.share-btn:hover { filter: brightness(1.12); }
.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }
.share-in { background: #0077b5; }
.share-wa { background: #25d366; }
.share-pi { background: #bd081c; }
.share-em { background: #6b7688; }

.sessions-list { list-style: none; }
.sessions-list li { padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; color: #3a475d; }
.sessions-list li:last-child { border-bottom: 0; }

.dates-table { width: 100%; border-collapse: collapse; }
.dates-table td { padding: 11px 14px; font-size: 14px; }
.dates-table tr.odd td { background: #eef2f8; }
.dates-table td:first-child { color: #3a475d; }
.dates-table td:last-child { text-align: left; font-weight: 500; color: #16243c; width: 130px; }
.date-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.btn-wide { grid-column: 1 / -1; }

/* sidebar event card */
.event-card { padding: 0; overflow: hidden; }
.event-card h3 { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; color: #16243c; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); }
.cd { background: var(--primary); color: #fff; text-align: center; padding: 14px 0; border-right: 1px solid rgba(255,255,255,.16); }
.cd:last-child { border-right: 0; }
.cd b { font-size: 20px; display: block; line-height: 1.2; }
.cd span { font-size: 9px; letter-spacing: 1.5px; opacity: .85; }
.ev-row { display: flex; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ev-row:last-of-type { border-bottom: 0; }
.ev-ic { color: var(--primary); flex: 0 0 20px; margin-top: 2px; }
.ev-row small {
    display: block; color: var(--muted); font-size: 9.5px; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 600;
}
.add-cal { margin: 6px 20px 20px; width: calc(100% - 40px); }

/* comments */
.comment-list { margin-bottom: 20px; }
.comment { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.comment-meta { display: flex; justify-content: flex-start; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 6px; }
.comment-meta span { color: var(--muted); }
.comment p { font-size: 14px; color: #3a475d; }
.comment-login { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.comment-reply { margin: 12px 0 0 22px; background: #f8fafd; }
.team-badge {
    background: #12294d; color: #ffd76a; border-radius: 999px; padding: 2px 8px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}

/* forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #33445f; margin-bottom: 6px; }
.check-label { display: flex !important; align-items: center; gap: 8px; }
.check-label input { width: auto !important; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="datetime-local"], input[type="date"], input[type="file"], textarea, select {
    width: 100%; padding: 10px 13px; border: 1px solid #d9e0ea; border-radius: 5px;
    font: inherit; font-size: 14px; color: var(--text); background: #fff; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62, 109, 183, .12); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .field.full { grid-column: 1 / -1; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* rich text editor (textarea.rich enhanced by editor.js) */
.rt { border: 1px solid #d9e0ea; border-radius: 5px; background: #fff; }
.rt:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62, 109, 183, .12); }
.rt-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px;
    background: #f8fafd; border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0;
}
.rt-btn {
    min-width: 32px; height: 30px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center;
    gap: 2px; border: 0; background: none; color: #3d4c66; border-radius: 4px; cursor: pointer;
    font: inherit; font-size: 14px;
}
.rt-btn:hover { background: #e8effa; color: var(--primary); }
.rt-btn.on { background: #dbe7f8; color: var(--primary-dark); }
.rt-block { height: 30px; padding: 0 6px; border: 1px solid #d9e0ea; border-radius: 4px; background: #fff; color: #3d4c66; font: inherit; font-size: 12.5px; cursor: pointer; }
.rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 5px; }
.rt-area {
    min-height: 200px; max-height: 480px; padding: 12px 14px; font-size: 14px; line-height: 1.6;
    outline: none; overflow-y: auto; resize: vertical;
}
.rt-area:empty::before { content: attr(data-placeholder); color: #9aa7ba; }
.rt-area p { margin: 0 0 8px; }
.rt-area ul, .rt-area ol { margin: 0 0 8px 20px; }
.rt-area blockquote { border-left: 3px solid var(--primary-light); padding-left: 10px; margin: 0 0 8px; color: var(--muted); }
.rt-area h2, .rt-area h3, .rt-area h4 { margin: 10px 0 8px; color: #16243c; }
.rt-area a { text-decoration: underline; }
.rt-area img { max-width: 100%; height: auto; }
.rt-area table { border-collapse: collapse; margin-bottom: 8px; }
.rt-area th, .rt-area td { border: 1px solid var(--line); padding: 4px 8px; }

/* rendered rich-editor content (About / Scientific Sessions) */
.rich-content { font-size: 14.5px; color: #3a475d; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 10px; }
.rich-content ul, .rich-content ol { margin: 0 0 10px 20px; }
.rich-content blockquote { border-left: 3px solid var(--primary-light); padding-left: 12px; margin: 0 0 10px; color: var(--muted); }
.rich-content h2, .rich-content h3, .rich-content h4 { color: #16243c; margin: 16px 0 8px; }
.rich-content a { text-decoration: underline; }
.rich-content img { border-radius: 6px; margin: 8px 0; }
.rich-content table { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: 8px 10px; font-size: 13.5px; }

/* ---------- filters / lists ---------- */
.filter-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tabs a { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; color: var(--muted); }
.tabs a.current { background: var(--primary); color: #fff; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-form input[type="text"] { flex: 2; min-width: 200px; }
.filter-form select { flex: 1; min-width: 150px; width: auto; }
.filter-form .btn { padding: 10px 18px; }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a { min-width: 38px; text-align: center; padding: 8px 12px; border: 1px solid #d9e0ea; border-radius: 5px; background: #fff; font-size: 13px; color: #3a475d; }
.pager a.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* blog category filter pills (listing) + category label (cards / detail) */
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.post-cats a { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    font-size: 13px; font-weight: 500; color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.post-cats a:hover { border-color: var(--primary); color: var(--primary); }
.post-cats a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-cat { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; color: var(--primary); }
a.post-cat:hover { text-decoration: underline; }
.post-body .post-cat { display: block; margin-bottom: 3px; }
.page-band .post-cat { font-size: 13px; letter-spacing: .3px; text-transform: none; color: var(--navy); font-weight: 600; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .18s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { padding: 16px 18px 20px; }
.post-date { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.post-body h3 { font-size: 15.5px; margin: 6px 0 8px; color: #22314b; }
.post-body p { font-size: 13px; color: var(--muted); }
.post-hero { border-radius: 6px; margin-bottom: 18px; }
.post-full { font-size: 15px; color: #3a475d; }

/* journal detail: cover + description head box, then the full spec table */
.journal-head { display: flex; gap: 24px; align-items: flex-start; }
.journal-head-cover { width: 210px; flex: 0 0 210px; border: 1px solid var(--line); border-radius: 4px; }
.journal-head-desc { flex: 1; font-size: 14.5px; color: #3a475d; min-width: 0; }

.spec-card { padding: 0; overflow: hidden; }
.spec-card + .card, .spec-card + #comments.card { margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td {
    border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: middle;
}
.spec-table th { background: #eef2f8; color: #33445f; font-weight: 600; width: 19%; }
.spec-table td { color: #2b3445; overflow-wrap: anywhere; }

/* speaker detail */
.speaker-detail-card { display: flex; gap: 24px; align-items: flex-start; }
.speaker-photo { width: 180px; flex: 0 0 180px; border-radius: 8px; border: 1px solid var(--line); }
.speaker-bio { margin: 14px 0 0; font-size: 14.5px; color: #3a475d; }
.bio-label {
    display: block; color: var(--muted); font-size: 9.5px; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 600; margin-bottom: 3px;
}

/* social profile icon links */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line); color: var(--primary); background: #fff;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- sidebar widgets (admin-managed) ---------- */
.widget {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px;
}
.widget-title { font-size: 16px; font-weight: 700; color: #16243c; margin-bottom: 16px; }
.widget-body { font-size: 13.5px; color: #3a475d; }
.widget-empty { font-size: 13px; color: var(--muted); }
.widget-search input { margin-bottom: 10px; }
.widget-list { display: flex; flex-direction: column; }
.w-item {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
    border-bottom: 1px solid var(--line); color: var(--text);
}
.w-item:first-child { padding-top: 0; }
.w-item:last-child { border-bottom: 0; padding-bottom: 0; }
.w-item img { width: 64px; height: 52px; object-fit: cover; border-radius: 4px; flex: 0 0 64px; }
.w-item-body { min-width: 0; }
.w-item-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; color: #22314b; }
.w-item:hover .w-item-title { color: var(--primary); }
.w-meta { display: block; margin-top: 5px; }
.w-meta-row {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--muted); line-height: 1.5;
}
.w-meta .icon { flex: 0 0 auto; color: var(--primary); }

/* search results page */
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }

/* link-styled inline button (e.g. "Log out?" in the comment form) */
.btn-link {
    background: none; border: 0; padding: 0; font: inherit; font-size: 13px;
    color: var(--primary); cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.comment-note { color: var(--muted); }


/* auth pages */
.auth-page { display: flex; min-height: 60vh; align-items: center; }
.auth-card { max-width: 400px; margin: 0 auto; width: 100%; padding: 32px; }
.auth-card h2 { margin-bottom: 20px; color: #16243c; }
.auth-alt { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }

/* adv list */
.adv-list { margin: 14px 0 20px 2px; list-style: none; }
.adv-list li { padding: 8px 0; font-size: 14px; color: #3a475d; border-bottom: 1px dashed var(--line); }

/* ---------- footer ---------- */
.footer { background: linear-gradient(rgba(13, 26, 48, .93), rgba(13, 26, 48, .97)), radial-gradient(ellipse at 70% 20%, #24406e, #0d1a30); color: #c7d3e6; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; padding: 58px 18px 44px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.footer-rule { width: 46px; height: 2px; background: var(--primary); margin-bottom: 18px; opacity: .9; }
.footer-col p { font-size: 13px; line-height: 1.75; }
.footer-mail { margin-top: 14px; font-size: 13px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .09);
    color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--primary); }
.footer-post { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #c7d3e6; font-size: 13px; }
.footer-post:hover { color: #fff; }
.footer-post img { width: 44px; height: 36px; object-fit: cover; border-radius: 4px; flex: 0 0 44px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c7d3e6; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 16px 0; font-size: 12.5px; text-align: center; color: #8fa0bd; }
.footer-bottom .wrap { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .conf-grid, .post-grid, .center-grid, .act-grid { grid-template-columns: repeat(2, 1fr); }
    .journal-grid { grid-template-columns: repeat(3, 1fr); }
    .speaker-grid { grid-template-columns: repeat(3, 1fr); }
    .country-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .journals-page, .speakers-page { grid-template-columns: repeat(3, 1fr); }
    .search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; padding: 10px 18px 18px;
        box-shadow: 0 16px 30px rgba(16, 35, 68, .14); gap: 2px;
    }
    .main-nav.open { display: flex; }
    .dropdown .menu { position: static; box-shadow: none; padding-left: 14px; }
    .conf-grid, .post-grid, .center-grid, .act-grid, .country-grid { grid-template-columns: 1fr; }
    .journal-grid { grid-template-columns: repeat(2, 1fr); }
    .speaker-grid { grid-template-columns: repeat(2, 1fr); }
    .journals-page, .speakers-page { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 26px; }
    .action-btns { grid-template-columns: 1fr; }
    .share-row { flex-wrap: wrap; }
    .share-btn { flex: 1 1 33%; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .journal-head { flex-direction: column; }
    .journal-head-cover { width: 100%; flex: none; max-width: 300px; }
    .spec-table { font-size: 12.5px; }
    .spec-table th, .spec-table td { display: block; width: auto; }
    .speaker-detail-card { flex-direction: column; }
    .search-grid { grid-template-columns: 1fr; }
}
