:root {
  --af-navy: #0A2240;
  --af-red: #C8102E;
  --af-white: #FFFFFF;
  --af-light-gray: #f4f6f8;
  --af-dark-gray: #333333;
  --af-gold: #c39b32;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--af-dark-gray);
  background-color: var(--af-light-gray);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--af-navy);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--af-navy);
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--af-red);
}

/* Navigation */
.navbar {
  background-color: var(--af-navy);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-brand a {
  color: var(--af-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-brand span.red {
  color: var(--af-red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--af-white);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: inline-block;
}

.nav-links li a:not(.donate-btn) {
  padding: 0.8rem 0;
}

.nav-links li a:not(.donate-btn):hover {
  color: var(--af-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.donate-btn {
  background-color: var(--af-red);
  color: var(--af-white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.donate-btn:hover {
  background-color: #A00C22;
  text-decoration: none !important;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--af-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
}

/* Add a dark overlay so white text is readable */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10, 34, 64, 0.9) 0%, rgba(10, 34, 64, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: var(--af-white);
}

.hero-content h1 {
  color: var(--af-white);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  display: inline-block;
  background-color: var(--af-red);
  color: var(--af-white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
  background-color: #A00C22;
  transform: translateY(-2px);
  color: var(--af-white);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--af-white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--af-white);
  border-radius: 4px;
  margin-left: 1rem;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--af-white);
  color: var(--af-navy);
}

/* Sections General */
.section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--af-red);
  margin: 1rem auto 0;
}

.section-dark {
  background-color: var(--af-navy);
  color: var(--af-white);
}

.section-dark h2 {
  color: var(--af-white);
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--af-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-img-placeholder {
  height: 200px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-style: italic;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.card-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--af-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.card-link::after {
  content: ' \2192';
}

.card-link:hover {
  color: var(--af-navy);
}

/* Footer */
footer {
  background-color: var(--af-navy);
  color: var(--af-white);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--af-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: #a0aab5;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #a0aab5;
}

.footer-links a:hover {
  color: var(--af-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aab5;
  font-size: 0.9rem;
}

/* Utility Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--af-navy);
  box-shadow: 0 0 0 2px rgba(10, 34, 64, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--af-navy);
    padding: 1rem 5%;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(10, 34, 64, 0.8) 0%, rgba(10, 34, 64, 0.6) 100%);
  }

  .hero-content {
    text-align: center;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   MAGA Buzz PAC - Custom Layout Additions
   ========================================================================== */

/* Navigation additions for dropdown menus */
.nav-item {
  position: relative;
}

.nav-links li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--af-navy);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  list-style: none;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--af-red);
  padding: 0.5rem 0;
  text-align: left;
  z-index: 1002;
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  color: var(--af-white);
  padding: 0.7rem 1.5rem;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--af-red);
  color: var(--af-white) !important;
  text-decoration: none !important;
  padding-left: 1.8rem;
}

.nav-item:hover .dropdown-menu,
.nav-links li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub-Dropdown Menu Styles */
.sub-dropdown {
  position: relative;
}

.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--af-navy);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-left: 3px solid var(--af-red);
  padding: 0.5rem 0;
  z-index: 1002;
}

.sub-dropdown:hover .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Accordion toggles for mobile view */
@media (max-width: 768px) {
  .dropdown-menu,
  .sub-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    transform: none;
    padding: 0.5rem 1rem;
    display: none;
  }

  .nav-item.open .dropdown-menu,
  .sub-dropdown.open .sub-dropdown-menu {
    display: block;
  }
}

/* Services Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background-color: var(--af-white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(10, 34, 64, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(10, 34, 64, 0.12);
  border-color: var(--af-red);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--af-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card p {
  color: var(--af-dark-gray);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.service-card-link {
  font-weight: 700;
  color: var(--af-red);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-link::after {
  content: ' \2192';
}

/* Team Section Styles */
.team-member {
  display: flex;
  gap: 2rem;
  background-color: var(--af-white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  align-items: center;
  border: 1px solid rgba(10, 34, 64, 0.05);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--af-navy);
  flex-shrink: 0;
}

.team-info {
  flex-grow: 1;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--af-navy);
}

.team-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--af-red);
  margin-bottom: 1rem;
}

@media (max-width: 850px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }
  .team-photo {
    margin: 0 auto;
  }
}

/* Memes Gallery */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.meme-item {
  background-color: var(--af-white);
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.meme-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.meme-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.meme-caption {
  padding: 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--af-navy);
  text-align: center;
  border-top: 1px solid #eee;
}

/* Articles Feed List */
.blog-feed-item {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

.blog-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-feed-item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.blog-readmore {
  color: var(--af-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.blog-readmore:hover {
  color: var(--af-navy);
}

/* Donation Pages */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.donation-level {
  background-color: var(--af-light-gray);
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.donation-level:hover {
  border-color: var(--af-red);
  background-color: var(--af-white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.donation-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--af-red);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.donation-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--af-navy);
  margin-bottom: 0.8rem;
}

.donation-desc {
  font-size: 0.85rem;
  color: #666;
}

.donation-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* General Layout helpers */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.about-content {
  max-width: 900px !important;
  margin: 0 auto;
  padding: 4rem 5%;
}

/* Page Header */
.page-header {
  background-color: var(--af-navy);
  color: var(--af-white);
  padding: 4rem 5%;
  text-align: center;
}

.page-header h1 {
  color: var(--af-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.page-header p {
  color: #a0aab5;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-body);
}

.disclaimer-banner {
  background-color: var(--af-red);
  color: var(--af-white);
  text-align: center;
  padding: 0.5rem 5%;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Subpage Content Styling from Old Theme */
.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--af-red);
  display: inline-block;
  color: var(--af-navy);
  font-family: var(--font-heading);
}

.about-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--af-navy);
  font-family: var(--font-heading);
}

.about-content ul,
.about-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--af-dark-gray);
}

.about-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.red-divider {
  border: 0;
  height: 4px;
  width: 60px;
  background-color: var(--af-red);
  margin: 0 0 2rem 0;
}

/* Original About page styles */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}
.founder-card {
  background-color: var(--af-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(10, 34, 64, 0.05);
}
.founder-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.founder-name {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--af-navy);
  margin-bottom: 0.25rem;
}
.founder-title {
  color: var(--af-red);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }
}

/* Original Issues page styles */
.issues-nav {
  background-color: var(--af-light-gray);
  padding: 1rem 5%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid #ddd;
}
.issues-nav a {
  font-weight: 600;
  color: var(--af-navy);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.issues-nav a:hover {
  color: var(--af-red);
}
.issue-section {
  padding: 5rem 5%;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
}
.issue-section:last-child {
  border-bottom: none;
}
.issue-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--af-navy);
  position: relative;
}
.issue-section p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

/* Original Contact page styles */
.contact-section {
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info h2 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--af-red);
  display: inline-block;
  padding-bottom: 0.5rem;
}
.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/* FooGallery side-by-side (2 per row) grid layout */
.foogallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.foogallery .fg-item {
  width: calc(50% - 0.75rem); /* Two items per row with gap */
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  display: block;
}

.foogallery .fg-item img {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  margin: 0 !important; /* Remove individual auto margin overrides */
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.foogallery .fg-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--af-navy);
}

@media (max-width: 600px) {
  .foogallery .fg-item {
    width: 100%; /* Stack single item on mobile screens */
  }
}