body, html {
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    background-image: url('assets/synthetic-data.png');
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

.header h1 {
    text-align: center;
    width: 100%;
    font-size: 2.5em;
    padding: 20px;
    line-height: 1.4;
}
section {
    margin-bottom: 20px;
}
.header h2 {
    text-align: center;
    width: 100%;
    font-size: 1.9em;
    padding: 20px;
    line-height: 1.4;
}

.header h3 {
    color: #2c3e50;
}

.nav {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
}

.committee-list {
    columns: 3; /* Creates three columns */
    -webkit-columns: 3;
    -moz-columns: 3;
    column-gap: 40px;
    padding: 0 20px;
    text-align: left;
}
.nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
}

.nav a:hover {
    background-color: #ddd;
    color: black;
}

.content {
    background-color: white; /* Light background for content */
    padding: 20px 40px; /* Increased padding for better spacing */
    margin: 20px auto; /* Centers the content and adds vertical spacing */
    max-width: 1000px; /* Maximum width of the content block */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); !* Subtle shadow for depth *!*/
    font-size: 1.2em; /* Larger font size for readability */
    line-height: 1.6; /* Increased line height */
    text-align: left; /* Keep text aligned to the left for better readability in paragraphs */
}

.schedule-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}
.schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.schedule-table th {
    background-color: #f2f2f2;
}
.schedule-table td {
    background-color: #fafafa;
}
.schedule-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}
.schedule-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
    margin: 20px 0;
}
.schedule-table tr:hover {
    background-color: #f1f1f1;
}

.footer {
    text-align: center;
    padding: 10px;
    background: #333;
    color: white;
}

.sponsors-logos img {
    width: 250px; /* or any size that fits your design */
    height: auto;
    margin: 10px 20px;
    vertical-align: middle; /* Aligns the image vertically if text or other elements are present */
}

.sponsors-logos a {
    display: inline-block; /* Ensures the links are aligned nicely */
    margin: 0 10px; /* Space between logos */
}

.responsive-image {
    width: 100%; /* Makes the image responsive and matches the container's width */
    height: auto; /* Maintains the aspect ratio of the image */
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* adjust number of columns based on content width */
    gap: 20px;
    justify-content: center; /* Centers the grid items in the row */
    padding: 20px;
}

.photo {
    width: 160px;
    height: 210px; /* Increased height to accommodate captions */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Center-align text for aesthetic purposes */
    background: #fff; /* Optional: background color */
}

.photo img {
    width: 100%;
    height: 160px; /* Fixed height for images */
    object-fit: cover;
}

figcaption {
    color: #666; /* Caption text color */
    font-size: 0.8em; /* Smaller font size for captions */
    padding: 5px; /* Padding around the caption text */
}

pre {
        background-color: #f5f5f5;
        padding: 15px;
        font-family: monospace;
        white-space: pre-wrap;
    }
    code {
        color: black;
    }


/* Medium Screen Devices: Tablets in Landscape Mode */
@media (min-width: 768px) and (max-width: 1024px) {
    .header h1 {
        font-size: 3.0em;
        padding: 15px;
    }

    .nav {
        font-size: 1.1em;
    }

    .nav a {
        padding: 12px 18px;
    }

    .content {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .photo {
        width: 180px;
        height: 230px;
    }

    .photo img {
        height: 180px;
    }

    .sponsors-logos img {
        width: 100px;
    }
}

/* Smaller Devices: Mobile Phones */
@media (max-width: 768px) {
    .header {
        height: 30vh;
    }

    .header h1 {
        font-size: 2.5em;
        padding: 10px;
    }

    .nav {
        font-size: 1em;
    }

    .nav a {
        padding: 10px 15px;
    }

    .content {
        padding: 10px 20px;
        margin: 10px auto;
        font-size: 1em;
    }

    .footer {
        padding: 5px;
    }

    .sponsors-logos img {
        width: 80px;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .header {
        height: 25vh;
    }

    .header h1 {
        font-size: 2em;
    }

    .nav {
        padding: 10px 0;
        font-size: 0.9em;
    }

    .nav a {
        padding: 8px 10px;
    }

    .content {
        padding: 8px 15px;
    }
}

/* Speaker Grid Styles */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.speaker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.speaker-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0; /* Fallback background color */
}

.speaker-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

.speaker-info {
    font-size: 1.1em;
    line-height: 1.4;
}

.speaker-info a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.speaker-info a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive adjustments for speaker grid */
@media (max-width: 768px) {
    .speaker-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .speaker-image,
    .speaker-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .speaker-info {
        font-size: 1em;
    }
}

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

    .speaker-image,
    .speaker-image-wrapper {
        width: 120px;
        height: 120px;
    }
}