
:root {
  /* Color variables for maintainability */
  --color-primary: #023e8a;
  --color-primary-light: rgb(42, 141, 255);
  --color-primary-dark: #001f54;
  --color-secondary: #d62828;
  --color-gold: #ffd700;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-light: #f7f7f7;
  --color-gray-medium: #ddd;
  --color-gray-dark: #6c757d;
  --color-text: #000000;
  --color-background-gradient-start: #ffffff;
  --color-background-gradient-mid1: #cce6ff;
  --color-background-gradient-mid2: #0047ab;
  --color-background-gradient-end: #ffd700;
}

/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: linear-gradient(-45deg, var(--color-background-gradient-start), var(--color-background-gradient-mid1), var(--color-background-gradient-mid2), var(--color-background-gradient-end));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0.2;
}

main, section, .content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 22px;
}

/* ===== Layout Containers ===== */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Desktop header alignment */
@media (min-width: 769px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px; /* less padding = reduced top spacing */
  }

  .logo-area {
    flex: 0 0 auto;
    margin-right: 20px;
  }

  .main-nav {
    display: flex;
    gap: 20px; /* spacing between nav links */
    align-items: center;
  }

  .main-nav a {
    padding: 5px 0;
  }
}


.main-nav a {
  text-decoration: none;
  color: var(--color-black);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .active {
  color: var(--color-secondary);
}

/* Mobile nav stays hidden until toggled */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin: 1rem auto;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-white);
  }

  .mobile-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
  }
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  min-height: 70vh;
  background-color: white;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Call to action buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  text-decoration: none; /* Remove underline */
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: bold;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

/* ===== Sections ===== */
.section,
.resource-section,
.form-section,
.news-section {
  padding: 10px;
  background-color: var(--color-white);
  border-radius: 22px;
  margin-top: 10px;
  border-bottom: 1px solid var(--color-gray-medium);
  margin-top: 5px;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.content ul li {
  margin-bottom: 0.5rem;
}

.note {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  margin-top: 1rem;
}

/* ===== Manifesto Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  padding: 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
}

/* Pillar cards with color themes */
.pillar-card {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  margin-top: 2rem;
}

.pillar-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.pillar-card p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pillar Icon (number circle) */
.pillar-icon {
  font-size: 1.75rem;
  font-weight: bold;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pillar color themes */
.pillar-card.blue {
  background-color: rgb(0, 102, 179);  
}

.pillar-card.gold {
  background-color: rgb(179, 140, 57);  
  color: var(--color-black);
}

.pillar-card.red {
  background-color:  rgb(221, 32, 32);  
}

.pillar-card.white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-gray-medium);
}

/* Pillar center wrapper */
.pillar-center-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pillar-center-wrapper .pillar-card {
  max-width: 320px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
}

.footer h2 {
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0.3rem 0;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.social-icons a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--color-gold);
}

.notice-list {
  list-style: none;
  padding-left: 0;
}

.notice-list li {
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.notice-list li:hover {
  color: var(--color-gold);
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.btn-primary {
  max-width: 200px;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.05);
}

body.home-page {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #ffffff, #f4f9ff);
  color: #002e5c;
}

.header-hero {
  background: linear-gradient(135deg, white, white);
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  gap: 2rem;
  background: white;
}

.hero-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.highlights.with-images {
  display: flex;
  gap: 1rem;
  padding: 2rem 2rem;
}

.highlight-card {
  flex: 1;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.highlight-card img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.design-break {
  background: linear-gradient(135deg, #002e5c, #004080);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer {
  background: #001f3f;
  color: white;
  padding: 2rem;
  text-align: center;
}

.social-icons a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}


.accordion-container {
  margin-top: 2rem;
  border-top: 2px solid #003366;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-toggle {
  background: #003366;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.accordion-toggle::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-toggle::after {
  transform: rotate(-180deg);
}

.accordion-toggle:hover {
  background: #0055a5;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #f9f9f9;
  padding: 0 1rem;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
  padding: 1rem;
}

.accordion-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}


.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Base dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #003366;
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 0 0 6px 6px;
  z-index: 7000;
}

.dropdown:hover > .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #ffffff22;
  transition: background 0.2s ease;
  z-index: 7000;
}

.dropdown-menu a:hover {
  background: #0055a5;
}

/* Nested dropdown */
.nested-dropdown {
  position: relative;
}

.nested-dropdown > .dropdown-toggle::after {
  content: " ▸";
}

.nested-dropdown > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Scrollable long dropdown */
.long-menu {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-primary-dark);
}

.long-menu::-webkit-scrollbar {
  width: 6px;
}

.long-menu::-webkit-scrollbar-track {
  background: var(--color-primary-dark);
}

.long-menu::-webkit-scrollbar-thumb {
  background-color: var(--color-gold);
  border-radius: 3px;
}


.enroll-button {
  display: inline-block;
  padding: 1rem 1rem;
  background-color: var(--color-secondary); /* Red: #d62828 */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100px;
  height: 100px;
  text-align: center;
  line-height: 70px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.enroll-button:hover {
  background-color: #b71c1c;
  transform: scale(1.1);
}


.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-download {
  background-color: #003366; /* Match RAP blue */
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #00224d;
}


.section .content h3{
  color: rgb(110, 97, 23);
}


.button-group {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Adjust spacing between buttons */
  margin-top: 2rem;
  flex-wrap: wrap; /* Ensures responsiveness */
}

.btn-primary {
  background-color: #003366; /* RAP blue */
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #00224d;
  transform: translateY(-2px);
}


/* Hero Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 215, 0, 0.15),
    rgba(2, 62, 138, 0.15),
    rgba(214, 40, 40, 0.15)
  );
  animation: gradientShift 6s infinite alternate;
  z-index: 0; /* behind content */
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Ensure hero content above overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

.accessibility-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #fff;
  border: 2px solid #d62828;
  padding: 1rem;
  width: 220px;
  display: none; /* hidden by default */
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.accessibility-panel.active {
  display: block; /* shows when active class added */
}

.accessibility-btn {
  position: absolute;
  top: 15px;
  right: 80px;
  background-color: #d62828;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 100000;
}

.accessibility-btn:hover {
  background-color: #b71c1c;
}

.accessibility-panel h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: center;
  color: #d62828;
}

.access-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}

.access-option i {
  font-size: 18px;
  color: #023e8a;
  margin-right: 10px;
}

.accessibility-panel button {
  flex: 1;
  background: #023e8a;
  color: #fff;
  border: none;
  margin: 0 3px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.accessibility-panel button:hover {
  background: #001f54;
}

.brightness-control {
  flex-direction: column;
  align-items: flex-start;
}

.brightness-control input[type="range"] {
  width: 100%;
  margin-top: 5px;
}

/* Mobile Nav */
.mobile-nav {
  position: absolute; /* below header */
  top: 60px; /* same height as header */
  left: 0;
  width: 100%; /* full width */
  background: rgba(2, 62, 138, 0.95); /* blue translucent */
  backdrop-filter: blur(8px);
  display: none; /* hidden by default */
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  z-index: 1500;
}

/* Show when open */
.mobile-nav.open {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

/* Smooth slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.mobile-nav.open {
  transform: translateX(0);
}

/* Mobile nav links */
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 12px 0;
  width: 100%;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: #ffd700; /* gold hover */
}

/* Hamburger icon styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 2000;
  
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #023e8a;
  border-radius: 2px;
  transition: 0.3s;
}

/* Show hamburger on small screens only */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
  }
}

/* Dropdown styles for mobile nav */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown .dropdown-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 10px 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.mobile-dropdown .dropdown-btn:hover {
  color: #ffd700;
}

.mobile-dropdown .dropdown-content {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 10px;
}

.mobile-dropdown.open .dropdown-content {
  display: flex;
}

/* Nested dropdown */
.mobile-dropdown.nested .dropdown-btn {
  font-size: 1rem;
  padding-left: 10px;
}

.mobile-dropdown .dropdown-content {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 10px;

  /* Make content scrollable */
  max-height: 200px; /* Adjust height as needed */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 rgba(255,255,255,0.1);
}

.mobile-dropdown .dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-dropdown .dropdown-content::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 3px;
}

.mobile-dropdown .dropdown-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}


:root {
  --section-padding: 20px; /* control vertical spacing between sections */
  --header-spacing: 10px; /* control header text spacing */
}

section {
  padding: var(--section-padding) 0;
}

h1, h2, h3 {
  margin-bottom: var(--header-spacing);
}

section {
  border-bottom: 1px solid rgba(0,0,0,0.05); /* faint line */
}

.hero-content h1 {
  margin-bottom: 10px;
}

.hero-content p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}


/* Default: Mobile-first (hamburger visible, nav hidden) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 2000;
  margin: 10px auto; /* Centered below logo for mobile */
}

.main-nav {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(2, 62, 138, 0.95); /* translucent blue */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 10px;
  z-index: 1999;
}

.mobile-nav.open {
  display: flex;
}

/* Desktop overrides (nav inline, hamburger hidden) */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .main-nav {
    display: flex;
  }

  .mobile-nav {
    display: none; /* Ensure mobile menu never shows on desktop */
  }
}


/* Default mobile: center logo */
.logo-area {
  text-align: center;
  margin-bottom: 10px;
}

/* Desktop: logo left, nav right */
@media (min-width: 769px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
  }

  .logo-area {
    text-align: left;
    margin-bottom: 0;
  }
}

.hero, .highlights, .design-break {
  padding: 10px 0; /* Reduce from 80px default if set */
  border-bottom: 1px solid rgba(0,0,0,0.05); /* faint divider */
}

.hero-content h1,
.highlights h2,
.design-break h2 {
  margin-bottom: 10px; /* Reduce spacing below headers */
}


/* Default hidden state for mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 60px; /* adjust based on where your hamburger is */
  left: 0;
  width: 100%;
  background: rgba(2, 62, 138, 0.95); /* translucent blue background */
  flex-direction: column;
  padding: 15px;
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 3000;
}

/* When .open is toggled */
.mobile-nav.open {
  display: flex;
  max-height: 400px;  /* allows scrollable area */
  opacity: 1;
}

/* Make dropdown content scrollable */
.mobile-nav .dropdown-content {
  max-height: 200px;
  overflow-y: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  position: relative;   /* Ensure it is positioned above overlays */
  z-index: 5000;        /* Force above hero/gradient layers */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #023e8a;
  border-radius: 2px;
  transition: 0.3s;
}

/* Default: hide hamburger on larger screens */
.hamburger {
  display: none;
}

/* Show hamburger on mobile only */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* Default logo size */
.logo-img {
  max-width: 140px;   /* Adjust width */
  height: auto;
}

/* Mobile - smaller logo */
@media (max-width: 768px) {
  .logo-img {
    max-width: 100px;
  }
}

/* Ensure header container aligns logo and nav closely */
.header .container {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo and nav - adjust smaller/larger */
}

/* Remove unnecessary margin from nav */
.main-nav {
  margin-left: 0;
  padding-left: 0;
}

/* Remove extra padding from logo area */
.logo-area {
  margin-right: 0;
  padding-right: 0;
}

.header .container {
  justify-content: flex-start;
}

/* Reduce space between header/nav and hero content */
.hero {
  margin-top: 10px; /* reduce space above hero */
  padding-top: 10px; /* adjust as needed */
}

/* Reduce global section spacing */
section {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Tighter heading margins */
h1, h2, h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}


/* ---- GLOBAL SPACING  ---- */

/* Reduce default space between sections */
section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Reduce space around headings */
h1, h2, h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Reduce paragraph spacing slightly */
p {
  margin-top: 5px;
  margin-bottom: 10px;
}

/* ---- HOME PAGE  ---- */
body.home-page .hero {
  margin-top: 0;      /* remove large gap from header */
  padding-top: 15px;  /* slight breathing room */
}

body.home-page .breaking-news {
  margin-top: 5px;    /* smaller gap above marquee */
  margin-bottom: 5px; /* smaller gap below marquee */
}

/* Reduce spacing between header and first section */
.section {
  padding-top: 10px; /* was likely 50px+ before */
}

/* Reduce margins for headings */
.section h2,
.section h3 {
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Reduce paragraph spacing */
.section p {
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.6; /* keep readability */
}

.header {
  background-color: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e0e0e0; /* optional faint line divider */
}

/* Reduce spacing inside main content area */
.section {
  padding-top: 10px;       /* Reduce top space below header */
  padding-bottom: 10px;    /* Adjust bottom space */
}

.section .content {
  margin-top: 0;           /* Remove unnecessary top margin */
  padding: 0 15px;         /* Keep small horizontal padding */
}

/* Reduce spacing between headings and paragraphs */
.section h2 {
  margin-top: 15px;
  margin-bottom: 10px;
}

.section p {
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Reduce spacing between sections (Downloads, Tenders, Careers) */
.resource-section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0; /* subtle divider */
}

.resource-section:last-child {
  border-bottom: none; /* remove divider on last section */
}


/* ===== Universal Content Spacing Fix ===== */

/* Main section container spacing */
.section {
  padding-top: 10px;       /* Reduced space under header */
  padding-bottom: 20px;    /* Slight bottom space */
}

/* Content wrapper spacing */
.section .content {
  margin-top: 0;
  padding: 0 15px;
}

/* Headings spacing */
.section h1,
.section h2,
.section h3 {
  margin-top: 15px;        /* Reduce gap above headings */
  margin-bottom: 10px;     /* Reduce gap below headings */
  line-height: 1.3;        /* Make headings tighter but readable */
}

/* Paragraph spacing */
.section p {
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Section spacing for grouped content like downloads, tenders, etc. */
.resource-section,
.highlight-card,
.download-buttons {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0; /* Faint dividers */
}

.resource-section:last-child,
.highlight-card:last-child {
  border-bottom: none;
}

/* === Force Reduced Spacing Across Pages === */
main.section,
.section {
  padding-top: 10px !important;
  padding-bottom: 20px !important;
}

.section .content {
  margin-top: 0 !important;
  padding: 0 10px !important;
}

.section h1,
.section h2,
.section h3 {
  margin-top: 5px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.section p {
  margin-top: 6px !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}

.resource-section,
.highlight-card,
.download-buttons {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #ddd !important;
}

.resource-section:last-child,
.highlight-card:last-child {
  border-bottom: none !important;
}

/* ==== Reduce spacing for ALL pages ==== */
main.section,
.section {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.section .content {
  margin-top: 0 !important;
  padding: 0 10px !important;
}

.section h1,
.section h2,
.section h3 {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.section p {
  margin-top: 6px !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}

.form-section,
.resource-section {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #ddd !important;
}

.form-section:last-child,
.resource-section:last-child {
  border-bottom: none !important;
}

/* Reduce button spacing */
.btn-primary,
.btn-secondary {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Form container box */
form {
  border: 2px solid #023e8a; /* Blue from logo */
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Form labels */
form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #023e8a; /* Logo blue for headings */
}

/* Inputs and textarea */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

/* Focus effect for inputs */
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #023e8a;
  outline: none;
}

/* Button inside form */
form .btn-primary {
  display: inline-block;
  background: #023e8a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

form .btn-primary:hover {
  background: #0353a4;
}

/* Membership Form */
.membership-form {
  border: 2px solid #023e8a;
  border-radius: 10px;
  padding: 25px;
  max-width: 700px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.membership-form h3 {
  color: #023e8a;
  margin-bottom: 10px;
}

.membership-form label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
  color: #333;
}

.membership-form input,
.membership-form select,
.membership-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.membership-form input:focus,
.membership-form select:focus,
.membership-form textarea:focus {
  border-color: #023e8a;
  outline: none;
}

/* Modern button */
.btn-modern {
  background: linear-gradient(135deg, #023e8a, #0077b6);
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  text-align: center;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Membership radio group styling */
.membership-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: #023e8a; /* Blue check dot color */
  transform: scale(1.3); /* Make the dots bigger */
  margin-right: 8px;
}

.radio-option span {
  color: #333;
}

.radio-option small {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

/* Consent checkbox alignment: text left, checkbox right */
.checkbox-option {
  display: flex;
  justify-content: space-between; /* Pushes checkbox to right */
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
  margin-top: 10px;
}

.checkbox-option:hover {
  background: #eef6ff;
  border-color: #023e8a;
}

.checkbox-option input[type="checkbox"] {
  accent-color: #023e8a; /* Blue checkbox */
  transform: scale(1.2);
  margin-left: 10px;
}

/* Dropdown styling - same look as inputs */
.membership-form select {
  appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 15px;
  width: 100%;
  transition: border-color 0.3s ease;
}

.membership-form select:focus {
  border-color: #023e8a;
  outline: none;
}

/* Add down arrow indicator */
.membership-form select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23023e8a" viewBox="0 0 16 16"><path d="M1.5 5l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

/* Switch container */
.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  float: right;
  margin-bottom: 15px;
}

/* Toggle switch base */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider look */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: rgb(167, 167, 167);
  transition: 0.4s;
  border-radius: 50%;
}

/* When checked */
.switch input:checked + .slider {
  background-color: #023e8a;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Language label */
#languageLabel {
  font-weight: bold;
  color: rgb(221, 32, 32);
  font-size: 14px;
}

/* Language toggle container - own line */
.language-toggle-container {
  width: 100%;
  display: flex;
  justify-content: center; /* Center horizontally */
  margin-bottom: 20px;     /* Slightly more breathing room */
}


/* Switch alignment and spacing */
.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Side-by-side mission and vision */
.section.side-by-side {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 10px;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

.section.side-by-side .content-box {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section.side-by-side h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #023e8a; /* RAP Blue */
}

/* Decorative line under headings */
.title-line {
  display: block;
  margin: 12px 0 20px 0;
  width: 100%;
  height: auto;
  max-width: 280px; /* Adjust max width */
}

.title-line1 {
  display: block;
  margin: 12px 0 20px 0;
  width: 100%;
  height: auto;
  max-width: 320px; /* Adjust max width */
}

/* Side-by-side container */
.section.side-by-side {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  flex-wrap: wrap;
  position: relative;
}

/* Vertical divider line */
.section.side-by-side::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
  background-color: rgb(0, 102, 179); /* faint line */
  transform: translateX(-50%);
}

/* Remove line when stacked (mobile view) */
@media (max-width: 768px) {
  .section.side-by-side::after {
    display: none;
  }
}


.footer {
  background-color:  rgb(179, 140, 57);         
  border-top: 2px solid #023e8a;
  padding: 30px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h2,
.footer-section h3 {
  color: #023e8a;
  margin-bottom: 10px;
}

.footer-section h3 {
  font-size: 1.1rem;
  color: white;
}

.footer-section p,
.footer-section ul li {
  margin: 5px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: black;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration:dashed;
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 1.3rem;
}

.social-icons a {
  color: black;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: white;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.contact-info{
  color: black;
}

/* Volunteer Form Styling (inherits join-form styles) */
.form-container {
  max-width: 750px;
  margin: 30px auto;
  padding: 25px;
  border: 2px solid #023e8a; /* blue from logo */
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
  text-align: center;
  color: #023e8a;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: bold;
}

.join-form label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  color: #222;
}

.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="number"],
.join-form textarea,
.join-form select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.join-form input:focus,
.join-form textarea:focus,
.join-form select:focus {
  border-color: #023e8a;
  outline: none;
}

/* Checkbox groups */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.checkbox-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-inline label {
  display: flex;
  align-items: center;
}

/* Submit button */
.join-form .btn-primary {
  width: 100%;
  margin-top: 20px;
  background: #023e8a;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.join-form .btn-primary:hover {
  background: #0353a4;
}

/* Responsive */
@media (max-width: 600px) {
  .form-container {
    padding: 15px;
  }

  .join-form .btn-primary {
    font-size: 0.95rem;
    padding: 10px;
  }
}

/* Ensure header and dropdown are above page content */
.header {
  position: relative;
  z-index: 1000;
}

.main-nav .dropdown-menu,
.main-nav .nested-dropdown .dropdown-menu {
  position: absolute;
  z-index: 1100; /* Ensure it's higher than hero and other sections */
}

/* Optional: ensure hero or sections don't overlap unintentionally */
.hero,
.highlights,
.design-break {
  position: relative;
  z-index: 1;
}


.rap-manifesto-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  background: #ffffff;
  border: 2px solid #023e8a; /* Blue border */
}

.rap-manifesto-table th {
  background:  rgb(179, 140, 57);   /* Gold header */
  color: #023e8a;
  font-size: 1.2rem;
  padding: 12px;
  text-align: left;
  border: 1px solid #023e8a;
}

.rap-manifesto-table td {
  border: 1px solid #023e8a;
  padding: 10px;
  vertical-align: top;
}

.rap-manifesto-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.rap-manifesto-table ul {
  margin: 0;
  padding-left: 20px;
}

.rap-manifesto-table ul li {
  margin-bottom: 6px;
  color: #1a1a1a;
}


/* Scrollable container for mobile */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Table base styles */
.rap-manifesto-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background: #ffffff;
  border: 2px solid #023e8a; /* Blue border */
  min-width: 600px; /* ensures scroll for smaller screens */
}

.rap-manifesto-table th {
  background: rgb(179, 140, 57);   /* Gold header */
  color: #023e8a;
  font-size: 1.2rem;
  padding: 12px;
  text-align: left;
  border: 1px solid #023e8a;
}

.rap-manifesto-table td {
  border: 1px solid #023e8a;
  padding: 10px;
  vertical-align: top;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.rap-manifesto-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover effect */
.rap-manifesto-table tr:hover {
  background-color: #fff3b0; /* light gold */
  transition: background-color 0.3s ease;
}

/* List styling inside table cells */
.rap-manifesto-table ul {
  margin: 0;
  padding-left: 20px;
}

.rap-manifesto-table ul li {
  margin-bottom: 6px;
  line-height: 1.4;
}


/* ===== Resource Centre Tables (Documents, Tenders, Careers) ===== */
.resource-table,
.tenders-table,
.careers-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resource-table thead,
.tenders-table thead,
.careers-table thead {
  background-color: var(--color-primary); /* Blue from RAP palette */
  color: #fff;
  text-align: left;
}

.resource-table th,
.resource-table td,
.tenders-table th,
.tenders-table td,
.careers-table th,
.careers-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.resource-table tbody tr:hover,
.tenders-table tbody tr:hover,
.careers-table tbody tr:hover {
  background-color: rgb(179, 140, 57); ; /* Gold hover */
  color: #000;
  transition: 0.3s ease;
}

/* Make links inside tables styled as buttons */
.btn-download {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-secondary); /* Red from RAP palette */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-download:hover {
  background:  rgb(221, 32, 32);  /* Darker red on hover */
}

/* Responsive Table */
@media (max-width: 768px) {
  .resource-table,
  .tenders-table,
  .careers-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.hidden {
  display: none;
}

/* Style the coming soon message */
.coming-soon-message {
  background: #f8f8f8;
  border: 1px solid var(--color-primary);
  padding: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-black);
  border-radius: 6px;
  margin: 20px 0;
}

/* Leader Message Section */
.leader-message {
  background: #f9f9f9;
  padding: 50px 20px;
  border-top: 3px solid #023e8a; /* RAP blue accent */
}

.leader-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* centers vertically */
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  opacity: 0;              /* for animation start */
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.leader-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.leader-portrait {
  flex: 1 1 250px;
  text-align: center;
  margin-top: 30px; /* pushes portrait lower for balance */
}

.leader-portrait img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  border: 3px solid #023e8a;
}

.leader-name {
  margin-top: 10px;
  font-weight: bold;
  color: #023e8a;
}

.leader-content {
  flex: 2 1 500px;
}

.leader-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #023e8a;
  border-bottom: 2px solid rgb(179, 140, 57); /* gold underline */
  padding-bottom: 5px;
}


/* Mobile adjustments */
@media (max-width: 768px) {
  .leader-container {
    flex-direction: column;
    text-align: center;
  }

  .leader-content {
    margin-top: 20px;
  }

  .leader-portrait {
    margin-top: 10px; /* slightly less on mobile */
  }
}

.manifesto-pic {
  height: 500px !important;
  display: block !important;
  margin: 10px auto !important;   /* Reduced spacing top/bottom */
  max-width: 70% !important;      /* Scale down for desktop */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .manifesto-pic {
    max-width: 90% !important;
    margin: 5px auto !important;  /* Even smaller spacing on mobile */
  }
}

.section .content img.manifesto-pic {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Reduce spacing around manifesto image */
.section .content .manifesto-pic {
  display: block;
  margin: 15px auto;        /* Small gap above & below */
  max-width: 70%;
  height: auto;
}

/* Remove excess top/bottom space in the section that holds it */
.section .content {
  padding-top: 10px;
  padding-bottom: 10px;
}

.section .content h2,
.section .content p {
  margin-bottom: 10px; /* reduce gap below text */
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.highlight-card {
  background: #ffffff;
  border: 2px solid #023e8a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.highlight-date {
  display: block;
  font-size: 0.9rem;
  color: #d62828;
  margin-bottom: 8px;
}

.admin-form.hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  background: #fff8e1; /* light gold background */
  border: 2px solid rgb(0, 102, 179);  /* gold border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  font-size: 0.9rem;
  padding: 10px;
  background: #fff3cd; /* softer gold tone */
  color: #023e8a;
}

.media-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.media-list li {
  background: #ffe5e5; /* light red tint */
  border-left: 4px solid #d62828; /* RAP red */
  padding: 15px 20px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.media-list li:hover {
  background: #ffd6d6; /* darker tint on hover */
}

.media-date {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 5px;
}

.media-link {
  text-decoration: none;
  color: rgb(221, 32, 32);
  font-weight: bold;
  font-size: 1rem;
}

.media-link:hover {
  text-decoration: underline;
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  display: flex;
  align-items: center;
  background: #f0f8ff; /* light blue tint */
  border-left: 4px solid #023e8a; /* RAP blue */
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  background: #e6f0ff;
}

.event-date {
  background: #023e8a;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-right: 15px;
  width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-info h3 {
  margin: 0 0 5px;
  color: #023e8a;
}

.event-info p {
  margin: 0;
  font-size: 0.95rem;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.report-card {
  background: #fff8e1; /* light gold tint */
  border-left: 4px solid rgb(221, 32, 32); /* RAP gold */
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.report-card:hover {
  transform: translateY(-3px);
  background: #fff3c4;
}

.report-card h3 {
  margin: 0 0 5px;
  color: rgb(221, 32, 32); /* darker gold for titles */
}

.report-card p {
  margin: 0 0 10px;
}

.btn-download.gold {
  background: rgb(221, 32, 32);
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-download.gold:hover {
  background: rgb(0, 102, 179);
}

/* Urgent banner */
.urgent-notice {
  background: rgb(0, 102, 179);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 20px;
  gap: 10px;
}

.urgent-notice i {
  font-size: 1.2rem;
}

/* Notice Cards */
.notices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.notice-card {
  background: #ffe5e5;
  border-left: 4px solid rgb(0, 102, 179);
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-3px);
  background: #ffd6d6;
}

.notice-card h3 {
  margin: 0 0 5px;
  color: rgb(0, 102, 179);
}

.notice-card p {
  margin: 0 0 10px;
}

.btn-download.red {
  background: rgb(0, 102, 179);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-download.red:hover {
  background: rgb(0, 102, 179);
}

/* Accordion Container */
.accordion {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  font-family: inherit;
}

/* Accordion Item */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

/* Header Button */
.accordion-header {
  width: 100%;
  text-align: left;
  background: #023e8a; /* RAP Blue */
  color: #fff;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #0353a4;
}

/* Content Panel */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
}

.accordion-content p {
  padding: 10px 0;
  margin: 0;
}

/* ================================
   JOIN LEADERSHIP PAGE STYLES
   ================================ */

/* Leadership content layout */
.leadership-content h1 {
  margin-bottom: 16px;
}

.leadership-content h2 {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Collapsible panels (Leadership Organs) */
.collapsible {
  background: none;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Hover and active states */
.collapsible:hover,
.collapsible.active {
  background: #f5f5f5;
  border-color: #999;
}

/* Collapsible content with animation */
.content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-top: none;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Expanded state */
.collapsible.active + .content-panel {
  max-height: 500px; /* enough height for most content */
  padding: 10px 16px;
}

/* Regional structure form */
.regional-structure form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-top: 16px;
}

.regional-structure label {
  font-weight: 600;
  margin-bottom: 4px;
}

.regional-structure select {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

/* League content styling */
.league-content h1 {
  margin-bottom: 16px;
}

.league-content h2 {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* League list */
.league-list ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

/* League signup form */
.league-signup form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

/* Donation Page Accordion */
.accordion-header {
  background-color: rgb(179, 140, 57); /* Gold band */
  color: #000;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background-color: rgb(179, 140, 57);
}

.accordion-header.active {
  background-color: rgb(179, 140, 57);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f9f9f9;
  padding: 0 12px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

/* ======================
   Donation Page Styling
   ====================== */

/* Mobile money icons container */
.money-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 12px 0 24px;

}

/* Icon size and uniform look */
.money-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.2s ease;
    border-radius: 20px;
}

.money-icon:hover {
  transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .money-icons {
    gap: 12px;
    justify-content: flex-start;
  }
  .money-icon {
    width: 32px;
    height: 32px;
  }
}

.accordion-header {
  background-color: rgb(179, 140, 57); /* gold band */
  color: #000;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background-color: rgb(122, 85, 5);
}

.accordion-header.active {
  background-color: rgb(179, 140, 57);
}

/* Content transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: #f9f9f9;
  padding: 0 12px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

.accordion-content.open {
  padding: 10px 12px;
  max-height: 500px; /* big enough to fit content */
}

/* Email Page Styles */
.email-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.tab-btn.active {
  background: rgb(221, 32, 32); /* Gold highlight */
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Email table styling */
.email-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.email-table th, .email-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.email-table th {
  background: #f2f2f2;
}

/* Compose form */
#compose-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

.membership-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.membership-link {
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  color: #023e8a; /* Matches RAP blue */
  transition: color 0.3s ease;
}

.membership-link i {
  margin-right: 6px;
  color: rgb(221, 32, 32); /* Gold accent for icons */
  transition: transform 0.2s ease;
}

.membership-link:hover i {
  transform: scale(1.1);
}

.notice-media {
  width: 100%;
  max-width: 500px;
  margin: 10px 0;
  border-radius: 4px;
}

.notice-card video {
  max-height: 300px;
}

.highlight-media {
  width: 100%;
  max-width: 500px;
  margin: 10px 0;
  border-radius: 4px;
}

.highlight-card video {
  max-height: 300px;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding: 8px 0;       /* Reduced vertical padding */
  font-size: 0.85rem;
  border-top: 1px solid #ccc;
  margin-top: 0;        /* Remove extra spacing */
  color: #666;  /* Optional subtle background for separation */
}

.footer-bottom a {
  color: #023e8a;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Top Bar */
.top-bar {
  background-color: rgb(179, 140, 57);  
  padding: 5px 20px;
}

.top-right-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.top-right-buttons a {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn-login {
  background-color: var(--color-white);
  color: #023e8a;
}

.btn-signup {
  background-color:  #023e8a;
  color: white;
}

.btn-login:hover,
.btn-signup:hover {
  opacity: 0.9;
}

/* Keep header layout clean */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.highlights.with-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.highlight-card {
    flex: 1 1 calc(50% - 20px); /* Two per row on larger screens */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

/* Mobile view: stack cards */
@media (max-width: 738px) {
    .highlights.with-images {
        flex-direction: column;
    }
    .highlight-card {
        flex: 1 1 100%;
    }
}

#accessibilityPanel, #accessibilityPanel * {
  letter-spacing: normal !important;
  font-family: inherit !important;
  filter: none !important;
}

