@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Open+Sans:wght@300;400;600;700&display=swap");

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  overflow-x: hidden;
  background-color: #fff;
}

/* Colors */
:root {
  --primary-color: #fca822;
  --text-color: #333;
  --white: #fff;
  --light-gray: #f5f5f5;
  --overlay-bg: rgba(252, 168, 34, 0.95);
  --footer-bg: #222;
  --footer-text: #eee;
}

.highlight {
  color: var(--primary-color);
  font-weight: bold;
  font-family: "Orbitron", Arial Black, sans-serif;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 1);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.logo-text h2 {
  font-size: 12px;
  font-weight: 400;
  color: var(--primary-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: none; /* Hidden on mobile by default */
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  margin: 0;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Burger Menu */
.burger {
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.burger div {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.burger div:nth-child(1) {
  top: 0;
}

.burger div:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger div:nth-child(3) {
  bottom: 0;
}

/* Burger Animation */
.burger.active div:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 50%;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--overlay-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.menu-overlay-links a {
  margin: 15px 0;
  font-size: 24px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.menu-overlay-links a:hover {
  transform: scale(1.1);
}

/* Charity Events Box in Mobile Menu */
.charity-events-box {
  width: 85%;
  max-width: 320px;
  margin: 15px 0;
  background-color: white;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.charity-events-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 22px;
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.charity-events-items {
  display: flex;
  flex-direction: column;
}

.charity-events-box a {
  color: var(--text-color);
  font-size: 18px;
  margin: 8px 0;
  padding: 8px 10px;
  transition: background-color 0.3s;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  display: block;
}

.charity-events-box a:hover {
  background-color: #f5f5f5;
  transform: none;
}

/* Parallax Sections (from original CSS) */
.parallax-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 10;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sky {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  background-image: linear-gradient(
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 25%,
    rgba(82, 162, 255, 1) 65%,
    rgba(82, 162, 255, 1) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  z-index: 1;
}

.castle {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url("../img/castle.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  overflow: visible;
}

.ground {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/ground.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  z-index: 1;
}

.grass1 {
  z-index: 4;
  background-image: url("../img/grass1.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
}

.grass2 {
  z-index: 5;
  background-image: url("../img/grass2.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
}

.grass3 {
  z-index: 6;
  background-image: url("../img/grass3.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
}

/* Content Overlay */
.parallax-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.8);
}

.overlay-section {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay-top {
  top: 0;
  padding-top: 80px; /* Space for the fixed navigation */
}

.overlay-bottom {
  bottom: 0;
  padding-bottom: 20px;
  justify-content: flex-end;
}

.section-content {
  padding: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.main-title {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--text-color);
  margin-bottom: 5px;
}

.subtitle {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  color: var(--primary-color);
  font-weight: bold;
}

/* Scroll Prompt */
.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  animation: bounce 2s infinite;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border: solid var(--primary-color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  transform: rotate(45deg);
  margin-bottom: 10px;
}

/* General Content Sections */
.content-section {
  position: relative;
  z-index: 5;
  padding: 60px 20px;
  background-color: var(--white);
}

.content-section:nth-child(even) {
  background-color: var(--light-gray);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* About Section */
#about-section {
  text-align: center;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.welcome-text {
  flex: 1;
  text-align: center;
}

.welcome-images {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  max-width: 600px;
}

.welcome-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.welcome-image.active {
  opacity: 1;
}

.welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px;
}

.social-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Charity Events Section */
.charity-event {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.charity-event:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.charity-event h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-images {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
}

.event-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.event-image.active {
  opacity: 1;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  text-align: center;
}

/* Donations Carousel */
.donations-carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 20px;
}

.donations-carousel-top {
  display: flex;
  align-items: center;
  width: 100%;
}

.left-arrow,
.right-arrow {
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donations-container-wrapper {
  flex: 1;
  overflow: hidden;
}

.donations-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.donation-item {
  min-width: 100%;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
  margin: 0 10px;
}

.donation-item h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.6rem;
}

.donation-amount {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color);
}

.donations-carousel-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}

.see-all-container {
  text-align: center;
  margin-top: 30px;
}

/* Social Media Feeds */
.social-feeds {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.social-feed-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.social-feed-container > div {
  width: 100% !important;
}

.instagram-feed {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e89710;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-text h3 {
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  flex-direction: row; /* Always in row for 3 columns */
  gap: 15px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 30%; /* Give each column a fixed width */
  min-width: 120px;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-column a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .logo {
    height: 60px;
  }

  .logo-text h1 {
    font-size: 24px;
  }

  .logo-text h2 {
    font-size: 14px;
  }

  .nav-links {
    display: flex;
  }

  .burger {
    display: none;
  }

  .content-section {
    padding: 80px 40px;
  }

  .section-content {
    padding: 30px;
  }

  /* Social Buttons side by side */
  .social-buttons {
    flex-direction: row;
    justify-content: center;
  }

  /* Event content side by side */
  .event-content {
    flex-direction: row;
    align-items: center;
  }

  .event-images {
    flex: 1;
    height: 300px;
  }

  .event-info {
    flex: 1;
    text-align: left;
    padding-left: 30px;
  }

  /* Donations multi-item display */
  .donation-item {
    min-width: calc(50% - 20px);
  }

  /* Social feeds side by side */
  .social-feeds {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .social-feed-container {
    width: 48%;
  }
}

@media (min-width: 1024px) {
  .event-images,
  .welcome-images {
    height: 350px;
  }

  /* Donations multi-item display for large screens */
  .donation-item {
    min-width: calc(33.333% - 20px);
  }
}

/* Hide carousel arrows on mobile */
@media (max-width: 767px) {
  .donations-carousel .left-arrow,
  .donations-carousel .right-arrow {
    display: none;
  }
}

/* For very small screens */
@media (max-width: 350px) {
  .logo-text h1 {
    font-size: 16px;
  }

  .logo-text h2 {
    font-size: 10px;
  }

  .logo {
    height: 40px;
  }

  .carousel-title {
    font-size: 1rem;
  }

  .carousel-text {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .footer-column a {
    font-size: 0.9rem;
  }
}

/* When nav links are collapsed, show burger menu */
@media (max-width: 1023px) {
  .nav-links.collapsed {
    display: none;
  }

  .burger.expanded {
    display: block;
  }
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 100px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Content Layout */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Collapsible FAQs */
.faq-container {
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: #f9f9f9;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 15px;
  max-height: 500px;
}

.key-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tab-container {
  margin-bottom: 30px;
}

.tab-buttons {
  display: flex;
  overflow-x: auto;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: #777;
  white-space: nowrap;
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Santa Page */
.route-card {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.route-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-header::after {
  content: "+";
  font-size: 20px;
}

.route-card.active .route-header::after {
  content: "-";
}

.route-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.route-card.active .route-content {
  padding: 15px;
  max-height: 1000px;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-bottom: 30px;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Donations Page */
.donations-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.donations-table {
  width: 100%;
  border-collapse: collapse;
}

.donations-table th,
.donations-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.donations-table th {
  background-color: #f5f5f5;
  cursor: pointer;
  position: relative;
}

.donations-table th:hover {
  background-color: #eee;
}

.donations-table th::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.donations-table th.sort-asc::after {
  content: "↑";
}

.donations-table th.sort-desc::after {
  content: "↓";
}

.donations-table tr:hover {
  background-color: #f9f9f9;
}

.view-more {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: underline;
}

.donation-details {
  display: none;
  background-color: #f9f9f9;
  padding: 15px;
  margin-top: 5px;
  border-radius: 5px;
}

/* Social Calendar */
.event-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-date {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  text-align: center;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

.event-date .month {
  text-transform: uppercase;
  font-size: 0.9rem;
}

.event-details {
  padding: 15px;
}

.event-details h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.event-details p {
  margin-bottom: 10px;
  color: #666;
}

.event-footer {
  border-top: 1px solid #eee;
  padding: 10px 15px;
  text-align: right;
}

/* Join Page */
.join-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-card {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-card h3 {
  margin-bottom: 10px;
}

.testimonials {
  margin-bottom: 30px;
}

.testimonial {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 10px;
}

.testimonial-content {
  padding-left: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  text-align: right;
  font-weight: bold;
  margin-top: 10px;
}

/* Hero Button */
.hero-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (min-width: 768px) {
  .page-banner h1 {
    font-size: 3rem;
  }

  .key-info-container {
    flex-wrap: nowrap;
  }

  .join-benefits {
    flex-wrap: nowrap;
  }
}

/* Brand Font Declarations */
@font-face {
  font-family: "Eurostile Extended";
  src: url("../fonts/EurostileExtendedBlack.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Update Brand Colors - Keep everything else the same */
:root {
  --primary-color: #fbaf33; /* Official Golden Yellow */
  --text-color: #1d1d1a; /* Official Table Grey */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --overlay-bg: rgba(29, 29, 26, 0.95); /* Table Grey overlay */
  --footer-bg: #1d1d1a; /* Table Grey footer */
  --footer-text: #ffffff;
}

/* Apply Brand Fonts */
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

h1,
h2,
h3 {
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}

/* Brand Compliant Header */
header {
  background-color: #1d1d1a; /* Table Grey background */
  border-bottom: 3px solid #fbaf33; /* Golden Yellow border */
}

.logo-text h1 {
  color: #ffffff; /* White text */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-text h2 {
  color: #fbaf33; /* Golden Yellow accent */
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

/* Navigation Links */
.nav-links a {
  color: #ffffff; /* White text */
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: #fbaf33; /* Golden Yellow on hover */
}

/* Burger menu */
.burger div {
  background-color: #ffffff; /* White burger lines */
}

/* Mobile Menu Overlay - Brand Colors */
.menu-overlay {
  background-color: rgba(29, 29, 26, 0.95); /* Table Grey overlay */
}

.menu-overlay-links a {
  color: #ffffff; /* White text */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-overlay-links a:hover {
  color: #fbaf33; /* Golden Yellow on hover */
}

/* Charity Events Box in Mobile Menu */
.charity-events-title {
  color: #1d1d1d; /* Golden Yellow */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.charity-events-box a:hover {
  background-color: #fbaf33; /* Golden Yellow background */
  color: #ffffff; /* White text */
}

/* Remove Purple/Gradient Colors - Replace with Brand Colors */
.parallax-layer {
  /* Remove any purple backgrounds and replace with neutral */
  background: linear-gradient(
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 25%,
    rgba(29, 29, 26, 0.1) 65%,
    rgba(29, 29, 26, 0.2) 100%
  );
}

/* Social buttons with brand colors */
.social-btn.facebook {
  background-color: #1d1d1a; /* Table Grey background */
  color: #ffffff;
}

.social-btn.instagram {
  background-color: #1d1d1a; /* Table Grey background */
  color: #ffffff;
}

.social-btn:hover {
  background-color: #fbaf33; /* Golden Yellow background */
  color: #1d1d1a; /* Table Grey text */
}

/* Footer with brand colors */
footer {
  background-color: #1d1d1a; /* Table Grey */
  border-top: 3px solid #fbaf33; /* Golden Yellow border */
}

.footer-column h4 {
  color: #fbaf33; /* Golden Yellow headings */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-column a:hover {
  color: #fbaf33; /* Golden Yellow on hover */
}

/* Content section headers */
.content-section h2 {
  color: #fbaf33; /* Golden Yellow */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.charity-event h3 {
  color: #fbaf33; /* Golden Yellow */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Page banner with brand colors */
.page-banner {
  background-color: #1d1d1a; /* Table Grey */
  border-bottom: 3px solid #fbaf33; /* Golden Yellow border */
}

.page-banner h1 {
  color: #ffffff; /* White text */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dropdown menu brand colors */
.dropdown-content {
  background-color: #ffffff;
  border: 2px solid #fbaf33; /* Golden Yellow border */
}

.dropdown-content a:hover {
  background-color: #fbaf33; /* Golden Yellow background */
  color: #ffffff; /* White text */
}

/* Accent color class */
.highlight {
  color: #fbaf33; /* Golden Yellow */
  font-weight: bold;
}

/* Info cards and other elements */
.info-card h3 {
  color: #fbaf33; /* Golden Yellow */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* FAQ styling */
.faq-question {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}

/* Tab buttons */
.tab-button.active {
  color: #fbaf33; /* Golden Yellow */
  border-bottom: 3px solid #fbaf33; /* Golden Yellow underline */
}

/* Route headers */
.route-header {
  background-color: #fbaf33; /* Golden Yellow */
  color: #1d1d1a; /* Table Grey text */
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonials and benefit cards */
.benefit-card i {
  color: #fbaf33; /* Golden Yellow icons */
}

.testimonial::before {
  color: #fbaf33; /* Golden Yellow quote mark */
}

/* Hero button */
.hero-button {
  background-color: #000000; /* Black background */
  color: #fbaf33; /* Golden Yellow text */
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #fbaf33; /* Golden Yellow border */
}

.hero-button:hover {
  background-color: #1d1d1a; /* Table Grey on hover */
  color: #fbaf33; /* Keep Golden Yellow text */
  border-color: #fbaf33;
}

/* Donations table headers */
.donations-table th.sort-asc::after,
.donations-table th.sort-desc::after {
  color: #fbaf33; /* Golden Yellow sort indicators */
}

.view-more {
  color: #fbaf33; /* Golden Yellow links */
}

/* Event cards */
.event-date {
  background-color: #fbaf33; /* Golden Yellow */
  color: #1d1d1a; /* Table Grey text */
}

.event-details h3 {
  color: #fbaf33; /* Golden Yellow */
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dropdown-content a {
  color: #fbaf33; /* Table Grey text on white background */
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background-color: #fbaf33; /* Golden Yellow background */
  color: #ffffff; /* White text on hover */
}

/* Mobile menu charity events - make text Golden Yellow */
.charity-events-box a {
  color: #fbaf33; /* Golden Yellow text */
  transition: background-color 0.3s, color 0.3s;
}

.charity-events-box a:hover {
  background-color: #fbaf33; /* Golden Yellow background */
  color: #ffffff; /* Table Grey text on hover */
}

/* Fixed 16:9 aspect ratio for all image containers */
.welcome-images-enhanced,
.event-images,
.brand-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Force 1280x720 (16:9) aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(29, 29, 26, 0.15);
}

/* Make welcome images full width */
.welcome-content-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column - full width images */
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

/* Ensure images fill container properly */
.welcome-image img,
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio, crop if needed */
  object-position: center; /* Center the image */
  transition: transform 0.5s ease;
}

/* Image overlay styling */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(29, 29, 26, 0.8));
  color: var(--brand-white);
  padding: 30px 20px 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Keep responsive behavior for larger screens if desired */
@media (min-width: 1024px) {
  .welcome-content-grid {
    grid-template-columns: 1fr; /* Keep full width even on desktop */
    gap: 60px;
  }

  /* If you want side-by-side on very large screens, uncomment below */
  /*
  .welcome-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  */
}

/* Updated CSS for 16:9 Image Slideshows - Add to end of styles.css */

/* New image slideshow container with fixed 16:9 aspect ratio */
.image-slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Force 1280x720 (16:9) aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(29, 29, 26, 0.15);
  margin-bottom: 30px;
}

/* Individual slideshow images */
.slideshow-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

.slideshow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio, crop if needed */
  object-position: center; /* Center the image */
  transition: transform 0.5s ease;
}

.slideshow-image:hover img {
  transform: scale(1.02);
}

/* Image overlay styling */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(29, 29, 26, 0.8));
  color: var(--brand-white, #ffffff);
  padding: 30px 20px 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Remove old welcome-content-grid side-by-side layout */
.welcome-content-grid {
  display: block; /* Change from grid to block for full width */
  margin-bottom: 60px;
}

/* Ensure event content is never side-by-side */
.event-content {
  display: block !important; /* Override any existing flex/grid */
  flex-direction: column !important; /* Force column layout */
}

/* Override any existing welcome-images-enhanced styles that might conflict */
.welcome-images-enhanced {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(29, 29, 26, 0.15);
  margin-bottom: 30px;
}

/* Override old event-images styles */
.event-images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(29, 29, 26, 0.15);
  margin-bottom: 30px;
}

/* Fix for old welcome-image and event-image classes */
.welcome-image,
.event-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.welcome-image.active,
.event-image.active {
  opacity: 1;
}

.welcome-image img,
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Remove any forced heights that might interfere */
#social-images,
#join-images,
#fireworks-images,
#santa-images,
#scp-images {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .image-slideshow-container,
  .welcome-images-enhanced,
  .event-images {
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .image-overlay {
    padding: 20px 15px 15px;
    font-size: 1rem;
  }
}

/* Ensure charity event cards maintain full width layout */
.charity-event-card .event-content {
  display: block;
}

.charity-event-card .event-info {
  padding: 20px 0;
}

/* Apply Brand Fonts with Responsive Sizing */
h1,
h2,
h3 {
  font-family: "Orbitron", Arial Black, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  /* Responsive font sizing to prevent overflow */
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.5rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
