/* Global Styles */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --footer-color: #34495e;
    --success-color: #27ae60;
    --warning-color: #e67e22;
    --danger-color: #c0392b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ual-logo {
    height: 50px;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    nav ul {
        justify-content: center;
    }
}

/* Section sub-nav (home page in-page anchors) */
.subnav {
    background-color: var(--primary-color);
    position: sticky;
    top: 82px;
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.subnav .container {
    padding: 0 1rem;
}

.subnav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    padding: 0.6rem 0;
    list-style: none;
}

.subnav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.subnav a:hover {
    color: white;
    border-bottom-color: white;
}

/* Minimal variant: light fill, subtle separator */
.subnav-minimal {
    background-color: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.subnav-minimal ul {
    padding: 0.5rem 0;
    gap: 0.25rem 1.5rem;
}

.subnav-minimal a {
    color: #555;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    border-bottom: none;
}

.subnav-minimal a:hover {
    color: var(--primary-color);
    border-bottom: none;
}

/* Offset anchor targets so the sticky headers don't cover them */
section[id] {
    scroll-margin-top: 140px;
}

@media (max-width: 600px) {
    .subnav {
        top: 120px;
    }
    .subnav ul {
        gap: 0.25rem 1rem;
    }
    section[id] {
        scroll-margin-top: 200px;
    }
}

@media (max-width: 700px) {
    .recordings-header {
        align-items: stretch;
        flex-direction: column;
    }

    .recordings-archive-link {
        width: 100%;
    }
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin-bottom: 0.75rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero .dates {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 3rem 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.letter {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.letter p {
    margin-bottom: 1rem;
}

.letter ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

/* Participating Institutions grid */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.institution-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: default;
}

.institution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.institution-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.institution-logo img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.institution-card:hover .institution-logo img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.institution-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.institution-country {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.institutions-note {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Venue Section */
.venue {
    padding: 3rem 0;
}

.venue h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.venue-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.5s ease;
    height: 450px;
}

.map.maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
}

.map.maximized .map-indicator {
    top: 20px;
    right: 20px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.map-indicator:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.map-indicator i {
    font-size: 1rem;
}

.venue-text {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.venue-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.venue-text p {
    margin-bottom: 1rem;
}

/* Location Section */
.location {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.location h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.location-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.location-text {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.location-text h3, .location-text h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-text h4 {
    margin-top: 1.5rem;
}

.location-text p {
    margin-bottom: 1rem;
}

.location-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.location-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-images img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-images img:hover {
    transform: scale(1.03);
}

/* Organizers Section */
.organizers {
    padding: 3rem 0;
}

.organizers h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.organizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.organizer img {
    max-height: 100px;
    margin-bottom: 1rem;
}

.organizer h3 {
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Program Page Styles */
.program-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/program-bg.jpg');
}

.program {
    padding: 3rem 0;
}

.program h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.program-notes {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.program-notes h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-notes ul {
    margin-left: 2rem;
    list-style-type: disc;
}

.recordings {
    margin-bottom: 3rem;
}

.recordings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.recordings-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.recordings-header p {
    color: #555;
    margin-bottom: 0;
}

.recordings-archive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.recordings-archive-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.archive-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.recording-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #111;
}

.recording-now-playing {
    display: grid;
    gap: 0.2rem;
    margin: -0.2rem 0 1rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.recording-now-playing span {
    color: #65717a;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.recording-now-playing strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.recording-now-playing p {
    margin-bottom: 0;
    color: var(--dark-color);
}

.recording-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.recording-card {
    display: grid;
    gap: 0.35rem;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #e1e9ef;
    border-radius: 8px;
    background-color: white;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.recording-card[data-video] {
    cursor: pointer;
}

.recording-card[data-video]:hover,
.recording-card[data-video]:focus-visible,
.recording-card.is-active {
    border-color: rgba(46, 134, 193, 0.45);
    box-shadow: 0 10px 24px rgba(28, 45, 62, 0.1);
    color: inherit;
    transform: translateY(-2px);
}

.recording-card.is-active {
    border-left: 4px solid var(--accent-color);
}

.recording-speaker {
    color: var(--primary-color);
    font-weight: 800;
}

.recording-title {
    color: var(--dark-color);
    font-size: 0.94rem;
    line-height: 1.35;
}

.recording-meta {
    align-self: end;
    color: #65717a;
    font-size: 0.86rem;
    font-weight: 650;
}

.recording-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.recording-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    background-color: rgba(26, 82, 118, 0.1);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 800;
}

.recording-actions a:hover {
    background-color: var(--primary-color);
    color: white;
}

.day-schedule {
    margin-bottom: 3rem;
}

.day-schedule h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: white;
}

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

.schedule-table .break-row td {
    background-color: #f7f9fb;
    color: #555;
}

.schedule-table .social-row td {
    background-color: #fff8ed;
}

.schedule-table .contribution-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.schedule-table .contribution-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.schedule-table .participant-name {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.schedule-table .participant-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.schedule-table td ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

.contribution-summary {
    margin-bottom: 3rem;
}

.contribution-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.contribution-card {
    scroll-margin-top: 6rem;
    background-color: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contribution-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contribution-card p {
    margin-bottom: 0;
}

.contribution-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.contribution-meta p {
    color: #555;
    font-size: 0.92rem;
    font-weight: 600;
}

.social-activities-summary {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-activities-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-activities-summary ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.social-activities-summary p {
    font-style: italic;
}

/* Participants Page Styles */
.participants-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)), url('../images/program-bg.jpg');
}

.participants {
    padding: 3rem 0;
}

.participants-heading {
    max-width: 780px;
    margin: 0 auto 1rem;
    text-align: center;
}

.participants-heading h2 {
    color: var(--primary-color);
    margin-bottom: 0.65rem;
}

.participants-heading p {
    color: #555;
    font-size: 1.02rem;
    margin-bottom: 0;
}

.participant-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1.25rem;
    margin-bottom: 1.75rem;
    color: #5c6770;
    font-size: 0.92rem;
    font-weight: 650;
}

.participant-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.participant-stats strong {
    color: var(--primary-color);
    font-size: 1.08rem;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.roster-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-height: 106px;
    padding: 0.95rem 2.35rem 0.95rem 1rem;
    border: 1px solid #e7edf2;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 6px 18px rgba(28, 45, 62, 0.05);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.roster-card:hover:not(.is-suppressed),
.roster-card:focus-visible,
.participant-card.is-keyboard-open,
.participant-card.is-pinned,
.participant-card.is-targeted {
    border-color: rgba(46, 134, 193, 0.42);
    box-shadow: 0 10px 24px rgba(28, 45, 62, 0.1);
    color: inherit;
    transform: translateY(-2px);
}

.participant-card {
    overflow: visible;
    cursor: pointer;
}

.participant-card:hover:not(.is-suppressed),
.participant-card.is-keyboard-open,
.participant-card.is-pinned {
    z-index: 30;
}

.participant-pin {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid transparent;
    border-radius: 50%;
    background-color: transparent;
    color: #8a98a5;
    cursor: pointer;
    font-size: 0.78rem;
    opacity: 0.75;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.participant-pin:hover,
.participant-pin:focus-visible,
.participant-pin[aria-pressed="true"] {
    border-color: rgba(46, 134, 193, 0.22);
    background-color: rgba(46, 134, 193, 0.1);
    color: var(--primary-color);
    opacity: 1;
}

.roster-photo {
    display: flex;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(46, 134, 193, 0.1);
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 0.98rem;
    font-weight: 800;
}

.roster-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roster-title,
.roster-affiliation {
    grid-column: 2;
}

.roster-title {
    display: block;
    align-self: end;
    min-width: 0;
}

.roster-name {
    display: inline;
    min-width: 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.18;
}

.roster-affiliation {
    color: #555;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
}

.participant-detail {
    position: absolute;
    top: calc(100% - 0.45rem);
    right: 0;
    left: 0;
    z-index: 25;
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background-color: white;
    box-shadow: 0 14px 28px rgba(28, 45, 62, 0);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.18s ease, padding 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.participant-card:hover:not(.is-suppressed) .participant-detail,
.participant-card.is-keyboard-open .participant-detail,
.participant-card.is-pinned .participant-detail {
    max-height: 420px;
    padding: 0.9rem 1rem 1rem;
    border-color: rgba(46, 134, 193, 0.18);
    box-shadow: 0 14px 28px rgba(28, 45, 62, 0.14);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.participant-detail p {
    color: #454545;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.participants-enhanced .profile-section-heading,
.participants-enhanced .profile-grid {
    display: none;
}

.profile-section-heading {
    border-top: 1px solid #e3e9ef;
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.profile-section-heading h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.participant-profile {
    scroll-margin-top: 6rem;
    border: 1px solid #e7edf2;
    border-radius: 8px;
    background-color: white;
    padding: 1.2rem;
    box-shadow: 0 6px 18px rgba(28, 45, 62, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.participant-profile.is-targeted {
    border-color: rgba(46, 134, 193, 0.55);
    box-shadow: 0 12px 28px rgba(28, 45, 62, 0.12);
}

.profile-header {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(46, 134, 193, 0.1);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
}

.profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-profile h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.profile-affiliation {
    margin-bottom: 0;
    color: #555;
    font-weight: 700;
    line-height: 1.3;
}

.participant-profile > p {
    color: #454545;
    margin-bottom: 0;
}

.participant-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.participant-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(46, 134, 193, 0.22);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.participant-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Activities Page Styles */
.activities-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/activities-bg.jpg');
}

.activities-intro {
    padding: 3rem 0;
}

.activities-intro h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.activities-intro p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.activity {
    padding: 3rem 0;
}

.activity:nth-child(even) {
    background-color: var(--light-color);
}

.activity-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.activity-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-details {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.activity-details p {
    margin-bottom: 1rem;
}

.activity-notes {
    background-color: #f8f9fa;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-top: 1.5rem;
}

.cabo-de-gata {
    padding: 3rem 0;
    background-color: var(--light-color);
}

.cabo-de-gata h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.park-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.park-text {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.park-text p {
    margin-bottom: 1rem;
}

.park-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.park-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.park-images img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.park-images img:hover {
    transform: scale(1.03);
}

.resources-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/program-bg.jpg');
}

.resources-info {
    padding: 3rem 0;
}

.resources-info h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.invitation-note {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 3rem;
}

.invitation-note p {
    margin-bottom: 1rem;
}

.resources-options {
    margin-bottom: 3rem;
}

.resources-options h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.platform {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.platform i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.platform p {
    margin-bottom: 1rem;
    text-align: left;
}

.stream-links {
    display: grid;
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.stream-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.stream-links a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.platform-note, .platform-link {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1.5rem;
}

.technical-requirements {
    margin-bottom: 3rem;
}

.technical-requirements h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.requirement {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.requirement i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requirement h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.materials-access, .contact-support {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.materials-access h3, .contact-support h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-support i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#imageCaption {
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.2rem;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Make images and map that can be enlarged have a visual indicator */
.location-images img, .park-images img, .activity-image img, .map {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.location-images img:hover, .park-images img:hover, .activity-image img:hover, .map:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Map enlargement styles */
#modalIframe {
    width: 100%;
    height: 80vh;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: none;
}

/* Media Queries */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.9rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .venue-info, .location-info, .park-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .activity-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .alt-activity .activity-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .alt-activity .activity-content {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .schedule-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table th,
    .schedule-table td {
        min-width: 150px;
        padding: 0.75rem;
    }

    .participants {
        padding: 2.25rem 0;
    }

    .participant-stats {
        margin-bottom: 1.35rem;
    }

    .roster-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .roster-card {
        min-height: 96px;
        padding: 0.85rem 2.45rem 0.85rem 0.85rem;
    }

    .participant-detail {
        position: static;
        grid-column: 1 / -1;
        margin-top: 0;
        border-radius: 8px;
        transform: none;
    }

    .participant-card:hover:not(.is-suppressed) .participant-detail,
    .participant-card.is-keyboard-open .participant-detail,
    .participant-card.is-pinned .participant-detail {
        margin-top: 0.75rem;
    }

    .profile-header {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 0.85rem;
    }

    .profile-photo {
        width: 60px;
        height: 60px;
    }
    
    #modalImage {
        max-height: 70vh;
    }
    
    .close-modal {
        top: -30px;
        right: 0;
        font-size: 30px;
    }
}
