/* Fonts - Modern & Premium */
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');

:root {
    /* Vibrant Modern Color Palette */
    --primary: #6366f1;
    /* Vibrant Indigo */
    --primary-light: #818cf8;
    /* Light Indigo */
    --primary-dark: #4f46e5;
    /* Deep Indigo */
    --secondary: #ec4899;
    /* Vibrant Pink */
    --accent: #14b8a6;
    /* Teal */
    --success: #10b981;
    /* Emerald */
    --warning: #f59e0b;
    /* Amber */
    --error: #ef4444;
    /* Red */

    /* Backgrounds */
    --bg-color: #fafaff;
    /* Subtle violet tint */
    --bg-gradient: linear-gradient(135deg, #fafaff 0%, #f5f3ff 100%);
    --card-bg: #ffffff;

    /* Text */
    --text-color: #1e1b4b;
    /* Deep Indigo */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Borders */
    --border-color: #e9d5ff;
    /* Violet 200 */
    --border-light: #f3e8ff;
    /* Violet 100 */

    /* Shadows - Enhanced */
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08);
    --shadow-md: 0 4px 20px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 8px 30px rgba(99, 102, 241, 0.15);
    --shadow-xl: 0 20px 50px rgba(99, 102, 241, 0.2);

    /* Glow Effects */
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.3);
    --glow-secondary: 0 0 30px rgba(236, 72, 153, 0.3);
}

/* Simple Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    font-family: 'Kosugi Maru', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-weight: 400;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 2em 15px;
}

/* 文字のシャギーを防ぐ効果（Lightboxなど固定要素に影響を与えないラッパー） */
.t-pass-wrapper {
    transform: rotate(0.03deg);
}

/* Form Layout (Old classes) */
.form-wrapper {
    background: #fafafa;
    margin: 3em auto;
    padding: 3em 1em;
    max-width: 370px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

#ticketstable {
    max-width: 800px;
    margin: 2em auto;
    background: white;
    padding: 1em;
    border-radius: 10px;
}

/* New layout mapping */
.card {
    margin-left: auto;
    margin-right: auto;
    max-width: 950px;
    padding: 3em 40px;
    background-color: var(--card-bg);
    border-radius: 24px;
    /* More rounded */
    box-shadow: var(--shadow-lg);
    /* Larger shadow for depth */
    margin-bottom: 2em;
    border: none;
    /* Removed border */
}

@media screen and (max-width: 480px) {
    .card {
        padding: 1.5em 20px;
        border-radius: 16px;
        box-shadow: var(--shadow-md);
    }
}

h1,
h2 {
    text-align: center;
    padding: 1em 0;
    color: var(--text-color);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Form Elements */
form {
    padding: 0 1em;
}

.form-group {
    margin-bottom: 2em;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    padding: 14px 16px;
    transition: all 0.2s ease-in-out;
    width: 100%;
    appearance: none;
    /* Remove default browser styling */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--ring-color);
}

/* Updated Buttons - Modern & Vibrant */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    padding: 16px 40px;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5), var(--glow-primary);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn--disabled {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn--disabled:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: none;
    box-shadow: none;
}

.btn--disabled::before {
    display: none;
}

.btn-large {
    font-size: 1.375rem;
    padding: 20px 56px;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-large:hover {
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5), var(--glow-primary);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

table th {
    padding: 1em 0.5em;
    text-align: center;
    background-color: #c3fef5;
    color: #000;
    border: 1px solid #ade8df;
}

table td {
    background: #fef5c3;
    padding: 1em 0.5em;
    border: 1px solid #f2e9b8;
}

table tr:nth-child(odd) td {
    background: #fff;
}

tbody tr td:nth-child(even) {
    text-align: center;
}

/* Selection Cards (Workshops/Bento) */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.selection-option {
    position: relative;
    cursor: pointer;
}

.selection-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.selection-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 0 #e2e8f0;
    margin-bottom: 4px;
}

.selection-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 4/3;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.selection-option input[type="radio"]:checked+.selection-card {
    border-color: var(--primary);
    background: #eef2ff;
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--primary);
}

.selection-option input[type="radio"]:checked+.selection-card img {
    opacity: 1;
}

.selection-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px) rotate(0.03deg);
    box-shadow: 0 6px 0 var(--border-color);
}

.selection-option input[type="radio"]:checked+.selection-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(4px) rotate(0.03deg);
    box-shadow: 0 0 0 var(--primary-dark);
}

.selection-card .title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Specific workshop group headers */
.ws-group h3 {
    position: relative;
    padding: 1rem 1.5rem;
    color: #fff;
    border-radius: 10px;
    background: #094;
    clear: both;
    margin: 1.5em 0;
    font-size: 1.2rem;
    text-align: left;
}

.ws-group h3:after {
    position: absolute;
    bottom: -9px;
    left: 1.5rem;
    width: 0;
    height: 0;
    content: '';
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #094 transparent transparent transparent;
}

.ws-group-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #094;
    border-bottom: 2px solid #094;
    padding-bottom: 10px;
}

/* Modals */
#processingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Misc Boxes */
.informationbox {
    width: 90%;
    margin: 2em auto;
    background-color: #FFF;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 2em;
    box-shadow: var(--shadow-sm);
}

.confirmdl {
    background-color: #FFF;
    max-width: 680px;
    margin: 1em auto;
    border: 2px dotted #ccc;
    border-radius: 30px;
    padding: 2em;
}

.confirmdl dl dt {
    padding: 0.8em 1em;
    background-color: #ffebbb;
    border-bottom: 2px dotted #ffcab0;
    border-left: 5px solid #ffcab0;
    font-weight: bold;
}

.confirmdl dl dd {
    padding: 1em;
    margin: 0.5em 0 1em 1em;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-available {
    background: #e6fffa;
    color: #319795;
}

.badge-full {
    background: #fff5f5;
    color: #e53e3e;
}

footer {
    text-align: center;
    padding: 3em 0;
    color: var(--text-muted);
}

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1em;
}

.table-responsive table {
    margin-bottom: 0;
    white-space: nowrap;
}

@media screen and (max-width: 480px) {

    table th,
    table td {
        padding: 0.8em 0.4em;
        font-size: 0.9rem;
    }
}

/* Generic Modal Styles */
#processingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 400px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fixed CTA (Mobile Sticky, Desktop Static) */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
}

.fixed-cta .btn {
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

@media screen and (min-width: 768px) {
    .fixed-cta {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 40px 0;
        border: none;
    }

    .fixed-cta .btn {
        width: auto;
        min-width: 300px;
        padding: 16px 40px;
        font-size: 1.25rem;
    }
}

/* Base Font Adjustment for Mobile to prevent Zoom */
@media screen and (max-width: 480px) {
    html {
        font-size: 16px;
        /* Ensure 16px base to prevent iOS zoom on input focus */
    }

    body {
        padding-bottom: 80px;
        /* Space for fixed CTA */
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        /* 16px */
    }
}

/* Workshop Table Styles - Dark Blue & Consistent */
.ws-table {
    width: 100%;
    border-collapse: collapse;
    /* Changed to collapse for cleaner borders */
    table-layout: fixed;
    /* Fix column widths */
    margin: 0;
    font-size: 0.95rem;
}

/* Column Widths */
.ws-table col:nth-child(1) {
    width: 15%;
}

/* Code */
.ws-table col:nth-child(2) {
    width: 35%;
}

/* Title */
.ws-table col:nth-child(3) {
    width: 20%;
}

/* Facilitator */
.ws-table col:nth-child(4) {
    width: 15%;
}

/* Venue */
.ws-table col:nth-child(5) {
    width: 15%;
}

/* Capacity */


.ws-table th {
    background-color: #3a50a5;
    /* Lighter Blue as requested */
    color: #ffffff;
    font-weight: 600;
    padding: 12px 8px;
    border: 1px solid #334155;
    /* Darker border for header */
    text-align: center;
    /* Headers always centered */
    white-space: nowrap;
}

.ws-table td {
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: #fff;
    vertical-align: middle;
    text-align: center;
    white-space: normal;
    /* Default center for Code, Venue, Capacity */
}

/* Left align specific columns: Title (2), Facilitator (3) */
.ws-table td:nth-child(2),
.ws-table td:nth-child(3) {
    text-align: left;
}

/* Striped rows */
.ws-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* User Profile & Confirmation Actions */
.confirm-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

.confirm-actions .btn-secondary {
    width: 160px;
}

.confirm-actions .btn-primary {
    width: 240px;
}

@media screen and (max-width: 480px) {
    .confirm-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .confirm-actions form {
        width: 100%;
    }

    .confirm-actions .btn {
        width: 100%;
        max-width: none;
    }

    .confirm-actions .btn-secondary,
    .confirm-actions .btn-primary {
        width: 100%;
    }
}

/* ============================================
   Event Detail Page Styles
   ============================================ */

/* Event Detail Container */
.event-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* HERO Section - Premium Design */
.hero {
    position: relative;
    margin-bottom: 80px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(245, 243, 255, 0.95) 50%,
            rgba(237, 233, 254, 0.9) 100%);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.hero__media {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.hero:hover .hero__image {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#lightboxCaption {
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    margin-top: 16px;
}

.lightbox-trigger {
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-trigger:hover {
    opacity: 0.8;
}

/* Workshop Eyecatch Image */
.ws-row__image {
    margin: 10px auto;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
}

.ws-row__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(99, 102, 241, 0.2) 0%,
            rgba(30, 27, 75, 0.4) 70%,
            rgba(30, 27, 75, 0.7) 100%);
}

.hero__content {
    padding: 64px 48px;
    text-align: center;
    position: relative;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.hero__status {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Venue Link */
.venue-link {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.venue-link:hover {
    color: var(--primary-dark);
    text-decoration-style: solid;
}

/* Status Badges - Modern & Vibrant */
.badge--pre {
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
    color: #78350f;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    border: 2px solid #fbbf24;
}

.badge--open {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), var(--glow-primary);
    border: 2px solid#34d399;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.3);
    }
}

.badge--closed {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    color: #7f1d1d;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    border: 2px solid #fca5a5;
}

.badge--ended {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #374151;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
    border: 2px solid #d1d5db;
}

/* Hero Meta Information - Card Grid */
.hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: left;
}

.hero__metaItem {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero__metaItem:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.hero__metaItem dt {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero__metaItem dd {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.hero__metaItem--small dd {
    font-size: 1rem;
}

/* Hero CTA */
.hero__cta {
    margin: 40px 0 32px;
    display: flex;
    justify-content: center;
}

.hero__note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    padding: 16px 32px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    display: inline-block;
    border: 1px dashed var(--border-color);
}

/* Section Common Styles */
.section {
    margin-bottom: 60px;
}

.section__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section__empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--bg-color);
    border-radius: 12px;
}

/* About Section (Description) */
.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.8;
    color: var(--text-color);
}

.prose ul.description-list {
    list-style: none;
    padding-left: 0;
    margin: 1em 0;
}

.prose ul.description-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.5em;
    line-height: 1.8;
}

.prose ul.description-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: bold;
}

/* Prose Headings (Left Aligned for Markdown) */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    text-align: left;
    padding: 1.5em 0 0.5em 0;
    color: var(--primary-dark);
}

.prose h1 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0.5em;
}

.prose h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5em;
}

.prose h3 {
    font-size: 1.25rem;
}

/* How-to Section - Enhanced */
.howto {
    max-width: 900px;
    margin: 0 auto;
}

.howto__rule {
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
    border: 3px solid var(--warning);
    padding: 28px;
    text-align: center;
    margin-bottom: 48px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.howto__rule::before {
    content: '⚠';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 60px;
    opacity: 0.1;
}

.howto__ruleText {
    font-size: 1.25rem;
    font-weight: 800;
    color: #78350f;
    margin: 0;
    position: relative;
    z-index: 1;
}

.howto__steps {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 48px 0;
    padding: 0;
    list-style: none;
}

.howto__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 220px;
    transition: transform 0.3s ease;
}

.howto__step:hover {
    transform: translateY(-6px);
}

.howto__stepNum {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    position: relative;
}

.howto__stepNum::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.howto__step:hover .howto__stepNum::after {
    opacity: 1;
}

.howto__stepText {
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    font-size: 1.05rem;
}

.howto__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #854d0e;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 32px;
    padding: 24px;
    background: #fef9c3;
    border-radius: 12px;
    border: 2px solid #facc15;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.howto__hint::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 2px solid #ca8a04;
    color: #ca8a04;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
    font-family: monospace;
}

/* Timetable Section - Accordion Based */
.timetable {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* TimeSlot - Accordion Sections */
.timeslot {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeslot[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.timeslot__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.timeslot__header::-webkit-details-marker {
    display: none;
}

.timeslot__header:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.timeslot__title {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.timeslot__label {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.timeslot__time {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

.timeslot__rule {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.timeslot__toggle {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 8px;
}

.timeslot[open] .timeslot__toggle {
    transform: rotate(180deg);
}

.timeslot__content {
    padding: 0;
}

.timeslot__empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}

/* Workshop List - Row Based (NOT Cards) */
.ws-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Workshop Row - Compact 2-line Layout */
/* Workshop Row - List View (Read Only) */
.ws-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    min-height: 60px;
}

.ws-row:last-child {
    border-bottom: none;
}

.ws-row--full {
    background-color: #f9fafb;
}

/* WS Header - Code & Status */
.ws-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ws-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.ws-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
    /* Right align if code uses space */
}

.ws-status--available {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.ws-status--low {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.ws-status--full {
    color: var(--text-muted);
    background: #e5e7eb;
}



/* WS Row Main - 2 Line Structure */
.ws-row__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    /* Enable text truncation */
}

.ws-row__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.ws-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Workshop Chips - Icon + Text (NO dt/dd labels) */
.ws-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--bg-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-color);
    border: 1px solid var(--border-light);
    white-space: normal;
    word-break: break-word;
}

.ws-chip__icon {
    font-size: 0.875rem;
    line-height: 1;
}

.ws-chip__text {
    font-weight: 500;
}

.ws-chip--speaker {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.ws-chip--room {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.2);
}

.ws-chip--seats {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    font-weight: 600;
}

.ws-chip--low {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #78350f;
    font-weight: 700;
}

.ws-chip--full {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #7f1d1d;
    font-weight: 700;
}

/* WS Row Action - Fixed Right Buttons */
/* WS Row Action removed for read-only view */

/* WS Row Details - Collapsible (Code + Description) */
.ws-row__details {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.ws-row__details-toggle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 4px 0;
}

.ws-row__details-toggle::-webkit-details-marker {
    display: none;
}

.ws-row__details-toggle::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.2s ease;
}

.ws-row__details[open] .ws-row__details-toggle::before {
    transform: rotate(90deg);
}

.ws-row__details-toggle:hover {
    color: var(--primary-dark);
}

.ws-row__details-content {
    padding: 12px 0 4px;
    border-top: 1px dashed var(--border-color);
    margin-top: 8px;
}

.ws-row__code {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.ws-row__description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Responsive - Mobile Adjustments */
@media screen and (max-width: 768px) {
    .timeslot__header {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .timeslot__title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .timeslot__label {
        font-size: 1.25rem;
    }

    .timeslot__time {
        font-size: 0.95rem;
    }

    .timeslot__rule {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .ws-row {
        gap: 12px;
        padding: 12px 16px;
        min-height: auto;
    }

    /* .ws-row__meta default wrap is better for compactness */
    .ws-row__meta {
        gap: 6px;
    }

    .ws-chip {
        width: 100%;
        justify-content: flex-start;
    }
}

.timetable {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeslot {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.timeslot:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.timeslot__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.timeslot__header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.timeslot__title {
    flex: 1;
    z-index: 1;
}

.timeslot__label {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.timeslot__time {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

.timeslot__rule {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.timeslot__workshops {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    background: linear-gradient(to bottom,
            rgba(249, 250, 251, 0.5) 0%,
            rgba(255, 255, 255, 0.3) 100%);
}

/* Workshop Card - Elevated Design */
.ws {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(253, 253, 255, 1) 100%);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.ws::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ws:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-6px);
}

.ws:hover::before {
    opacity: 1;
}

.ws__image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.ws__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ws:hover .ws__image img {
    transform: scale(1.08);
}

.ws__main {
    flex: 1;
    padding: 24px;
}

.ws__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ws__speaker {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws__speaker::before {
    content: '👤';
    font-size: 0.875rem;
}

.ws__description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
    opacity: 0.85;
}

.ws__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.ws__metaItem {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    padding: 12px;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.03) 0%,
            rgba(99, 102, 241, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.ws__metaItem dt {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws__metaItem dd {
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.ws__capacity {
    font-weight: 700;
    color: var(--success);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ws__capacity::before {
    content: '✓';
    font-size: 1rem;
}

.ws__capacity--full {
    color: var(--error);
}

.ws__capacity--full::before {
    content: '✕';
}

.ws__action {
    padding: 20px 24px 24px;
    text-align: center;
    background: linear-gradient(to top,
            rgba(249, 250, 251, 0.8) 0%,
            transparent 100%);
}

.ws__selectHint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
}

.ws__selectHint::before {
    content: '→';
    font-size: 1.125rem;
}

/* CTA Section */
.section--cta {
    margin-bottom: 80px;
}

.cta {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.cta__rule {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.cta__deadline {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 32px 0;
}

/* Button Variations */
.btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn--disabled:hover {
    background: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.btn-large {
    font-size: 1.25rem;
    padding: 18px 48px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__content {
        padding: 32px 24px;
    }

    .hero__meta {
        gap: 12px;
    }

    .hero__metaItem {
        grid-template-columns: 100px 1fr;
        padding: 12px;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .howto__steps {
        flex-direction: column;
        gap: 16px;
    }

    .howto__step {
        flex-direction: row;
        max-width: 100%;
    }

    .howto__stepNum {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .timeslot__header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 20px;
    }

    .timeslot__label {
        font-size: 1.25rem;
    }

    .timeslot__workshops {
        padding: 16px;
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 32px 24px;
    }

    .btn-large {
        font-size: 1.125rem;
        padding: 16px 32px;
        width: 100%;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(99, 102, 241, 0.12);
    animation: consentSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes consentSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consent-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.consent-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.consent-text a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-text a:hover {
    color: var(--primary-dark);
}

.consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.consent-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.consent-btn--accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.consent-btn--accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.consent-btn--decline {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
}

.consent-btn--decline:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
    color: var(--text-color);
}

@media screen and (max-width: 600px) {
    .consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .consent-buttons {
        justify-content: center;
    }

    .consent-btn {
        flex: 1;
        text-align: center;
    }
}