/* 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: flex-start;
    line-height: 1.8;
    text-align: left;
    flex-wrap: wrap;
    gap: 10px;
}

.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;
    flex-shrink: 0;
}

.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;
}

/* Venue notice styling */
.venue-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.venue-notice p {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #856404;
    line-height: 1.6;
}

.venue-notice p i {
    color: #f39c12;
    font-size: 1.1em;
    margin-right: 10px;
    flex-shrink: 0;
}

.venue-notice a {
    color: #d68910;
    font-weight: 500;
    text-decoration: underline;
    padding: 0 4px;
    border-radius: 3px;
}

.venue-notice a:hover {
    color: #b7950b;
    background-color: rgba(243, 156, 18, 0.1);
}

/* Cancellation notice styling */
.cancellation-notice {
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #f87171;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cancellation-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.notice-content i {
    color: #dc2626;
    font-size: 3em;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    margin-bottom: 10px;
}

.notice-text h3 {
    color: #dc2626;
    font-size: 2em;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-text p {
    color: #7f1d1d;
    margin: 0;
    line-height: 1.8;
    font-size: 1.1em;
    text-align: center;
    max-width: 600px;
    font-weight: 500;
}

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;
    min-height: 50vh; /* Ensure sections have enough height for scrolling */
}

/* 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;
    }

    /* Mobile responsive for cancellation notice */
    .cancellation-notice {
        margin: 20px auto;
        padding: 20px;
    }

    .notice-content i {
        font-size: 2.5em;
        padding: 15px;
    }

    .notice-text h3 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .notice-text p {
        font-size: 1em;
        line-height: 1.7;
    }
}