/* START OF FILE style.css */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
}

header {
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

header h1 {
  color: #1a3e6e;
  font-size: 1.8rem;
  margin: 0;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #1a3e6e;
  font-weight: 500;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: #f2f8ff;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  margin-bottom: 2rem; /* Ensure gap on wrap */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a3e6e;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero a.button {
  padding: 0.8rem 1.5rem;
  background-color: #1a3e6e;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.hero img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-left: 0;
}

@media (min-width: 768px) {
  .hero-text {
      margin-bottom: 0;
  }
  .hero img {
      margin-left: 3rem;
      width: auto;
  }
}

.section {
  padding: 3rem 2rem;
  text-align: center;
}
.section:nth-of-type(odd) {
   background-color: #f9f9f9;
}
.section:nth-of-type(even) {
   background-color: #ffffff;
}
.hero.section {
    background-color: #f2f8ff;
}

.section h3 {
  font-size: 2rem;
  color: #1a3e6e;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.section img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.products-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  width: 240px;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 8px;
  display: block;
}

.product-card h4 {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1.15rem;
  color: #1a3e6e;
  line-height: 1.4;
  min-height: 3.2em;
}

/* --- START: MODIFIED CHANNEL LOGOS SECTION (v2 - No Background) --- */

.channels-logos {
  display: grid;
  /* Slightly adjust minmax if needed, maybe smaller min */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2.5rem; /* Increased gap further for more spacing */
  margin-top: 2.5rem;
  justify-items: center; /* Center items horizontally within grid cells */
  align-items: center; /* Center items vertically within grid cells */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0; /* Add some vertical padding to the container */
}

.channel-logo {
  /* --- Removed Styles --- */
  /* background-color: white; */
  /* padding: 0.75rem; */
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.07); */
  /* box-sizing: border-box; */ /* Not needed without padding/border */

  /* --- Sizing Strategy: Max Height, Auto Width --- */
  max-height: 45px; /* Set a maximum height (Adjust 45px value as needed) */
  height: auto;     /* Allow shrinking */
  width: auto;      /* Width adjusts to maintain aspect ratio */
  max-width: 100%;  /* Prevent overflowing the grid cell */

  object-fit: contain; /* Keep this for good scaling */
  display: block;      /* Ensure block behavior */
  margin: 0 auto;      /* Horizontal centering within cell */

  /* --- Removed Hover Effect --- */
  /* transition: transform 0.2s ease; */
}

/* Remove hover style as there's no card to scale */
/*
.channel-logo:hover {
    transform: scale(1.05);
}
*/

/* --- END: MODIFIED CHANNEL LOGOS SECTION (v2 - No Background) --- */


#contact a, #feedback a {
    color: #1a3e6e;
    text-decoration: none;
    font-weight: 500;
}
#contact a:hover, #feedback a:hover {
    text-decoration: underline;
}
#feedback a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #e7f0f7;
    border-radius: 5px;
}
#feedback a:hover {
    background-color: #d0e0ef;
    text-decoration: none;
}

footer {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  header h1 {
      margin-bottom: 0.5rem;
      font-size: 1.6rem;
  }
  nav {
      margin-top: 0.5rem;
  }
  nav a {
      margin: 0 0.75rem;
  }
  .hero {
      padding: 3rem 1.5rem;
      text-align: center;
  }
  .hero h2 {
      font-size: 2rem;
  }
  .hero p {
      font-size: 1.1rem;
  }
  .hero img {
      margin-left: 0;
      margin-top: 2rem;
      max-width: 250px;
  }
  .section {
      padding: 2.5rem 1.5rem;
  }
  .section h3 {
      font-size: 1.8rem;
  }
  .product-card {
      width: calc(50% - 1rem);
      max-width: 220px;
  }
  .channels-logos {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust for smaller screens */
      gap: 1.5rem; /* Adjust gap */
  }
  .channel-logo {
       max-height: 40px; /* Slightly smaller max height on mobile */
  }
}

@media (max-width: 480px) {
  nav a {
      margin: 0 0.5rem;
      font-size: 0.9rem;
  }
   .product-card {
      width: 100%;
      max-width: 280px;
   }
   .channels-logos {
      grid-template-columns: repeat(2, 1fr); /* Force 2 columns on very small screens */
      gap: 1.5rem; /* Keep a decent gap */
   }
   .channel-logo {
       max-height: 35px; /* Even smaller max height */
   }
}



/* === 新增 SelectUSA Hero 區標示樣式 === */
.selectusa-badge-hero {
  display: inline-block; /* Or block if you want it on its own line */
  background-color: #e7f0f7; /* Light blue background */
  color: #1a3e6e; /* Dark blue text */
  padding: 0.3rem 0.8rem;
  border-radius: 15px; /* Pill shape */
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem; /* Space below the badge */
}
/* ===================================== */

/* === About 區塊更新樣式 === */
#about h4 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #1a3e6e;
  margin-bottom: 0.5rem; /* Reduced bottom margin */
}
#about ul {
  list-style: none; /* Remove default bullets */
  padding: 0;
  max-width: 600px; /* Limit width */
  margin: 0 auto 2rem; /* Center align and add bottom margin */
  text-align: left; /* Align text left for readability */
}
#about li {
  margin-bottom: 0.75rem; /* Space between list items */
  font-size: 1rem;
  line-height: 1.5;
}
#about li strong {
  color: #1a3e6e; /* Highlight the year/label */
  margin-right: 0.5rem;
}
/* ========================== */

/* === News 區塊樣式 (範例) === */
#news .news-item {
  max-width: 700px;
  margin: 0 auto;
  text-align: left; /* Align text left */
  padding: 1.5rem;
  background-color: #ffffff; /* White background for contrast */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#news h4 {
  font-size: 1.4rem;
  color: #1a3e6e;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
#news p {
    font-size: 1rem; /* Slightly smaller text */
    margin-bottom: 1rem;
    text-align: left; /* Ensure paragraph text is left aligned */
}
#news a {
    color: #1a3e6e;
    font-weight: 500;
}
.selectusa-news-logo {
  display: block; /* Make it block to use margin auto */
  margin: 1rem auto 0; /* Center the logo */
  max-height: 50px;
  width: auto;
}
/* ========================= */


/* === Footer 信任徽章樣式 === */
.trust-badges {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem; /* Space between badges */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.trust-badges img {
  max-height: 40px; /* Control badge height */
  width: auto;
  opacity: 0.8; /* Slight fade for subtlety */
  transition: opacity 0.2s ease;
}
.trust-badges img:hover {
    opacity: 1;
}

/* END OF FILE style.css */