/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
  background-color: #e53935;
  padding: 1rem 2rem;
  border-bottom: 3px solid #c62828;
  color: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  height: 140px;
  max-width: none;
  vertical-align: middle;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.75rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
  white-space: normal;
}

.hamburger {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #fff;
  margin-left: auto;
}

/* --- Navigation Links --- */
.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav ul li {
  display: inline-block;
  position: relative;
  margin-right: 1rem;
}

.header-nav ul li a {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.header-nav ul li a:hover {
  color: #ffcdd2;
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* --- Dropdown Menu --- */
.header-nav ul li ul.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #e53935;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 160px;
  border-radius: 4px;
  z-index: 1000;
}

.dropdown-menu {
  width: max-content;
  right: 0;
  left: auto;
  word-break: break-word;
  background-color: #b22222;
  padding: 0.5rem 1rem;
}

.header-nav ul li ul.dropdown-menu.open {
  display: block;
}

.header-nav ul li ul.dropdown-menu li {
  display: block;
}

.header-nav ul li ul.dropdown-menu li a {
  display: block;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.header-nav ul li ul.dropdown-menu li a:hover {
  background-color: #c62828;
}

.header-nav ul li ul.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Dropdown Toggle Button --- */
.dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-nav ul li.has-dropdown > .dropdown-toggle::after {
  content: "\25B6"; /* ► */
  font-size: 0.85rem;
  color: #fff;
  margin-left: 0.35rem;
  transition: transform 0.3s ease;
}

.header-nav ul li.has-dropdown > .dropdown-toggle.open::after {
  transform: rotate(90deg); /* ▼ */
}

.dropdown-toggle:focus {
  outline: 2px solid #ffcdd2;
}

.dropdown-toggle:hover {
  color: #ffcdd2;
}

/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */
@media (max-width: 768px) {
  .header-nav { display: none; width: 100%; }
  .header-nav.active { display: block; }
  .header-nav ul { display: block; }
  .header-nav ul li { display: block; margin: 0; }
  .header-nav ul li ul.dropdown-menu { display: none; position: static; box-shadow: none; }
  .header-nav ul li ul.dropdown-menu.open { display: block; }
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* =========================================================
   CALL TO ACTION BUTTON
   ========================================================= */
.cta-container { text-align: center; margin: 1.5rem 0; }

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #e53935;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  background-color: #b71c1c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================================================
   MAIN CONTENT & CLASS PANELS
   ========================================================= */
main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

.intro { margin-bottom: 2rem; font-size: 1.1rem; text-align: center; }

.class-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.class-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  border: 2px solid #e53935;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.class-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  border-color: #b71c1c;
}
.class-card p { margin-bottom: 1rem; }

.register-btn {
  margin-top: auto;
  align-self: center;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #b22222;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.register-btn:hover {
  background-color: #8b1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Feature Lists inside Cards --- */
.class-card .feature-list { text-align: left; margin: 0 0 1rem; padding-left: 1.25rem; }
.class-card .feature-list li { margin-bottom: 0.4rem; }
.class-card .details p { margin-bottom: 0.4rem; }

/* =========================================================
   COURSE HERO & BREADCRUMB
   ========================================================= */
.hero--courses .subtitle { margin-top: 0.5rem; color: #555; }

.breadcrumb {
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* =========================================================
   FORMS
   ========================================================= */
.opt-out-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  border: 2px solid #e53935;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.opt-out-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #333;
}
.opt-out-form input,
.opt-out-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.opt-out-form button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #e53935;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.opt-out-form button:hover {
  background-color: #b71c1c;
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thankyou-card {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.thankyou-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.actions .btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  background: #e53935;
  color: #fff;
}
.actions .btn.secondary {
  background: #555;
}

.actions a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  background-color: #e53935; /* River City CPR red */
  color: #fff;
  transition: background-color 0.2s ease;
}

.actions a:hover {
  background-color: #c62828; /* darker red on hover */
}

.actions a.secondary {
  background-color: #555;
}

.actions a.secondary:hover {
  background-color: #333;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: #e53935;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  border-top: 3px solid #c62828;
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.site-footer nav a.active { font-weight: bold; }

.site-footer p {
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .logo img { height: 120px; margin-bottom: 0.5rem; }
  .site-title { position: static; transform: none; margin: 0.5rem 0; }
  .hamburger { margin-left: 0; }
  .header-nav { margin-top: 0.5rem; }
  .cta-button { font-size: 1rem; padding: 0.6rem 1.2rem; }
  .class-panels { grid-template-columns: 1fr; }
  footer nav ul { flex-direction: column; gap: 0.5rem; }
}

/* =========================================================
   DISCLAIMER
   ========================================================= */
.aha-disclaimer {
  font-size: 0.7rem;       /* small, fine print */
  color: #777;             /* subtle gray */
  line-height: 1.4;
  max-width: 800px;        /* keeps it from spanning edge-to-edge */
  margin: 1em auto 0 auto; /* centers horizontally */
  text-align: center;      /* centers the text itself */
}

