/* ================================
   Conference Website Template
   Style: Academic / Professional
   ================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #185FA5;
    --primary-dark: #0C447C;
    --primary-light: #E6F1FB;
    --accent: #1D9E75;
    --accent-light: #E1F5EE;
    --text-primary: #2C2C2A;
    --text-secondary: #5F5E5A;
    --text-tertiary: #888780;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1EFE8;
    --border-color: #E5E5E5;
    --danger: #E24B4A;
    --warning: #EF9F27;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    height: 36px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-right a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}

.top-bar-right a:hover {
    color: #fff;
}

.lang-switch {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lang-switch span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.lang-switch span.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---------- Navigation ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo-placeholder {
    width: 72px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- Hero Banner ---------- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 50%, #1D9E75 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 900px;
}

.hero-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero-content .hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-content .hero-theme {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin-bottom: 28px;
    font-style: italic;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.95);
    font-size: 15px;
}

.hero-meta-item .icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #0F6E56;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 14px 36px;
    font-size: 15px;
}

/* ---------- Section ---------- */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
}

/* ---------- Important Dates ---------- */
.dates-banner {
    background: var(--primary-light);
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.date-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.date-card .date-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.date-card .date-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.date-card .date-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.date-card.urgent .date-value {
    color: var(--danger);
}

/* ---------- Intro Section ---------- */
.intro-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.intro-content p {
    margin-bottom: 16px;
}

.intro-content strong {
    color: var(--text-primary);
}

/* ---------- Intro Two-Column Layout ---------- */
.intro-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.intro-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-image {
    text-align: center;
}

.intro-image-placeholder {
    height: 200px;
    border-radius: 12px;
    background: linear-gradient(135deg, #185FA5 0%, #0C447C 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.intro-image-placeholder span {
    font-size: 44px;
    margin-bottom: 10px;
}

.intro-image-placeholder p {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.intro-image-placeholder .intro-image-sub {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    font-weight: 400;
}

.intro-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.intro-image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ---------- Co-organizers Logos ---------- */
.co-organizers {
    text-align: center;
}

.co-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 14px;
}

.co-logo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.co-logo-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.co-logo-item span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.co-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.co-logo-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .intro-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intro-image-placeholder,
    .intro-image img {
        height: 160px;
    }
}

/* ---------- Organizers ---------- */
.organizers {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.organizer-item {
    text-align: center;
}

.organizer-logo {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--text-tertiary);
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.organizer-item .organizer-role {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.organizer-item .organizer-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- Committee / Speakers ---------- */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.committee-grid-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.committee-grid-center .member-card {
    width: 200px;
    flex-shrink: 0;
}

.member-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s;
}

.member-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar img.avatar-shift-down {
    object-fit: cover;
    object-position: center 20%;
}

.member-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-title {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 4px;
}

.member-affil {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- Committee Name List (no photos) ---------- */
.committee-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.committee-name-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.committee-name-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ---------- Committee Text Card (name + unit, no photo) ---------- */
.committee-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.committee-text-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s;
}

.committee-text-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.committee-text-card .text-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.committee-text-card .text-card-affil {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.committee-update-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    margin-top: 16px;
}

/* ---------- Call for Papers ---------- */
.cfp-content {
    max-width: 820px;
    margin: 0 auto;
}

.cfp-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.cfp-topic {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.cfp-topic strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.cfp-topic-info {
    margin-top: 6px;
    line-height: 1.7;
}

.cfp-topic-info .role-label {
    color: var(--primary);
    font-weight: 600;
}

.cfp-instructions {
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 24px;
}

.cfp-instructions h4 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 12px;
}

.cfp-instructions ul {
    list-style: disc;
    padding-left: 20px;
}

.cfp-instructions li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.cfp-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cfp-journals {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 32px;
    border: 1px solid var(--border);
}

.cfp-journals h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 12px;
}

.cfp-journals p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.cfp-journals ol {
    list-style: decimal;
    padding-left: 20px;
}

.cfp-journals li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ---------- Schedule / Timeline ---------- */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.schedule-tab {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.schedule-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.schedule-tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.schedule-table {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.schedule-row {
    display: grid;
    grid-template-columns: 160px 1fr 120px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row.header {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.schedule-row.header > div {
    padding: 12px 16px;
}

.schedule-row > div {
    padding: 14px 16px;
    font-size: 14px;
}

.schedule-time {
    color: var(--primary);
    font-weight: 500;
}

.schedule-row.header .schedule-time {
    color: #fff;
}

.schedule-event {
    color: var(--text-primary);
}

.schedule-location {
    color: var(--text-secondary);
    font-size: 13px;
}

.schedule-row.header .schedule-location {
    color: rgba(255,255,255,0.9);
}

.schedule-row.break {
    background: var(--bg-secondary);
}

.schedule-row.break .schedule-event {
    color: var(--text-tertiary);
    font-style: italic;
}

/* ---------- Registration ---------- */
.reg-content {
    max-width: 900px;
    margin: 0 auto;
}

.reg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.reg-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.reg-table td {
    padding: 14px 16px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.reg-table tbody tr:hover {
    background: var(--primary-light);
}

.reg-table .reg-type {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.reg-table .reg-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
}

.reg-table .reg-price.early {
    color: var(--accent);
}

.reg-note {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.reg-note strong {
    color: var(--warning);
}

.reg-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ---------- Venue & Accommodation ---------- */
.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.venue-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.venue-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.venue-body {
    padding: 20px 24px;
}

.venue-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.venue-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.venue-body .venue-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.hotel-list {
    margin-top: 16px;
}

.hotel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.hotel-item:last-child {
    border-bottom: none;
}

.hotel-name {
    font-weight: 500;
    color: var(--text-primary);
}

.hotel-info {
    font-size: 12px;
    color: var(--text-tertiary);
}

.hotel-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Download Center ---------- */
.download-list {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    cursor: pointer;
}

.download-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.download-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.download-size {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.contact-card .contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 22px;
}

.contact-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-card .contact-person {
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ---------- Embedded Form ---------- */
.form-embed {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: var(--radius-lg);
}

.form-placeholder {
    width: 100%;
    min-height: 400px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.form-placeholder .form-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 28px;
}

.form-placeholder h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.form-placeholder .form-code {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    word-break: break-all;
    max-width: 500px;
}

/* ---------- Tally Modal ---------- */
.tally-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    overflow-y: auto;
}

.tally-modal-overlay.active {
    display: flex;
}

.tally-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 760px;
    margin: 24px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: tallyModalIn 0.25s ease;
}

@keyframes tallyModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tally-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--primary);
    color: #fff;
}

.tally-modal-title {
    font-size: 15px;
    font-weight: 600;
}

.tally-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tally-modal-close:hover {
    opacity: 1;
}

.tally-modal-body {
    padding: 0;
}

.tally-modal-body .form-embed {
    min-height: 600px;
    border-radius: 0;
}

@media (max-width: 768px) {
    .tally-modal-overlay {
        padding: 0;
    }

    .tally-modal {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .tally-modal-title {
        font-size: 13px;
    }
}

/* ---------- Tools Section ---------- */
.tools-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.tools-banner h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tools-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tool-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.tool-badge strong {
    color: var(--primary);
}

/* ---------- Sub Page Banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 48px 24px;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-banner p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

/* ---------- Home Quick Links ---------- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-link-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}

.quick-link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.quick-link-card .ql-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
}

.quick-link-card .ql-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-link-card .ql-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---------- Committee Sub-Header ---------- */
.committee-sub-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.committee-sub-header h3 {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 600;
}

.committee-sub-header span {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Sponsors ---------- */
.sponsor-tier {
    margin-bottom: 36px;
}

.sponsor-tier-header {
    text-align: center;
    margin-bottom: 16px;
}

.sponsor-tier-label {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 6px 24px;
    display: inline-block;
    border-radius: 20px;
    color: #fff;
}

.sponsor-tier-label.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.sponsor-tier-label.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.sponsor-tier-label.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

.sponsor-tier-label.single {
    background: linear-gradient(135deg, #4A90D9, #357ABD);
}

.sponsor-tier-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sponsor-tier-grid .sponsor-card {
    flex: 0 1 200px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}

.sponsor-card {
    text-align: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.sponsor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sponsor-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.sponsor-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content .hero-subtitle {
        font-size: 15px;
    }

    .hero-meta {
        gap: 16px;
    }

    .hero-meta-item {
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .schedule-row {
        grid-template-columns: 100px 1fr;
    }

    .schedule-location {
        display: none;
    }

    .venue-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .top-bar {
        display: none;
    }

    .dates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-banner h1 {
        font-size: 22px;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .committee-grid-center .member-card {
        width: 100%;
        max-width: 280px;
    }

    .committee-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
