/* ========== 導航 / 選單 (僅小螢幕) ========== */
@media (max-width: 767px) {
    nav.bg-white {
        position: relative;
    }
    #nav-menu.is-open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        z-index: 40;
        padding: 1rem 0;
        align-items: stretch;
    }
    #nav-menu.is-open .flex.text-xl {
        flex-direction: column;
        width: 100%;
    }
    #nav-menu.is-open .nav-main-link {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    #nav-menu.is-open #category-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    #category-dropdown .category-submenu {
        position: static;
        margin-top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f3f4f6;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    #category-dropdown.is-open .category-submenu {
        display: block;
    }
    #nav-menu.is-open #category-dropdown .category-submenu a {
        padding: 0.75rem 1.5rem;
        text-align: center;
    }
}

/* ========== 1200px 以下 ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 96%;
    }
    .navbar,
    nav.bg-white {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #exhibitors .text-center.mb-12 h2 {
        font-size: 2.5rem;
    }
    #exhibitors .text-center.mb-12 h3 {
        font-size: 2rem;
    }
    #exhibitors .text-center.mb-12 p {
        font-size: 1.125rem;
    }
    .row-title {
        font-size: 3rem;
    }
    .exhibitor-prev-row,
    .exhibitor-next-row {
        width: 3rem;
        height: 3rem;
    }
}

/* ========== 1024px 以下 ========== */
@media (max-width: 1024px) {
    .container {
        max-width: 98%;
    }
    #exhibitors .text-center.mb-12 h2 {
        font-size: 2.25rem;
    }
    #exhibitors .text-center.mb-12 h3 {
        font-size: 1.75rem;
    }
    .row-title {
        font-size: 2.5rem;
    }
    .hall-info img {
        margin-top: 0.5rem;
        width: 25%;
    }
    #exhibitors .exhibitor-card h3 {
        font-size: 1.5rem;
    }
    #exhibitors .exhibitor-card .hall-info {
        font-size: 1.3rem;
    }
    #exhibitors .exhibitor-card p.text-xl {
        font-size: 1.1rem;
    }
    #exhibitors .exhibitor-row .exhibitor-card {
        width: 33.333%;
        min-width: 0;
    }
    #videos .grid.grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    #videos .text-center.mb-16 h3 {
        font-size: 2rem;
    }
    #videos .text-center.mb-16 p {
        font-size: 1rem;
    }
    .map-container {
        width: 85%;
        padding: 2rem;
    }
    #location .text-center.mb-12 h3 {
        font-size: 2rem;
    }
    /* all-page */
    .all-page .exhibitor-card h3 {
        font-size: 1.2rem;
    }
    .all-page .exhibitor-card .hall-info {
        font-size: 1.1rem;
    }
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .all-page #exhibitors .text-center.mb-12 h2 {
        font-size: 2.5rem;
    }
    .all-page #exhibitors .text-center.mb-12 p {
        font-size: 1.1rem;
    }
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 768px 以下 ========== */
@media (max-width: 768px) {
    .container {
        max-width: 96%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-slider .hero-slide .hero-img-desktop,
    .hero-slider .hero-slide .hero-img-mobile {
        display: none !important;
    }
    .hero-slider .hero-slide .hero-img-tablet {
        display: block !important;
    }
    #home .hero-slider .hero-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
    #exhibitors {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #exhibitors .text-center.mb-12 {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    #exhibitors .text-center.mb-12 h2 {
        font-size: 2rem;
    }
    #exhibitors .text-center.mb-12 h3 {
        font-size: 1.5rem;
    }
    #exhibitors .text-center.mb-12 p {
        font-size: 1rem;
    }
    .row-title {
        font-size: 2rem;
    }
    .exhibitor-card {
        min-width: 280px;
    }
    .exhibitor-row .exhibitor-card {
        width: 50%;
        min-width: 260px;
    }
    .exhibitor-prev-row,
    .exhibitor-next-row {
        width: 2rem;
        height: 2rem;
    }
    #videos .grid.grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    #videos .text-center.mb-16 h3 {
        font-size: 1.75rem;
    }
    #videos {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #videos .flex.justify-center.mt-6.mb-16 {
        margin-bottom: 2rem;
    }
    .map-container {
        width: 95%;
        padding: 1.5rem;
    }
    #location {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #location .text-center.mb-12 h3 {
        font-size: 1.5rem;
    }
    #location .flex.justify-center.gap-4.mt-8 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .footer-left {
        justify-content: center;
    }
    .footer-right {
        justify-content: center;
    }
    .footer-logo-ita {
        width: 24vw;
        padding: 0.75rem 1rem;
    }
    .footer-logo-taitra {
        width: 16vw;
    }
    .exhibition-itinerary-section {
        height: auto;
        min-height: 14vh;
    }
    .exhibition-itinerary-content {
        padding: 2rem 1rem !important;
    }
    .exhibition-itinerary-title span {
        font-size: 2.5rem;
    }
    .go-top-btn {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
    /* all-page */
    .all-page #exhibitors {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .all-page #exhibitors .text-center.mb-12.pb-10 {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }
    .all-page #exhibitors .text-center.mb-12.pb-10 h2 {
        font-size: 2rem;
    }
    .all-page #exhibitors .text-center.mb-12.pb-10 p {
        font-size: 1rem;
    }
    .all-page .row-title {
        font-size: 1.75rem;
        line-height: 1.75rem;
    }
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 640px 以下 ========== */
@media (max-width: 640px) {
    .container {
        max-width: 96%;
    }
    #exhibitors .text-center.mb-12 h2 {
        font-size: 1.75rem;
    }
    #exhibitors .text-center.mb-12 h3 {
        font-size: 1.35rem;
    }
    .row-title {
        font-size: 1.75rem;
    }
    #exhibitors .exhibitor-row .exhibitor-card {
        width: 50%;
        min-width: 0;
    }
    #videos .grid.grid-cols-5 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    #videos .text-center.mb-16 h3 {
        font-size: 1.5rem;
    }
    .map-container {
        width: 100%;
        padding: 1rem;
    }
    .exhibition-itinerary-title span {
        font-size: 2rem;
    }
    .footer-logo-ita {
        width: 28vw;
        padding: 0.75rem;
    }
    .footer-logo-taitra {
        width: 22vw;
        padding: 0.75rem;
    }
    /* all-page */
    .all-page .row-title {
        margin-bottom: 1rem;
    }
    .all-page #exhibitors .text-center.mb-12.pb-10 h2 {
        font-size: 1.7rem;
    }
    .all-page #exhibitors .text-center.mb-12.pb-10 p {
        font-size: 0.95rem;
    }
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 480px 以下 ========== */
@media (max-width: 480px) {
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: 1fr;
    }
    .all-page .exhibitor-card {
        height: auto;
    }
    .all-page .exhibitor-card > div {
        padding: 2rem 1rem;
    }
    .all-page .hall-info img {
        width: 6rem;
    }
}

/* ========== 440px 以下 ========== */
@media (max-width: 440px) {
    #exhibitors .text-center.mb-12 h2 {
        font-size: 1.5rem;
    }
    #exhibitors .text-center.mb-12 h3 {
        font-size: 1.2rem;
    }
    .row-title {
        font-size: 1.5rem;
    }
    #exhibitors .overflow-hidden {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        box-sizing: border-box;
    }
    #exhibitors .exhibitor-row .exhibitor-card {
        width: 100%;
        min-width: 0;
    }
    .all-page .exhibitor-card {
        height: auto;
    }
    .exhibition-itinerary-title span {
        font-size: 1.75rem;
    }
    .go-top-btn {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }
    .footer-logo-ita {
        width: 36vw;
    }
    .footer-logo-taitra {
        width: 28vw;
    }
}

/* ========== 375px 以下 ========== */
@media (max-width: 375px) {
    .hero-slider .hero-slide .hero-img-desktop,
    .hero-slider .hero-slide .hero-img-tablet {
        display: none !important;
    }
    .hero-slider .hero-slide .hero-img-mobile {
        display: block !important;
    }
}

/* ========== 大螢幕 (1025px 以上) ========== */
@media (min-width: 1025px) {
    .all-page #exhibitors .grid.grid-cols-1 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
