/*
  APMP Liberty Chapter – Cosmetic styling inspired by modern Lovable-style polish.
  Structure and content unchanged; logo and features preserved.
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Basic reset and global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1a1d24;
  background: linear-gradient(180deg, #f0f4f9 0%, #e8eef5 30%, #ffffff 100%);
  min-height: 100vh;
}

/*
  Page wrapper to keep content centered and narrow enough for readability.
*/
.page {
  max-width: 1000px;
  margin: 16px auto 32px;
  padding: 16px 12px 32px;
}

/*
  Header with logo and navigation bar.
  Mobile-first: stack items vertically by default.
*/
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Logo area – prominent, no border; our logo stays central. */
.logo {
  padding: 20px 30px;
  min-width: 120px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*
  Navigation bar – dark blue, bold white text, full width to match content below.
*/
.nav-bar {
  width: 100%;
  align-self: stretch;
  flex: 0 0 auto;
  border: none;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #003865;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 56, 101, 0.25);
}

.nav-bar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Dropdown panel – dark blue to match nav, white text */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 200px;
  background: #003865;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 10;
  overflow: hidden;
}

.nav-dropdown a {
  padding: 10px 16px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  display: flex;
}

.active-subpage {
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-bar a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Welcome text directly under the header */
.welcome {
  text-align: center;
  margin: 15px 0 25px;
}

.welcome h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #003865;
  letter-spacing: -0.02em;
}

/*
  Carousel section – refined card look
*/
.carousel-section {
  margin-bottom: 25px;
}

/* About page "Our Vision" section */
.about-hero {
  padding: 24px 10px 32px;
}

.about-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: #003865;
  letter-spacing: -0.02em;
}

.about-hero p {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #374151;
}

/* Board of Directors page hero */
.board-hero {
  padding: 24px 10px 32px;
  text-align: center;
}

.board-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #003865;
  letter-spacing: -0.02em;
}

.board-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 56, 101, 0.12);
  margin-top: 12px;
}

.board-roles {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 10px 10px;
}

.board-roles h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  color: #003865;
}

.board-role {
  margin-top: 20px;
}

.board-role h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1d24;
}

.board-role h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #374151;
}

.board-roles p {
  margin-bottom: 6px;
  color: #374151;
}

.board-roles ul {
  list-style-position: outside;
  margin-left: 0;
  padding-left: 1.2rem;
}

.board-roles li {
  margin-bottom: 4px;
  color: #374151;
}

/* Chapter Bylaws page content */
.bylaws {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 24px 10px 32px;
}

.bylaws h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  color: #003865;
  letter-spacing: -0.02em;
}

.bylaws h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #003865;
}

.bylaws h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 4px;
  color: #1a1d24;
}

.bylaws p {
  margin-bottom: 8px;
  color: #374151;
}

.bylaws ul {
  margin-left: 1.2rem;
  margin-bottom: 8px;
  color: #374151;
}

/* Events page hero */
.events-hero {
  padding: 24px 10px 32px;
  text-align: center;
}

.events-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #003865;
  letter-spacing: -0.02em;
}

.events-hero p {
  font-size: 1.1rem;
  color: #374151;
}

/* Contact page layout */
.contact-hero {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 24px 10px 32px;
}

.contact-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #003865;
  letter-spacing: -0.02em;
}

.contact-block {
  margin-top: 16px;
}

.contact-block h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1d24;
}

.contact-block p {
  font-size: 1rem;
  color: #374151;
}

.contact-block a {
  color: #003865;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.contact-block a:hover {
  text-decoration: underline;
  color: #002244;
}

/* Become a Voice of Liberty – form page */
.voice-hero {
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 24px 10px 32px;
}

.voice-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #003865;
  letter-spacing: -0.02em;
}

.voice-intro {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 24px;
}

.voice-form .form-row {
  margin-bottom: 18px;
}

.voice-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1d24;
  margin-bottom: 6px;
}

.voice-form .required {
  color: #b91c1c;
}

.voice-form input[type="text"],
.voice-form input[type="email"],
.voice-form input[type="tel"],
.voice-form select,
.voice-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1d24;
  border: 1px solid #c2c5cc;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.voice-form input:focus,
.voice-form select:focus,
.voice-form textarea:focus {
  outline: none;
  border-color: #003865;
}

.voice-form textarea {
  resize: vertical;
  min-height: 100px;
}

.voice-form .form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.voice-form .form-checkboxes {
  flex-direction: column;
  gap: 8px;
}

.voice-form .option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.voice-form .option-label input {
  margin: 0;
}

.voice-form .form-hint {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

.voice-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.voice-form .checkbox-label input {
  flex-shrink: 0;
  margin-top: 2px;
}

.voice-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.voice-form .btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.voice-form .btn-submit {
  background: #003865;
  color: #fff;
}

.voice-form .btn-submit:hover {
  background: #002244;
}

.voice-form .btn-cancel {
  background: #e5e7eb;
  color: #374151;
}

.voice-form .btn-cancel:hover {
  background: #d1d5db;
}

/* Highlights section heading */
.highlights-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: #003865;
}

.highlights-image {
  margin-top: 8px;
}

.highlights-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 56, 101, 0.1);
}

/* Carousel – softer, modern card */
.carousel {
  border: none;
  background-color: #ffffff;
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  display: flex;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 56, 101, 0.1);
}

/* Main content area */
main {
  margin-top: 10px;
  padding-top: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 24px 16px 32px;
  box-shadow: 0 4px 20px rgba(0, 56, 101, 0.06);
}

.slide {
  min-width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel controls – pill-style buttons */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  border: none;
  background: #003865;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 56, 101, 0.25);
}

.carousel-controls button:hover {
  background: #002244;
  transform: scale(1.05);
}

/*
  Description text at the bottom
*/
.description {
  margin-top: 25px;
  font-size: 1.05rem;
  text-align: left;
  max-width: none;
  background: transparent;
  padding: 12px 10px;
  border-radius: 6px;
  color: #374151;
}

/* Home page webinar recording section */
.webinar-section {
  margin-top: 32px;
}

.webinar-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #003865;
  letter-spacing: -0.01em;
}

.webinar-section p {
  font-size: 1.02rem;
  color: #374151;
  margin-bottom: 10px;
}

.webinar-video {
  margin-top: 18px;
  position: relative;
  width: 100%;
  /* 16:9 responsive container */
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 56, 101, 0.12);
}

.webinar-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Home page new member spotlight */
.member-spotlight {
  margin-top: 32px;
}

.member-spotlight h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #003865;
  letter-spacing: -0.01em;
}

.member-spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 56, 101, 0.08);
}

.member-photo img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 56, 101, 0.12);
}

.member-details p {
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #374151;
}

@media (min-width: 700px) {
  .member-spotlight-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .member-photo {
    flex: 0 0 auto;
  }

  .member-details {
    flex: 1;
  }
}

/* Footer – Liberty blue bar, refined */
.site-footer {
  margin-top: 35px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #003865 0%, #002244 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 56, 101, 0.15);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: center;
}

.footer-separator {
  opacity: 0.75;
}

.footer-copy {
  opacity: 1;
}

/*
  Larger screens: logo stays centered above nav; slightly larger logo and carousel
*/
@media (min-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: center;
  }

  .nav-bar {
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
  }

  .logo img {
    max-height: 100px;
  }

  .carousel {
    height: 340px;
  }

  .page {
    margin: 30px auto 40px;
    padding: 20px 15px 40px;
  }
}
