/* Base Layout */

body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.75;
    background-color: #f8f9fb;
    color: #2c2c2c;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */

header {
    position: relative;
    background: url("VVAJ2TM.jpg") center/cover no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.65);
}

header * {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Navigation */

nav {
    margin-top: 15px;
}

.nav-links {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 35px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.5rem;
    padding-bottom: 4px;
}

/* Animated underline */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    font-weight: 600;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

.menu-button {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Hidden submenu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 6px;
}

/* Dropdown links */
.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu a {
    color: #0d1b2a;
    font-size: 1.5rem;
    font-weight: 400;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Main Content */

main {
    padding: 60px 25px;
    max-width: 1000px;
    margin: auto;
    background: white;
}

section {
    margin-bottom: 70px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #0d1b2a;
    font-weight: 600;
}

p, li {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
}

ul {
    padding-left: 20px;
}

h3 {
    font-weight: 600;
}


/* Enhance email addresses */
a {
    color: #1b3a57;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Program Table Styling */

.program-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.98rem;
}

.program-table thead {
    background-color: #0d1b2a;
    color: white;
}

.program-table th,
.program-table td {
    padding: 12px 15px;
    text-align: left;
}

.program-table th {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.program-table tbody tr {
    border-bottom: 1px solid #e0e6ed;
}

.program-table tbody tr:hover {
    background-color: #9eb8d9;
    transition: background-color 0.2s ease;
}

/* Center Program headings */

.program-title,
.program-day {
    text-align: center;
}

.program-title {
    margin-bottom: 10px;
}

.program-day {
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Break rows */

.program-table tr.break {
    background-color: #dfe7f1 !important;
    font-style: italic;
    font-weight: 500;
}

.affiliation {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: #4a5568;
    margin-top: 2px;
}

.abstract {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    font-size: 0.9rem;
    color: #2c2c2c;
    line-height: 1.5;
    background-color: #f4f6f9;
    padding: 0 12px;
    border-left: 3px solid #0d1b2a;
    border-radius: 3px;

    transition: 
        max-height 0.4s ease,
        opacity 0.3s ease,
        margin-top 0.3s ease,
        padding 0.3s ease;
}

/* When active */
.abstract.open {
    max-height: 800px;   /* large enough for content */
    opacity: 1;
    margin-top: 8px;
    padding: 8px 12px;
}

.abstract-toggle {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d1b2a;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.abstract-toggle:hover {
    color: #1b3a57;
}

/* Active state */
.abstract-toggle.active {
    color: #1b3a57;
}

.pdf-button {
    display: inline-block;
    background-color: #0d1b2a;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pdf-button:hover {
    background-color: #1b3a57;
    transform: translateY(-2px);
}

.pdf-container {
    text-align: center;
    margin: 20px 0 30px 0;
}

/* Working Groups Layout */

.wg-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Card styling */

.wg-card {
    background: #f8f9fb;
    padding: 25px;
    border-left: 4px solid #0d1b2a;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.wg-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.wg-time {
    font-size: 0.9rem;
    color: #1b3a57;
    margin-bottom: 15px;
}

.wg-card ul {
    padding-left: 20px;
    margin: 0;
}

.wg-card li {
    margin-bottom: 5px;
}

/* Attendees Table */

.attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 1rem;
}

.attendees-table thead {
    background-color: #0d1b2a;
    color: white;
}

.attendees-table th,
.attendees-table td {
    padding: 14px 18px;
    text-align: left;
}

.attendees-table th {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.attendees-table tbody tr {
    border-bottom: 1px solid #e4e9f0;
}

.attendees-table tbody tr:nth-child(even) {
    background-color: #f6f8fb;
}

.attendees-table tbody tr:hover {
    background-color: #cfddee;
    transition: background-color 0.2s ease;
}

/* Venue Page Styling */

.venue-address,
.venue-map,
.venue-directions,
.venue-logistics {
    margin-top: 40px;
}

.venue-address p {
    line-height: 1.7;
    font-size: 1rem;
}

.venue-map iframe {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Directions blocks */

.direction-block {
    margin-top: 20px;
    padding: 18px;
    background: #f8f9fb;
    border-left: 4px solid #0d1b2a;
    border-radius: 6px;
}

.direction-block h4 {
    margin-top: 0;
    font-size: 1.05rem;
}

/* Container for mobile scrolling */

.table-container {
    overflow-x: auto;
}


/* Footer */
footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
    font-size: 0.9rem;
}

.last-updated {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
}

footer p {
    margin: 5px 0;
}


/* -------------------- */
/* Responsive Design */
/* -------------------- */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
    
  nav ul {
    display: flex;
    flex-direction: column;
  }
    
}
