﻿/* ===============================
   GLOBAL LAYOUT + RESPONSIVE GRID
   =============================== */

body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===============================
   CENTER HEADER + TOP CONTENT
   =============================== */

.symposium-title {
    display: flex;
    flex-direction: column; /* stack text vertically */
    align-items: center; /* centers content horizontally */
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    font-weight: lighter;
    margin: 1rem auto;
    text-align: center;
}

.spanish-link,
.event-details,
.hotel-link,
.hotel-image
{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.theme-paragraphs {
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.5rem); /* increased from 1.1rem–1.25rem */
    font-family: 'Times New Roman', Times, serif;
    margin: 1rem 0;
}

    .theme-paragraphs p {
        margin: 0.5rem 0;
    }


.hotel-image {
    display: block;
    margin: 1rem auto;
}

.spanish-link {
    display: block;
    margin: 1rem auto;
}

/* ===============================
   POSTERS + TEXT GRID ("CALL" SECTION)
   =============================== */

/* ===============================
  POSTERS + TEXT GRID ("CALL" SECTION) - MODIFIED FOR SINGLE COLUMN
  =============================== */

.symposium-container {
    display: block; /* Change from grid to block layout */
    /* grid-template-columns: 350px 1fr; <--- REMOVED */
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* align-items: flex-start; <--- No longer needed with block */
}

.left-column {
    width: 100%;
}

.poster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: auto;
    gap: 1rem;
}

    .poster img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        object-fit: cover;
    }

/* ===============================
  VENUE TEXT ALIGNMENT
  =============================== */

.poster-text p {
    text-align: justify;
}

.right-column {
    width: 100%;
    display: block;
    text-align: left;
}

    .right-column * {
        text-align: left;
    }

/* Responsive collapse for small screens */
@media (max-width: 900px) {
    .symposium-container {
        grid-template-columns: 1fr;
    }

    .poster {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        justify-items: center;
    }

    .right-column {
        margin-top: 1rem;
    }
}

/* ===============================
   TABLE: FULL WIDTH, 5 COLUMNS, WIDE FIRST COLUMN
   =============================== */

.table-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto !important; /* critical to show all 5 columns */
    border-radius: 6px;
    overflow: hidden;
}

    .responsive-table thead th {
        background: #f6f7f9;
        border-bottom: 1px solid #ccc;
        padding: 12px 14px;
        text-align: left;
        white-space: nowrap;
        font-weight: 600;
        font-size: 15px;
    }

    .responsive-table td {
        border-bottom: 1px solid #e1e1e1;
        padding: 12px 14px;
        vertical-align: top;
        font-size: 15px;
        line-height: 1.4;
    }

        /* Wide first column */
        .responsive-table th:first-child,
        .responsive-table td:first-child {
            width: 320px;
            min-width: 320px;
            max-width: 380px;
            white-space: normal;
        }

        /* Remaining columns auto width */
        .responsive-table th:not(:first-child),
        .responsive-table td:not(:first-child) {
            width: auto;
        }

    /* Zebra stripe */
    .responsive-table tbody tr:nth-child(even) td {
        background: #fafafa;
    }

/* Mobile: ensure horizontal scroll shows all 5 columns */
@media (max-width: 900px) {
    .responsive-table {
        min-width: 750px;
    }
}

/* ===============================
   POSTERS + TEXT ABOVE "CALL"
   =============================== */

.hotel-link,
.theme-paragraphs {
    text-align: center;
}

.event-details {
    font-size: clamp(20px, 5vw, 28px);
    margin: 1rem 0;
}

/* ===============================
   NAMES + IMAGES
   =============================== */

.names-with-image {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.symposium-names-vertical {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
}

.names-image {
    max-height: 350px;
    max-width: none;
    object-fit: contain;
}

@media (max-width: 900px) {
    .names-with-image {
        display: block;
        text-align: center;
    }

    .symposium-names-vertical {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }

    .names-image {
        max-width: 90%;
        margin: 1.5rem auto;
    }
}

/* ===============================
   COMMITTEES
   =============================== */

.list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-start;
    margin: 20px 0;
}

.committee-column {
    flex: 1 1 200px;
    min-width: 250px;
    text-align: left;
}

@media (max-width: 768px) {
    .list-row {
        flex-direction: column;
    }

    .committee-column {
        min-width: 100%;
        text-align: center;
    }
}

/* ===============================
   BACK TO TOP
   =============================== */

.back-to-top {
    text-align: center;
    margin-top: 40px;
}

    .back-to-top a {
        font-size: 14px;
        text-decoration: underline;
        color: #0b67b2;
    }

/* ===============================
   GENERAL TYPOGRAPHY & MARGINS
   =============================== */

h1, h2, h3, h4, p {
    margin: 0.5rem 0;
}

p {
    line-height: 1.6;
}

/* Center header and nav placeholders */
#header-placeholder,
#nav-placeholder {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center; /* vertical alignment if needed */
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.call-title {
    text-align: center !important; /* center the text */
    font-family: 'Times New Roman', Times, serif !important;
    font-size: clamp(3rem, 8vw, 4rem) !important; /* larger, responsive size */
    margin: 2rem 0;
    font-weight: bold; /* optional, makes it stand out more */
}

/* Submission section: horizontal layout */
.submission-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem; /* space between the two lists */
    flex-wrap: wrap; /* wrap on smaller screens */
    margin-bottom: 1rem;
}

    .submission-container .submission-list {
        flex: 1 1 45%; /* each list takes ~45% of width */
    }

        .submission-container .submission-list ul {
            margin-top: 0.5rem;
            padding-left: 1.5rem;
        }

        .submission-container .submission-list h4 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

.additional-info-container {
    display: flex;
    justify-content: space-between; /* space out sections evenly */
    gap: 2rem; /* spacing between sections */
    flex-wrap: wrap; /* stack vertically on smaller screens */
    margin: 2rem 0;
}

/* Each section takes equal space */
.additional-info-section {
    flex: 1 1 30%; /* grow, shrink, basis */
}

    /* Optional: headings and paragraph spacing */
    .additional-info-section h3 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }

    .additional-info-section p {
        margin: 0.25rem 0;
    }
