/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* Remove top padding */
    scroll-behavior: smooth; /* Enable smooth scrolling for the whole page */
    font-size: 16px;
}

/* Global link styling */
a {
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s, background-color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Paragraph styling for better readability */
p {
    margin-bottom: 1.2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section p {
    font-size: 1.05em;
    letter-spacing: 0.01em;
    text-align: justify;
}

/* Improve heading spacing */
h2 {
    color: #3498db;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.8em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.4em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Improve readability of list items */
ol, ul {
    padding-left: 30px;
    margin-bottom: 25px;
}

ol li, ul li {
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 30px;
    margin-top: 20px; /* Add margin to create space between navbar and header */
}

.logo-container {
    margin-bottom: 25px;
}

.logo {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Header content styling */
.header-content {
    margin-bottom: 25px;
}

.conference-info {
    margin-top: 15px;
    font-size: 1.1em;
}

.conference-info p {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    margin: 0 auto;
}

/* Conference info links - maintain existing styles but inherit from global */
.conference-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s;
}

.conference-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Event details styling */
.event-details {
    margin-top: 20px;
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.event-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 1.8;
    text-align: left;
}

.event-details p:last-child {
    margin-bottom: 0;
}

.event-details p i {
    color: #3498db;
    font-size: 1.2em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    padding: 12px;
    margin-right: 15px;
}

.event-details b {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05em;
    margin-right: 8px;
}

.event-details span {
    color: #333;
}

/* Event details links - update to match global style */
.event-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.event-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2em;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}

.organizer {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.organizer h3 {
    margin-top: 0;
    color: #2c3e50;
    text-align: left;
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.schedule th, .schedule td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.schedule th {
    background-color: #3498db;
    color: white;
}
.schedule tr:nth-child(even) {
    background-color: #f2f2f2;
}
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #2c3e50;
    overflow: hidden;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin-bottom: 20px;
    margin-top: 0; /* Ensure no top margin */
    border-radius: 0 0 5px 5px; /* Only round the bottom corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center; /* Center the navbar content */
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-flex; /* Changed to inline-flex for more compact layout */
    justify-content: center;
}

.navbar li {
    display: inline-block; /* Changed from float to inline-block */
}

/* Navbar links - keep their unique styling for navigation */
.navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 2px;
    border-radius: 4px;
    font-weight: normal;
}

.navbar li a:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none; /* Override the global text-decoration */
}

.navbar li a.active {
    background-color: #3498db;
    font-weight: bold;
}

/* Section spacing for better scrolling */
section {
    padding-top: 20px;
    margin-bottom: 40px;
}

/* Styles for organizer headshots and layout */
.organizer-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.headshot {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 150px; /* Ensure image doesn't exceed container */
    display: block; /* Prevent inline display issues */
}

.organizer-info {
    flex: 1;
}

/* Enhanced contact information styles */
.contact-info {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.contact-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.contact-label {
    margin-right: 5px;
    font-weight: 500;
}

/* Contact links - maintain special styling while inheriting global colors */
.contact-link {
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 5px;
    border-radius: 4px;
}

.contact-link:hover {
    color: #2980b9;
    transform: translateY(-1px);
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: underline;
}

.contact-link i {
    font-size: 1.1em;
}

/* Make the layout responsive */
@media (max-width: 768px) {
    .organizer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .headshot {
        margin-bottom: 15px;
    }

    .contact-info {
        justify-content: center;
    }
}