/* TEKTON Conference Website Styles */

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

:root {
    --color-warm-gold: #9B7E4F;
    --color-pale-yellow: #F5EFE0;
    --color-warm-beige: #E8DCC8;
    --color-charcoal: #2A2A2A;
    --color-warm-grey: #5A5A5A;
    --color-light-grey: #707070;
    --color-light-bg: #F9F6F1;
    --color-white: #FFFFFF;
    --color-text: #2A2A2A;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.main-nav a:hover {
    color: var(--color-warm-gold);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #3D3D3D 0%, #2A2A2A 100%);
    color: var(--color-white);
    padding: 150px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #F5F5F5;
}

.hero-details {
    margin: 30px 0;
    font-size: 1.2rem;
    color: #F5F5F5;
}

.hero-details p {
    margin: 10px 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-warm-gold);
    color: var(--color-white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #8A6D43;
}

/* Section Styles */
section {
    padding: 100px 20px;
}

section:nth-child(even) {
    background-color: var(--color-light-bg);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-charcoal);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Program Section */
.program {
    background-color: var(--color-white);
}

.program-day {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--color-light-bg);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.program-day h3 {
    font-size: 2rem;
    color: #7A6541;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-warm-grey);
}

.program-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 2px;
    border-left: 3px solid var(--color-warm-gold);
    transition: box-shadow 0.2s ease;
}

.program-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.program-item .time {
    font-weight: 700;
    color: var(--color-charcoal);
    min-width: 80px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-item .details {
    flex: 1;
    text-align: left;
}

.program-item .details strong {
    display: block;
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.program-item .speakers {
    color: #5A5A5A;
    font-style: italic;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
    text-align: left;
}

.program-break {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
    padding: 15px 20px;
    background: #D4C5A0;
    border-radius: 2px;
    color: #2A2A2A;
}

.program-break .time {
    font-weight: 700;
    min-width: 80px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-break .break-label {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Registration Form */
.registration-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D8D8D8;
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-warm-gold);
}

.registration-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Venue Section */
.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

.venue-info {
    text-align: left;
}

.venue-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.venue-info p strong {
    font-size: 1.3rem;
    color: var(--color-charcoal);
}

.venue-map {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.venue-map iframe {
    display: block;
}

/* Footer */
.main-footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-align: center;
    padding: 40px 20px;
}

.main-footer p {
    margin: 20px 0 10px 0;
}

.main-footer .logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-footer .logos-grid img {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    background-color: white;
    padding: 5px;
    border-radius: 2px;
}

.main-footer .logos-grid img:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .venue-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-footer .logos-grid {
        gap: 15px;
    }

    .main-footer .logos-grid img {
        height: 55px;
    }

    .header-content {
        flex-direction: column;
        padding: 15px 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero {
        padding: 80px 20px;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .program-day {
        padding: 20px;
    }

    .program-item {
        flex-direction: column;
        gap: 10px;
    }

    .program-item .time {
        min-width: auto;
    }

    .program-break {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .program-break .time {
        min-width: auto;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section {
    animation: fadeIn 0.5s ease-in-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--color-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 2px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--color-warm-gold);
}

.modal-content h3 {
    color: var(--color-charcoal);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
    padding-right: 40px;
    text-align: left;
}

.modal-authors {
    color: #7A6541;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.modal-affiliations {
    color: #5A5A5A;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light-bg);
}

.modal-affiliations .affiliation {
    margin: 5px 0;
}

.modal-abstract {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
    white-space: pre-line;
}

.modal-keywords {
    color: #5A5A5A;
    font-size: 0.95rem;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid var(--color-light-bg);
    text-align: left;
}

.modal-keywords strong {
    color: var(--color-charcoal);
    font-style: normal;
}

/* Clickable program items */
.program-item[data-abstract] .details {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.program-item[data-abstract] .details:hover strong {
    color: var(--color-warm-gold);
}

.program-item {
    position: relative;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
        max-height: 80vh;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .modal-abstract {
        font-size: 1rem;
    }
}
