

        :root {
            --c1: #ff6b6b;
            --c2: #feca57;
            --c3: #48dbfb;
            --c4: #a29bfe;
            --c5: #54a0ff;
            --c6: #00d2d3;
            --c7: #5f27cd;
            --c8: #01a3a4;
            --c9: #f368e0;
            --c10: #ff9f43;
            --text: #2d3436;
            --text2: #636e72;
            --white: #ffffff;
            --bg: #fafafa;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Noto Sans TC', sans-serif;
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            font-weight: 400;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ─── Animated Background Blobs ─── */
        .bg-blobs {
            position: fixed;
            inset: 0;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }
        .blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.15;
            animation: blobFloat 20s ease-in-out infinite alternate;
        }
        .blob:nth-child(1) { width: 500px; height: 500px; background: var(--c1); top: -10%; left: -5%; animation-duration: 18s; }
        .blob:nth-child(2) { width: 400px; height: 400px; background: var(--c3); bottom: 10%; right: -5%; animation-duration: 22s; animation-delay: 2s; }
        .blob:nth-child(3) { width: 350px; height: 350px; background: var(--c4); top: 40%; left: 50%; animation-duration: 25s; animation-delay: 4s; }
        .blob:nth-child(4) { width: 300px; height: 300px; background: var(--c6); top: 60%; left: 10%; animation-duration: 20s; animation-delay: 6s; }

        @keyframes blobFloat {
            0% { transform: translate(0, 0) scale(1) rotate(0deg); }
            33% { transform: translate(30px, -40px) scale(1.1) rotate(120deg); }
            66% { transform: translate(-20px, 30px) scale(0.9) rotate(240deg); }
            100% { transform: translate(10px, -10px) scale(1.05) rotate(360deg); }
        }

        .skip-link { position: absolute; top: -100px; left: 0; z-index: 10000; }
        .skip-link:focus { top: 0; }

        /* ─── Hero & Particles ─── */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
			background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--c1) 0%, var(--c4) 25%, var(--c3) 50%, var(--c6) 75%, var(--c10) 100%);
            background-size: 400% 400%;
            animation: heroGradient 12s ease infinite;
            opacity: 0.9;
        }
        @keyframes heroGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
        
        .hero-particle {
            position: absolute;
            bottom: -60px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            pointer-events: none;
            animation: floatUp linear infinite;
        }
        @keyframes floatUp {
            0% { transform: translateY(0) rotate(0deg); opacity: 0; }
            10% { opacity: 0.6; }
            90% { opacity: 0.6; }
            100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
        }
        
        .hero-png-plane {
            position: absolute;
            left: 0;
            width: clamp(45px, 5vw, 80px); 
            height: auto;
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            will-change: transform;
            animation: planeFlyHorizontal linear infinite;
        }
        
        .plane-1 { top: 12%; animation-duration: 16s; animation-delay: 0s; }
        .plane-2 { top: 35%; animation-duration: 22s; animation-delay: 4s; width: clamp(35px, 4vw, 60px); }
        .plane-3 { top: 60%; animation-duration: 19s; animation-delay: 9s; }
        .plane-4 { top: 80%; animation-duration: 26s; animation-delay: 15s; width: clamp(40px, 4.5vw, 75px); }
        
        @keyframes planeFlyHorizontal {
            0% { transform: translateX(-120px); opacity: 0; }
            5% { opacity: 0.4; }
            92% { opacity: 0.4; }
            100% { transform: translateX(105vw); opacity: 0; }
        }
        
        .hero-content { 
			position: relative; 
			z-index: 2; 
			text-align: center; 
			padding: 0 16px;
			width: 100%;
			max-width: 900px;
			margin: 0 auto;
		}

        .hero-badge {
            display: inline-block;
            padding: 8px 28px;
            border: 2px solid rgba(255,255,255,0.5);
            border-radius: 100px;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 4px;
            color: #fff;
            margin-bottom: 24px;
            animation: heroBadgeIn 1s ease 0.2s both;
            backdrop-filter: blur(8px);
            background: rgba(255,255,255,0.1);
        }
        @keyframes heroBadgeIn { from { opacity: 0; transform: translateY(-30px) scale(0.8); } to { opacity: 1; transform: translateY(0) scale(1); } }

		/* Standard Desktop Size */
		.hero-sub {
			font-size: 30px;
			color: rgba(255, 255, 255, 0.95);
			font-weight: 300;
			margin-top: 16px;
			letter-spacing: 1.5px;
			line-height: 1.4;
			padding: 0 10px;
			animation: heroSubIn 1s ease 0.6s both;
		}
        @keyframes heroSubIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

        .hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; animation: heroScrollIn 1s ease 1s both; }
        @keyframes heroScrollIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
        .hero-scroll span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative; }
        .hero-scroll span::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.5s ease-in-out infinite; }
        @keyframes scrollDot { 0%,100% { top: 6px; opacity: 1; } 50% { top: 18px; opacity: 0.3; } }
        
		.hero-logo {
			display: block;
			margin: 0 auto 20px;
			max-width: 350px;
			width: 35vw;
			height: auto;
			animation: heroImgIn 1s ease 0.2s both;
			filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
		}

		.hero-title {
			/* font-size: clamp(1.6rem, 6vw, 4.5rem); */ /* Scaled down for mobile viewports */
			font-size: clamp(1.16rem, 6vw, 3.26rem);
			font-weight: 900;
			color: #fff;
			line-height: 1.15;
			word-break: break-word;              /* Prevents horizontal overflow */
			text-shadow: 0 4px 30px rgba(0,0,0,0.15);
			animation: heroTitleIn 1s ease 0.4s both;
			position: relative;
			z-index: 2;
		}
		
		/* Desktop/Base Language Variations */
		html[lang*="zh"] .hero-sub,
		html[lang*="zh-CN"] .hero-sub,
		html[lang*="zh-Hans"] .hero-sub,
		body.chinese .hero-sub,
		body.sc .hero-sub {
			font-size: clamp(1.2rem, 3.5vw, 40px);
		}
		
		html[lang="en"] .hero-sub,
		body:not(.chinese):not(.sc) .hero-sub {
			font-size: clamp(1rem, 2.2vw, 30px);
		}
		
		/* Mobile Viewport Overrides (Max-width: 768px) */
		@media (max-width: 768px) {
			/* Chinese version: zh, zh-HK, zh-CN, zh-Hans */
			html[lang*="zh"] .hero-sub,
			html[lang*="zh-CN"] .hero-sub,
			html[lang*="zh-Hans"] .hero-sub,
			body.chinese .hero-sub,
			body.sc .hero-sub {
				font-size: 1rem !important;
			}
		
			/* English version: en */
			html[lang="en"] .hero-sub {
				font-size: 0.7rem !important;
			}
		}

        @keyframes heroTitleIn { from { opacity: 0; transform: translateY(50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

        /* ─── Navigation ─── */
        .nav-strip { 
            position: sticky; 
            top: 0; 
            z-index: 100; 
            background: rgba(255,255,255,0.85); 
            backdrop-filter: blur(20px); 
            border-bottom: 1px solid rgba(0,0,0,0.06); 
            padding: 0 20px; 
            transition: background-color 0.3s ease;
        }
        .mobile-menu-toggle { display: none; }
        
        .nav-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
        .nav-strip-inner::-webkit-scrollbar { display: none; }
        
        .nav-strip a { flex-shrink: 0; padding: 8px 18px; border-radius: 100px; font-size: clamp(0.95rem, 1.2vw, 1.1rem); font-weight: 600; color: var(--text2); text-decoration: none; transition: all 0.3s ease; border: 1px solid transparent; white-space: nowrap; }
        .nav-strip a:hover { color: var(--text); border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.03); }
        .nav-strip a.active { color: #fff; background: linear-gradient(135deg, var(--c7), var(--c9)); border-color: transparent; }
		
		
		.nav-strip {
			padding: 0 16px;
		}
		
		.nav-strip-inner {
			max-width: 1100px;
			margin: 0 auto;
			padding: 10px 8px;
			display: flex;
			justify-content: center;
			gap: 4px;
			overflow-x: auto;
			scrollbar-width: none;
		}
		
		.nav-strip a {
			font-size: 0.95rem;
			padding: 8px 16px;
			flex-shrink: 0;
		}
		
		.lang-switcher {
			margin-left: 8px;
			flex-shrink: 0;
		}
		
		/* Slightly smaller on medium screens */
		@media (max-width: 1050px) {
			.nav-strip a {
				font-size: 0.88rem;
				padding: 7px 12px;
			}
		}
		
		@media (max-width: 900px) {
			.nav-strip a {
				font-size: 0.82rem;
				padding: 6px 10px;
			}
			.lang-switcher {
				margin-left: 4px;
			}
		}
		
		/* ===== Mobile: restore collapse behaviour ===== */
		@media (max-width: 768px) {
    .nav-strip {
        padding: 0;
        background: #8583ff;
        border-bottom: none;
    }

    .nav-strip-inner {
        display: none;                    /* collapsed by default */
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        
        /* === SCROLLING & ACCESSIBILITY FIXES === */
        max-height: calc(100vh - 60px);   /* Constrains height to fit mobile viewport */
        overflow-y: auto;                 /* Enables vertical scrolling for overflow items */
        -webkit-overflow-scrolling: touch;/* Smooth momentum scrolling for iOS */
    }

    /* When the hamburger is opened */
    .nav-strip.menu-open .nav-strip-inner {
        display: flex !important;
    }

    .nav-strip.menu-open .hamburger-icon div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-strip.menu-open .hamburger-icon div:nth-child(2) { opacity: 0; }
    .nav-strip.menu-open .hamburger-icon div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-strip a {
        width: 100%;
        border-radius: 0;
        padding: 16px 20px;
        font-size: 1rem;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        text-align: left;
        color: var(--text);
        background: transparent;
        
        /* === WCAG 2.0 AA COMPLIANCE === */
        min-height: 44px;                 /* Satisfies minimum touch target size (44x44px) */
    }

    /* WCAG 2.0 AA Focus Styles: High visibility outline for keyboard navigation */
    .nav-strip a:focus-visible,
    .mobile-menu-toggle:focus-visible,
    .lang-btn:focus-visible {
        outline: 3px solid var(--c7);
        outline-offset: -3px;
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-strip a:hover {
        background: rgba(0, 0, 0, 0.03);
    }
    
    .nav-strip a.active {
        color: #fff;
        background: linear-gradient(135deg, var(--c7), var(--c9));
    }

    .lang-switcher {
        margin: 16px auto !important;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 6px 18px;
        display: flex;
        width: fit-content;
    }
    
    .lang-switcher .lang-btn {
        font-size: 1rem !important;
        padding: 4px 12px !important;
    }
    
    .lang-switcher .lang-btn.active {
        color: #fff !important;
        background: linear-gradient(135deg, var(--c7), var(--c9)) !important;
        border-radius: 100px !important;
    }
    
    .lang-switcher .lang-divider {
        display: none;
    }
}

        /* ─── Main ─── */
        .main-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 6vw, 60px) clamp(16px, 3vw, 24px) clamp(40px, 8vw, 80px); }

        /* ─── Section Title ─── */
        .section-title { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
        .section-title-num { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; color: var(--c7); letter-spacing: 3px; flex-shrink: 0; }
        .section-title-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--c4), var(--c3), transparent); border-radius: 1px; }
        .section-title h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; flex-shrink: 1; }

        /* ─── Info Cards ─── */
        .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 60px; }
        .info-card { border-radius: 20px; padding: 28px 24px; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); border: 2px solid transparent; position: relative; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); }
        .info-card-icon { font-size: 2rem; margin-bottom: 12px; }
        .info-card-label { font-size: 1rem; font-weight: 700; color: var(--c7); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
        .info-card-value { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.5; }

        /* ─── Activity Cards Layout ─── */
        /* [修復] 在此處加上 margin-bottom: 60px，讓下方的「備註及重要資訊」獲得與前面區塊完全對稱的呼吸間距 */
        .activity-cards-stack { display: flex; flex-direction: column; gap: 24px; margin-bottom: 60px; }

        /* ─── Static Card Styles (IV, V, VI) ─── */
        .static-activity-card {
            border-radius: 24px;
            padding: clamp(20px, 4vw, 30px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            margin-bottom: 6px;
        }
        .static-card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
        }
        .static-card-badge {
            color: #ffffff;
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 800;
        }
        .static-card-title-area h3 {
            font-size: clamp(1.2rem, 1.8vw, 1.5rem);
            font-weight: 700;
            color: var(--text);
            margin: 0;
            padding-top:8px;
        }
        .static-card-subtitle {
            font-size: 0.95rem;
            color: var(--text2);
            margin: 4px 0 0 0;
        }
        .static-card-content {
            padding-left: 62px;
        }

        /* Color Tones for Static Cards */
        .theme-amber { 
            background: linear-gradient(135deg, #fff9e8, #fff0cc); 
            border-top: 6px solid #ff9f43; 
        }
        .theme-amber .static-card-badge { 
            background: linear-gradient(135deg, var(--c10), var(--c2)); 
            box-shadow: 0 4px 10px rgba(255, 159, 67, 0.2); 
        }

        .theme-purple { 
            background: linear-gradient(135deg, #f5eeff, #ede0ff); 
            border-top: 6px solid #5f27cd; 
        }
        .theme-purple .static-card-badge { 
            background: linear-gradient(135deg, var(--c7), var(--c4)); 
            box-shadow: 0 4px 10px rgba(95, 39, 205, 0.2); 
        }

        .theme-pink { 
            background: linear-gradient(135deg, #fff0f8, #ffe0f0); 
            border-top: 6px solid #ff9ff3; 
        }
        .theme-pink .static-card-badge { 
            background: linear-gradient(135deg, var(--c4), var(--c9)); 
            box-shadow: 0 4px 10px rgba(255, 159, 243, 0.2); 
        }
		
		.theme-teal {
			background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
			border-top: 6px solid #0f766e;
		}
		.theme-teal .static-card-badge {
			background: linear-gradient(135deg, #14b8a6, #0f766e);
			box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
		}

        /* ─── Table ─── */
        .schedule-table { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 0.88rem; }
        .schedule-table th { text-align: left; padding: 10px 14px; font-size: 0.72rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid rgba(0,0,0,0.06); }
        .schedule-table td { padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.04); vertical-align: top; }
        .schedule-table tr:hover td { background: rgba(0,0,0,0.02); }
        .schedule-table .session-header td { font-size: 0.78rem; font-weight: 700; padding-top: 18px; border-bottom: none; }
        .schedule-table .time-cell { white-space: nowrap; color: var(--text2); width: 150px; }
        .schedule-table .highlight-talk { font-weight: 700; }

        /* ─── Notes & Terms Dynamic Layout ─── */
        .notes-section, .terms-section { margin-top: 24px; background: linear-gradient(135deg, var(--white), #f8f0ff); border-radius: 24px; padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 32px); border: 2px solid rgba(168, 85, 247, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
        .terms-section { background: linear-gradient(135deg, var(--white), #eef5ff); border: 2px solid rgba(84, 160, 255, 0.15); margin-top: 60px; }
        .notes-list-item, .terms-list-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
        .notes-list-item:last-child, .terms-list-item:last-child { border-bottom: none; }
        
        .notes-num, .terms-num {
            flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--c7), var(--c9)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff;
        }
        .terms-num { background: linear-gradient(135deg, var(--c5), var(--c3)); font-size: 0.75rem; }
        .notes-text, .terms-text { flex: 1; font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
        .notes-text strong, .terms-text strong { color: var(--text); font-weight: 700; }
        .notes-text a, .terms-text a { color: var(--c7); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
        .notes-text a:hover { color: var(--c9); }
        .terms-text a { color: var(--c5); }
        .terms-text a:hover { color: var(--c3); }

        /* ─── Coming Soon Blocks ─── */
        .coming-soon-section { margin-top: 10px; }
        .coming-soon-box {
            text-align: center; padding: 60px 40px; background: rgba(255, 255, 255, 0.6); border: 2px dashed rgba(0, 0, 0, 0.05); border-radius: 24px; color: var(--text2); font-size: 1.2rem; font-weight: 500; letter-spacing: 2px; margin-top: 20px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.02);
        }

        .footer { background: linear-gradient(135deg, #2d3436, #636e72); padding: 40px 24px; text-align: center; color: rgba(255,255,255,0.6); font-size: 0.8rem; }
        
        /* ─── Media Queries ─── */
        @media (max-width: 1140px) {
            .nav-strip a { font-size: 0.9rem; }
        }

        @media (max-width: 950px) and (max-height: 500px), (max-width: 768px) {
            .hero { min-height: 80vh; }
            .info-grid { grid-template-columns: 1fr; }
            .schedule-table .time-cell { width: 100px; font-size: 0.8rem; }
            
            .nav-strip { 
                padding: 0; 
                background: #8583ff; 
                border-bottom: none; 
            }
            
            .mobile-menu-toggle { 
                display: flex; 
                align-items: center; 
                justify-content: center; 
                gap: 12px; 
                padding: 14px 20px; 
                color: #ffffff; 
                font-size: 1.5rem; 
                font-weight: 700; 
                cursor: pointer;
                user-select: none;
            }
            
            .hamburger-icon {
                display: flex;
                flex-direction: column;
                gap: 5px;
                width: 22px;
            }
            .hamburger-icon div {
                height: 3px;
                background-color: #ffffff;
                border-radius: 2px;
                transition: transform 0.3s ease, opacity 0.3s ease;
            }

            .nav-strip-inner { 
                display: none; 
                flex-direction: column; 
                gap: 0; 
                padding: 0; 
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 10px 25px rgba(0,0,0,0.15);
                border-top: 1px solid rgba(0,0,0,0.05);
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                max-height: 450px;
                overflow-y: auto;
            }
            
            .nav-strip.menu-open .nav-strip-inner {
                display: flex;
            }
            
            .nav-strip.menu-open .hamburger-icon div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
            .nav-strip.menu-open .hamburger-icon div:nth-child(2) { opacity: 0; }
            .nav-strip.menu-open .hamburger-icon div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

            .nav-strip a { 
                width: 100%;
                border-radius: 0;
                padding: 16px 24px;
                font-size: 1.1rem;
                border: none;
                border-bottom: 1px solid rgba(0,0,0,0.06);
                text-align: center;
                color: var(--text);
                background: transparent;
            }
            .nav-strip a:hover {
                background: rgba(0, 0, 0, 0.03);
            }
            .nav-strip a.active { 
                color: #fff; 
                background: linear-gradient(135deg, var(--c7), var(--c9)); 
            }
            
            .static-card-content { padding-left: 0; margin-top: 10px; }
			
			.section-title {
				flex-direction: column; /* Stack the title elements vertically on mobile */
				align-items: flex-start;
				gap: 8px;
			}
			.section-title-line {
				width: 100%; /* Make the decorative line span the width below the text */
				height: 2px;
			}
        }

        @media (max-width: 480px) {
            .schedule-table, .schedule-table thead, .schedule-table tbody,
            .schedule-table th, .schedule-table td, .schedule-table tr { display: block; }
            .schedule-table th { display: none; }
            .schedule-table td { padding: 6px 10px; }
            .schedule-table .time-cell { width: auto; }
        }
        
        /* ─── I. 航空講座 ─── */
        .original-lecture-card {
            background-color: #fff5f5; 
            border-top: 6px solid #e0533c; 
            border-radius: 24px; 
            padding: clamp(16px, 4vw, 30px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            margin-bottom: 30px;
        }
        .lecture-card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
        }
        .lecture-badge {
            background: linear-gradient(135deg, #f26444, #e04426);
            color: #ffffff;
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 800;
            box-shadow: 0 4px 10px rgba(224, 68, 38, 0.2);
        }
        .lecture-title-area h3 {
            font-size: clamp(1.2rem, 1.8vw, 1.5rem);
            font-weight: 700;
            color: #222222;
            margin: 0;
        }
        .lecture-subtitle {
            font-size: 0.95rem;
            color: #666666;
            margin: 4px 0 0 0;
        }
        .time-group-title {
            margin: 24px 0 12px 0;
        }
        .time-group-title:first-of-type {
            margin-top: 10px;
        }
        .badge-outline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(224, 83, 60, 0.04);
            border: 1.5px solid rgba(224, 83, 60, 0.25);
            color: #e0533c;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
        }
        .talk-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
        }
        .talk-grid .talk-item {
            background: #ffffff; 
            border-radius: 16px;
            padding: 18px;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
            transition: transform 0.2s ease;
        }
        .talk-item:hover {
            transform: translateY(-2px);
        }
        .talk-item .time {
            font-weight: 700;
            color: #e0533c; 
            font-size: 1rem;
            display: block;
            margin-bottom: 6px;
        }
        .talk-item .title {
            font-weight: 600;
            font-size: 1.05rem;
            color: #222222;
            line-height: 1.4;
        }
        .talk-item-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .talk-item .time {
            margin-bottom: 0; 
        }
        .talk-grid .t-badge {
            font-size: 0.85rem;
            background: #fff0ed; 
            color: #e0533c;      
            padding: 2px 10px;
            border-radius: 6px;
            font-weight: 600;
        }
        
        /* ─── II. 空管塔模擬器體驗 ─── */
        .simulator-card-teal {
            background-color: #f0fdfa; 
            border-top: 6px solid #0f766e; 
            border-radius: 24px; 
            padding: clamp(16px, 4vw, 30px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            margin-bottom: 30px;
        }
        .simulator-card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
        }
        .simulator-badge-teal {
            background: linear-gradient(135deg, #14b8a6, #0f766e);
            color: #ffffff;
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 800;
            box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
        }
        .simulator-title-area h3 {
            font-size: clamp(1.2rem, 1.8vw, 1.5rem);
            font-weight: 700;
            color: #0f766e; 
            margin: 0;
        }
        .simulator-subtitle {
            font-size: 0.95rem;
            color: #4b5563;
            margin: 4px 0 0 0;
        }
        .simulator-session-block {
            background: #ffffff;
            border-radius: 14px;
            padding: 16px 20px;
            margin: 12px 0 20px;
            border-left: 4px solid #0f766e; 
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
        }
        .simulator-session-block .meta {
            font-size: 0.95rem;
            color: #374151;
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
        }
        .simulator-session-block .meta i {
            margin-right: 6px;
            color: #0f766e; 
        }
        .simulator-schedule-title {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(224, 83, 60, 0.04);
            border: 1.5px solid rgba(15, 118, 110, 0.5);
            color: #0f766e;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            margin-top: 16px;
        }
        .simulator-schedule-title i {
            color: #0f766e;
        }
        .simulator-session-list {
            display: grid;
            grid-template-columns: 1fr 1fr; 
            gap: 8px 32px;
            margin: 8px 0 16px;
            background: #ffffff;
            padding: 16px 24px;
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }
        .simulator-session-list .s-time {
            font-weight: 700;
            color: #0f766e; 
            border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
            padding-bottom: 4px;
        }
        .simulator-session-list .s-desc {
            color: #4b5563;
            font-weight: 600;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
            padding-bottom: 4px;
        }
        .simulator-highlight-note {
            background: #fff8e7;
            border-radius: 12px;
            padding: 14px 18px;
            margin: 20px 0 0;
            font-size: 0.95rem;
            border-left: 4px solid #f1c40f;
            color: #5a4a1a;
        }
        .simulator-highlight-note i {
            color: #f1c40f;
            margin-right: 8px;
        }
        .simulator-image-placeholder {
            margin-top: 14px;
            background: rgba(15, 118, 110, 0.04); 
            border: 1px dashed rgba(15, 118, 110, 0.25);
            padding: 14px 20px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .simulator-image-placeholder i {
            font-size: 2rem;
            color: #0f766e;
        }
        .simulator-image-placeholder span {
            color: #111827;
            font-weight: 600;
        }

        @media (max-width: 680px) {
            .simulator-session-list {
                grid-template-columns: 1fr;
                gap: 6px;
                padding: 14px 16px;
            }
        }
		
		/* Keep badge size consistent on mobile (same ratio as desktop) */
		.simulator-badge-teal,
		.lecture-badge,
		.tour-blue-badge,
		.static-card-badge {
			width: 46px !important;
			height: 46px !important;
			min-width: 46px !important;
			min-height: 46px !important;
			flex-shrink: 0 !important;   /* prevent the badge from shrinking */
			font-size: 1.3rem !important;
		}
		
		/* Optional: improve mobile header spacing so title has enough room */
		@media (max-width: 768px) {
			.simulator-card-header,
			.lecture-card-header,
			.tour-blue-header,
			.static-card-header {
				gap: 12px;
				align-items: flex-start;   /* better when title wraps to 2 lines */
			}
		
			.simulator-title-area h3,
			.lecture-title-area h3,
			.tour-blue-title-area h3,
			.static-card-title-area h3 {
				font-size: 1.15rem;        /* slightly smaller text so it fits better */
				line-height: 1.35;
			}
		}
        
        /* ─── III. 航空教育徑導賞團 ─── */
        .tour-lecture-style-blue {
            background: linear-gradient(135deg, #eef5ff, #dde8ff); 
            border-top: 6px solid var(--c5); 
            border-radius: 24px;
            padding: clamp(16px, 4vw, 30px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            margin-bottom: 30px;
        }
        .tour-blue-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
        }
        .tour-blue-badge {
            background: linear-gradient(135deg, var(--c5), var(--c3));
            color: #ffffff;
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 800;
            box-shadow: 0 4px 10px rgba(84, 160, 255, 0.2);
        }
        .tour-blue-title-area h3 {
            font-size: clamp(1.2rem, 1.8vw, 1.5rem);
            font-weight: 700;
            color: var(--text, #333);
            margin: 0;
        }
        .tour-blue-subtitle {
            font-size: 0.95rem;
            color: var(--text2, #666);
            margin: 4px 0 0 0;
        }
        .tour-blue-info-block {
            background: #ffffff;
            border-radius: 14px;
            padding: 16px 20px;
            margin: 12px 0 20px;
            border-left: 4px solid var(--c5);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
        }
        .tour-blue-info-block .meta {
            font-size: 0.95rem;
            color: var(--text2, #666);
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
        }
        .tour-blue-info-block .meta i {
            margin-right: 6px;
            color: var(--c5);
        }
        .tour-blue-schedule-title {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(84, 160, 255, 0.04);
            border: 1.5px solid rgba(84, 160, 255, 0.4);
            color: var(--c5);
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 12px;
            line-height: 1.5;
        }
        .tour-blue-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin: 16px 0;
        }
        .tour-blue-box {
            background: #ffffff;
            padding: 18px;
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, 0.03);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
        }
        .tour-blue-session-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
            padding: 12px 0;
        }
        .tour-blue-session-item:last-child {
            border-bottom: none;
        }
        .tour-blue-session-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .tour-blue-session-item .t-time {
            font-weight: 700;
            color: var(--c5);
            font-size: 1.05rem;
        }
        .tour-blue-session-item .t-badge {
            font-size: 0.85rem;
            background: #eef5ff;
            color: var(--c5);
            padding: 2px 10px;
            border-radius: 6px;
            font-weight: 600;
        }
        .tour-blue-session-item .t-name {
            color: var(--text, #333);
            font-weight: 600;
            font-size: 0.95rem;
            margin-top: 2px;
        }
        .tour-blue-note {
            background: #fff8e7;
            border-radius: 12px;
            padding: 14px 18px;
            margin: 20px 0 0;
            font-size: 0.95rem;
            border-left: 4px solid #f1c40f;
            color: #5a4a1a;
        }
        .tour-blue-note i {
            color: #f1c40f;
            margin-right: 8px;
        }
        .tour-blue-footer {
            margin-top: 14px;
            background: rgba(84, 160, 255, 0.04);
            border: 1px dashed rgba(84, 160, 255, 0.25);
            padding: 14px 20px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .tour-blue-footer i {
            font-size: 1.8rem;
            color: var(--c5);
        }
        .tour-blue-footer span {
            color: var(--text, #333);
            font-weight: 600;
        }
        .tour-blue-footer a {
            color: var(--c5);
            text-decoration: underline;
        }
		.tour-blue-header,
		.static-card-header,
		.activity-header {
			display: flex;
			align-items: flex-start;   /* key property */
			gap: 16px;
		}
		
		.tour-blue-badge,
		.static-card-badge,
		.icon-wrapper {
			flex-shrink: 0;
			margin-top: 2px;           /* fine-tune if needed so the icon sits on the same optical line as the title */
		}

        @media (max-width: 680px) {
            .tour-blue-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
        }
		
		/* IV Flight Simulator */
		.simulator-sunday-merge-grid {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 20px;
			margin: 12px 0 20px;
		}
		.simulator-time-block {
			background: #ffffff;
			border-radius: 16px;
			border: 1px solid rgba(0, 0, 0, 0.04);
			overflow: hidden;
			box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
		}
		.time-block-header {
			padding: 12px 20px;
			font-weight: 700;
			font-size: 0.95rem;
			display: flex;
			align-items: center;
			gap: 8px;
			border-bottom: 1px solid rgba(0, 0, 0, 0.03);
		}
		.time-block-header.am-session {
			background: rgba(20, 184, 166, 0.06); 
			color: #0d9488;
		}
		.time-block-header.pm-session {
			background: rgba(15, 118, 110, 0.08); 
			color: #0f766e;
		}
		.time-block-header .icon {
			font-size: 1.1rem;
		}
		.simulator-session-list.internal-list {
			margin: 0;
			border: none;
			border-radius: 0;
			padding: 16px 20px;
		}
		.activity-warning-note {
			background: #fff0f0;                    /* soft red-pink background */
			border-radius: 12px;
			padding: 14px 18px;
			margin: 16px 0 0;
			font-size: 0.95rem;
			border-left: 5px solid #e74c3c;          /* strong red left border */
			color: #922b21;                         /* dark red text */
			display: flex;
			align-items: flex-start;
			gap: 10px;
			line-height: 1.5;
		}
		
		.activity-warning-note i {
			color: #e74c3c;
			font-size: 1.1rem;
			margin-top: 2px;
			flex-shrink: 0;
		}
		
		@media (max-width: 768px) {
			.simulator-sunday-merge-grid {
				grid-template-columns: 1fr;
				gap: 16px;
			}
		}
		
		/* End of IV Flight Simulator */
		
		/* Floorplan Container Layout */
		.floorplan-container {
			max-width: 1000px;
			margin: 0 auto;
			padding: 15px;
			text-align: center;
		}
		
		.floorplan-hint {
			font-size: 1.2rem;
			color: #666;
			margin-bottom: 12px;
		}
		
		/* Card Wrapper with Hover Effect */
		.floorplan-wrapper {
			position: relative;
			overflow: hidden;
			border-radius: 8px;
			box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
			cursor: pointer;
			background: #fff;
			display: inline-block;
			width: 100%;
		}
		
		/* Fluid, Responsive Image handling */
		.floorplan-img {
			display: block;
			width: 100%;
			height: auto;
			transition: transform 0.3s ease;
		}
		
		.floorplan-wrapper:hover .floorplan-img {
			transform: scale(1.02);
		}
		
		/* Interactive Hover Overlay */
		.floorplan-overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.4);
			display: flex;
			align-items: center;
			justify-content: center;
			opacity: 0;
			transition: opacity 0.3s ease;
		}
		
		.floorplan-wrapper:hover .floorplan-overlay {
			opacity: 1;
		}
		
		.floorplan-overlay span {
			color: #fff;
			background: rgba(0, 0, 0, 0.7);
			padding: 10px 20px;
			border-radius: 20px;
			font-size: 0.95rem;
			font-weight: 500;
		}
		
		/* Lightbox Modal Design for Mobile Scaling */
		.fp-modal {
			display: none;
			position: fixed;
			z-index: 9999;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.9);
			backdrop-filter: blur(5px);
		}
		
		.fp-modal-content-wrapper {
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 20px;
		}
		
		#modalImg {
			max-width: 95%;
			max-height: 90vh;
			object-fit: contain;
			border-radius: 4px;
			box-shadow: 0 5px 25px rgba(0,0,0,0.5);
		}
		
		/* Close Button Styling */
		.fp-close {
			position: absolute;
			top: 20px;
			right: 30px;
			color: #fff;
			font-size: 40px;
			font-weight: bold;
			cursor: pointer;
			transition: color 0.2s ease;
			z-index: 10000;
		}
		
		.fp-close:hover {
			color: #bbb;
		}
		
		/* Extra Responsive Adjustments */
		@media (max-width: 768px) {
			.floorplan-overlay {
				display: none; /* Hide standard hover layout elements on touch viewports */
			}
			.floorplan-wrapper:hover .floorplan-img {
				transform: none;
			}
			#modalImg {
				max-width: 100%;
				width: 100%; /* Maximizes space for pinching/zooming maps on small screens */
			}
		}
		
		/* Modal Overlay Background */
		.floorplan-modal {
			display: none;
			position: fixed;
			z-index: 9999;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.8);
			align-items: center;
			justify-content: center;
			padding: 10px;
			box-sizing: border-box;
			overflow-y: auto; /* Allows scrolling if screen is extremely small */
		}
		
		/* Modal Content Box */
		.floorplan-modal-content {
			position: relative;
			max-width: 95%;
			max-height: 90%;
			background: #fff;
			padding: 20px 10px 10px 10px; /* Added extra top padding to give room for the close button */
			border-radius: 8px;
			box-shadow: 0 5px 15px rgba(0,0,0,0.3);
		}
		
		/* Large Floor Plan Image inside Modal */
		.floorplan-modal-content img {
			max-width: 100%;
			max-height: calc(85vh - 30px); /* Dynamically shrinks to fit short landscape viewports */
			width: auto;
			height: auto;
			display: block;
			object-fit: contain;
		}
		
		/* Close Button */
		.floorplan-modal-close {
			position: absolute;
			top: 5px;
			right: 5px;
			background: #333;
			color: #fff;
			font-size: 16px;
			font-weight: bold;
			width: 30px;
			height: 30px;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			cursor: pointer;
			border: 2px solid #fff;
			box-shadow: 0 2px 5px rgba(0,0,0,0.3);
			z-index: 10;
		}
		
		.floorplan-modal-close:hover {
			background: #000;
		}
		
		/*  End of Floor Plan  */
		
/* ==========================================================================
   ─── Isolated Language Switcher Component ───
   ========================================================================== */

/* Base Desktop Styling */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 12px;
    flex-shrink: 0;
    align-self: center; /* Ensures vertical alignment matches your links */
}

/* Toggle Link Buttons */
.lang-switcher .lang-btn {
    color: var(--text2) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    display: inline-block !important;
}

.lang-switcher .lang-btn:hover {
    color: var(--text) !important;
    background: transparent !important;
}

/* Active Highlight State */
.lang-switcher .lang-btn.active {
    color: var(--c7) !important;
    font-weight: 900 !important;
    background: transparent !important;
}

/* Divider Customizer */
.lang-switcher .lang-divider {
    color: rgba(0, 0, 0, 0.15);
    margin: 0 2px;
    font-size: 0.85rem;
    user-select: none;
}

/* Mobile Adjustments (Sized for your 768px break) */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 16px auto !important; /* Centers itself inside your open vertical layout */
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 6px 18px;
        display: flex;
        width: fit-content;
    }
    
    .lang-switcher .lang-btn {
        font-size: 1rem !important;
        padding: 4px 12px !important;
    }
    
    .lang-switcher .lang-btn.active {
        color: #fff !important;
        background: linear-gradient(135deg, var(--c7), var(--c9)) !important;
        border-radius: 100px !important;
    }
    
    .lang-switcher .lang-divider {
        display: none; /* Cleans up interface inside mobile visual pill frames */
    }
}

/* ─── Loader 整體 ─── */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    pointer-events: auto;
    overflow: hidden;
    background: transparent;
}

/* ==================== Desktop 三欄 - 絕對定位（Edge 友好版） ==================== */
.loader-panels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loader-panel {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.loader-panel.panel-1 {
    left: 0;
    width: 33.34%;
}

.loader-panel.panel-2 {
    left: 33.33%;
    width: 33.34%;
}

.loader-panel.panel-3 {
    left: 66.67%;
    width: 33.33%;
}

.loader-panel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-100%);
    will-change: transform;
    image-rendering: crisp-edges;           /* Edge 優化 */
    -webkit-image-rendering: crisp-edges;
}

/* 動畫 */
.loader-overlay.loaded .loader-panel img {
    animation: slotSweepHorizontal 1.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes slotSweepHorizontal {
    0%   { transform: translateX(-100%); }
    35%  { transform: translateX(0); }
    65%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ==================== Mobile 全圖模式 ==================== */
.loader-full {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-full img {
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    transform: translateX(-100%);
    will-change: transform;
}

.loader-overlay.loaded .loader-full img {
    animation: bannerSweepMobile 1.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes bannerSweepMobile {
    0%   { transform: translateX(-100%); }
    35%  { transform: translateX(0); }
    65%  { transform: translateX(0); }
    100% { transform: translateX(120%); }
}

/* ==================== 響應式切換 ==================== */
@media (max-width: 1024px) {
    .loader-panels { display: none; }
    .loader-full   { display: flex; }
}

@media (min-width: 1025px) {
    .loader-panels { display: block; }
    .loader-full   { display: none; }
}

/* ====================== STICKY FOOTER FIX ====================== */
html {
    height: 100%;
    font-size: 138%; 
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg);
}

/* Main content must grow to push footer down */
.main-wrap {
    flex: 1 0 auto;           /* This is the most important line */
    max-width: 95%;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 60px) clamp(16px, 3vw, 24px) 40px; /* Reduced bottom padding */
    width: 100%;              /* Ensure full width inside flex */
}

/* Footer stays at bottom */
.footer {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(135deg, #2d3436, #636e72);
    padding: 40px 24px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* Optional: Remove duplicate footer if any */
footer + footer {
    display: none;
}

/* Start Floorplan */
/* Full-screen modal – identical behaviour to opening the image directly */
.fp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #000;
    /* Centre the image both horizontally and vertically */
    display: none;                 /* overridden by .active */
    align-items: center;
    justify-content: center;
}

.fp-modal.active {
    display: flex;
}

.fp-modal img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;           /* same scaling as browser native image view */
    display: block;
}

/* Close button – top right */
.fp-close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10000;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    transition: background 0.2s;
    user-select: none;
}

.fp-close:hover {
    background: rgba(0, 0, 0, 0.7);
}
/* End Floorplan */

/* ===== Aviation Education Path footer (override) ===== */
.tour-blue-footer {
    margin-top: 25px !important;
    background: rgba(84, 160, 255, 0.04);
    border: 1px dashed rgba(84, 160, 255, 0.25);
    padding: 18px 20px !important;
    border-radius: 14px;
    display: block !important;          /* override the old flex */
    text-align: center !important;
    width: 100%;
}

.tour-blue-footer img {
    display: block;
    margin: 0 auto 14px auto;
    max-width: 100%;
}

.aep-caption {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0;
    font-size: 0.95rem;
    color: var(--text, #333);
    line-height: 1.5;
    font-weight: 600;
}

.aep-caption i {
    color: var(--c5, #4a90e2);
    margin-right: 6px;
}

.aep-caption a {
    color: #1a73e8;
    text-decoration: underline;
}

/* End of Aviation Education Path footer */

/* Mobile break */
.mobile-break {
    display: none;
}
@media (max-width: 480px) {
    .mobile-break {
        display: inline;
    }
}

/* Desktop break */
.desktop-break {
    display: inline;
}
@media (max-width: 480px) {
    .desktop-break {
        display: none;
    }
}


/* End mobile break */

/* ─── Programme Schedule Bubble Component ─── */
.programme-bubble-card {
    background: linear-gradient(135deg, #f0f4ff, #e2e8f0);
    border: 2px solid rgba(84, 160, 255, 0.2);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.programme-bubble-card:hover {
    transform: translateY(-3px);
}

.bubble-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.bubble-content {
    flex: 1;
}

.bubble-title {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text, #2d3436);
    margin-bottom: 6px;
}

.bubble-desc {
    font-size: 0.95rem;
    color: var(--text2, #636e72);
    margin-bottom: 16px;
}

.pdf-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--c7, #5f27cd);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(95, 39, 205, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.pdf-link-btn:hover {
    background: var(--c7, #5f27cd);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 39, 205, 0.2);
}

.pdf-link-btn i {
    color: #e74c3c; /* PDF red icon highlight */
}

.pdf-link-btn:hover i {
    color: #fff;
}

@media (max-width: 600px) {
    .programme-bubble-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pdf-links-group {
        justify-content: center;
    }
}

/* ----- table-like grid ----- */
.weather-grid {
  display: flex;
  flex-direction: column;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #e6edf4;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 20, 40, 0.04);
}

.grid-green {
  background: rgba(226,239,217,1);
  width: 100%;
  text-align: center;
  display: block !important;
}

.grid-red {
  background: rgba(255,204,204,1);
  width: 100%;
  text-align: center;
  display: block !important;
}

.grid-orange {
  background: rgba(247,202,172,1);
  width: 100%;
  text-align: center;
  display: block !important;
}

.grid-amber {
  background: rgba(255,217,102,1);
  width: 100%;
  text-align: center;
  display: block !important;
}

.grid-sand {
  background: rgba(251,228,213,1);
  width: 100%;
  text-align: center;
  display: block !important;
}

.grid-row {
  display: grid;
  grid-template-columns: 1.8fr 2.2fr;
  transition: background 0.15s;
}

.grid-row.header {
  background: #f8fafd;
  border-bottom: 2px solid #d0ddee;
}

.grid-cell {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ecf1f7;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.grid-row:last-child .grid-cell {
  border-bottom: none;
}

.grid-row.header .grid-cell {
  font-weight: 600;
  font-size: 1rem;
  color: #1a344c;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #d0ddee;
}

/* ----- responsive grid ----- */
.sh-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
    /* opacity: 0.65; */
}

/* each graphic tile */
.sh-grid-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #ffffff; */
    /* border-radius: 1.2rem; */
    padding: 0.6rem 0.4rem;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    /* border: 1px solid #f0f2f5; */
    min-height: 80px;          /* ensures even height when images are small */
}

.sh-grid-item img {
    display: block;
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;        /* preserve aspect, no distortion */
    border-radius: 6px;
    transition: filter 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
}

/* ----- responsive breakpoints ----- */

/* 2 rows × 4 columns */
@media (max-width: 1000px) {
    .sh-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

/* 4 rows × 2 columns */
@media (max-width: 550px) {
    .sh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* very small devices: still 2 columns, but smaller gap */
@media (max-width: 380px) {
    .sh-grid {
        gap: 0.75rem;
    }
    .sh-grid-item {
        padding: 0.4rem 0.2rem;
        min-height: 64px;
    }
}
/* talk extra */

.talk-extra-grid {
	display: grid; 
	grid-template-columns: 1fr 2.5fr;
}

@media (max-width: 550px) {
    .talk-extra-grid  {
        display: grid; 
	   grid-template-columns: 1fr;
    }
}

/* ─── End of Programme Schedule Bubble Component ─── */

/*  Menu */
/* Only fix to top for short-height landscape mobile viewports.
   Completely avoid max-height:0 + display:flex !important – this combination
   was clipping the first menu item (Details) so only ~1/4 was visible. */

/*  End Menu */

