/* main.css */

/* These are the colors and fonts used throughout the webpage.
 * I've listed them here so that a user may easily
 * do a search-and-replace for these to change the site theme.
 *   'Open Sans',sans-serif; Font for the body text
 *   'TASA Explorer',serif; Font for the title text
 *   #f5faf7; Background color of the site
 *   #1a1a1a; Foreground (text) color of the site
 *   #2d7a4a; TIME 2026 green, current page in navigation, special titles in the Program
 *   #1f5a35; TIME 2026 dark green, hover color for links
 *   #2d7a4a; Heading color, titles in the Program
 *   #2d7a4a; Dark Goldenrod, color for links
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=TASA+Explorer:wght@400..800&display=swap');

*{
    border:0;
    font:inherit;
    font-size:1em;
    margin:0;
    padding:0;
    vertical-align:baseline;
}

body{
    background-color: #f5faf7;
    background-size: cover;
    background-attachment: fixed;
    color: #1a1a1a; 
    text-align:left;
    font-family:'Open Sans',sans-serif;
    font-size:1em;
    line-height:1.5em;
    margin: 60px auto;
    width: 1000px;
}

a{color: #2d7a4a; text-decoration:none;}
a.current{color: #1f5a35; font-weight: bold;}
a.current:hover{color: #3a8e59;}
a:hover{color: #1f5a35;}
a:active{color: #3a8e59;}
h1,h2,h3,h4{clear:left; color: #2d7a4a; margin:1.5em 0em 1em 0em; font-family:'TASA Explorer',serif; text-shadow: 1px 1px 2px #d0d0d0;}
h1{font-size:2.67em;}
h2{font-size:2.00em;}
h3{font-size:1.67em;}
h4{font-size:1.33em;}
p{margin:1% auto 1% auto; padding:0px; width:90%; text-align:left;text-align: justify;}
li a, p a {text-decoration:underline; text-decoration-color:#2d7a4a;}
ul{list-style:none; margin:24px auto 24px auto; padding:0px; width:800px; text-align:left;}
ul li{list-style: circle; margin:0; text-align:left;}
li.panelist-list{list-style-type: disc;}
i,em{font-style:italic;}
b,strong{font-weight:bold;}
sup{
    vertical-align: super;
    font-size: 0.8em;
    line-height: 0;
}
sub{
    vertical-align: sub;
    font-size: 0.8em;
    line-height: 0;
}
table{
    width: 100%;
    margin: 12px auto 24px auto;
    float: center;
    font-size: inherit;
    font-family: inherit;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /* border: 1px solid black; */
}
th,td{
    text-align: left;
    /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
    /* border: 1px solid black; */
}

/* Website Banner */
.banner {
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'TASA Explorer', serif;
    max-width: 100%;
    overflow: hidden;
    border-bottom: 4px solid #2d7a4a;
}

/* Make the image responsive */
.banner > img {
    order: 1;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Logo */
.logo {
    width: 62px;
    height: auto;
    display: inline-block;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 0.55em;
    margin-bottom: 10px;
}

.top-left {
    box-sizing: border-box;
    order: 0;
    font-size:5.33em;
    color: #1a1a1a; 
    background: rgba(245,250,247,0.95); 
    text-align: center;
    width: 100%; 
    height: 136px; 
    position: relative;
    padding: 36px 0 0 0; 
}

.bottom-right {
    font-size:2.33em; 
    /* color: #2d7a4a; */
    color: #1f5a35;
    line-height: 1.25em; 
    width: auto; 
    height: auto; 
    padding: 16px 0px 0px 16px;
    text-align: left;
    position: absolute; 
    top: 136px;
    left: 0px;
    overflow-wrap: break-word;
    text-shadow: 0px 0px 6px #f5faf7;
}

.banner-location {
    display: block;
    font-size: 0.64em;
}

/* Conference Title Logo */
.title1{color: #1f5a35; text-shadow: 1px 1px 3px #c0c0c0; font-size: 0.5em;}
.title2{box-sizing: border-box; color: #2d7a4a; text-shadow: 1px 1px 3px #c0c0c0; display: block; font-size: 0.26em; line-height: 1.15em; padding: 0 18px; overflow-wrap: break-word;}
.year{color: #1a1a1a; font-size:0.67em; font-weight: lighter;}

/* Navigation Links (Home, Registration, etc) */
table.navigation{width:95%;}
td.navigation{font-size:1.67em; white-space:nowrap; width:5%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}

/* Sponsor Images */
table.sponsors{width:800px;}
td.sponsor{white-space:nowrap; width:33%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

/* The Table on the Program Page */
td.room{padding: 4px 12px 4px 4px; width: 90%; vertical-align:bottom; font-size:1.67em; color: #2d7a4a; height:32px;}
td.date{white-space:nowrap; width:130px; text-align:right; vertical-align:top; padding:4px 16px 0px 0px;}
td.title{padding: 4px 12px 4px 4px; width: 90%; vertical-align:top; font-size:1.5em; color: #2d7a4a; height:32px; font-family:'TASA Explorer',serif; text-shadow: 1px 1px 2px #d0d0d0; }
td.title-special{padding: 4px 12px 4px 4px; width: 90%; vertical-align:top; font-size:1.67em; color: #2d7a4a; height:32px; font-family:'TASA Explorer',serif; text-shadow: 1px 1px 2px #d0d0d0;}
td.speaker{padding: 4px 12px 4px 4px; font-style: italic; font-size:1em; max-height:999999px}
td.abstract{padding: 4px 12px 12px 4px; font-size:1em; max-height:999999px}
td.abstract img{display: block; margin: 4px auto 8px auto}
table.plenary{padding-top: 8px; background: #ffffff;}

/* Registration and Directions iframes and Images */
iframe.registration{display:block; margin:1em auto 2em auto; width:700px; height:1400px; border:none;}
iframe.directions{display:block; margin:1em auto 2em auto; width:800px; height:400px; border:none;}
img.center{display:block; width:67%; margin:1em auto 2em auto;}

/* Flyer Images */
table.flyers{width:800px;}
td.flyer{white-space:nowrap; width:50%; text-align:center; vertical-align:middle; padding:0px 0px 0px 0px;}
td.sponsor img{width: 100%}

footer{font-size:0.875em; margin-top:12em; text-align:center;}

/* My hacky way of making the site mobile-friendly */
@media only screen and (max-width: 1024px) {
    h2{font-size:2.2em;}
    h3.news-title{font-size:1.6em;}
    p {font-size:1.05em;}
    td.navigation{font-size:1.4em; padding:0px 12px 0px 12px;}
}

/* TABLE OF SPEAKERS*/
.speakers-table {
    width: 95%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.speakers-table td {
    padding: 15px;
    vertical-align: top;
}

.speakers-table img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.speakers-table strong {
    font-size: 1.5em;
}

.speakers-table p {
    margin-top: 25px;
    width: 100%;
}

/* Schedule */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #fff;
}

.schedule-table th, .schedule-table td {
    border: 1px solid #d4e8dc;
    padding: 12px 15px;
    text-align: left;
}

.schedule-table th {
    background-color: #2d7a4a;
    color: #fff;
    text-transform: uppercase;
}

.schedule-table tr.session-highlight {
    background-color: #eef6f0;
}

.schedule-table td {
    vertical-align: top;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 96px;
    white-space: nowrap;
}

.schedule-table th:nth-child(3) {
    width: 230px;
    white-space: nowrap;
}

.schedule-table ul {
    width: auto;
    margin: 10px 0 0 20px;
}

.schedule-table li {
    margin-bottom: 10px;
}

.paper-title {
    display: block;
    font-style: italic;
}

.paper-authors {
    display: block;
    font-size: 0.92em;
    color: #555555;
}

.session-note,
.panel-subtitle {
    display: block;
    color: #555555;
    margin-top: 6px;
}

.orange-boarder {
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #f8e2cd;
    border-radius: 6px;
}

.panel-theme-title {
    display: block;
    color: #1f5a35;
    font-weight: bold;
    margin-top: 8px;
}

.panel-cover-image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 12px auto 0 auto;
    border-radius: 6px;
}

.meta-list {
    width: 90%;
    margin: 18px auto 24px auto;
    padding: 14px 18px;
    background: #eef6f0;
    border-left: 4px solid #2d7a4a;
}

.meta-list li {
    list-style: none;
    margin: 4px 0;
}

.button-row {
    width: 90%;
    margin: 24px auto;
}

.button {
    display: inline-block;
    background: #2d7a4a;
    color: #ffffff;
    padding: 10px 16px;
    margin: 4px 8px 4px 0;
    border-radius: 4px;
    text-decoration: none;
}

.button:hover {
    background: #1f5a35;
    color: #ffffff;
}

.topic-table th {
    width: 28%;
}

@media screen and (max-width: 600px) {
    .schedule-table th:first-child,
    .schedule-table td:first-child,
    .schedule-table th:nth-child(3) {
        width: auto;
        white-space: normal;
    }
    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th {
        display: block;
    }
    .schedule-table tr {
        margin-bottom: 15px;
    }
    .schedule-table td, .schedule-table th {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .schedule-table td::before, .schedule-table th::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        text-transform: uppercase;
    }
}

/* organizer */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.organizer {
    text-align: center;
}

.organizer img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

/* .organizer strong, */
.organizer br {
    display: block;
    margin-top: 5px;
}

.organizer p {
    width: 100%;
    margin: 8px auto 0 auto;
    text-align: center;
    line-height: 1.35em;
}

@media only screen and (max-width: 1024px) {
    .organizers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .organizers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 480px) {
    .organizers-grid {
        grid-template-columns: 1fr;
    }
}


/* News and Stories Section */
.news-stories {
    max-width: 95%;
    align-self: center;
    margin: 0 auto;
}

.news-title {
    font-size: 1.4em; 
    color: #2d7a4a;
    text-shadow: 1px 1px 2px #d0d0d0; 
    margin: 0 auto;
}

.news-item {
    background-color: #ffffff; /* Card background for individual news items */
    border: 1px solid #d4e8dc;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
    }

.news-date {
    color: #2d7a4a; 
    margin: 2px 0 2px 0;
    display: block;
}

.news-content {
    line-height: 1.55em;
    color: #1a1a1a; 
    margin: 0;
    width: 100%;
}

.news-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto 0 auto;
    border-radius: 6px;
}

.news-item:hover {
transform: translateY(-1px);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.news-item:hover .news-title {
    color: #1f5a35;
}

/* count down */
.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ccc;
}



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

.date-title {
    flex: 2; 
    display: flex;
    align-items: center;
}

.date-countdown {
    flex: 1; 
    text-align: right;
    font-style: italic;
    color: #555;
    white-space: nowrap; 
}

.original-date {
    color: solid#ccc;
    text-decoration: line-through;
    text-decoration-color: red;
    margin-right: 5px; 
}

.updated-date {
    color: #1f5a35; 
    font-weight: bold;
}

.committee-list {
    width: 90%;
    margin: 12px auto 28px auto;
    columns: 2;
    column-gap: 48px;
}

.committee-list li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.contact-box {
    width: 90%;
    margin: 24px auto;
    padding: 18px;
    background: #eef6f0;
    border: 1px solid #d4e8dc;
    border-radius: 8px;
}

.subtitle-note {
    color: #555555;
    font-size: 0.95em;
}

@media only screen and (max-width: 1024px) {
    body {
        width: calc(100% - 32px);
        margin: 24px auto;
    }
    .banner > img {
        height: 280px;
    }
    .top-left {
        font-size: 4.4em;
        height: 132px;
        padding-top: 32px;
    }
    .bottom-right {
        top: 132px;
    }
    table.navigation {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
    td.navigation {
        font-size: 1.4em;
        padding: 0 12px;
    }
}

@media only screen and (max-width: 640px) {
    h2{font-size:2.1em;}
    p {width: 96%; font-size: 1em; text-align: left;}
    ul {width: 90%;}
    .banner > img {
        height: 260px;
    }
    .top-left {
        font-size: 3.2em;
        height: 132px;
        padding: 24px 12px 0 12px;
    }
    .logo {
        width: 48px;
    }
    .title-row {
        gap: 8px;
        margin-bottom: 8px;
    }
    .title2 {
        font-size: 0.22em;
        padding: 0 6px;
    }
    .bottom-right {
        font-size: 1.05em;
        line-height: 1.2em;
        box-sizing: border-box;
        width: 100%;
        top: 132px;
        left: 0;
        padding: 10px 10px 0 10px;
        max-width: 100%;
    }
    .banner-location {
        font-size: 0.82em;
    }
    .committee-list {
        columns: 1;
    }
}
