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

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #dc143c;
    --accent-red: #e31e24;
    --text-color: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --gray: #666666;
    --dark-gray: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    z-index: 1002;
}

.menu-windmill {
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-windmill-blades {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    animation: rotateMenuBlades 2s linear infinite;
}

.menu-blade {
    position: absolute;
    width: 6px;
    height: 28px;
    background: linear-gradient(to bottom, #e31e24 0%, #dc143c 100%);
    border-radius: 3px;
    transform-origin: center 8px;
}

.menu-blade:nth-child(1) {
    transform: rotate(0deg);
}

.menu-blade:nth-child(2) {
    transform: rotate(90deg);
}

.menu-blade:nth-child(3) {
    transform: rotate(180deg);
}

.menu-blade:nth-child(4) {
    transform: rotate(270deg);
}

.menu-blade-center {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #e31e24;
    z-index: 10;
}

@keyframes rotateMenuBlades {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.main-nav {
    padding: 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 1.5rem 1.2rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background: rgba(227, 30, 36, 0.9);
    border-bottom-color: var(--accent-red);
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-red);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    border-bottom: 1px solid #eee;
}

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

.dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.dropdown a:hover {
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(227, 30, 36, 0.8) 100%);
    color: var(--white);
    padding-left: 1.5rem;
}

/* Nested Dropdown */
.dropdown .has-dropdown {
    position: relative;
}

.dropdown .has-dropdown > a::after {
    content: '▸';
    float: right;
    margin-left: 0.5rem;
}

.dropdown .nested-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-red);
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown .has-dropdown:hover .nested-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(26,26,26,0.5) 50%, rgba(220,20,60,0.4) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-content h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b71c1c 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
    border: 2px solid var(--white);
}

.cta-button:hover {
    background: linear-gradient(135deg, #b71c1c 0%, var(--accent-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.6);
}

/* Welcome Section */
.welcome {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.welcome-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.welcome-text {
    flex: 1;
}

.welcome h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.welcome p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.amsterdam-emblem {
    flex-shrink: 0;
    text-align: center;
    animation: floatEmblem 3s ease-in-out infinite;
}

.amsterdam-emblem img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(227, 30, 36, 0.3));
}

.emblem-caption {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes floatEmblem {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* News Section */
.news {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.news h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.news-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.news-item p {
    color: var(--text-color);
    line-height: 1.5;
}

/* Sponsors Section */
.sponsors {
    padding: 4rem 2rem;
    background-color: var(--white);
}

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

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

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    min-height: 150px;
    gap: 1rem;
}

.sponsor-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.sponsor-logo {
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.view-all {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Content Pages */
.page-header {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(26,26,26,0.55) 50%, rgba(220,20,60,0.45) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-header p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-content {
    padding: 3rem 2rem;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.content-section h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-red);
    padding-left: 1rem;
}

.content-section h3 {
    color: var(--accent-red);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    border-top: 4px solid var(--accent-red);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .logo img {
        display: none;
    }

    .main-nav .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu > li > a {
        padding: 1rem;
        display: block;
    }

    .nav-menu > li > a:hover {
        background: rgba(227, 30, 36, 0.9);
    }

    /* Mobile dropdown styles */
    .nav-menu > li:has(.dropdown) > a::after {
        content: '▼';
        float: right;
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

    .nav-menu > li.dropdown-open > a::after {
        transform: rotate(180deg);
    }

    .nav-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
        min-width: 100%;
        border-top: none;
        display: none;
    }

    .nav-menu li.dropdown-open .dropdown {
        display: block;
    }

    .dropdown li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown a {
        color: var(--white);
        padding: 0.8rem 1rem 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .dropdown a:hover {
        background: rgba(227, 30, 36, 0.7);
        padding-left: 2.5rem;
    }

    .nested-dropdown {
        display: none !important;
    }

    .logo h1 {
        padding: 1rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .page-header {
        min-height: 180px;
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .welcome-content {
        flex-direction: column;
        gap: 2rem;
    }

    .amsterdam-emblem img {
        width: 150px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Passed Deadline Styling */
.deadline-passed {
    text-decoration: line-through;
    color: #999;
}

.deadline-passed-notice {
    display: inline-block;
    background: #dc143c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.countdown-expired .countdown-number {
    opacity: 0.5;
}

.countdown-expired .countdown-label {
    opacity: 0.5;
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.notice-banner p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
}

.notice-banner strong {
    color: #664d03;
}

/* Organization Page - Visual Hierarchy */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
}

/* Section Contact - Attached to section */
.section-contact {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-left: 3px solid var(--accent-red);
    font-size: 0.9rem;
}

.section-contact a {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
}

.section-contact a:hover {
    text-decoration: underline;
}

/* Organizer Grid Layouts */
.organizer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

/* Grid layouts based on count */
.organizer-list.count-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.organizer-list.count-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.organizer-list.count-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.organizer-list.count-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* General Chairs - visually dominant */
.organizer-list.general-chairs .organizer-photo {
    width: 140px;
    height: 175px;
}

.organizer-list.general-chairs .organizer-name {
    font-size: 1.15rem;
}

/* Person Card - Standardized */
.organizer-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.organizer-photo {
    width: 120px;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    background: var(--light-bg);
}

.organizer-info {
    text-align: left;
    width: 100%;
}

/* Typography Scale */
.organizer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.organizer-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-red);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organizer-affiliation {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .organizer-list.count-3,
    .organizer-list.count-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .organizer-list.count-1 {
        max-width: 100%;
    }

    .organizer-list.count-2,
    .organizer-list.count-3,
    .organizer-list.count-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .organizer-list.general-chairs .organizer-photo {
        width: 120px;
        height: 150px;
    }

    .organizer-photo {
        width: 100px;
        height: 125px;
    }

    .content-section {
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }
}

/* ============================================================
   Hotels page — hotel cards
   ============================================================ */
.hotel-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
}

.hotel-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3;
    background: var(--light-bg);
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hotel-image:hover img {
    transform: scale(1.04);
}

.hotel-info h2 {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.hotel-stars {
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.hotel-meta {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.hotel-walk {
    display: inline-block;
    background: var(--light-bg);
    color: var(--dark-gray);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

@media (max-width: 720px) {
    .hotel-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================================
   Organizing Institutions — homepage section + organization strip
   ============================================================ */
.institutions {
    padding: 2.5rem 2rem;
    background-color: var(--light-bg);
}

.institutions h2 {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.institutions-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.institutions-strip-section .institutions-subtitle {
    margin-bottom: 1.5rem;
}

.institutions-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.institution-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 170px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.institution-item img {
    max-width: 90%;
    max-height: 145px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.institution-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 20, 60, 0.25);
}

.institutions-strip .institution-item {
    padding: 1rem 0.75rem;
    min-height: 80px;
}

.institutions-strip .institution-item img {
    max-height: 50px;
}

.institution-item.placeholder {
    color: var(--gray);
    font-size: 0.85rem;
    text-align: center;
    background: repeating-linear-gradient(
        45deg,
        var(--white),
        var(--white) 8px,
        var(--light-bg) 8px,
        var(--light-bg) 16px
    );
}

@media (max-width: 900px) {
    .institutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .institutions {
        padding: 3rem 1rem 1.5rem;
    }

    .institutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .institution-item {
        padding: 1.25rem 0.75rem;
        min-height: 110px;
    }

    .institution-item img {
        max-height: 70px;
    }
}

/* SIGMM European Chapter Symposium page */
.sigmm-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.sigmm-intro .sigmm-banner {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .sigmm-intro {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sigmm-intro .sigmm-banner {
        max-width: 200px;
        margin: 0 auto;
    }
}


/* Social Programme galleries */
.social-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.social-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .social-gallery {
        grid-template-columns: 1fr;
    }
}

/* Invited Speakers */
.speaker {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-bg);
}

.speaker:first-of-type {
    border-top: none;
    padding-top: 0.5rem;
}

.speaker-photo {
    width: 140px;
    height: 175px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light-bg);
}

.speaker h3 {
    margin-bottom: 0.25rem;
}

.speaker-affiliation {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .speaker {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .speaker-photo {
        align-self: center;
    }
}
