 /* ========================================
   FWD Custom Styles - FairFlex 2026
   Overrides Bootstrap 5 defaults
   ======================================== */

:root {
  --fwd-green: #037501;
  --fwd-green-dark: #025a00;
  --fwd-green-light: #e8f5e8;
  --fwd-amber: #E68A2E;
  --fwd-amber-dark: #c46e1a;
  --fwd-charcoal: #2C2C2C;
  --fwd-offwhite: #F9F9F9;
  --fwd-gray: #6c757d;
}

/* Base Typography */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--fwd-charcoal);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fwd-gray);
}

/* Custom Buttons */
.btn-fwd {
  background-color: var(--fwd-green);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

/* Ensure primary button has good contrast too */
.btn-fwd:hover {
  background-color: var(--fwd-green-dark);
  color: white;
}

.btn-fwd-outline {
  background-color: transparent;
  color: var(--fwd-green);
  border: 2px solid var(--fwd-green);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
}

/* Fix for btn-fwd-outline hover - ensure white text */
.btn-fwd-outline:hover,
.btn-fwd-outline:focus,
a.btn-fwd-outline:hover,
a.btn-fwd-outline:focus {
  background-color: var(--fwd-green) !important;
  color: white !important;
  border-color: var(--fwd-green) !important;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
.btn-fwd:focus,
.btn-fwd-outline:focus,
.navbar a:focus,
.supporter-logo a:focus {
  outline: 3px solid #f82249;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to main content link - for keyboard users */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--fwd-green);
  color: white;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.btn-fwd-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--fwd-offwhite) 0%, #ffffff 100%);
}

.hero h1 {
  color: var(--fwd-green);
  margin-bottom: 1rem;
}

/* Hero text - slightly darker green for better contrast if needed */
.hero h1 span {
  color: #02641c; /* Already in your CSS - good */
}

/* Ensure placeholder text has sufficient contrast */
:placeholder {
  color: #6c757d;
  opacity: 1;
}

/* Focus visible utility - ensures focus rings only show when needed */
:focus-visible {
  outline: 3px solid #f82249;
  outline-offset: 3px;
}

.hashtag {
  color: var(--fwd-green);
  font-weight: 700;
  letter-spacing: 2px;
}

/* Section Spacing */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header .lead {
  max-width: 700px;
  margin: 0 auto;
}

/* Improve accessibility for lead/subheading text */
.lead,
.section-header .lead {
  color: #555555 !important;
}

/* Custom Cards */
.card-fwd {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #eee;
}

.card-fwd:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-fwd h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Scrabble Visual */
.scrabble-container {
  background: #f5f5f0;
  border-radius: 24px;
  padding: 40px;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.scrabble-grid {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .scrabble-grid {
    font-size: 2.2rem;
  }
}

.scrabble-grid .flex-center {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fwd-green);
  letter-spacing: 8px;
}

/* Background variations */
.bg-fwd-light {
  background-color: var(--fwd-green-light);
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--fwd-charcoal);
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--fwd-green);
}

/* Footer */
.footer {
  background: var(--fwd-charcoal);
  color: #ccc;
  padding: 50px 0 20px;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--fwd-amber);
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer ul li {
  margin-bottom: 10px;
}

/* Sponsor logos */
.sponsor-logo {
  background: white;
  padding: 20px;
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.sponsor-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skip-link:focus {
  top: 0;
}

/* Ensure sponsor logos have alt text visible if image fails */
.sponsor-logo img {
  display: block;
  margin: 0 auto;
}

/* Article pages */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 60px 20px;
}

/* Improve card link focus visibility */
.card-fwd a:focus {
  outline-offset: 4px;
}

.article-container h1 {
  color: var(--fwd-green);
  margin-bottom: 20px;
}

.article-container .subtitle {
  font-size: 1.2rem;
  color: var(--fwd-gray);
  margin-bottom: 40px;
  border-left: 4px solid var(--fwd-green);
  padding-left: 20px;
}

.article-container .example-box {
  background: var(--fwd-green-light);
  padding: 25px;
  border-radius: 16px;
  margin: 30px 0;
}

.article-container .example-box h4 {
  color: var(--fwd-green);
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .btn-fwd, .btn-fwd-outline {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  
  .scrabble-grid {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .scrabble-grid {
    font-size: 0.9rem;
  }
  
  .card-fwd {
    padding: 20px;
  }
}

/* Ensure sufficient contrast for any light text on light backgrounds */
.text-fwd-green {
  color: #026101; /* Slightly darker than #037501 for better contrast */
}

.bg-fwd-green {
  background-color: var(--fwd-green);
}


/* ========================================
   Article Page Components
   ======================================== */

/* Back to home button */
.back-to-home {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  background: var(--fwd-green, #037501);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.back-to-home:hover {
  background: var(--fwd-green-dark, #025a00);
  color: #fff;
}

/* Benefit and Risk cards */
.benefit-card {
  background: #e8f5e8;
  border-radius: 16px;
  padding: 25px;
  height: 100%;
}

.risk-card {
  background: #fff0f0;
  border-radius: 16px;
  padding: 25px;
  height: 100%;
}

/* Discussion topics list */
.topic-list {
  columns: 2;
  column-gap: 40px;
}

.topic-item {
  break-inside: avoid;
  margin-bottom: 25px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 12px;
}

.topic-number {
  color: var(--fwd-green, #037501);
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .topic-list {
    columns: 1;
  }
}

/* ========================================
   Resource Image Hover Zoom Effect
   ======================================== */

#resources .text-center {
  position: relative;
  /* overflow: hidden; */
}

#resources .text-center img {
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

#resources .text-center img:hover {
  transform: scale(1.75);
    z-index: 1000;
  position: relative;
}

/* For better visual feedback, add a subtle shadow on hover */
#resources .text-center:hover img {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}