/* * {
  outline: 1px solid rgba(0, 0, 0, 0.1);
} */

/* .debug-target {
  outline: 3px solid red;
} */

/* body {
  outline: 26px solid red !important;
} */

body {
  background: #f5f7fb;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #222;
  line-height: 1.5;
}

/* ===================================================
   Layout
   =================================================== */

.page-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* adds comfortable side space */
  box-sizing: border-box;
}

/* ===================================================
   Header + Search + Notification
   =================================================== */

.custom-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  min-height: 100px;
  background: linear-gradient(180deg, #3f6ff0 0%, #3f6ff0 63%, #68a5ff 100%);
}

.header-left {
  flex: 1;
}

.header-right {
  flex: 1;
  max-width: 420px;
}

.site-title {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
}
.site-title a {
  color: white;
  text-decoration: none;
  /* margin-left: 0; */
}

/* Header: Search */

.search-container {
  display: flex;
  width: 100%;
  gap: 10px;
}
.search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-box {
  width: 100%;
  height: 40px;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

.search-button {
  padding: 0 25px;
  background-color: #66b3ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  height: 40px;
}
.search-button:hover {
  background-color: #3399ff;
}

.search-dropdown {
  position: absolute;
  width: 100%;
  border-radius: 0 0 4px 4px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: white;
  z-index: 1000;
}
.search-dropdown div {
  padding: 10px;
  cursor: pointer;
}
.search-dropdown div:hover {
  background-color: #f1f1f1;
  width: 100%;
}

.hidden {
  display: none;
}
.highlighted {
  background-color: #4a4a4ac9 !important;
  color: white !important;
}

/* Header: Notification (toast) */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e72e2e;
  color: whitesmoke;
  padding: 15px 10px;
  border-radius: 8px;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}
.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================
   A11y Utilities
   =================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===================================================
   Navbar / Menu
   =================================================== */

.navbar {
  background-color: #333;
  padding: 0 10px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 42px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu li {
  position: relative;
}
.menu li a {
  color: white;
  text-decoration: none;
  padding: 10px 10px;
  display: block;
  width: 100px;
  text-align: left;
}

.menu li .dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #444;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 1000;
}
.menu li .dropdown a {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  display: block;
  width: 300px;
}
.menu li .dropdown a:hover {
  background-color: #575757;
}

/* ===================================================
   Home Sections
   =================================================== */

/* Brand Logos Strip */
/* .brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-logos a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 50px;
  text-decoration: none;
}

.brand-logos img {
  max-height: 45px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
} */

/* Brand Logos Strip (replace the flex version) */
/* .brand-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-logos a {
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

/* Brand Logos - Desktop default (strip) */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;

  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 15px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-logos a {
  width: 110px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logos img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-block {
  margin-top: 44px;
}

/* Homepage Description */
.hero {
  /* max-width: 720px;
  margin: 18px auto;
  padding: 18px 10px 8px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
  /* outline: 6px solid red !important; */

  max-width: 1000px;
  margin: 24px auto;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.homepage-description {
  font-size: 24px;
  color: #222;
  text-align: center;
  max-width: 900px;
  margin: 24px auto;
  line-height: 1.6;
  padding: 0 15px;
}
.description-divider {
  height: 4px;
  background-color: #be0e0e;
  width: 180px;
  border-radius: 5px;
  margin: 20px auto;
}

/* Listing Grid */
.listing-row {
  margin-top: 40px;
  padding: 0 20px;
}

.listing-row h2 {
  font-size: 26px;
  margin-bottom: 18px;
  color: #222;
}

.items-row {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: center; /* key change */
  gap: 25px; /* you already have gap; keep it */
}

.item {
  flex: 0 1 230px;
  text-align: center;
}

/* .item {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
} */

/* .item:hover {
  transform: translateY(-3px);
} */

.item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

.item figcaption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}
.speaker-link {
  text-decoration: none;
  color: inherit;
}

/* Featured Cards (2) */
/* .card-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 50px 40px 0;
} */
.card-container {
  display: flex;
  padding: 0;
  margin-top: 44px;
  gap: 20px;
}

.card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 48%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
}
.card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row;
}
.card-content img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}
.text-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}
.text-content p {
  font-size: 16px;
  color: #666;
}

/* Stacked Cards (3) */
.card-container-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  padding-top: 30px;
}
.card-1 {
  width: 350px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.card-1:hover {
  transform: translateY(-3px);
}
.card-1 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.card-content-1 {
  padding: 15px;
}
.card-content-1 h3 {
  font-size: 1.5em;
  margin: 10px 0;
}
.card-content-1 p {
  font-size: 1em;
  line-height: 1.5;
  color: #666;
}

/* Top 10 Section */
.top-10 {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px 40px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.top-10 h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.top-10 p {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
}

.top-10-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #3f6ff0;
  color: white;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.top-10-btn:hover {
  background: #2d58cc;
}

/* ===================================================
   Feedback + Popups
   =================================================== */

.feedback {
  text-align: center;
  padding: 30px 15px 0;
}
.feedback-link {
  color: #ff6b6b;
  cursor: pointer;
  text-decoration: none;
}
.feedback-link:hover {
  text-decoration: underline;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 9999;
}
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  width: 350px;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.email {
  font-weight: bold;
  color: #007bff;
  margin: 10px 0;
}
.copyButton {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.copyButton:hover {
  background-color: #0056b3;
}

/* ===================================================
   Footer
   =================================================== */

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 20px 10px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.footer-link:hover {
  color: #ff6b6b;
}
#open-popup-contact {
  cursor: pointer;
}

.footer-link + .footer-link {
  position: relative;
  padding-left: 20px;
}
.footer-link + .footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 30px;
  background: #ffffffc2;
  border-radius: 2px;
}

/* ===================================================
   Speaker / Product Page
   =================================================== */

.product-blurb {
  margin-top: 0;
  font-size: 20px;
}

h1.page-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 0;
}

.product-title {
  margin-top: -10px;
  font-weight: bolder;
  font-size: 2rem;
  color: #222;
}

.product-price {
  font-size: 1.5rem;
  color: #222222cc;
  margin-top: 15px;
}

.product {
  font-family: Arial, sans-serif;
  padding: 20px;
}
.product-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-display img {
  max-width: 400px;
  height: 300px;
  flex: 1 1 100px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-description {
  flex: 1 1 100px;
  padding-top: 50px;
}

.visitlink {
  border-bottom: 2px #ff6b6b solid;
  text-align: right;
  position: relative;
  top: -30px;
}
.product a {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}
.product a:hover {
  text-decoration: underline;
}

.spec-title {
  font-size: 40px;
  font-weight: normal;
  color: #333;
}
.specifications-data {
  margin: 20px auto;
  width: 100%;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: 20px;
}
.specifications-table tbody tr {
  border-bottom: 1px solid #ddd;
}
.specifications-table td {
  padding: 10px 15px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #ddd;
}
.specifications-table td:first-child {
  font-weight: bold;
  color: #333;
  width: 40%;
}
.specifications-table td:last-child {
  color: #555;
}
.specifications-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.features .feature-list,
.pros-cons ul {
  padding-left: 20px;
  margin-top: 10px;
  list-style-type: disc;
  font-size: 16px;
  line-height: 1.5;
}

.line {
  border-top: 1px solid #ddd;
  margin: 20px 0;
}
.list-heading {
  font-weight: bold;
  margin-bottom: 5px;
}

.detail-specifications {
  margin: 20px auto;
  max-width: 100%;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.detail-specifications h2 {
  font-size: 40px;
  font-weight: normal;
  color: #333;
}
.detail-specifications-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#detail-specifications-data {
  width: 100%;
  border-collapse: collapse;
}
#detail-specifications-data td {
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  color: #555;
}
#detail-specifications-data tr:nth-child(even) {
  background-color: #f2f2f2;
}
#detail-specifications-data td:first-child {
  font-weight: bold;
  color: #333;
  width: 40%;
}
#detail-specifications-data td:last-child {
  text-align: left;
}

/* ===================================================
   Utility Blocks
   =================================================== */

.product-specification,
.features,
.pros-cons,
.detail-specifications {
  padding: 0 20px;
}

/* ===================================================
   Responsive
   =================================================== */

/* Desktop hover drop-down */
@media (min-width: 769px) {
  .menu li:hover .dropdown {
    max-height: 500px;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  /* Mobile: show only first 4 speakers in every listing row */
  .items-row .item:nth-child(n + 5) {
    display: none;
  }

  .card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  /* .top-10 {
    padding-left: 15px;
    padding-right: 15px;
  } */

  .top-10 {
    margin-left: 15px;
    margin-right: 15px;
  }

  /* 1) Stop horizontal overflow on mobile */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* 2) Make the main product wrapper fit the screen */
  /* Product layout - force clean stacking on mobile */
  .product {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-display {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-description {
    width: 100%;
    text-align: center;
  }

  /* 3) Center the whole product block */
  .product {
    margin-left: auto;
    margin-right: auto;
  }

  /* 4) Make images never exceed screen width */
  .product-display img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Header layout - mobile */
  .custom-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .header-left,
  .header-right {
    max-width: 100%;
  }

  .header-left .site-title {
    text-align: center;
    margin-bottom: 0;
  }

  .header-right {
    align-items: center;
  }

  /* Header search dropdown sizing */
  .search-dropdown {
    width: 100%;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1;
  }

  /* Navbar */
  .menu {
    flex-direction: column;
    display: none;
    background-color: #333;
    width: 100%;
  }
  .menu.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .menu li {
    width: 100%;
  }
  .menu li .dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .menu li.active .dropdown {
    max-height: 500px;
  }
  .menu li a,
  .menu li .dropdown a {
    width: 100%;
    text-align: left;
  }

  /* Cards */
  .card {
    width: 100%;
  }
  .card-content {
    flex-direction: column;
    align-items: center;
  }
  .card-content img {
    width: 100%;
    height: auto;
  }
  .text-content h1,
  .text-content p {
    text-align: center;
  }

  /* Stacked cards */
  .card-container-1 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .card-1 {
    width: 90%;
  }
  .card-1 img {
    height: auto;
  }

  /* Listing */
  /* .items-row {
    justify-content: flex-start;
  }

  .item {
    width: 100%;
    margin-bottom: 20px;
  }
  .item img {
    height: auto;
  } */

  /* Listing (mobile) */
  .items-row {
    display: flex;
    flex-wrap: wrap; /* IMPORTANT */
    justify-content: center;
    gap: 14px;
  }

  .item {
    flex: 0 0 calc(50% - 14px); /* 2 per row */
    max-width: calc(50% - 14px);
    margin-bottom: 0; /* gap handles spacing */
    text-align: center;
  }

  .item img {
    width: 100%;
    height: 120px; /* smaller for mobile */
    object-fit: cover;
    border-radius: 8px;
  }

  .item figcaption {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 6px;
  }

  /* Product block */
  /* .product-display {
    flex-direction: column;
    align-items: center;
  } */

  .product-description {
    text-align: center;
  }

  .product-description p:not(.product-price):not(.visitlink) {
    font-size: 16px;
    padding-top: 12px;
  }

  .product-description h2 {
    font-size: 28px;
  }

  /* retained in case used elsewhere */
  .visitlink {
    border-bottom: 3px #ff6b6b solid;
    text-align: center;
    position: static; /* remove relative positioning */
    top: auto; /* remove the push */
    margin-top: 10px; /* controlled spacing */
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  /* Detail specs header */
  .detail-specifications h2 {
    font-size: 30px;
    text-align: center;
  }

  /* Detail table text size */
  #detail-specifications-data td {
    font-size: 14px;
  }
}

/* ≤ 600px (brand logo sizing) */
/* @media (max-width: 600px) {
  .brand-logos {
    gap: 10px;
    padding: 15px 5px;
  }
  .brand-logos a {
    width: 100px;
    height: 45px;
  }
} */

/* @media (max-width: 600px) {
  .brand-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px 5px;
  }

  .brand-logos a {
    height: 45px;
  }
} */

@media (max-width: 768px) {
  .brand-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px 10px;
  }

  .brand-logos a {
    width: 100%;
    height: 55px;
  }

  .brand-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
    max-height: none;
  }
}
