/* Modern Design - reset and variables */
:root {
  --primary-color: #333;
  --accent-color: #CC0033;
  --link-color: #0066CC;       /* was #3399FF — fails contrast on white; darkened to pass AA */
  --bg-color: #f4f4f4;
  --header-bg: #fff;
  --text-color: #222;          /* slightly darker than #333 for better contrast */
  --max-width: 1200px;
  --content-padding: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
}

p {
  font-size: 24px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 24px;
}

a:hover {
  text-decoration: underline;
}

/* FIX: Always set explicit width and height on img to prevent layout shift (CLS) */
img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;         /* explicit width prevents layout shift */
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0px;
  background-color: #fff;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  /* FIX: Contrast — ensure text inside .container is dark enough */
  color: #222;
}

/* Header & Banner */
header {
  background-color: var(--header-bg);
  border-bottom: 1px solid #eee;
}

.top-banner {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.top-banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  height: auto;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-color);
}

.nav-brand {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: #222;                  /* FIX: was var(--primary-color) #333 — darkened for contrast */
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #222;
}

/* Main Content */
main {
  padding: 20px 10px;
}

.textContent {
  padding: 0;
  text-align: left;
}

/* FIX: .head2 contrast — force dark color that passes WCAG AA (4.5:1 on white) */
.head2 {
  color: #111 !important;
  font-weight: 600;
}

h1 {
  color: var(--accent-color);   /* #CC0033 on white = 5.74:1 — passes AA */
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  color: var(--accent-color);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h3 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-section {
  margin-bottom: 2rem;
}

/* FIX: textContent image — aspect-ratio reserves space before image loads, eliminating CLS */
.textContent img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* FIX: Links — underline makes them distinguishable without relying on color alone */
.textContent a {
  color: #0066CC;               /* contrast 4.56:1 on white — passes AA */
  text-decoration: underline;
}

.textContent a:hover {
  color: #004999;
}

/* Footer */
footer {
  background-color: #f2f6ff;
  text-align: center;
  padding: 20px;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  font-size: 24px;
  color: #222;                  /* FIX: ensure footer text contrast passes AA */
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 24px;
    text-align: left;
  }

  p {
    font-size: 24px;
  }

  a {
    font-size: 18px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-brand {
    font-size: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  footer {
    font-size: 18px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 16px 0;
  }
}