/* ==========================================================
   en.css - English Universal Meeting Template
   Supplement styles specific to the universal template.
   Overrides or extends general.css / headfoot.css.
   ========================================================== */

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.topbar .top-right .top-link {
    display: none;
}
.top-info {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    flex: 1;
    min-width: 0;
}
.top-info:hover {
    color: #fff;
    text-decoration: none;
}
.top-info img {
    height: 56px;
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
}
.meeting-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}
.topxian {
    height: 3px;
    background: linear-gradient(90deg, #1a5fa8, #028aa0);
    width: 100%;
}

/* ----------------------------------------------------------
   Banner: full-width Swiper, 16:5 aspect ratio
   Falls back to gradient when no image is set
   ---------------------------------------------------------- */
.index-banner {
    width: 100%;
    overflow: hidden;
}
.banner-swiper {
    width: 100%;
    height: 280px;
}
.swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a5fa8; /* fallback color */
}
.banner-default {
    background: linear-gradient(135deg, #0d4b9e 0%, #1a7fc1 60%, #25a9e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.banner-default-text {
    text-align: center;
    color: #fff;
    padding: 20px;
}
.banner-default-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.banner-default-text p {
    font-size: 16px;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .banner-swiper {
        height: calc(100vw * 500 / 1920);
        min-height: 240px;
        max-height: 520px;
    }
}

/* ----------------------------------------------------------
   Right sidebar panel (showrightbox)
   ---------------------------------------------------------- */
.index-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
}
.index-left {
    flex: 1;
    min-width: 0;
}
.index-right {
    width: 280px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .index-row {
        flex-direction: column;
    }
    .index-right {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   Important Dates panel: fully DB-driven, no inline styles
   ---------------------------------------------------------- */
.dates-item_desc p.past {
    text-decoration: line-through;
    color: #999;
}
.dates-item_desc p.upcoming {
    color: #333;
    font-weight: 500;
}

/* ----------------------------------------------------------
   Footer: DB-driven contact info
   ---------------------------------------------------------- */
.footer-contact {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 6px;
}
.footer-contact a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   home/ inner pages: form layout
   ---------------------------------------------------------- */
.inner-page {
    padding: 30px 0 50px;
}
.inner-page .page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a5fa8;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eef6;
}
.form-section {
    background: #fff;
    border-radius: 6px;
    padding: 24px 28px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.form-section .section-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.form-col {
    flex: 1;
    min-width: 220px;
}
.form-col label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}
.form-col input[type=text],
.form-col input[type=email],
.form-col input[type=password],
.form-col input[type=date],
.form-col select,
.form-col textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d9e8;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
}
.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
    border-color: #1a7fc1;
    outline: none;
}
.form-required {
    color: #e53935;
    margin-left: 2px;
}
.form-note {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.form-submit-bar {
    text-align: center;
    margin-top: 28px;
}
.btn-primary {
    background: #1a7fc1;
    color: #fff;
    border: none;
    padding: 10px 36px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}
.btn-primary:hover {
    background: #1567a3;
}
.btn-default {
    background: #f0f4f8;
    color: #555;
    border: 1px solid #cdd5e0;
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

/* ----------------------------------------------------------
   Abstract / paper submission page
   ---------------------------------------------------------- */
.sub-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.paper-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.paper-list th {
    background: #1a5fa8;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
}
.paper-list td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}
.paper-list tr:hover td {
    background: #f5f8fc;
}
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending   { background: #fff3cd; color: #856404; }
.status-review    { background: #cfe2ff; color: #0a58ca; }
.status-accepted  { background: #d1e7dd; color: #155724; }
.status-rejected  { background: #f8d7da; color: #842029; }

/* ----------------------------------------------------------
   Data table (viewabstract, hotel, programs …)
   ---------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}
.data-table th {
    background: #1a5fa8;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}
.data-table tr:hover td {
    background: #f5f8fc;
}

/* ----------------------------------------------------------
   Form hint text (small grey note below inputs)
   ---------------------------------------------------------- */
.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.5;
}

/* ----------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-col { min-width: 100%; }
    .inner-page { padding: 20px 0 30px; }
    .form-section { padding: 16px; }
}
