/* 全域 box-sizing 設定 */
* {
    box-sizing: border-box;
}

/* 字體變數設定 */
:root {
    --font-chinese: 'Noto Sans TC', '思源黑體', sans-serif;
    --font-english: 'Roboto', sans-serif;
    --color-primary: #ffffff;
    --color-secondary: #cccccc;
    --color-accent: #007acc;
    --color-gold: #d4af37;
    --color-blue: #1e90ff;
    --color-purple: #8a2be2;
    --color-dark: #0a0a0a;
    --color-dark-secondary: #1a1a1a;
    --container-max-width: 1200px;
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
    --spacing-xlarge: 4rem;
}

/* 基本樣式 */
body {
    font-family: var(--font-chinese);
    background-color: var(--color-dark);
    color: var(--color-primary);
    line-height: 1.6;
}

.english-text {
    font-family: var(--font-english);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Navigation Text 樣式 */
.nav-text {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    color: white;
}

.nav-text .container {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.nav-text .container > * {
    font-size: 1.2rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.series-text {
    color: var(--color-primary);
}

.divider {
    color: var(--color-primary);
    margin: 0 4px;
}

.main-title {
    color: var(--color-primary);
}

.nav-text a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.nav-text a:hover {
    color: #cccccc;
}

.nav-logo {
    height: 32px;
    position: absolute;
    top: 0px;
    right: 60px;
}

/* 漢堡選單初次出現動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 漢堡選單按鈕 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 遮罩層 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* 頂部滑入選單 */
.mobile-menu {
    position: fixed;
    top: -320px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    top: -10px;
}



.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu-content {
    padding: 50px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-item {
    display: block;
    padding: 20px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
    margin: 2px 0;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-2px);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* 防止背景滾動 */
body.menu-open {
    overflow: hidden;
}

/* 淡入動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 初始狀態 - 隱藏 */
.fade-in-element {
    opacity: 0;
}

/* 動畫觸發狀態 */
.fade-in-element.loaded {
    animation: fadeInUp 1s ease-out forwards;
}

/* 不同延遲時間 */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
}

.hero-content img {
    max-width: 90%;
    height: auto;
}

/* Description Section */
.description-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    height: 80vh;
    display: flex;
    align-items: center;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-large) 0;
}

.section-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: #000000;
    text-align: center;
    margin-bottom: var(--spacing-large);
    font-weight: 700;
    font-style: italic;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 4px;
    background-color: #3516c2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #000000;
    text-align: center;
    margin-bottom: var(--spacing-xlarge);
    font-weight: 500;
    margin-top: var(--spacing-large);
}

.section-text {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

.section-text p {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: #000000;
    margin-bottom: var(--spacing-large);
    text-align: center;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xlarge);
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-medium);
    color: var(--color-primary);
}

.desc-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-large);
    color: var(--color-secondary);
}

.description-blocks {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.desc-block {
    margin-bottom: var(--spacing-large);
}

.desc-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-secondary);
}

/* Feature Cards */
.feature-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xlarge) 0 calc(var(--spacing-xlarge) * 3) 0;
}

/* Intro Text Styles */
.intro-text {
    max-width: 1200px;
    margin: 0 auto var(--spacing-xlarge) auto;
    text-align: center;
}

.intro-text p {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: white;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-large);
    margin-bottom: var(--spacing-xlarge);
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.feature-card {
    position: relative;
    overflow: hidden;
    height: auto;
    transition: transform 0.3s ease;
}

.card-wrapper:hover .feature-card {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.card-bg {
    width: 100%;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 16/9;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: var(--spacing-large);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-title img {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
}

/* Card Info Styles */
.card-info {
    text-align: center;
    padding: 0.2rem 0;
    margin-top: -5rem;
}

.card-info .date {
    font-size: 2.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-small);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-info .date .day {
    font-size: 1.6rem;
}

.card-info .date .time {
    font-size: 1.6rem;
    font-weight:600;
}

.card-info .location {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-small);
}

.card-info .location::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: var(--spacing-small);
}


/* Event Tabs & Schedule Section */
.event-tabs-schedule {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 ;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 50px;
    position: relative;
    margin-top: -100px;
    margin-bottom: 1px;
    z-index: 30;
    width: 100%;
}

.tab-btn {
    background: #888;
    color: white;
    padding: 8px 12px;
    border: 1px solid #888;
    border-bottom: none;
    font-size: 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    position: relative;
    margin-bottom: -1px;
}

.tab-btn:hover {
    background: #555;
    color: white;
    border-color: #555;
}

/* Active tabs should not change on hover */
.tab-btn.active:hover {
    background: inherit;
    color: inherit;
    border-color: inherit;
}

/* Individual tab colors when active */
.tab-btn[data-event="financial"].active {
    background: #c3996a;
    color: white;
    font-weight: 400;
    border: 1px solid #c3996a;
    box-shadow: 0 2px 8px rgba(195, 153, 106, 0.3);
    z-index: 31;
}

.tab-btn[data-event="semiconductor"].active {
    background: #00aad3;
    color: white;
    font-weight: 400;
    border: 1px solid #00aad3;
    box-shadow: 0 2px 8px rgba(0, 170, 211, 0.3);
    z-index: 31;
}

.tab-btn[data-event="strategy-am"].active {
    background: #6441fe;
    color: white;
    font-weight: 400;
    border: 1px solid #6441fe;
    box-shadow: 0 2px 8px rgba(100, 65, 254, 0.3);
    z-index: 31;
}

.tab-btn[data-event="strategy-pm"].active {
    background: #6441fe;
    color: white;
    font-weight: 400;
    border: 1px solid #6441fe;
    box-shadow: 0 2px 8px rgba(100, 65, 254, 0.3);
    z-index: 31;
}

/* White Content Container */
.event-content-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 12px 12px 12px;
    padding: calc(var(--spacing-xlarge) * 1.2);
    padding-top: calc(var(--spacing-xlarge) * 1.2 + 20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: -1px auto 0 auto;
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

/* Event Header */
.event-header {
    text-align: center;
    margin-bottom: var(--spacing-xlarge);
    padding-bottom: var(--spacing-large);
    border-bottom: 1px solid #e0e0e0;
}

.event-header img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xlarge);
}

/* Schedule Section */
.schedule-section {
    width: 100%;
}

.schedule-list {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Schedule Header */
.schedule-header {
    display: flex;
    background: #c3996a; /* 預設主題色，會根據活動類型動態調整 */
    color: white;
    font-weight: 700;
    border-bottom: 1px solid #e0e0e0;
}

.time-header {
    font-family: var(--font-english);
    font-size: 1.3rem;
    min-width: 120px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-header {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 1.4rem;
}

/* 當有來賓報到時，第二欄置中顯示 */
.schedule-header.has-registration .content-header {
    justify-content: center;
    text-align: center;
}

/* Header background based on event type */
.event-financial .schedule-header {
    background: #c3996a;
}

.event-semiconductor .schedule-header {
    background: #00aad3;
}

.event-strategy-am .schedule-header,
.event-strategy-pm .schedule-header {
    background: #6441fe;
}

.schedule-item {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .time {
    font-family: var(--font-english);
    font-size: 1.3rem;
    color: #666; /* 預設顏色 */
    min-width: 120px;
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white; /* 移除背景色 */
}

/* Time colors based on event type */
.event-financial .schedule-item .time {
    color: #c3996a;
}

.event-semiconductor .schedule-item .time {
    color: #00aad3;
}

.event-strategy-am .schedule-item .time,
.event-strategy-pm .schedule-item .time {
    color: #6441fe;
}

.item-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 有 badge 時改為橫向佈局 */
.item-content:has(.badge-container) {
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

/* Badge 容器 - 左側置中 */
.badge-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.badge-container .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 0px;
    font-size: 1.8rem;
    font-weight:500;
    color: white;
    width: fit-content;
}

/* 文字容器 - 右側 */
.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 沒有 badge 時的舊樣式 */
.item-content .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 0px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-right: 8px;
    width: fit-content;
}

/* Badge Colors using theme colors */
.event-financial .schedule-item .badge {
    background: #c3996a;
}

.event-semiconductor .schedule-item .badge {
    background: #00aad3;
}

.event-strategy-am .schedule-item .badge,
.event-strategy-pm .schedule-item .badge {
    background: #6441fe;
}

.item-content .title {
    font-size: 1.4rem;
    color: #000;
    font-weight: 500;
    line-height: 1.4;
}

/* 講師姓名 - 與標題相同大小，黑色 */
.speaker-name {
    font-size: 1.4rem;
    color: #000;
    font-weight: 500;
    line-height: 1.4;
    display: inline;
}

/* 講師職稱 - 較小字體，黑色，內聯顯示 */
.speaker-title {
    font-size: 1.1rem;
    color: #000;
    font-weight: 400;
    display: inline;
}

/* 舊的講師樣式（向後相容） */
.item-content .speaker {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Speakers Section */
.speakers-section {
    width: 100%;
}

.speakers-section h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-large);
    color: #000;
    text-align: center;
    font-weight: 700;
    font-style: italic;
    position: relative;
    padding-bottom: var(--spacing-small);
}

.speakers-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: #c3996a; /* 預設主題色 */
}

/* Theme-based underline colors */
.event-financial .speakers-section h3::after {
    background: #c3996a;
}

.event-semiconductor .speakers-section h3::after {
    background: #00aad3;
}

.event-strategy-am .speakers-section h3::after,
.event-strategy-pm .speakers-section h3::after {
    background: #6441fe;
}

.speakers-carousel {
    position: relative;
    background: transparent;
    border-radius: 8px;
    padding: var(--spacing-large) 40px;
    overflow: hidden;
    z-index: 1;
    margin: 0;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.nav-btn {
    background: transparent;
    color: #000000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 100;
    position: relative;
}

.nav-btn:hover {
    color: #333333;
    transform: scale(1.2);
}

.speakers-track {
    display: flex;
    gap: var(--spacing-large);
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
}

.speaker-card {
    flex: 0 0 calc((100% - 3 * var(--spacing-large)) / 4);
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 0;
}

.speaker-card:hover {
    transform: translateY(-3px);
}

.speaker-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 4px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speaker-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(195, 153, 106, 0.3);
}

.speaker-info h4 {
    font-size: 1.6rem;
    color: #000;
    margin-bottom: 3px;
    font-weight: 600;
}

.speaker-info .title {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2px;
}

/* Register Area (inside white container for D event) */
.register-area {    
    padding-top: var(--spacing-large);
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Bottom Info Area (outside white container for A/B/C events) */
.bottom-info {
    margin-top: var(--spacing-large);
    padding: 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.invitation-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
    line-height: 1.5;
    text-decoration: underline;
}

.invitation-text u {
    text-decoration: underline;
}

@keyframes gentle-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(100, 65, 254, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(100, 65, 254, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(100, 65, 254, 0.3);
    }
}

.register-button {
    display: inline-block;
    background: #6441fe;
    color: white;
    padding: 8px 100px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.register-button:hover {
    background: #5638d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 65, 254, 0.3);
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    background-image: url('../images/bg_05.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xlarge) 0 var(--spacing-large);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.footer-content h2 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-xlarge);
    color: var(--color-primary);
    text-align: center;
    font-weight: 600;
    transform: skew(-5deg);
    position: relative;
    padding-bottom: var(--spacing-medium);
    letter-spacing: 0.1em;
}

.footer-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 4px;
    background-color: #cafa7a;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xlarge);
    margin-bottom: var(--spacing-xlarge);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.transport-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large);
}

.address {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-medium);
}

.address .icon {
    width: 24px;
    height: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.address-text p {
    margin-bottom: var(--spacing-small);
    font-size: 1.1rem;
}

.address-text p:first-child {
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: normal;
}

.transport-options {
    display: flex;
    flex-direction: column;
}

.transport-option {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-medium);
    margin-bottom: 1rem;
}

.transport-option:last-child {
    margin-bottom: 0;
}

.transport-option .option-text {
    flex: 1;
}

.transport-option .icon {
    width: 24px;
    height: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.option-text h4 {
    color: #cafa7a;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-small);
}

.option-text p {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-large);
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.footer-logos img {
    height: 48px;
}

/* Speaker Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    display: flex;
    gap: var(--spacing-xlarge);
    padding: 40px;
}

.modal-photo {
    flex-shrink: 0;
}

.modal-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c3996a;
}

.modal-info {
    flex: 1;
    padding-top: 20px;
}

.modal-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.modal-info h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

.modal-divider {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Mobile Modal Styles */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        flex-direction: column;
        gap: var(--spacing-large);
        padding: 30px 20px;
        text-align: center;
    }

    .modal-photo {
        text-align: center;
        margin: 0 auto;
    }

    .modal-photo img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        display: block;
    }

    .modal-info {
        padding-top: 0;
    }

    .modal-info h3 {
        font-size: 1.6rem;
    }

    .modal-info h4 {
        font-size: 1.1rem;
    }

    .modal-info p {
        font-size: 1rem;
        text-align: left;
    }
}

/* 移除講師彈跳視窗照片的外框線 */
.modal-photo img {
  border: none !important;
  box-shadow: none !important;
}

/* 手機版報名按鈕左右留白調整 */
@media (max-width: 767px) {
  .register-button {
    padding: 10px 40px !important; /* 左右縮小 */
    font-size: 1.3rem; /* 視覺比例稍微縮小 */
  }
}

/* 高階專屬午宴：桌機版三位講師置中 & 移除左右箭頭 */
@media (min-width: 1200px) {

    /* 讓講師卡片容器不再偏左，改成置中 */
    .event-strategy-am #speakers-track {
        justify-content: center !important;
        transform: none !important;
    }

    /* 隱藏左右切換箭頭 */
    .event-strategy-am #prev-btn,
    .event-strategy-am #next-btn {
        display: none !important;
    }
}