/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --nav-height: 70px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    /* Needed for absolute positioning of ::before */
    overflow: hidden;
    /* content spilling out from blur */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding-top: var(--nav-height);
    margin-top: calc(-1 * var(--nav-height));
}

/* Pseudo-element for the blurred background */
.hero::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    /* Extend edges to hide blur fade */
    background: url('assets/background.jpg');
    background-size: cover;
    background-position: 50% 35%;
    filter: blur(0px);
    /* The blur effect */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
    /* Black outline effect */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 4px 10px rgba(0, 0, 0, 0.5);
    /* Plus subtle drop shadow */
    font-weight: 800;
    /* Thicker font works better with outline */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    /* Increased weight */
    opacity: 1;
    /* Removed opacity for better visibility */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Section Styling */
.section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* About Content (Markdown styling) */
#about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

#about-content h1,
#about-content h2,
#about-content h3 {
    margin-top: 1.5em;
    color: var(--primary-color);
}

#about-content h3 {
    font-size: 1.3rem;
    /* Slightly smaller than h2 but distinct */
    font-weight: 600;
    margin-bottom: 0.5em;
}

#about-content p {
    margin-bottom: 1em;
    font-size: 1.05rem;
}

#about-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

#about-content li {
    margin-bottom: 0.5em;
}

/* Registration Card */
.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Organizers Grid */
/* Organizers Section */
.chair-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.chair-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.3);
    /* Subtle accent border */
}

.chair-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.organizer-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 20px;
    border: 4px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chair-card h3 {
    margin: 15px 0 5px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.chair-card h3 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.chair-card p {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
}

/* Organizing Committee Table */
.committee-container {
    max-width: 800px;
    margin: 0 auto;
}

.committee-container h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.committee-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.simple-table tr:last-child td {
    border-bottom: none;
}

.simple-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.simple-table td:last-child {
    text-align: left;
    /* Changed to left for better readability in single column */
    color: #555;
}

.chair-label {
    color: var(--accent-color);
    font-size: 0.9em;
    font-style: italic;
    font-weight: 500;
}


/* Program Schedule */
.schedule-day {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.schedule-day h3 {
    background: var(--primary-color);
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 1.3rem;
}

.schedule-list {
    padding: 0 20px;
}

.schedule-list li {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f1f1f1;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .time {
    font-weight: 600;
    color: var(--accent-color);
    width: 80px;
    flex-shrink: 0;
}

.schedule-list .event {
    font-weight: 500;
}

/* Past Editions */
.past-editions-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.past-edition-link {
    background: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    font-weight: 500;
    color: var(--primary-color);
}

.past-edition-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 60px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    color: var(--light-text);
}

.footer-logo {
    height: 80px;
    width: auto;
    /* Make the logo white to blend with the dark footer */
    filter: brightness(0) invert(1) opacity(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    /* Restore original colors on hover */
    filter: none;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu toggle logic if needed */
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .committees-grid {
        grid-template-columns: 1fr;
    }
}