/* ========================================
   Conference Website - Premium Light Theme
   เว็บไซต์งานประชุมวิชาการ - ธีมสว่างพรีเมียม
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Primary — Pharmacy CMU teal / sky */
    --primary: #0d9488;
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --secondary: #0284c7;
    --accent: #0369a1;
    --accent-light: #38bdf8;

    --gradient: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    --gradient-warm: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    --gradient-soft: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 45%, #ffffff 100%);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f0fdfa 50%, #ecfeff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.72) 0%, rgba(248,250,252,0.55) 100%);

    --bg-primary: transparent;
    --bg-secondary: transparent;
    --bg-tertiary: rgba(241, 245, 249, 0.55);
    --bg-card: rgba(255, 255, 255, 0.55);
    --bg-hero: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(240,253,250,0.35) 100%);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Liquid Glass (iOS 26–inspired) */
    --lg-fill: rgba(255, 255, 255, 0.38);
    --lg-fill-strong: rgba(255, 255, 255, 0.58);
    --lg-fill-clear: rgba(255, 255, 255, 0.18);
    --lg-blur: blur(28px) saturate(200%);
    --lg-rim: rgba(255, 255, 255, 0.72);
    --lg-rim-soft: rgba(255, 255, 255, 0.32);
    --lg-edge: rgba(15, 23, 42, 0.07);
    --lg-specular: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.28);
    --lg-depth: inset 0 -12px 28px rgba(15, 23, 42, 0.05);
    --lg-elevate: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.05);
    --lg-elevate-lg: 0 22px 56px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.07);

    --glass-bg: var(--lg-fill);
    --glass-border: var(--lg-rim-soft);
    --glass-shadow: var(--lg-elevate);

    --card-shadow: var(--lg-elevate);
    --card-shadow-hover: var(--lg-elevate-lg);
    --card-border: var(--lg-rim-soft);

    --section-padding: 64px 0;
    --container-width: 1120px;

    --font-main: 'Noto Sans Thai', 'CMU', 'Sarabun', sans-serif;
    --font-heading: 'Prompt', 'Noto Sans Thai', 'CMU', sans-serif;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 36px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(900px 520px at 8% -8%, rgba(45, 212, 191, 0.28), transparent 55%),
        radial-gradient(780px 480px at 96% 4%, rgba(56, 189, 248, 0.22), transparent 50%),
        radial-gradient(700px 520px at 70% 90%, rgba(13, 148, 136, 0.14), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f6 40%, #f1f5f9 100%);
    background-attachment: scroll;
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1101px) {
    body {
        background-attachment: fixed;
    }
    html {
        overflow-x: clip;
    }
}

/* Page load animation — ไม่ animate body (พัง position:fixed บนมือถือ) */
body.page-loading {
    opacity: 0;
}

body.page-loaded {
    opacity: 1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* ===== Navigation — Liquid Glass floating island ===== */
.navbar-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 12px 0;
    pointer-events: none;
    /* ไม่ใส่ transform/filter/backdrop — คง fixed กับ viewport */
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* บนสุดของหน้า: ซ่อนเมนูไม่ให้บังแบนเนอร์ — เลื่อนลงค่อยโชว์ */
.navbar-shell.nav-hidden-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.nav-drawer-open .navbar-shell.nav-hidden-top {
    opacity: 1;
    visibility: visible;
}

.navbar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1;
    padding: 8px 0;
    width: 100%;
    max-width: calc(var(--container-width) + 48px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    /* กระจกอยู่ที่ ::after — ไม่ใส่ backdrop-filter ที่ .navbar */
    background: transparent;
    border: none;
    box-shadow: none;
    transition: opacity 0.35s ease;
    opacity: 0;
    overflow: visible;
    pointer-events: auto;
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.22) 55%, rgba(240,253,250,0.18) 100%);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-rim);
    border-top-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lg-specular), var(--lg-depth), var(--lg-elevate);
    pointer-events: none;
    z-index: 0;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.42) 48%,
        rgba(255, 255, 255, 0.08) 62%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: lgSheen 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.navbar > * {
    position: relative;
    z-index: 1;
}

@keyframes lgSheen {
    0%, 100% { background-position: 120% 0; }
    50% { background-position: -20% 0; }
}

body.page-loaded .navbar {
    animation: navFadeIn 0.55s ease 0.1s forwards;
}

@keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.navbar.scrolled::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.48) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow: var(--lg-specular), var(--lg-elevate-lg);
}

.navbar.scrolled {
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding-left: 6px;
    padding-right: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 4px 10px 4px 0;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo:hover {
    background: transparent;
}

.nav-logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    transition: var(--transition-normal);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
    box-shadow: none;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.35;
    max-width: 200px;
}

@media (max-width: 1100px) {
    .nav-logo-text {
        font-size: 0.95rem;
        max-width: 140px;
    }
    
    .nav-logo-img {
        height: 42px;
        width: 42px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 4px;
        padding-right: 8px;
    }

    .nav-logo {
        padding: 2px 6px 2px 0;
    }
    
    .nav-logo-text {
        display: none;
    }
    
    .nav-logo-img {
        height: 40px;
        width: 40px;
    }

    .nav-btn-login {
        min-height: 47px;
        height: 47px;
        padding: 0 14px;
        font-size: 0.88rem;
    }
}

.nav-menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(8, 145, 178, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(8, 145, 178, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* หัวข้อ "เมนู" ใช้เฉพาะ drawer มือถือ — ซ่อนบนจอปกติ */
.nav-menu-header {
    display: none !important;
}

/* ปุ่มเปิดเมนูลอย — โชว์ตอนซ่อน navbar บนแบนเนอร์ */
.nav-fab-toggle {
    display: none;
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    z-index: 1200;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background:
        linear-gradient(165deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.28) 48%, rgba(240,253,250,0.22) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 8px 28px rgba(15, 23, 42, 0.18);
    transition: opacity 0.3s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
}

.nav-fab-toggle[hidden] {
    display: none !important;
}

.nav-fab-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary, #0f172a);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-fab-toggle.active {
    transform: rotate(90deg);
}

.nav-fab-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-fab-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-fab-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 1100px) {
    .nav-fab-toggle:not([hidden]) {
        display: inline-flex;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-overlay {
    display: none;
}

.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: 47px;
    height: 47px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-lang-btn {
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    color: var(--text-muted);
    background: transparent;
}

.nav-lang-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.45);
}

.nav-lang-btn.active {
    color: #0f766e;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.18);
}

.nav-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 47px;
    height: 47px;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 55%, #0284c7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 14px rgba(13, 148, 136, 0.38);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-btn-login:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 6px 18px rgba(13, 148, 136, 0.45);
    transform: translateY(-1px);
}

.nav-user-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition-fast);
    white-space: nowrap;
    max-width: 160px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-user-wrap:hover {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.55);
}

.nav-user-avatar {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-user-initial {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.nav-user-initial.nav-user-initial-show {
    display: flex;
}

.nav-user-wrap .nav-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-hero); /* fallback when no hero image */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
}

body.page-loaded .hero-bg {
    animation: heroBgReveal 1s ease 0.3s forwards;
}

@keyframes heroBgReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Decorative shapes - minimal opacity to not cover background image */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: var(--gradient);
    opacity: 0.02;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 0%;
    width: 400px;
    height: 400px;
    background: var(--gradient-warm);
    opacity: 0.02;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.02; }
    50% { transform: scale(1.1); opacity: 0.03; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    opacity: 0.08;
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.08; }
    90% { opacity: 0.08; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 0 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero content staggered animations on page load */
.hero-content .hero-badge {
    animation: fadeInDown 0.8s ease 0.5s both;
}

.hero-content .hero-title {
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-content .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.9s both;
}

.hero-content .hero-tagline {
    animation: fadeInUp 0.8s ease 1.1s both;
}

.hero-content .hero-meta {
    animation: fadeInUp 0.8s ease 1.3s both;
}

.hero-content .hero-buttons {
    animation: fadeInUp 0.8s ease 1.5s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-badge::before {
    /* content: '💊'; */
    font-size: 1.2rem;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.1;
}

.hero-title-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 44px;
    animation: fadeInUp 0.8s ease 0.6s both;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 44px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 18px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.hero-meta-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.hero-meta-link {
    cursor: pointer;
    text-decoration: none;
}

.hero-meta-link:hover {
    border-color: var(--primary);
}

.hero-meta-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(2, 132, 199, 0.10));
    border-radius: var(--radius-sm);
}

.hero-meta-text {
    text-align: left;
}

.hero-meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hero-meta-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.hero-meta-separator {
    color: var(--text-light);
    margin: 0 8px;
    font-weight: 400;
}

.hero-meta-datetime {
    min-width: 280px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 1s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(13,148,136,0.92) 0%, rgba(2,132,199,0.9) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 28px rgba(13, 148, 136, 0.32);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.28) 100%);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--lg-specular), 0 8px 22px rgba(13, 148, 136, 0.12);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--lg-elevate-lg);
}

/* ===== Section Titles ===== */
.section-header {
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.section-header .section-badge {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-header .section-title {
    display: block;
    width: 100%;
}

.section-badge {
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top-color: rgba(255, 255, 255, 0.9);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    box-shadow: var(--lg-specular), 0 8px 24px rgba(13, 148, 136, 0.12);
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-description {
    max-width: 650px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: transparent;
    position: relative;
    overflow: clip;
}

.about-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(45, 212, 191, 0.18), transparent 60%),
        radial-gradient(ellipse 55% 50% at 92% 30%, rgba(56, 189, 248, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 45% at 70% 95%, rgba(13, 148, 136, 0.08), transparent 55%);
}

.about > .container {
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(13, 148, 136, 0.28) 50%, transparent 92%);
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 36px);
}

.about-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: clamp(20px, 3.5vw, 48px);
    align-items: center;
}

.about-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 0;
}

.about-badge {
    margin-bottom: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

.about-title {
    text-align: center;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    max-width: 40ch;
    margin: 0 auto;
}

.about-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    margin-top: 0;
    bottom: -10px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--text-secondary);
    max-width: none;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    background: linear-gradient(165deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.42) 100%);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top-color: rgba(255, 255, 255, 0.92);
    border-left: 3px solid transparent;
    border-image: none;
    padding: 16px 18px;
    border-radius: 18px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--lg-specular), 0 10px 28px rgba(15, 23, 42, 0.06);
}

.highlight-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0d9488, #0284c7);
    border-radius: 3px 0 0 3px;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lg-specular), 0 16px 36px rgba(13, 148, 136, 0.14);
    border-color: rgba(255, 255, 255, 0.88);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-icon {
    font-size: 1.45rem;
    width: 44px;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(2, 132, 199, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.highlight-body {
    min-width: 0;
}

.highlight-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.35;
}

.highlight-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 24px 48px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.55);
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #0f766e, #0369a1);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.28) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    pointer-events: none;
    z-index: 2;
}

.about-section-img,
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover .about-section-img,
.about-image:hover .about-image-wrapper img {
    transform: scale(1.06);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d9488 0%, #0284c7 100%);
    color: #fff;
}

.about-image-placeholder[hidden] {
    display: none !important;
}

.about-image-placeholder span {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.about-decoration {
    position: absolute;
    width: min(240px, 45vw);
    height: min(240px, 45vw);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.45), rgba(2, 132, 199, 0.35));
    opacity: 0.35;
    filter: blur(50px);
    z-index: -1;
    animation: aboutOrb 10s ease-in-out infinite;
}

.about-decoration-1 {
    top: -48px;
    right: -36px;
}

.about-decoration-2 {
    bottom: -56px;
    left: -40px;
    animation-delay: -4s;
}

@keyframes aboutOrb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(8px, -10px) scale(1.08); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .about-decoration,
    .about-section-img,
    .about-image-wrapper img {
        animation: none !important;
        transition: none !important;
    }
    .about-image:hover .about-section-img,
    .about-image:hover .about-image-wrapper img {
        transform: scale(1.02);
    }
}

/* ===== Speakers Section ===== */
.speakers {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

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

/* Speakers banner mode (ใช้ .speakers-grid เป็น container เหมือนเดิม) */
.speakers-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.speakers-banner-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--bg-primary);
    box-shadow: var(--card-shadow);
}
.speakers-banners.is-slideshow {
    position: relative;
    display: grid;
}
.speakers-banners.is-slideshow .speakers-banner-item {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 900ms ease, transform 900ms ease, visibility 0ms linear 900ms;
}
.speakers-banners.is-slideshow .speakers-banner-item.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 900ms ease, transform 900ms ease;
}
@media (prefers-reduced-motion: reduce) {
    .speakers-banners.is-slideshow .speakers-banner-item,
    .speakers-banners.is-slideshow .speakers-banner-item.is-active {
        transform: none;
        transition: none;
    }
}
.speakers-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.speaker-card {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: transparent;
}

.speaker-card:hover::before {
    transform: scaleX(1);
}

.speaker-image {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-lg);
    margin: 0 auto 24px;
    position: relative;
    background: var(--gradient);
    padding: 4px;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.2);
}

.speaker-image img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--bg-secondary);
}

.speaker-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}

.speaker-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.speaker-title {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-affiliation {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.speaker-topic {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(2, 132, 199, 0.06));
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(8, 145, 178, 0.1);
}

/* ===== Schedule Section ===== */
.schedule {
    background: var(--bg-primary);
    position: relative;
}

.schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--card-border) 50%, transparent 90%);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.schedule-tab {
    padding: 16px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
}

.schedule-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(8, 145, 178, 0.05);
}

.schedule-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.schedule-day {
    display: none;
}

.schedule-day.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.schedule-day-title {
    display: none;
    color: var(--text-primary);
}

.schedule-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 24px;
    padding: 24px 28px;
    background: var(--gradient-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    transition: var(--transition-normal);
    align-items: center;
}

.schedule-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--card-shadow);
}

.schedule-item.break {
    opacity: 0.6;
    background: var(--bg-tertiary);
}

.schedule-item.break:hover {
    opacity: 1;
}

.schedule-time {
    flex-shrink: 0;
    width: 140px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1rem;
}

.schedule-speaker {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.schedule-type {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.schedule-type.lecture {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
}

.schedule-type.workshop {
    background: rgba(249, 115, 22, 0.1);
    color: var(--secondary);
}

.schedule-type.break {
    background: rgba(113, 113, 122, 0.1);
    color: var(--text-muted);
}

.schedule-type.ceremony {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent);
}

.schedule-type.panel {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

/* Schedule Image Display Mode */
.schedule-image-container {
    text-align: center;
    padding: 10px;
}

.schedule-image-display {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow-hover);
    transition: var(--transition-normal);
}

.schedule-image-display:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* รูปกำหนดการ (แสดงเล็กลง) */
.schedule-image-wrap {
    text-align: center;
}
.schedule-day-image {
    max-width: 560px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* ===== Registration Section ===== */
.registration {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.registration-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(2, 132, 199, 0.07) 0%, transparent 50%);
    z-index: 0;
}

.registration-content {
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.pricing-card {
    background: linear-gradient(165deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.34) 100%);
    backdrop-filter: blur(20px) saturate(175%);
    -webkit-backdrop-filter: blur(20px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-top-color: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
    position: relative;
    box-shadow: var(--lg-specular), var(--lg-elevate);
}

/* keep legacy class but make it look like normal card */
.pricing-card.featured {
    border: 1px solid var(--card-border);
    transform: none;
    box-shadow: var(--card-shadow);
}

.pricing-card.featured::before { display: none; }

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: transparent;
}

.pricing-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: transparent;
}

/* Expired pricing card */
.pricing-card.expired {
    opacity: 0.6;
    background: var(--bg-tertiary);
}

.pricing-card.expired:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.pricing-card.expired .pricing-price {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.expired .pricing-deadline {
    color: #ef4444;
    font-weight: 600;
}

/* Disabled button */
.btn.btn-disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

.btn.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.pricing-type {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
}

.pricing-deadline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.registration-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Check Status Button */
.check-status-container {
    margin-top: 32px;
    text-align: center;
}

.check-status-btn {
    font-size: 1.1rem;
    padding: 16px 36px;
    border-width: 2px;
}

.check-status-info {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Invitation Letters */
.invitation-letters {
    margin-top: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--card-shadow);
}

.invitation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.invitation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invitation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(165deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.32) 100%);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top-color: rgba(255, 255, 255, 0.85);
    box-shadow: var(--lg-specular), 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.invitation-item:hover {
    background: linear-gradient(165deg, rgba(255,255,255,0.85) 0%, rgba(240,253,250,0.55) 100%);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.invitation-icon {
    font-size: 1.3rem;
}

.invitation-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.invitation-download {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(8, 145, 178, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.registration-cta {
    text-align: center;
}

/* ===== Venue Section ===== */
.venue {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.venue-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: stretch;
}

.venue-info {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.venue-details {
    margin-bottom: 28px;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.venue-building {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.venue-directions {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
}

.directions-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.directions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.direction-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius-sm);
}

.direction-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.venue-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venue-btn {
    width: 100%;
    justify-content: center;
}

.hotel-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--secondary);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--lg-specular), 0 8px 22px rgba(2, 132, 199, 0.12);
}

.hotel-btn:hover {
    background: linear-gradient(135deg, rgba(2,132,199,0.92), rgba(3,105,161,0.9));
    color: white;
    border-color: rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 28px rgba(2, 132, 199, 0.32);
}

.hotel-doc-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #15803d;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--lg-specular), 0 8px 22px rgba(22, 163, 74, 0.12);
}

.hotel-doc-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.venue-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venue-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.venue-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

.venue-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    min-height: 300px;
    background: var(--bg-tertiary);
    flex: 1;
}

.map-embed {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

@media (max-width: 900px) {
    .venue-content {
        grid-template-columns: 1fr;
    }
    
    .venue-map {
        order: -1;
    }
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--card-border) 50%, transparent 90%);
}

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

.contact-card {
    background: var(--gradient-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(2, 132, 199, 0.10));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(2, 132, 199, 0.14));
}

.contact-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-value a {
    color: var(--primary);
    font-weight: 500;
}

.contact-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, #e5e5e5 100%);
    padding: 48px 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(2, 132, 199, 0.14));
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: var(--lg-specular), var(--lg-elevate);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), 
                transform var(--transition-normal), box-shadow var(--transition-fast),
                background var(--transition-fast), color var(--transition-fast);
}

.audio-toggle {
    position: fixed;
    bottom: 28px;
    right: 92px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: var(--lg-specular), var(--lg-elevate);
    z-index: 999;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.audio-toggle:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(2, 132, 199, 0.12) 100%);
    box-shadow: var(--card-shadow-hover), 0 0 0 1px rgba(8, 145, 178, 0.15);
    transform: translateY(-2px);
}
.audio-toggle:active { transform: translateY(0); }
.audio-toggle.is-paused .audio-toggle__icon { filter: grayscale(1); opacity: 0.7; }
.audio-toggle.is-hidden { display: none; }
.audio-toggle__icon { font-size: 18px; line-height: 1; }

.scroll-to-top .scroll-to-top__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-fast);
}

.scroll-to-top .scroll-to-top__icon svg {
    display: block;
    flex-shrink: 0;
    margin: auto;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top.visible:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(2, 132, 199, 0.12) 100%);
    color: var(--primary-dark);
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: var(--card-shadow-hover), 0 0 0 1px rgba(8, 145, 178, 0.15);
    transform: translateY(-3px) scale(1.02);
}

.scroll-to-top.visible:hover .scroll-to-top__icon {
    transform: translateY(-1px);
}

.scroll-to-top.visible:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 14px;
        align-items: start;
    }

    .about-image {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .about-image-wrapper {
        aspect-ratio: 1 / 1;
        border-radius: 18px;
    }

    .about-intro {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .about-title {
        text-align: center;
        max-width: none;
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
    }

    .about-text {
        text-align: left;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .about-badge {
        padding: 8px 14px;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .about-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 1100px) {
    /* Compact top bar + liquid glass drawer */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10050;
        background: rgba(15, 23, 42, 0.28);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: max(12px, env(safe-area-inset-top, 0px));
        right: 12px;
        left: auto;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        width: min(86vw, 320px);
        height: auto;
        max-height: calc(100dvh - 24px);
        display: flex;
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 10px 10px 14px;
        z-index: 10060;
        list-style: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        border-radius: 28px;
        background:
            linear-gradient(165deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.28) 48%, rgba(240,253,250,0.22) 100%);
        backdrop-filter: blur(32px) saturate(200%);
        -webkit-backdrop-filter: blur(32px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-top-color: rgba(255, 255, 255, 0.95);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.85),
            inset 0 -1px 0 rgba(255,255,255,0.12),
            inset 1px 0 0 rgba(255,255,255,0.28),
            0 24px 60px rgba(15, 23, 42, 0.18),
            0 8px 24px rgba(15, 23, 42, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(112%, 0, 0) scale(0.96);
        transform-origin: top right;
        transition:
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform, opacity;
    }

    .nav-menu::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,0.08) 36%,
            rgba(255,255,255,0.38) 48%,
            rgba(255,255,255,0.08) 60%,
            transparent 100%
        );
        background-size: 220% 100%;
        animation: lgSheen 9s ease-in-out infinite;
        pointer-events: none;
        opacity: 0.5;
        z-index: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .nav-menu.is-closing {
        opacity: 0;
        visibility: visible;
        transform: translate3d(112%, 0, 0) scale(0.96);
        pointer-events: none;
    }

    .nav-menu::before {
        display: none !important;
        content: none !important;
    }

    .nav-menu-header {
        list-style: none;
        position: relative;
        z-index: 1;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 16px 18px 14px;
        margin: 0 2px 10px;
        border-radius: 20px;
        background:
            linear-gradient(160deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.28) 55%, rgba(240,253,250,0.35) 100%);
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-top-color: rgba(255, 255, 255, 0.95);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.85),
            inset 0 -1px 0 rgba(255,255,255,0.12),
            0 10px 28px rgba(15, 23, 42, 0.08);
        opacity: 1 !important;
        transform: none !important;
        flex-shrink: 0;
        overflow: hidden;
    }

    .nav-menu-header::after {
        content: '';
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(13,148,136,0.85), rgba(2,132,199,0.75), transparent);
        opacity: 0.9;
    }

    .nav-menu-header__title {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.15;
        color: #0f172a;
        background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-menu.active .nav-menu-header {
        opacity: 1;
        transform: none;
    }

    .nav-menu.is-closing .nav-menu-header {
        opacity: 0;
        transform: translateX(8px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: none;
        list-style: none;
        position: relative;
        z-index: 1;
        opacity: 0;
        transform: translateX(18px);
        transition:
            opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-menu.active li:not(.nav-menu-header) {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:not(.nav-menu-header):nth-child(2) { transition-delay: 0.06s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(3) { transition-delay: 0.09s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(4) { transition-delay: 0.12s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(5) { transition-delay: 0.15s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(6) { transition-delay: 0.18s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(7) { transition-delay: 0.21s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(8) { transition-delay: 0.24s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(9) { transition-delay: 0.27s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(10) { transition-delay: 0.3s; }
    .nav-menu.active li:not(.nav-menu-header):nth-child(11) { transition-delay: 0.33s; }

    .nav-menu.is-closing li:not(.nav-menu-header) {
        opacity: 0;
        transform: translateX(12px);
        transition-delay: 0s !important;
        transition-duration: 0.18s;
    }

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

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        font-size: 1.08rem;
        font-weight: 600;
        color: var(--text-secondary);
        border-radius: 16px;
        border-left: 0;
        background: transparent;
        transition:
            background 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-dark);
        background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.38) 100%);
        border-left-color: transparent;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 6px 18px rgba(13, 148, 136, 0.12);
    }

    .nav-menu .nav-link.active {
        color: #0f766e;
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-menu .nav-link:active {
        transform: scale(0.98);
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-btn-login {
        min-height: 47px;
        height: 47px;
        padding: 0 14px;
        font-size: 0.88rem;
        border-radius: 999px;
    }

    .nav-user-wrap {
        padding: 4px;
        gap: 0;
        max-width: none;
    }

    .nav-user-wrap .nav-user-name {
        display: none;
    }

    .nav-user-avatar {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
        z-index: 1102;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-toggle.active {
        transform: rotate(90deg);
    }

    .nav-toggle span {
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-overlay,
        .nav-menu,
        .nav-menu li,
        .nav-toggle,
        .nav-toggle span {
            transition-duration: 0.01ms !important;
            animation: none !important;
        }
        .nav-menu {
            transform: none;
        }
        .nav-menu:not(.active):not(.is-closing) {
            opacity: 0;
            visibility: hidden;
        }
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }
    
    .hero {
        min-height: clamp(300px, 96vw, 520px);
        height: auto;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-bg {
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        margin-top: 0 !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    /*
     * แบนเนอร์มือถือ: กว้างเท่าจอ ตามอัตราส่วนรูป (ไม่ครอปรอบข้างแบบ cover)
     */
    .hero.has-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background-image: none !important;
        background-color: transparent;
        overflow: hidden;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: var(--hero-aspect, 16 / 9);
        box-sizing: border-box;
    }

    .hero.has-hero-image .hero-bg {
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin-top: 0 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        opacity: 1 !important;
        animation: none !important;
    }

    /* ไล่เฉดเบาๆ ใต้เมนูให้แก้วอ่านง่าย — ไม่ใช่แถบสีทึบ */
    .hero.has-hero-image::before {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: auto !important;
        height: 100px !important;
        background: linear-gradient(180deg, rgba(8, 16, 32, 0.35) 0%, rgba(8, 16, 32, 0.12) 45%, transparent 100%) !important;
        opacity: 1 !important;
        filter: none !important;
        border-radius: 0 !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-meta-item {
        width: 100%;
        max-width: 320px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .schedule-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: stretch;
        gap: 6px;
        width: 100%;
    }
    
    .schedule-tab {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 10px 6px;
        font-size: 0.78rem;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 14px;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .schedule-time {
        width: auto;
    }
    
    .schedule-type {
        margin-top: 10px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
        box-shadow: var(--card-shadow-hover);
        border-color: transparent;
    }
    
    /* Grid layouts for tablet */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Venue for tablet */
    .venue-content {
        grid-template-columns: 1fr;
    }
    
    .venue-media {
        order: -1;
    }
    
    .venue-info {
        padding: 30px;
    }
    
    .venue-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .venue-btn {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: clamp(280px, 100vw, 480px);
        height: auto;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-bg {
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: 0 !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .hero.has-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: var(--hero-aspect, 16 / 9);
        box-sizing: border-box;
    }

    .hero.has-hero-image .hero-bg {
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        animation: none !important;
        opacity: 1 !important;
    }

    .hero.has-hero-image::before {
        height: 88px !important;
        background: linear-gradient(180deg, rgba(8, 16, 32, 0.3) 0%, transparent 100%) !important;
    }

    .hero-particles {
        inset: 0;
        height: auto;
        top: 0;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.85rem;
    }
    
    .hero-meta {
        gap: 12px;
    }
    
    .hero-meta-item {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .hero-meta-icon {
        font-size: 1.2rem;
    }
    
    .icon-bg {
        width: 36px;
        height: 36px;
    }
    
    /* About Mobile */
    .about-content {
        gap: 18px;
    }

    .about-top {
        gap: 12px;
    }
    
    .about-text {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .about-title {
        font-size: clamp(1rem, 3.6vw, 1.2rem);
    }

    .about-image-wrapper {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }
    
    .highlight-card {
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
    }
    
    .highlight-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .highlight-title {
        font-size: 0.86rem;
    }

    .highlight-text {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .about-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    
    /* Speakers Mobile */
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .speaker-card {
        padding: 20px;
    }
    
    .speaker-avatar {
        width: 80px;
        height: 80px;
    }
    
    .speaker-name {
        font-size: 1rem;
    }
    
    /* Schedule Mobile */
    .schedule-item {
        padding: 16px;
    }
    
    .schedule-time {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .schedule-title {
        font-size: 0.95rem;
    }
    
    .schedule-speaker {
        font-size: 0.8rem;
    }
    
    .schedule-image-container {
        padding: 8px;
    }
    
    /* Pricing Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-type {
        font-size: 0.95rem;
    }
    
    .check-status-container {
        margin-top: 24px;
    }
    
    .check-status-btn {
        font-size: 0.95rem;
        padding: 14px 24px;
    }
    
    /* Venue Mobile */
    .venue-content {
        gap: 24px;
    }
    
    .venue-info {
        padding: 24px;
    }
    
    .venue-name {
        font-size: 1.1rem;
    }
    
    .venue-building,
    .venue-address {
        font-size: 0.85rem;
    }
    
    .venue-directions {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .directions-title {
        font-size: 0.9rem;
    }
    
    .direction-text {
        font-size: 0.8rem;
    }
    
    .venue-buttons {
        gap: 10px;
    }
    
    .venue-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
    
    .venue-image {
        max-height: 200px;
    }
    
    .venue-map {
        min-height: 250px;
    }
    
    .map-embed {
        min-height: 250px;
    }
    
    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        font-size: 1.3rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-info h3 {
        font-size: 1.1rem;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    /* Invitation Letters Mobile */
    .invitation-letters {
        padding: 20px;
        margin-top: 32px;
    }
    
    .invitation-title {
        font-size: 1rem;
    }
    
    .invitation-item {
        padding: 12px;
    }
    
    .invitation-name {
        font-size: 0.85rem;
    }
    
    /* Navbar Mobile */
    .navbar {
        padding: 8px 0;
    }
    
    .nav-brand img {
        height: 32px;
    }
    
    .nav-brand span {
        font-size: 0.85rem;
    }
    
    /* Scroll to Top - Mobile */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    
    .scroll-to-top .scroll-to-top__icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Fix Mobile Layout Issues */
    .venue-buttons {
        flex-direction: column;
    }
    
    .venue-btn {
        width: 100%;
        min-width: 0;
    }
    
    /* Reduce decorative elements size on mobile to prevent overflow issues */
    .hero::before, 
    .hero::after {
        width: 150px;
        height: 150px;
        opacity: 0.02;
        filter: blur(60px);
    }
    
    .hero::before {
        right: -20px;
    }
    
    .hero::after {
        left: -20px;
    }
    
    /* Fix About decoration overflow */
    .about-decoration {
        width: 100px;
        height: 100px;
        filter: blur(40px);
    }
    
    .about-decoration-1 {
        top: -20px;
        right: -20px;
    }
    
    .about-decoration-2 {
        bottom: -20px;
        left: -20px;
    }
}

/* ===== Partners (Organizers/Sponsors) ===== */
.partners { position: relative; }
.partners .section-header { text-align: center; }
.partners-groups { display: grid; gap: 1.25rem; }
.partners-group { position: relative; }
.partners-group::after{
    content: '';
    display: block;
    height: 2px;
    width: min(520px, 92vw);
    margin: 1.25rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(148,163,184,0.00),
        rgba(148,163,184,0.55),
        rgba(148,163,184,0.00)
    );
}
.partners-group-title {
    margin: 0 auto 0.9rem;
    width: fit-content;
    max-width: 100%;
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
    color: rgba(15,23,42,0.92);
    background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(2,132,199,0.10));
    border: 1px solid rgba(226,232,240,0.95);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(2,6,23,0.06);
    backdrop-filter: blur(8px);
}
.partners-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center; /* center each row (including last row) */
}
.partner-card {
    background: linear-gradient(165deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.34) 100%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: var(--lg-specular), var(--lg-elevate);
    backdrop-filter: blur(18px) saturate(175%);
    -webkit-backdrop-filter: blur(18px) saturate(175%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.partner-card::before{
    content:'';
    position:absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 45%, rgba(56,189,248,0.08) 100%);
    pointer-events:none;
}
.partner-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--lg-specular), var(--lg-elevate-lg);
    border-color: rgba(255, 255, 255, 0.85);
}
.partner-logo-wrap {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    text-align: center;
}
.partner-logo-img {
    width: 78px; height: 78px; object-fit: contain;
    border-radius: 14px; background: #fff;
    border: 1px solid rgba(226,232,240,0.95);
    padding: 0.35rem;
}
@media (min-width: 1024px) {
    .partner-logo-img { width: 88px; height: 88px; border-radius: 18px; padding: 0.45rem; }
}
.partner-logo-fallback{
    width: 78px; height: 78px;
    border-radius: 14px;
    display:flex; align-items:center; justify-content:center;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(15,23,42,0.92);
    background: linear-gradient(135deg, rgba(13,148,136,0.20), rgba(2,132,199,0.16));
    border: 1px solid rgba(226,232,240,0.95);
    user-select:none;
    flex: 0 0 auto;
}
@media (min-width: 1024px) {
    .partner-logo-fallback { width: 88px; height: 88px; border-radius: 18px; }
}
.partner-text{ min-width: 0; width: 100%; }
.partner-name { margin: 0; font-weight: 900; letter-spacing: -0.015em; line-height: 1.25; }
.partner-detail { margin: 0.45rem 0 0; color: rgba(71,85,105,0.95); line-height: 1.6; }

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ===== Sticky mobile register CTA ===== */
.site-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.34) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lg-specular), var(--lg-elevate-lg);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
}
.site-sticky-cta__text {
    min-width: 0;
    flex: 1;
}
.site-sticky-cta__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.site-sticky-cta__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-sticky-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px -10px rgba(13, 148, 136, 0.9);
}
.site-sticky-cta.is-visible {
    display: flex;
    animation: stickyCtaIn 0.35s ease both;
}
@keyframes stickyCtaIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 900px) {
    .site-sticky-cta { display: none !important; }
}

/* Pricing cards — calmer interaction */
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.28);
}
.pricing-card .btn {
    width: 100%;
}

/* Nav logo — flat, no glass plate behind mark */
.nav-logo-img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ===== Liquid Glass — section surfaces & a11y fallbacks ===== */
.registration,
.contact,
.speakers,
.schedule,
.venue,
.partners,
.footer {
    background: transparent !important;
}

.registration-bg {
    background:
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(2, 132, 199, 0.07) 0%, transparent 50%) !important;
}

.schedule-tab {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 100%) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.schedule-tab.active {
    background: linear-gradient(135deg, rgba(13,148,136,0.9), rgba(2,132,199,0.88)) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.35) !important;
}

@media (max-width: 1100px) {
    /*
     * มือถือ: ใช้ fixed + JS visualViewport pin (ดู initMobileNavbarLock)
     * ห้าม sticky — บน iOS จะเด้ง/เลื่อนตามแถบ address bar
     */
    .navbar-shell {
        position: fixed !important;
        /* ห้ามใส่ top/left !important — JS ตั้งตาม visualViewport */
        top: 0;
        left: 0;
        right: auto;
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 8px 0 !important;
        z-index: 1100 !important;
        pointer-events: none;
        transform: none !important;
    }

    /* ตอนเปิดเมนู: ลดชั้นแถบบน ให้ drawer อยู่เหนือสุด ไม่ถูกบัง */
    body.nav-drawer-open .navbar-shell {
        z-index: 1000 !important;
    }

    .nav-overlay {
        z-index: 10050 !important;
    }

    .nav-menu {
        z-index: 10060 !important;
    }

    .nav-toggle {
        z-index: 10070 !important;
    }

    body.nav-drawer-open .nav-toggle {
        /* ให้ปุ่มปิดเมนูยังกดได้เหนือ drawer */
        position: relative;
        z-index: 10080 !important;
    }

    .navbar-shell .navbar,
    .navbar-shell .nav-toggle,
    .navbar-shell .nav-actions,
    .navbar-shell a,
    .navbar-shell button {
        pointer-events: auto;
    }

    .navbar {
        border-radius: 22px !important;
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto !important;
    }

    body.page-loaded .navbar {
        animation: none !important;
        opacity: 1 !important;
    }

    /* ปิด sheen ที่ทำให้ดูเหมือนขยับ */
    .navbar::before {
        animation: none !important;
        opacity: 0.35;
        background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 55%);
        background-size: auto;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    /* แบนเนอร์มือถือ: กว้างเท่าจอ ตามอัตราส่วนรูป */
    .hero.has-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: var(--hero-aspect, 16 / 9);
        background-image: none !important;
        background-color: transparent;
        box-sizing: border-box;
    }

    .hero.has-hero-image .hero-bg {
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin-top: 0 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .hero.has-hero-image::before {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: auto !important;
        height: 100px !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        filter: none !important;
        background: linear-gradient(180deg, rgba(8, 16, 32, 0.35) 0%, rgba(8, 16, 32, 0.12) 45%, transparent 100%) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    :root {
        --lg-fill: rgba(255, 255, 255, 0.92);
        --lg-fill-strong: #ffffff;
        --lg-blur: none;
    }
    .navbar::after,
    .highlight-card,
    .pricing-card,
    .section-badge,
    .site-sticky-cta,
    .invitation-item,
    .partner-card,
    .scroll-to-top,
    .btn-outline,
    .nav-menu {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }
    body {
        background: #f8fafc !important;
    }
}

