/*
Theme Name: AAAO Theme
Author: Asian Arts Alliance
Description: Custom WordPress theme for the Asian Arts Alliance Organization
Version: 1.0
*/

:root {
  --primary-color: #B22222;
  /* Cultural Crimson */
  --accent-color: #FFD700;
  /* Gold */
  --neutral-bg: #FFF8E1;
  /* Soft neutral background */
  --text-color: #333333;
  /* Standard dark text */
  --white: #ffffff;
  --gray: #f0f0f0;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--neutral-bg);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0rem 2rem 0rem 2rem; /* top, right, bottom, left */
  padding-top: 1rem;
  box-shadow: var(--shadow);
}

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

.logo img {
  max-height: 90px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--white);
  font-weight: bold;
  font-size: 1rem;
}

.nav-menu li a:hover {
  color: var(--accent-color);
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

h1,
h2,
h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

footer {
  background-color: var(--gray);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}


/* Styles for grid layout  */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.grid-item {
  background-color: var(--gray);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.grid-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.grid-item .info {
  flex: 1;
}

/* SwiperJS Slider Styling */
.swiper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* adjust for your preferred layout */
}

.swiper-container {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  position: relative;
}

.swiper-slide {
  text-align: center;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 2px solid rgb(254, 254, 254);
  transition: transform 0.3s ease;
}

.swiper-slide img:hover {
  transform: scale(1.05);
}

.swiper-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  /* balanced blend of both */
  color: #fff;
  font-size: 1rem;
  text-align: center;
  opacity: 1;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.swiper-slide:hover .swiper-caption {
  opacity: 1;
  transform: translateY(0%);
}

a.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

a.button:hover {
  background-color: var(--accent-color);
  color: black;
}

.page-content {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.donate-options ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.donate-button {
  margin: 2rem 0;
  text-align: center;
}

a.button {
  background-color: #B22222;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

a.button:hover {
  background-color: #8B1A1A;
}

/* 🎯 Donation popup styles */
/* Scoped Donation Popup */
#thankYouPopup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.thankyou-popup-content {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

/* Scoped Volunteer Popup */
#volunteerPopup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.volunteer-popup-content {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
}

/* ------- above is new for acknowledge popup and volunteer popup --------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  /* Make sure it's on top */
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10001;
}

.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #B22222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- General form styling --- */
form#donationForm {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.form-group label {
  width: 150px;
  margin-right: 10px;
  font-weight: 500;
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  font-size: 1rem;
  min-width: 200px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.radio-group {
  display: flex;
  justify-content: flex-start;
  /* NEW: aligns the whole group to the left */
  gap: 2rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0;
  /* 0.5rem; */
  font-weight: normal;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}

form#donationForm button[type="submit"] {
  background-color: #B22222;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

form#donationForm button[type="submit"]:hover {
  background-color: #8B1A1A;
}

/* Optional: Add space between donor sections */
.donor-fields {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed #bbb;
  border-radius: 6px;
}

.donor-slider-section {
  margin-top: 3rem;
  text-align: center;
}

.donor-slider-section h2 {
  margin-bottom: 1rem;
  color: #B22222;
}

/* Volunteer Event Section styling  */
.volunteer-events {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.volunteer-event {
  display: flex;
  gap: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  align-items: flex-start;
  border: 1px solid #ddd;
}

.volunteer-btn {
  padding: 0.5rem 1rem;
  background: #B22222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.volunteer-button:hover {
  background: #8B1A1A;
}

.volunteer-thumb {
  width: 140px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.volunteer-event-info h2 {
  margin: 0 0 0.5rem;
}

.volunteer-event-info p {
  margin: 0.3rem 0;
}

/* added for contact info box */
.contact-wrapper {
  padding: 1em;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 2em;
}

.contact-info-box {
  flex: 1 1 300px;
  min-width: 280px;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f5f5f5;
  border-left: 5px solid var(--primary-color, #B22222);
  /* Crimson red fallback */
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-box h2 {
  margin-top: 0;
  color: var(--primary-color, #B22222);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Added for Home page hero section */
.hero {
  background-size: contain;   /* Show the whole image */
  background-repeat: no-repeat;
  background-position: top center;   /* <— aligns image to top */
  background-color: #000;   /* Black fill for extra space */
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-start;   /* Align overlay to top */
  justify-content: center;
  position: relative;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;   /* Horizontal centering */
  align-items: top center;  /* Vertical centering */
  align-items: flex-start;  /* if you want overlay content near top */
  padding: 1em;
}

.hero-text {
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 2em;
  animation: fadeIn 2s ease-in-out;
}

.hero-text h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #fff;
}

.hero-text p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
}

.hero-btn {
  background-color: #B22222;
  color: #fff;
  padding: 0.75em 2em;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #a01d1d;
}

.aaao-showcase {
  background-color: #fff9f5;
  padding: 2em 1em; /* 2em 1em; */
}

.aaao-showcase-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;     /* 100% */
  /* padding: 2em; */
  background-color:rgba(255, 255, 255, 0.0); /* Soft white with 60% opacity */
  backdrop-filter: blur(8px);                /* Adds a frosted glass effect */
  -webkit-backdrop-filter: blur(8px);        /* Safari support */
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.showcase-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
}

.showcase-text,
.showcase-media {
  flex: 1 1 300px;
  max-width: 400px  /* 600px; */
}

.showcase-text h2 {
  color: var(--primary-color);
  margin-bottom: 1em;
}

/* Headline ticker styles */
.ticker {
  height: 2em; /* height of one line */
  overflow: hidden;
  position: relative;
  background-color: black  /*  rgba(255, 255, 255, 0.6); */
  border-left: 4px solid red; /* #B22222; */
  padding-left: 1em;
}

.ticker-content {
  display: flex;
  flex-direction: column;
  animation: scroll-up 12s linear infinite;
}

.ticker-content p {
  margin: 0;
  height: 3em;
  line-height: 3em;
  white-space: nowrap;
  color: white;
}

/* Scroll continuously upward */
@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* Placeholder media */
.media-slider img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* For Home page media slider */
.media-slider {
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  border-radius: 10px;
}

.media-slider img,
.media-slider video,
.media-slider iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Responsive: Stack nicely on small screens */
/* Mobile responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    /* Left-align on small screens */
  }

  .contact-content {
    flex-direction: column;
  }
  /* for Home page hero section */
  .hero {
    height: auto;
    flex-direction: column;
    align-items: center;
  }

  .aaao-showcase-overlay {
    position: static !important;   /* override absolute/fixed */
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 250, 246, 0.0);  /* semi-transparent */
    box-shadow: none;
    margin-top: 1rem;
    z-index: auto;
  }

  .showcase-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
  }

  .showcase-text,
  .media-slider {
    width: 100%;
  }

  .hero-overlay {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
}

}