/* ===== Suppliers Page Specific Styles ===== */

/* Remove :root variable overrides to keep global colors consistent */

/* Global Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Header and Footer Full Width Fix */
.main-header,
.main-footer {
  width: 100vw;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  /* Remove forced background-color to prevent override */
  /* background-color: var(--jet-blue) !important; */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 1000;
  color-scheme: dark;
}

.main-header .container,
.main-footer .container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Ensure logo in header is not dimmed */
.main-header .navbar-brand img {
  filter: none !important;
}

/* Body Styling */
body.suppliers-page {
  background-color: #e8effb; /* use a fixed color or your global variable if defined */
  color: #222;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

/* Main Container */
.suppliers-page main.container {
  max-width: 1140px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Section Title */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0d2c54; /* your main jet-blue */
  border-bottom: 3px solid #3a82f7; /* your accent blue */
  padding-bottom: 0.3rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Intro Paragraph */
.suppliers-page main p.text-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 3rem;
}

/* ===== Alphabet Nav Bar ===== */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  background-color: #e8effb; /* same light blue background */
  padding: 1rem 0;
  z-index: 999;
}

.alphabet-nav a {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #3a82f7;
  color: #0d2c54;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 36px;
  text-align: center;
}

.alphabet-nav a:hover,
.alphabet-nav a:focus {
  background-color: #3a82f7;
  color: #fff;
  outline: none;
}

/* ===== Letter Group Sections ===== */
.supplier-letter-group {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.letter-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d2c54;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

/* ===== Supplier Entry Styling ===== */
ul.list-group .list-group-item.supplier-section {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.07);
  font-size: 1.05rem;
  font-weight: 500;
  transition: box-shadow 0.3s ease;
}

.supplier-section:hover {
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
}

/* Supplier Link Styling */
.supplier-section a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 1.5rem 2rem;
  width: 100%;
  height: 100%;
}

.supplier-section a:hover {
  color: #3a82f7;
}

/* Supplier Logos - Scoped */
.supplier-section .supplier-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.2s ease;
  border-radius: 4px;
}

.supplier-section .supplier-logo:hover {
  filter: none;
  transform: scale(1.05);
}

/* CTA Section */
#cta-section {
  background-color: #0d2c54;
  color: white;
  padding: 3rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

#cta-section h3,
#cta-section p {
  color: #fff;
}

#cta-section .btn.btn-light {
  background-color: #fff;
  color: #0d2c54;
  font-weight: 700;
  border-radius: 0;
  padding: 0.75rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 64, 128, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

#cta-section .btn.btn-light:hover,
#cta-section .btn.btn-light:focus {
  background-color: #f2f2f2;
  color: #0d2c54;
  transform: translateY(-2px);
}

/* Button Animation */
.pulse-hover {
  transition: transform 0.3s ease;
}

.pulse-hover:hover {
  animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* Accessibility Focus Outline */
a:focus {
  outline: 2px dashed #3a82f7;
  outline-offset: 2px;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 767.98px) {
  .suppliers-page main p.text-center {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .supplier-section a {
    padding: 1rem 1rem;
  }

  .alphabet-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.5rem;
  }

  .letter-heading {
    font-size: 1.3rem;
  }
}
