/* 
  Math Teachers' Math Trip (수학샘들의 수학여행)
  Aesthetic Styling Guide: Dark Mode, Glassmorphism, Micro-interactions
*/

/* -------------------------------------------------------------
   1. Theme Variables & Reset
   ------------------------------------------------------------- */
:root {
    --bg-base: #090d16;
    --bg-surface: rgba(15, 23, 42, 0.45);
    --bg-card: rgba(30, 41, 59, 0.5);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --accent-cyan: #06b6d4;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    
    --glow-cyan: rgba(6, 182, 212, 0.2);
    --glow-violet: rgba(139, 92, 246, 0.25);
    --glow-pink: rgba(236, 72, 153, 0.2);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    --font-outfit: 'Outfit', 'Noto Sans KR', sans-serif;
    --font-noto: 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-noto);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -------------------------------------------------------------
   2. Background Light Orbs (Glowing Effects)
   ------------------------------------------------------------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-violet) 0%, rgba(139, 92, 246, 0) 70%);
    top: -200px;
    left: -200px;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(6, 182, 212, 0) 75%);
    bottom: -150px;
    right: -100px;
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-pink) 0%, rgba(236, 72, 153, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* -------------------------------------------------------------
   3. Glassmorphism Card Utility
   ------------------------------------------------------------- */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   4. App Container & Hero Section
   ------------------------------------------------------------- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 140px; /* Leave space at bottom for floating quick nav */
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #c084fc 70%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.02);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* -------------------------------------------------------------
   5. Main Grid Layout
   ------------------------------------------------------------- */
.main-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 32px;
    align-items: start;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.layout-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.layout-right {
    position: sticky;
    top: 24px;
}

/* Info Card Components */
.info-card {
    padding: 32px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
}

.card-header h2 {
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-icon {
    font-size: 28px;
    padding: 8px;
    border-radius: 12px;
}

.icon-cyan {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.icon-violet {
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.05);
}

.icon-pink {
    color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.05);
}

/* -------------------------------------------------------------
   6. Left Side: Overview & Contact Details
   ------------------------------------------------------------- */
.overview-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.overview-item:last-child {
    margin-bottom: 0;
}

.overview-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.overview-value {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
}

/* Contact List Grid */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: var(--transition-quick);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-role {
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-quick);
    cursor: pointer;
}

.contact-btn:hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    color: #ffffff;
    box-shadow: 0 0 15px var(--glow-violet);
    transform: translateY(-1px);
}

.contact-btn span.material-icons-round {
    font-size: 18px;
}

/* -------------------------------------------------------------
   7. Right Side: Vertical Timeline Section
   ------------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
    margin-left: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-violet) 50%, var(--accent-pink) 100%);
    opacity: 0.7;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--text-muted);
    transition: var(--transition-smooth);
    z-index: 2;
}

.timeline-time {
    font-family: var(--font-outfit);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    transition: var(--transition-quick);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 16px 20px;
    transition: var(--transition-smooth);
}

.timeline-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.timeline-desc strong {
    color: #f1f5f9;
}

/* Timeline Highlighting & Interactions */
.timeline-item.item-highlight .timeline-dot {
    background: var(--accent-cyan);
    border-color: #ffffff;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-item.item-highlight .timeline-time {
    color: var(--accent-cyan);
}

.timeline-item.item-highlight .timeline-content {
    background: rgba(6, 182, 212, 0.03);
    border-color: rgba(6, 182, 212, 0.15);
}

.timeline-item.item-highlight:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* Active Highlight (when corresponding card is highlighted) */
.timeline-item.active .timeline-dot {
    background: var(--accent-pink);
    border-color: #ffffff;
    box-shadow: 0 0 15px var(--accent-pink);
}

.timeline-item.active .timeline-time {
    color: var(--accent-pink);
}

.timeline-item.active .timeline-content {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline Internal Action Button */
.timeline-action-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}

.timeline-action-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* -------------------------------------------------------------
   8. Bottom Navigation Bar (Frosted Glass & Glowing Button Panel)
   ------------------------------------------------------------- */
.quick-nav-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 900px;
    padding: 16px 20px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.quick-nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 12px 8px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-quick);
    text-align: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-btn .btn-icon {
    font-size: 24px;
    transition: var(--transition-quick);
}

/* Hover Colors for specific buttons */
#btn-mat-1:hover .btn-icon { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }
#btn-mat-2:hover .btn-icon { color: var(--accent-violet); text-shadow: 0 0 10px var(--accent-violet); }
#btn-mat-3:hover .btn-icon { color: var(--accent-pink); text-shadow: 0 0 10px var(--accent-pink); }

.nav-btn.btn-highlight {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-indigo) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.nav-btn.btn-highlight:hover {
    background: linear-gradient(135deg, #a78bfa 0%, var(--accent-violet) 100%);
    border-color: #a78bfa;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* -------------------------------------------------------------
   9. Slide-In Modal Drawer Panels
   ------------------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-quick);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #0b111e;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.drawer.active {
    transform: translateX(-480px);
}

.drawer-large {
    right: -720px;
    max-width: 720px;
}

.drawer-large.active {
    transform: translateX(-720px);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
}

.drawer-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-outfit);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: rotate(90deg);
}

.drawer-close span {
    font-size: 22px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Drawer Detail Elements */
.detail-section {
    margin-bottom: 28px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section h3 span.material-icons-round {
    font-size: 18px;
}

.detail-section p {
    font-size: 14.5px;
    color: var(--text-secondary);
}

.detail-section ul {
    list-style-type: none;
    padding-left: 0;
}

.detail-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-section ul li::before {
    content: "•";
    color: var(--accent-violet);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 4px;
    top: -2px;
}

.text-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* -------------------------------------------------------------
   10. Drawer Embedded Images
   ------------------------------------------------------------- */
.image-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.image-container img:hover {
    transform: scale(1.03);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.grid-item img:hover {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.grid-item span {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-grid-2 {
    gap: 20px;
}

.image-grid-2 .grid-item img {
    border-radius: 14px;
}

/* -------------------------------------------------------------
   11. Drawer: Search & Participant Table
   ------------------------------------------------------------- */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

#participant-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 20px 12px 48px;
    color: var(--text-primary);
    font-size: 14.5px;
    outline: none;
    font-family: var(--font-noto);
    transition: var(--transition-quick);
}

#participant-search:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-count {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Table */
.table-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
}

.participant-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.participant-table th {
    background: rgba(15, 23, 42, 0.5);
    padding: 16px 20px;
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.participant-table td {
    padding: 14px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-quick);
}

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

.participant-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-primary);
}

/* Badges for roles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.badge-president {
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.25);
    color: var(--accent-pink);
}

.badge-vice {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.badge-staff {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
}

.badge-member {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: var(--accent-orange);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
}

.no-results span {
    font-size: 44px;
}

.no-results p {
    font-size: 14px;
}

/* -------------------------------------------------------------
   12. Responsive Styling (Media Queries)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .layout-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 40px 16px 160px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .info-card {
        padding: 24px;
    }

    /* Floating navigation layouts for mobile */
    .quick-nav-container {
        width: 100%;
        bottom: 0;
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .quick-nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 4px;
        border-radius: 12px;
    }

    .nav-btn .btn-text {
        font-size: 10.5px;
    }

    .nav-btn .btn-icon {
        font-size: 20px;
    }

    /* Modal Drawers slide up from bottom on mobile instead of right */
    .drawer {
        top: auto;
        bottom: -100%;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 85%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        border-radius: 24px 24px 0 0;
        transform: translateY(0);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .drawer.active {
        transform: translateY(-100%);
    }

    .drawer-large {
        height: 90%;
        right: 0;
        max-width: 100%;
    }

    .drawer-large.active {
        transform: translateY(-100%);
    }

    .drawer-header {
        padding: 18px 24px;
    }

    .drawer-body {
        padding: 24px;
        padding-bottom: 120px !important;
    }

    .image-grid {
        gap: 12px;
    }
}

/* -------------------------------------------------------------
   12b. Additional Mobile Optimizations
   ------------------------------------------------------------- */
@media (max-width: 640px) {
    .nav-detail {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Transform Participant Table into Mobile Contact Cards */
    .participant-table, .participant-table tbody, .participant-table tr, .participant-table td {
        display: block;
        width: 100%;
    }
    .participant-table thead {
        display: none;
    }
    .participant-table tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 16px;
        background: rgba(255, 255, 255, 0.015);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 16px;
        margin-bottom: 12px;
        gap: 8px;
    }
    .participant-table td {
        padding: 0;
        border: none;
    }
    .participant-table tr td:nth-child(1) { /* Num */
        order: 1;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.06);
        padding: 2px 8px;
        border-radius: 6px;
        color: var(--text-secondary);
    }
    .participant-table tr td:nth-child(4) { /* Name */
        order: 2;
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
        margin-right: auto;
    }
    .participant-table tr td:nth-child(5) { /* Note */
        order: 3;
    }
    .participant-table tr td:nth-child(2) { /* School */
        order: 4;
        flex-basis: 100%;
        font-size: 13.5px;
        color: var(--text-secondary);
        margin-top: 4px;
    }
    .participant-table tr td:nth-child(3) { /* Role */
        order: 5;
        font-size: 13px;
        color: var(--text-muted);
    }
    .participant-table tr td:nth-child(3)::before {
        content: "• ";
        color: var(--accent-violet);
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    /* Stack contact cards vertically */
    .contact-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    .contact-info {
        align-items: center;
    }
    .contact-btn {
        justify-content: center;
    }

    /* Change image grid to single column */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    /* Layout card padding tweaks */
    .info-card {
        padding: 20px 16px;
    }
    
    .timeline {
        padding-left: 20px;
        margin-left: 4px;
    }
    
    .timeline-dot {
        left: -29px;
        width: 14px;
        height: 14px;
        top: 5px;
    }
    
    .timeline-time {
        font-size: 12.5px;
    }
    
    .timeline-content {
        padding: 12px 14px;
    }
    
    /* Title sizing */
    .hero-title {
        font-size: 30px;
        letter-spacing: -0.5px;
    }
}

/* -------------------------------------------------------------
   12c. Image Lightbox Viewer
   ------------------------------------------------------------- */
.zoomable-image {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.zoomable-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.image-viewer-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-modal img {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
}

.image-viewer-modal.active img {
    transform: scale(1);
}

.viewer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-quick);
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.viewer-close span {
    font-size: 24px;
}

.viewer-caption {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    font-family: var(--font-noto);
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
   13. Animation Keyframes
   ------------------------------------------------------------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
