* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'poppins', sans-serif;
}

p,a,input,label,textarea,span,ul,li{
    font-family: 'poppins', sans-serif;
}

#blue-header {
    padding: 0.5rem 0.5rem;
    background: #233b55;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-row{
    display: flex;
    justify-content: space-between;
    max-width: 79%;
    margin: 0 auto;
    margin-top: 0rem;
    margin-bottom: 0rem;
    flex-wrap: wrap;
    gap: 1rem;

}

.dropbtn {
    background-color: #233b55;
    color: #233b55;
    padding: 8px;
    font-size: 14.4px;
    border: none;
    cursor: pointer;
  }
  
  .location-category-dropdown {
    position: relative;
    display: inline-block;
  }
  
  .category-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .category-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .category-dropdown-content a:hover {
        background-color: #f1f1f1
    }
  
  .location-category-dropdown:hover .category-dropdown-content {
    display: block;
  }
  
  .location-category-dropdown:hover .dropbtn {
    background-color: #233b55;
  }

.head-social-media{
    display: flex;
    align-items: center;
    gap: 1rem;
}


.navbar {
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    max-width: 80%;
    margin: 0 auto;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    width: 150px;
    min-width: 150px;
}

.logo img {
    width: 100%;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
}

.main-menu a:hover {
    color: #005587;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
}

.search-input {
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: -35px;
    padding-right: 10px; /* ✅ 新增這行 */
    color: #333;
    cursor: pointer;
    line-height: 40px;
}



.search-icon i {
    pointer-events: none;
}


.search-icon button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


.language-select {
    display: flex;
    gap: 0.5rem;
}

.language-select a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 400;
}

.categories-section {
    display: flex;
    justify-content: space-between;
    max-width: 80%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Updated category-item styles */
.category-item-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 400;
    padding: 0.5rem;
    cursor: pointer;
}

.category-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

/* category-dropdown styles */
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 1rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.category-dropdown a {
    text-decoration: none;
    color: #333;
}

.category-dropdown a:hover {
    color: #005587;
}

.category-dropdown h3 {
    text-align: left;
    margin-bottom: 12px;
}

.category-item-bar:hover .category-dropdown {
    display: block;
}

.category-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.category-dropdown-menu {
    list-style: none;
    text-align: left;
}

.category-dropdown-menu li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.category-dropdown-menu a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: block;
    transition: color 0.3s;
}

.category-dropdown-menu a:hover {
    color: #005587;
}


/**** Hero Banner ****/
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: fit-content;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: flex;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}


/*.active, .dot:hover {
  background-color: #717171;
}*/

.dot.active,
.dot:hover {
  background-color: #717171;
}

/* Desktop main nav active style */
.top-nav .main-menu a.active{
  background: transparent;
  color: #005587;
  font-weight: 600;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
/**** Hero Banner ****/



















/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .categories {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .category-item {
        width: 80px;
    }

    .category-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* 20260220 desktop menu dropdown fix */
#blue-header, .navbar { position: relative; z-index: 100; }
.categories-section { position: relative; z-index: 9999; }

.category-item-bar { position: relative; z-index: 9999; }
.category-dropdown { z-index: 99999; pointer-events: auto; }

/* keep dropdown open when hovering parent or dropdown */
.category-item-bar:hover .category-dropdown,
.category-dropdown:hover { display: block; }

/* hover gap bridge */
.category-item-bar::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:14px; /* try 12px if needed */
  background:transparent;
}