body {
  font-family: Helvetica,sans-serif;
}

body.all-page {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
body.all-page * {
  box-sizing: border-box;
}
body#calendar-page #calendar{
  background: url('../img/category_bg.jpg') no-repeat top center;
   background-size: cover;
   background-attachment: fixed;
   background-color: #ffffff;
}
.disable{
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

:root {
  --primary: #2FB1E0;
  --secondary: #167293;
  --tertiary: #2eb6aa;
  --blueBg: #1C95C0;
  --bluemask: #5BC2E7CC;
  --textPrimary: #292929;
  --textSecondary: #3D3D3D;
  --light: #656565;
  --lighter: #7C7C7C;
}
.text-primary {
  color: var(--textPrimary);
}

.text-secondary {
  color: var(--textSecondary);
}

.nav-main-link {
  color: var(--textSecondary) ;
}

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

.nav-submenu-link {
  color: var(--light) ;
  font-weight: 400;
  font-size: 1.2rem;
}

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

#category-dropdown {
  position: relative;
}

#category-dropdown .category-submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  margin-top: 11px;
}

#category-dropdown.is-open .category-submenu,
#category-dropdown:hover .category-submenu {
  opacity: 1;
  visibility: visible;
}

#category-toggle .category-arrow {
  transition: transform 0.15s ease;
}

#category-dropdown.is-open #category-toggle .category-arrow {
  transform: rotate(180deg);
}


#home {
  scroll-margin-top: 100px;
  padding-top: 100px;
  margin-top: -100px;
}

#exhibitors {
  position: relative;
  background-image: url('../img/category_bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f9fafb;
}

.hero-slider {
  width: 100%;
  position: relative;
}

.hero-slider .hero-slide {
  width: 100%;
}

.hero-slider .hero-slide:first-child {
  position: relative;
}

.hero-slider .hero-slide:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-slider .hero-slide .hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-slider .hero-slide .hero-img-tablet,
.hero-slider .hero-slide .hero-img-mobile {
  display: none;
}
.hero-slider .hero-slide:not(:first-child) .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-section {
  background: url('../img/map_bg.png') no-repeat center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #E0F4FB33;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: center;
}

.map-container {
  padding: 3rem 3rem 3rem 3rem;
  background: white;
  box-shadow: 20px 20px 10px rgba(0, 145, 211, 0.2);
  width: 60%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.exhibition-map-img {
  width: 100%;
  max-width: 100%;
}

#exhibition-map-lightbox {
  z-index: 9999;
  overflow: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 5rem 1rem;
}

.exhibition-map-lightbox-inner {
  position: relative;
  display: inline-block;
  max-width: 90vw;
}

.lightbox-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10000;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

#exhibition-map-lightbox img {
  max-width: 90vw;
  width: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.official-site-btn {
  border-color: var(--secondary);
  color: var(--secondary);
  background-color: transparent;
}

.official-site-btn svg path {
  stroke: var(--secondary);
}

.official-site-btn:hover {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.official-site-btn:hover svg path {
  stroke: #ffffff;
}

.map-download-link {
  position: absolute;
  right: 1rem;
  bottom: 0rem;
  color: var(--lighter);
  border-color: #9ca3af;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-download-link svg path,
.map-download-link svg g {
  stroke: var(--lighter);
}
.map-download-link:hover {
  background-color: #e5e7eb;
  color: #6b7280;
  border-color: #9ca3af;
}
.map-download-link:hover svg path,
.map-download-link:hover svg g {
  stroke: #6b7280;
}

.download-map-btn {
  background-color: #000000;
  color: white;
}

.download-map-btn:hover {
  background-color: #333333;
  color: white;
}

.exhibitor-card p:last-of-type,
.hall-info {
  color: var(--lighter);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2rem;
  padding-top: 0.75rem;
  margin-top: auto;
}

.hall-info img {
  width: 5rem;
  height: auto;
  transition: transform 0.2s ease;
}

.hall-info img:hover {
  animation: link-icon-wiggle 0.4s ease-in-out;
}

.hall-info img {
  width: 4rem;
}
.card-shadow {
  box-shadow: 7px 7px 10px 0 rgba(91, 194, 231, 0.25);
}

@keyframes link-icon-wiggle {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.exhibitor-image {
  position: relative;
  width: 100%;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-shadow{
  box-shadow: 10px 14px 10px 0 rgba(91, 194, 231, 0.25);
}

.calendar-grid-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height 0.9s ease;
}

.calendar-grid-collapsible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
}

.calendar-grid-collapsible.calendar-grid-expanded::after {
  opacity: 0;
}

/* 收合狀態下：日曆卡片底部 60px 由實到全透明 */
.calendar-grid-collapsible:not(.calendar-grid-expanded) .calendar-event {
  -webkit-mask-image: linear-gradient(
    to bottom,
    black calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black calc(100% - 60px),
    transparent 100%
  );
}

.row-title {
  color: var(--primary);
  font-size: 4rem;
  line-height: 1.2rem;
  font-weight: 700;
}

.exhibitor-prev-row,
.exhibitor-next-row {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.exhibitor-prev-row:hover,
.exhibitor-next-row:hover {
  background-color: var(--textSecondary) !important;
}

.view-more-btn {
  background-color: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background-color: var(--primary);
  color: white;
}
#videos .view-more-btn {
  background-color: var(--secondary);
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background-color: var(--primary);
  color: white;
}

#exhibitors .flex.justify-center:has(.view-more-btn) {
  margin-top: 3rem !important;
}

.exhibitor-row {
  transition: transform 1.5s ease-in-out;
  column-gap: 40px;
}

#exhibitors .overflow-hidden {
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: -15px;
  margin-bottom: -15px;
}

.exhibitor-card {
  height: 520px;
  transition: transform 0.4s ease;
}

.exhibitor-card:hover {
  transform: translateY(-8px);
}

.exhibitor-card > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.exhibitor-card > a > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.exhibitor-card .exhibitor-image {
  flex-shrink: 0;
}

.exhibitor-card h3 {
  font-size: 1.65rem;
  line-height: 1.3;
}

.all-page .exhibitor-card {
  height: 350px;
  transition: transform 0.4s ease;
}

.all-page .exhibitor-card > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.all-page .exhibitor-card > div > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.all-page .exhibitor-card > div > a > div.p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.all-page .exhibitor-card {
  min-width: 0;
  overflow: hidden;
}
.all-page .exhibitor-card .exhibitor-image {
  height: auto;
  align-items: flex-start;
  max-width: 100%;
}
.all-page .exhibitor-card .exhibitor-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.all-page .exhibitor-card h3{
  font-size: 1.35rem;
}
.all-page .exhibitor-card .hall-info{
  font-size: 1.25rem;
  margin-top: auto;
}

#videos {
  background-color: var(--secondary);
}

/* 5 隻影片居中排列 */
#videos .grid.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 220px));
  justify-content: center;
  justify-items: center;
}

/* Calendar 區塊：深色背景 + 白色文字基底 */
#calendar{
  background: url('https://download.brightideas.com.tw/2026EISENWARENMESSE/assets/img/calendar_bg.jpg') no-repeat top center;
   background-size: cover;
   background-attachment: fixed;
   background-color: var(--primary);
  color: #ffffff;
 }

/* calendar 區塊標題與說明文字改為白色 */
#calendar .section-title {
  color: #ffffff;
}

#calendar .text-gray-600 {
  color: #ffffff;
}

/* calendar 區塊中的日曆卡片：移除 card-shadow，補上淺灰色框線 */
#calendar .calendar-event.card-shadow:not(.border-2) {
  box-shadow: none;
  border: 1px solid #e5e7eb; /* Tailwind gray-200 */
}

#calendar .calendar-event.card-shadow.border-2 {
  box-shadow: none;
}

.footer-new {
  background-color: #F3F5F6;
  padding: 1.5rem 0;
  width: 100%;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.08);
}

.footer-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1vw;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3vw;
}

.footer-brand-item {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-shrink: 0;
}

.footer-logo-ita {
  width: 10vw;
  height: auto;
  
}

.footer-logo-ita img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-logo-taitra {
  width: 7vw;
  height: auto;
}

.footer-logo-taitra img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.footer-copyright {
  color: #656565;
  font-size: 1rem;
  margin: 0;
}

.exhibition-itinerary-section {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 14vh;
  background-image: url('../img/exhibition_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.exhibition-itinerary-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(22, 114, 147, 1) 0%, rgba(22, 114, 147, 0.9) 50%, rgba(22, 114, 147, 0) 85%);
  z-index: 1;
}

.exhibition-itinerary-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem 2rem;
  max-width: 100%;
}

.exhibition-itinerary-title {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
  
}

.exhibition-itinerary-title span {
  display: block;
  font-size: 4rem;
}

.exhibition-download-btn {
  border: 1px solid currentColor;
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: noto-sans-tc, sans-serif;
}

.exhibition-download-btn:hover {
  background-color: #ffffff;
  border-color: currentColor;
}

@media (min-width: 768px) {
  .exhibition-itinerary-section {
    height: 495px;
  }
  
  .exhibition-itinerary-content {
    padding: 3rem 3rem 3rem 4rem;
  }
  
  .exhibition-itinerary-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .exhibition-itinerary-section {
    height: 495px;
  }
  
  .exhibition-itinerary-content {
    padding: 4rem 4rem 4rem 6rem;
  }
  
  .exhibition-itinerary-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1280px) {
  .exhibition-itinerary-section {
    height: 495px;
  }
  
  .exhibition-itinerary-content {
    padding: 5rem 5rem 5rem 8rem;
  }
  
  .exhibition-itinerary-title {
    font-size: 5.5rem;
  }
}

.go-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(91, 194, 231, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 60;
}

.go-top-btn--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.go-top-btn--lightbox-open {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.go-top-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 25px -5px rgba(91, 194, 231, 0.4);
  transform: translateY(-2px);
}

.text-shadow {
  text-shadow: 4px 4px 6px rgba(0,0,0,0.2);
}
@keyframes calendar-toggle-breathe {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

#calendar-toggle {
  will-change: transform;
}

#calendar-toggle[aria-expanded="false"] {
  animation: calendar-toggle-breathe 3s ease-in-out infinite;
}

#calendar-toggle[aria-expanded="true"] {
  animation: none;
}
