/*
Theme Name: RPAL AI
Theme URI: https://rpal.org
Author: Nerd Crossing
Author URI: https://nerdcrossing.com
Description: Official WordPress theme for the Richmond Police Activities League. Built to match the RPAL Figma design system with Elementor compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rpal
Tags: nonprofit, elementor, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   RPAL DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --rpal-blue-dark:       #002854;
  --rpal-blue:            #0a51a1;
  --rpal-blue-light:      #008fba;
  --rpal-yellow:          #ffe048;
  --rpal-yellow-warm:     #ffae16;
  --rpal-orange:          #f89e41;
  --rpal-purple:          #5c47a6;
  --rpal-black:           #000000;
  --rpal-white:           #ffffff;
  --rpal-gray-light:      #eef7ff;
  --rpal-gray:            #d9d9d9;
  --rpal-charcoal:        #27333f;
  --rpal-text:            #374859;

  /* Gradients */
  --gradient-blue:        linear-gradient(135deg, #008fba 0%, #0a51a1 100%);
  --gradient-yellow:      linear-gradient(135deg, #ffe048 0%, #ffae16 100%);
  --gradient-navy:        linear-gradient(107deg, #002854 0%, #00789c 100%);
  --gradient-footer:      linear-gradient(180deg, #002854 0%, #001b39 52%, #000000 100%);

  /* Typography */
  --font-heading:         'Maven Pro', sans-serif;
  --font-body:            'Instrument Sans', sans-serif;
  --font-serif:           'Lora', serif;
  --font-finePrint:       'Red Hat Display', sans-serif;

  /* Sizes */
  --container-width:      1440px;
  --container-padding:    144px;
  --radius-card:          150px;
  --radius-btn:           37px;
  --radius-modal:         20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-charcoal);
  background: var(--rpal-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

.rpal-h1 { font-size: 32px; font-weight: 700; }
.rpal-h2 { font-size: 23px; }
.rpal-h3 { font-size: 20px; }
.rpal-h5 { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.rpal-p  { font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.6; }
.rpal-fine { font-family: var(--font-finePrint); font-size: 10px; font-style: italic; letter-spacing: 0.5px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.rpal-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.rpal-section { position: relative; width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-rpal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-rpal:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-blue {
  background: var(--gradient-blue);
  color: var(--rpal-white);
}

.btn-yellow {
  background: var(--gradient-yellow);
  color: var(--rpal-blue-dark);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#masthead {
  width: 100%;
  background-color: black;
}

/* Top bar */
.rpal-topbar {
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  height: 50px;
  padding: 0 40px;
}

.rpal-topbar__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-white);
  text-align: right;
}

.rpal-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  height: 100%;
}

.rpal-topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--rpal-white);
  transition: opacity 0.2s;
}

.rpal-topbar__social a:hover { opacity: 0.7; }

.rpal-topbar__social svg {
  width: 30px; 
  height: 30px; 
}

/* Main nav bar */
.rpal-navbar {
  background: rgba(0,0,0,0.6);
  border-top: 1px solid var(--rpal-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  height: 100px;
}

.rpal-navbar__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rpal-navbar__logo img {
  height: 45px;
  width: auto;
}

.rpal-navbar__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--rpal-white);
  white-space: nowrap;
}

.rpal-navbar__right {
  display: flex;
  align-items: center;
  gap: 46px;
}
@media screen and ( max-width: 499px ) {
  .rpal-navbar__right {
    gap: 5%;
  }
}

/* Nav menu */
.rpal-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.rpal-nav-menu li { position: relative; }

.rpal-nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--rpal-white);
  white-space: nowrap;
  transition: opacity 0.2s;
  text-transform: uppercase;
}

.rpal-nav-menu a:hover { 
  background-color: var( --rpal-blue );
  border-radius: 16px;
}
.rpal-nav-menu .menu-item-has-children a:hover { 
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Dropdown */
.rpal-nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.rpal-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--rpal-white);
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.rpal-nav-menu li:hover > .sub-menu { 
  display: block;
  z-index: 1000;
}

.rpal-nav-menu .sub-menu a {
  padding: 14px 20px;
  color: var(--rpal-blue);
  font-weight: 700;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(10,81,161,0.08);
}

.rpal-nav-menu .sub-menu a:hover { background: var(--rpal-gray-light); }

/* Mobile hamburger */
.rpal-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.rpal-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rpal-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO / MULTIMEDIA SLIDER
   ============================================================ */
.rpal-hero {
  position: relative;
  width: 100%;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 250px var(--container-padding) 100px;
  overflow: hidden;
}

.rpal-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--rpal-blue-dark);
}

.rpal-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.rpal-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.rpal-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  width: 100%;
  max-width: calc(var(--container-width) - var(--container-padding) * 2);
}

.rpal-hero__content {
  flex: 1;
  color: var(--rpal-white);
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 578px;
}

.rpal-hero__headline {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.rpal-hero__body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
}

/* Donation Form */
.rpal-donation-form {
  background: var(--rpal-white);
  border: 1px solid var(--rpal-blue);
  border-radius: var(--radius-modal);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 460px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.rpal-donation-form .form-row {
  display: flex;
  gap: 20px;
}

.rpal-donation-form input,
.rpal-donation-form select {
  width: 100%;
  height: 37px;
  padding: 10px;
  border: 0.5px solid rgba(0,0,0,0.3);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(55,72,89,0.8);
  background: var(--rpal-white);
  outline: none;
  transition: border-color 0.2s;
}

.rpal-donation-form input:focus { border-color: var(--rpal-blue); }

.rpal-donation-form .form-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rpal-donation-form .form-toggle-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Toggle Switch */
.rpal-toggle {
  position: relative;
  width: 40px;
  height: 21px;
  flex-shrink: 0;
}

.rpal-toggle input { opacity: 0; width: 0; height: 0; }

.rpal-toggle-slider {
  position: absolute;
  inset: 0;
  background: #a6a6a6;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.rpal-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  background: var(--rpal-white);
  border-radius: 50%;
  transition: transform 0.3s;
}

.rpal-toggle input:checked + .rpal-toggle-slider { background: var(--rpal-blue); }
.rpal-toggle input:checked + .rpal-toggle-slider::before { transform: translateX(19px); }

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.rpal-programs {
  padding: 100px var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  background: var(--rpal-white);
}

.rpal-programs__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  text-align: center;
  color: var(--rpal-black);
}

.rpal-programs__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Program Card */
.rpal-program-card {
  background: var(--rpal-white);
  border-radius: 150px 0 150px 0;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rpal-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.rpal-program-card__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.rpal-program-card__body {
  padding: 20px 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.rpal-program-card__text { width: 100%; }

.rpal-program-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--rpal-black);
  margin-bottom: 16px;
}

.rpal-program-card__desc {
  font-size: 13px;
  color: var(--rpal-black);
  line-height: 1.6;
}

/* ============================================================
   MISSION / IMPACT SECTION
   ============================================================ */
.rpal-mission {
  position: relative;
  padding: 180px var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.rpal-mission__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rpal-mission__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rpal-mission__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.rpal-mission__inner { position: relative; z-index: 2; width: 100%; }

.rpal-mission-box {
  background: linear-gradient(86deg, #00546d 0%, #073971 100%);
  border-left: 10px solid var(--rpal-yellow);
  border-right: 10px solid var(--rpal-yellow);
  border-radius: 80px 0 80px 0;
  padding: 40px;
  margin-bottom: 60px;
}

.rpal-mission-box p {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-yellow);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.69px;
}

.rpal-impact__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-white);
  text-align: center;
  margin-bottom: 60px;
}

.rpal-impact__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.rpal-impact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 225px;
  flex-shrink: 0;
}

.rpal-impact__icon {
  width: 225px;
  height: 225px;
}

.rpal-impact__stat {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-white);
  text-align: center;
  line-height: 1.5;
}

.rpal-impact__stat strong { font-weight: 700; }

/* ============================================================
   SPECIAL EVENT SECTION
   ============================================================ */
.rpal-event {
  display: flex;
  align-items: center;
  padding: 80px var(--container-padding);
  gap: 60px;
}

.rpal-event__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rpal-event__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-blue);
}

.rpal-event__details {
  font-size: 13px;
  color: var(--rpal-black);
  line-height: 1.8;
}

.rpal-event__details strong { font-weight: 700; }

.rpal-event__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px;
  flex-shrink: 0;
}

.rpal-event__photo {
  background: var(--rpal-gray);
  border-radius: 8px;
  overflow: hidden;
}

.rpal-event__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
.rpal-schedule {
  position: relative;
  padding: 100px var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.rpal-schedule__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rpal-schedule__bg img { width: 100%; height: 100%; object-fit: cover; }

.rpal-schedule__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.rpal-schedule__inner { position: relative; z-index: 2; width: 100%; }

.rpal-schedule__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-white);
  text-align: center;
  margin-bottom: 60px;
}

.rpal-schedule__hours {
  background: var(--rpal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  text-align: center;
}

.rpal-schedule__hours-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--rpal-white);
}

.rpal-schedule__hours-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-white);
  margin-top: 4px;
}

/* Schedule Table */
.rpal-schedule-table {
  width: 100%;
  background: var(--rpal-white);
  border-collapse: collapse;
}

.rpal-schedule-table th {
  background: var(--rpal-blue-light);
  color: var(--rpal-white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  padding: 20px;
  text-align: left;
  border-left: 1px solid var(--rpal-white);
}

.rpal-schedule-table th:first-child { border-left: none; }

.rpal-schedule-table td {
  padding: 20px;
  border-bottom: 1px solid var(--rpal-blue-light);
  vertical-align: top;
}

.rpal-schedule-table tr:nth-child(even) td { background: var(--rpal-gray-light); }

.rpal-schedule-table .time {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--rpal-black);
  display: block;
  margin-bottom: 4px;
}

.rpal-schedule-table .activity {
  font-size: 13px;
  color: var(--rpal-black);
}

/* ============================================================
   GET INVOLVED
   ============================================================ */
.rpal-get-involved {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.rpal-get-involved__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 100px var(--container-padding) 100px;
}

.rpal-get-involved__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-blue);
}

.rpal-get-involved__body {
  font-size: 13px;
  color: var(--rpal-black);
  line-height: 1.7;
}

.rpal-get-involved__image {
  width: 50%;
  min-height: 568px;
  flex-shrink: 0;
  overflow: hidden;
}

.rpal-get-involved__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.rpal-newsletter {
  background: var(--gradient-navy);
  display: flex;
  align-items: center;
  gap: 144px;
  padding: 60px var(--container-padding);
}

.rpal-newsletter__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  color: var(--rpal-white);
}

.rpal-newsletter__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
}

.rpal-newsletter__body { font-size: 13px; line-height: 1.7; }

/* Newsletter Form */
.rpal-newsletter-form {
  background: var(--rpal-white);
  border: 1px solid var(--rpal-blue);
  border-radius: var(--radius-modal);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 49px;
  align-items: center;
  width: 494px;
  flex-shrink: 0;
}

.rpal-newsletter-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.rpal-newsletter-form input {
  width: 100%;
  height: 37px;
  padding: 10px;
  border: 0.5px solid rgba(0,0,0,0.3);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(55,72,89,0.8);
  outline: none;
  transition: border-color 0.2s;
}

.rpal-newsletter-form input:focus { border-color: var(--rpal-blue); }

.rpal-newsletter-form .btn-rpal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpal-newsletter-form .btn-rpal img { width: 26px; height: 28px; object-fit: contain; }

/* ============================================================
   COLOR BLOCKS
   ============================================================ */
.rpal-color-blocks {
  display: flex;
  height: 224px;
  width: 100%;
}

.rpal-color-blocks__item { flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.rpal-footer {
  background: var(--gradient-footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 0 0;
  height: 250px;
}

.rpal-footer__left {
  display: flex;
  align-items: center;
  gap: 50px;
  height: 100%;
}

.rpal-footer__banner {
  height: 100%;
  display: flex;
  align-items: center;
}

.rpal-footer__banner img { height: 100%; width: auto; object-fit: cover; }

.rpal-footer__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rpal-footer__logo img { height: 77px; width: auto; }

.rpal-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 30px;
}

.rpal-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-white);
}

.rpal-footer__contact-item svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

.rpal-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

.rpal-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpal-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--rpal-white);
  transition: opacity 0.2s;
}

.rpal-footer__social a:hover { opacity: 0.7; }

.rpal-footer__social svg { 
  width: 30px; 
  height: 30px; 
}

/* Footer bottom bar */
.rpal-footer-bottom {
  background: var(--rpal-black);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.rpal-footer-bottom p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rpal-white);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   PAGE HERO BANNER (inner pages)
   ============================================================ */
.rpal-page-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: flex-end;
  padding: 40px var(--container-padding);
  margin-top: 150px; /* offset for fixed header */
  overflow: hidden;
}

.rpal-page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--rpal-blue-dark);
}

.rpal-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.rpal-page-hero__overlay { position: absolute; inset: 0; background: rgba(0,40,84,0.6); }

.rpal-page-hero__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--rpal-white);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.rpal-history {
  display: flex;
  align-items: stretch;
  min-height: 960px;
}

.rpal-history__content {
  width: 596px;
  padding: 80px 100px;
  flex-shrink: 0;
}

.rpal-history__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 56px;
}

.rpal-history__body { font-size: 13px; line-height: 1.7; }

/* Timeline */
.rpal-timeline {
  flex: 1;
  padding: 80px 40px;
}

.rpal-timeline__item {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 200px;
  position: relative;
}

.rpal-timeline__item:nth-child(odd) { flex-direction: row; }
.rpal-timeline__item:nth-child(even) { flex-direction: row-reverse; }

.rpal-timeline__text {
  flex: 1;
  padding: 14px 20px;
}

.rpal-timeline__year {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 28px;
}

.rpal-timeline__desc { font-size: 13px; line-height: 1.6; }

.rpal-timeline__connector {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rpal-timeline__connector::before {
  content: '';
  display: block;
  width: 2px;
  flex: 1;
  background: var(--rpal-blue-light);
}

.rpal-timeline__connector::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rpal-blue);
  flex-shrink: 0;
}

.rpal-timeline__image {
  flex: 1;
  padding: 20px;
}

.rpal-timeline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Board of Directors */
.rpal-board-section {
  padding: 100px var(--container-padding);
}

.rpal-board__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 60px;
}

.rpal-board__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 64px;
}

.rpal-person {
  display: flex;
  align-items: center;
  gap: 0 10px;
  height: 100px;
}

.rpal-person__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rpal-gray);
  flex-shrink: 0;
}

.rpal-person__avatar img { width: 100%; height: 100%; object-fit: cover; }

.rpal-person__info { padding-left: 10px; }

.rpal-person__name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--rpal-black);
  margin-bottom: 8px;
}

.rpal-person__title { font-size: 13px; color: var(--rpal-charcoal); }

/* Publications */
.rpal-publications {
  padding: 80px var(--container-padding);
  display: flex;
  align-items: center;
  gap: 60px;
}

.rpal-publications__content { flex: 1; }

.rpal-publications__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  color: var(--rpal-blue);
  margin-bottom: 28px;
}

.rpal-publications__body { font-size: 13px; line-height: 1.7; }

.rpal-publications__books {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.rpal-publications__book {
  width: 129px;
  height: 168px;
  background: var(--rpal-gray);
  border-radius: 8px;
  overflow: hidden;
}

.rpal-publications__book img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   GET INVOLVED PAGE — Involvement Cards
   ============================================================ */
.rpal-involvement {
  padding: 80px var(--container-padding);
  display: grid;
  grid-template-columns: repeat(2, 512px);
  justify-content: center;
  gap: 40px;
}

.rpal-involvement-card {
  background: var(--rpal-gray-light);
  border-radius: 16px;
  width: 512px;
  height: 512px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}

.rpal-involvement-card:hover { transform: scale(1.02); }

.rpal-involvement-card__inner {
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rpal-involvement-card__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
}

.rpal-involvement-card__desc { font-size: 13px; line-height: 1.7; }

/* Donors */
.rpal-donors {
  padding: 100px var(--container-padding);
}

.rpal-donors__title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 60px;
}

.rpal-donors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.rpal-donor-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpal-donor-item__logo {
  width: 100%;
  height: 60px;
  background: var(--rpal-gray);
  border-radius: 8px;
  overflow: hidden;
}

.rpal-donor-item__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.rpal-donor-item__name { font-size: 18px; font-weight: 700; color: var(--rpal-black); }
.rpal-donor-item__info { font-size: 13px; color: var(--rpal-charcoal); }

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.site-main { padding-top: 150px; } /* Offset fixed header */
.home .site-main { padding-top: 0; }

/* WordPress alignments */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; margin-left: calc(-1 * var(--container-padding)); margin-right: calc(-1 * var(--container-padding)); }

/* WP default classes */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #666; margin-top: 4px; }
.sticky {}
.gallery-caption {}
.bypostauthor {}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.screen-reader-text:focus {
  clip: unset;
  height: unset;
  width: unset;
  overflow: hidden;
  background-color: white;
  z-index: 10000;
  padding: 4px 8px;
  margin: 6px 0 0 6px;
  top: unset;
  border-radius: 4px;
  border: 1px solid var( --rpal-blue );
}

/* Gutenberg blocks */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-quote { border-left: 4px solid var(--rpal-blue); padding-left: 20px; margin: 1.5rem 0; }
.wp-block-button__link {
  background: var(--gradient-blue);
  color: var(--rpal-white);
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border: none;
}

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-section .elementor-container { max-width: var(--container-width) !important; }

.elementor-widget-heading .elementor-heading-title { font-family: var(--font-heading) !important; }

.elementor-button {
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  :root {
    --container-padding: 60px;
  }

  .rpal-programs__grid { justify-content: center; flex-wrap: wrap; }
  .rpal-hero__inner { flex-direction: column; }
  .rpal-donation-form { min-width: unset; width: 100%; }
  .rpal-newsletter { flex-direction: column; gap: 40px; }
  .rpal-newsletter-form { width: 100%; }
}

@media (max-width: 1024px) {
  :root { --container-padding: 40px; }

  /* .rpal-topbar { display: none; } */
  .rpal-navbar { height: 80px; }
  .rpal-navbar__tagline { display: none; }
  .rpal-nav-menu { display: none; }
  .rpal-hamburger { display: flex; }

  .rpal-nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    padding: 20px 40px;
    z-index: 999;
    gap: 0;
  }

  .rpal-nav-menu.is-open .sub-menu {
    display: block;
    position: static;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    border-radius: 0;
  }

  .rpal-nav-menu.is-open .sub-menu a { color: var(--rpal-white); }

  .rpal-history { flex-direction: column; }
  .rpal-history__content { width: 100%; }
  .rpal-board__grid { grid-template-columns: repeat(2, 1fr); }
  .rpal-involvement { grid-template-columns: 1fr; }
  .rpal-involvement-card { width: 100%; }

  .rpal-get-involved { flex-direction: column; }
  .rpal-get-involved__image { width: 100%; min-height: 300px; }

  .rpal-event { flex-direction: column; }
  .rpal-footer { flex-direction: column; height: auto; padding: 40px; gap: 30px; }
  .rpal-footer__left { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --container-padding: 20px; }

  .rpal-hero { padding: 120px 20px 60px; min-height: auto; }
  .rpal-hero__headline { font-size: 24px; }
  .rpal-programs { padding: 60px 20px; }
  .rpal-programs__grid { flex-direction: column; align-items: center; }
  .rpal-program-card { width: 100%; max-width: 300px; }
  .rpal-mission { padding: 80px 20px; }
  .rpal-mission-box p { font-size: 18px; }
  .rpal-impact__grid { flex-wrap: wrap; justify-content: center; }
  .rpal-schedule .rpal-container { overflow-x: auto; }
  .rpal-schedule-table { min-width: 700px; }
  .rpal-board__grid { grid-template-columns: 1fr; }
  .rpal-donors__grid { grid-template-columns: repeat(2, 1fr); }
  .rpal-publications { flex-direction: column; }
  .rpal-color-blocks { height: 80px; }
  .rpal-newsletter { padding: 40px 20px; }
  .site-main { padding-top: 80px; }
}


.rpal-footer__banner iframe {
  max-width: 100%;
}

.keep-as-4-columns .elementor-image-gallery .gallery.gallery-columns-4 .gallery-item {
      max-width: 25%;
}
.keep-as-3-columns .elementor-image-gallery .gallery.gallery-columns-3 .gallery-item {
      max-width: 33.333%;
}
.keep-as-2-columns .elementor-image-gallery .gallery.gallery-columns-2 .gallery-item {
      max-width: 50%;
}

/*****
 * Forms
 */
.wpcf7-form input {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"], 
.wpcf7-form textarea {
  border-radius: 5px;
  border: 1px solid rgba( 0, 0, 0, 0.20 );
  padding: 0.6rem 1rem;
}
.nc-form-row input, 
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
}
.wpcf7-form textarea {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  height: 5rem;
}
.wpcf7-form .nc-form-row input[type="checkbox"] {
  width: unset;
}
.wpcf7-form .nc-form-row p label:first-child input[type="checkbox"] {
  margin-bottom: 0.5rem;
}
.form-required {
  color: #c70202;
}
.wpcf7-list-item {
  width: 100%;
}
.wpcf7-radio input[type="radio"] {
  width: unset;
  margin: 0.25rem 0.5rem 0;
}
  .nc-form-row-2 > p input {
    width: 100%;
  }
/*
.wpcf7-form .nc-form-row p label:first-child input[type="radio"] {
  margin-bottom: unset;
}
*/
@media screen and ( max-width: 599px ) {
  .nc-form-row-2 > p {
    margin-top: 1rem;
  }
}
@media screen and ( min-width: 600px ) {
  .nc-form-row p, 
  .nc-form-row-2 {
    display: flex;
    justify-content: space-between;
    column-gap: 6%;
  }
  .nc-form-row-2 {
    margin-bottom: 1rem;
  }
  .nc-form-row-2 > p {
    max-width: 47%;
  }
}

.header-language .gt_selector {
  background-color: black;
  color: white;
  border: 1px solid white;
  padding: 3px 8px;
}


@media screen and ( max-width: 599px ) {
  .rpal-topbar {
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: unset;
    gap: 10px;
  }
}

.elementor .e-con.hide-the-h1 {
  position: absolute;
  left: -9999px;
}

/***********************
 * Mail chimp form
 */

#mc_embed_signup form {display:block; position:relative; text-align:left; margin: 20px}
#mc_embed_signup h2 {font-weight:bold; padding:0; margin:15px 0; font-size:1.4em;}
#mc_embed_signup input {border: 1px solid #ABB0B2; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;}
#mc_embed_signup input[type=radio]{-webkit-appearance:radio;}
#mc_embed_signup input:focus {border-color:#333;}
#mc_embed_signup .button {
  clear:both; 
  background-color: #111; 
  border: 0 none; 
  transition: all 0.23s ease-in-out 0s; 
  color: #FFFFFF; 
  cursor: pointer; 
  display: inline-block; 
  font-size:15px; 
  font-weight: bold; 
  line-height: 32px; 
  margin: 0 5px 10px 0;  
  text-align: center; 
  text-decoration: none; 
  vertical-align: top; 
  white-space: nowrap; 
  width: fit-content; 
  width: -moz-fit-content;
  border-radius: 37px 37px 37px 37px;
  padding: 20px 30px 20px 30px;
}
#mc_embed_signup .button:hover {background-color:#222;}
#mc_embed_signup .small-meta {font-size: 11px;}
#mc_embed_signup .nowrap {white-space:nowrap;}

#mc_embed_signup .mc-field-group {clear:left; position:relative; width:96%; padding-bottom:3%; min-height:50px; display:grid;}
#mc_embed_signup .size1of2 {clear:none; float:left; display:inline-block; width:46%; margin-right:4%;}
#mc_embed_signup .mc-field-group label {display:block; margin-bottom:3px;}
#mc_embed_signup .mc-field-group input {
  display:block; 
  width:100%; 
  text-indent:2%;
  padding: 0.6rem 1rem;
  border: 1px solid rgba( 0, 0, 0, 0.20 );
}
#mc_embed_signup .mc-field-group select {display:inline-block; width:99%; padding:5px 0; margin-bottom:2px;}
#mc_embed_signup .mc-address-fields-group {display:flex; flex-direction:row; justify-content:space-evenly; width:96%; gap:15px;}
#mc_embed_signup .mc-sms-phone-group {display:flex; flex-direction:row; justify-content:space-evenly; width:96%; gap:15px; padding-top:5px;}
#mc_embed_signup input[type=checkbox] {
  -webkit-appearance:checkbox; 
  width: 16px;
  height: 16px;
}

#mc_embed_signup .datefield, #mc_embed_signup .phonefield-us{padding:5px 0;}
#mc_embed_signup .datefield input, #mc_embed_signup .phonefield-us input{display:inline; width:60px; margin:0 2px; letter-spacing:1px; text-align:center; padding:5px 0 2px 0;}
#mc_embed_signup .phonefield-us .phonearea input, #mc_embed_signup .phonefield-us .phonedetail1 input{width:40px;}
#mc_embed_signup .datefield .monthfield input, #mc_embed_signup .datefield .dayfield input{width:30px;}
#mc_embed_signup .datefield label, #mc_embed_signup .phonefield-us label{display:none;}

#mc_embed_signup .indicates-required {text-align:right; font-size:11px; margin-right:4%;}
#mc_embed_signup .asterisk {color:#e85c41; font-size:150%; font-weight:normal; position:relative; top:5px;}     
#mc_embed_signup .clear {clear:both;}
#mc_embed_signup .foot {display:grid; grid-template-columns: 3fr 1fr; width:96%; align-items: center;}
@media screen and (max-width:400px) {#mc_embed_signup .foot {display:grid; grid-template-columns: 1fr; width:100%; align-items: center;}}

@media screen and (max-width:400px) {#mc_embed_signup .referralBadge {width:50%;}}

#mc_embed_signup .brandingLogo {justify-self:right;}
@media screen and (max-width:400px) {#mc_embed_signup .brandingLogo {justify-self:left;}}

#mc_embed_signup .mc-field-group.input-group ul {margin:0; padding:5px 0; list-style:none;}
#mc_embed_signup .mc-field-group.input-group ul li {display:block; padding:3px 0; margin:0;}
#mc_embed_signup .mc-field-group.input-group label {display:inline;}
#mc_embed_signup .mc-field-group.input-group input {display:inline; width:auto; border:none;}

#mc_embed_signup div#mce-responses {float:left; top:-1.4em; padding:0em .5em 0em .5em; overflow:hidden; width:90%; margin: 0 5%; clear: both;}
#mc_embed_signup div.response {margin:1em 0; padding:1em .5em .5em 0; font-weight:bold; float:left; top:-1.5em; z-index:1; width:80%;}
#mc_embed_signup #mce-error-response {display:none;}
#mc_embed_signup #mce-success-response {color:#529214; display:none;}
#mc_embed_signup label.error {display:block; float:none; width:auto; margin-left:1.05em; text-align:left; padding:.5em 0;}
#mc_embed_signup .helper_text {color: #8d8985; margin-top: 2px; display: inline-block; padding: 3px; background-color: rgba(255,255,255,0.85); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; font-size: 14px; font-weight: normal; z-index: 1;}

#mc-embedded-subscribe {clear:both; width:auto; display:block; margin:1em 0 1em 5%;}
#mc_embed_signup #num-subscribers {font-size:1.1em;}
#mc_embed_signup #num-subscribers span {padding:.5em; border:1px solid #ccc; margin-right:.5em; font-weight:bold;}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {display:inline-block; margin:2px 0 1em 0; padding:3px; background-color:rgba(255,255,255,0.85); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; font-size:14px; font-weight:normal; z-index:1; color:#e85c41;}
#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {border:2px solid #e85c41;}

#mc_embed_signup{
    clear:left; 
}
#mc_embed_shell .asterisk {
  color: #c70202;
}


.home .ays-chart-charts-main-container svg g path {
  stroke: rgba( 255, 255, 255, 0 );
}

.home .ays-chart-charts-main-container svg defs + g > path {
  fill: rgba( 0, 0, 0, 0 );
}
