/* Sofia Pro Light Font */
@font-face {
    font-family: 'Sofia Pro Light';
    src: url('/fonts/Sofia Pro Light Az.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Base Variables */
:root {
  --primary-color: #2a9d8f;
  --primary-button-color:#DBBA33;
  --secondary-color: #e9c46a;
  --accent-color: #3e712a;
  --text-color: #264653;
  --background-color: #f1faee;
  --light-gray: #e0e0e0;
  --dark-gray: #333333;
  --white: #ffffff;
  --black: #000000;
  --success-color: #4caf50;
  --error-color: #f44336;
  --border-radius: 4px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Font Variables */
  --main-font: 'Sofia Pro Light', 'Patrick Hand SC', cursive;
  --gochi-hand-font: 'Playpen Sans Hebrew', cursive;
  --special-elite-font: 'Special Elite', cursive;
}

/* Top Banner */
.top-banner {
  background-color: var(--accent-color); /* A distinct color */
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 1.1rem;
  position: fixed; /* Changed to fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101; /* Higher than header */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: padding 0.3s ease, font-size 0.3s ease; /* Add transition for smooth size change */
}

/* Scrolled state for banner */
.top-banner.scrolled {
  padding: 5px 0;
}

/* Reduce banner text size on mobile */
@media (max-width: 768px) {
  .top-banner {
    font-size: 0.85rem;
    padding: 8px 0;
    display: none; /* Hide the banner on mobile devices */
  }
  
  .top-banner.scrolled {
    padding: 4px 0;
    font-size: 0.75rem;
  }
  
  .top-banner p {
    margin: 0;
    padding-right: 30px; /* Make space for the close button */
  }
}

/* Even smaller text on very small devices */
@media (max-width: 480px) {
  .top-banner {
    font-size: 0.75rem;
    padding: 6px 0;
  }
  
  .top-banner.scrolled {
    padding: 3px 0;
    font-size: 0.7rem;
  }
}

.banner-close-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 10px;
  line-height: 1;
}

.banner-close-btn:hover {
  color: var(--light-gray);
  background: transparent;
}

.top-banner a {
  color: var(--white);
  font-weight: bold;
  text-decoration: underline;
  margin-left:10px;
}

.top-banner a:hover {
  color: var(--primary-color);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 40px; /* Space for fixed banner only */
  font-family: var(--main-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Ensure main font is used everywhere except headings and special elements */
body, p, div, span, a, li, td, th, input, textarea, button {
  font-family: var(--main-font) !important;
}

/* Keep headings and counter with Special Elite font */
h1, h2, h3, h4, h5, h6, .big-number {
  font-family: var(--special-elite-font) !important;
}

/* Adjust body padding for mobile */
@media (max-width: 768px) {
  body {
    padding-top: 0; /* No banner on mobile, so no extra padding needed */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--special-elite-font);
}

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

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

button, .btn-primary {
  cursor: pointer;
  background-color: var(--primary-button-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  line-height: 1.2; /* Override inherited line-height for better vertical centering */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--white); /* Keep text white on hover */
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

main {
  min-height: 80vh;
}

section {
  padding: 20px 0;
}

/* Header and Navigation */
header {
  background-color: transparent; /* Transparent background */
  box-shadow: none;
  position: fixed; /* Changed to fixed for scrolling */
  top: 40px; /* Position below the banner */
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease; /* Add transition for top property */
}

/* Position header at top on mobile since banner is hidden */
@media (max-width: 768px) {
  header {
    top: 0;
  }
}

header.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust header position when banner is scrolled */
.top-banner.scrolled ~ header {
  top: 30px; /* Reduced top position to match smaller banner */
}

/* Adjust mobile menu toggle and nav container when banner is scrolled */
.top-banner.scrolled ~ header .mobile-menu-toggle {
  top: 15px; /* Keep at a fixed distance from the top */
  transform: none; /* Remove the transform */
}

.top-banner.scrolled ~ .nav-container {
  top: 30px; /* Match header position */
}

/* On mobile, keep nav container at top since banner is hidden */
@media (max-width: 768px) {
  .top-banner.scrolled ~ header {
    top: 0;
  }
  
  .top-banner.scrolled ~ .nav-container {
    top: 0;
  }
}

header.scrolled nav ul li a,
header.scrolled .language-switcher a {
  color: var(--accent-color);
  text-shadow: none;
}

/* Default language switcher color (non-homepage) */
.language-switcher a {
  color: var(--accent-color);
}

/* Keep language switcher white only on homepage when header is not scrolled */
header.homepage:not(.scrolled) .language-switcher a {
  color: var(--white);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: relative;
  height: 100%; /* Ensure nav takes full height of header */
}

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

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 102;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Make menu button more visible on transparent backgrounds */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    height: auto;
  }
  
  .mobile-menu-toggle span {
    margin: 3px 0;
  }
}

.logo img {
  height: 70px;
  /* Removed shadow from logo */
  transition: filter 0.3s ease, height 0.3s ease; /* Add smooth transition for height */
}

/* Reduce logo size when scrolled */
header.scrolled .logo img {
  height: 50px;
}

/* Further reduce logo size on mobile when scrolled */
@media (max-width: 768px) {
  header.scrolled .logo img {
    height: 45px;
  }
}

/* Only make the logo white on the homepage when header is not scrolled */
header.homepage:not(.scrolled) .logo img {
  filter: brightness(0) invert(1); /* Make logo white */
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--accent-color);
  font-weight: bold;
  /* text-shadow: 1px 1px 2px rgba(0,0,0,0.5); */
}

/* Keep navigation white only on homepage when header is not scrolled */
header.homepage:not(.scrolled) nav ul li a {
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Add text shadow for readability on homepage */
}

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

.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 30px; /* Add more space between menu and language switcher */
  gap: 4px;
}

.language-switcher a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 0.9rem;
  opacity: 0.7;
}

.language-switcher a.active {
  opacity: 1;
  text-decoration: underline;
}

.language-switcher a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.language-separator {
  opacity: 0.5;
  font-weight: normal;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh; /* Changed to min-height for responsiveness */
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  margin-top: -40px; /* Offset the body padding-top */
  padding-top: 80px; /* Add space for header */
  width: 100%; /* Ensure full width */
}

/* Add darkening overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
  z-index: 0; /* Above the image but below the content */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {

  text-align: center;
  color: var(--white);
  padding: 50px 20px; /* Reverted padding */
  padding-bottom:10px;
  max-width: 800px;
  z-index: 1;
  margin: auto; /* Allow flexbox to center it */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

.hero-content h1 {
  font-size: 4.2rem;
  margin-top: 60px;
  margin-bottom: 15px;
  font-family: var(--special-elite-font);
}

.hero-content p {
  font-size: 1.4rem;
  font-family: var(--main-font);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top:30px;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color); /* Change border color on hover */
}

.btn-contact {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn-contact:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}


/* Counter Display */
.counter-progress {
  background-color: transparent; /* Removed white background */
  padding: 30px; /* Increased padding for a larger look */
  border-radius: var(--border-radius);
  margin-top: 20px;
  color: var(--white); /* Changed text color to white */
  text-align: center; /* Center the content */
}

.trees-counter-display {
  margin-bottom: 10px;
}

.big-number {
  font-size: 6.5rem; /* Increased font size for the counter */
  font-weight: bold;
  color: var(--white); /* Changed text color to white */
  display: block; /* Ensure it takes full width */
  line-height: 1; /* Adjust line height */
  word-break: break-all; /* Prevent overflow on small screens */
  font-family: var(--special-elite-font) !important;
}

.goal-text {
  font-size: 1.3rem;
  color: var(--white); /* Changed text color to white */
  margin-top: 5px;
  font-family: var(--main-font);
}

/* Donation Section */
.donation-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.donation-section-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.donation-subheader {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: bold;
    font-family: var(--main-font);
}

.special-donation-message {
    background-color: var(--primary-button-color);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.special-donation-message p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Apply the same margin to business donation section header */
.business-donation-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.donation-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}


.tree-icon-small {
    font-size: 4rem;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tree-icon-small img {
    height: 4rem;
    width: auto;
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

#donation-form input[type="text"], #donation-form input[type="number"], #donation-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkbox-group {
    margin-top: 15px;
    text-align: center; /* Center the checkbox group */
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    justify-content: center; /* Center each checkbox item */
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    cursor: pointer;
}

.checkbox-item label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

#donation-form input:focus, #donation-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
    outline: none;
}

.amount-group {
    margin-bottom: 25px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.preset-amount {
    flex: 0 0 calc(50% - 5px); /* Exactly 50% width minus half the gap */
    min-width: 0;
    max-width: none;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.preset-amount:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preset-amount.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.custom-amount-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    position: relative;
    margin: 20px auto; /* Center the custom amount container with consistent spacing */
}

/* Currency symbol for the small donation form */
.custom-amount-container .currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
    font-weight: bold;
}

/* Trees label for the donation form */
.custom-amount-container .trees-label {
    margin-left: 8px;
    color: var(--dark-gray);
    font-weight: bold;
    font-size: 1rem;
}

#donation-form input[type="number"] {
    padding: 12px;
}

#donation-form input[type="number"]#trees {
    padding: 8px 12px;
    text-align: center;
    width: 96px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.btn-donate-small {
    background: linear-gradient(to right, var(--primary-button-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

/* Center the donate button in the donation form */
#donation-form .btn-primary {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

.btn-donate-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, var(--accent-color), var(--primary-button-color));
}

#donation-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
}

#donation-message.success {
    background-color: var(--success-color);
    color: var(--white);
}

#donation-message.error {
    background-color: var(--error-color);
    color: var(--white);
}

.payment-methods-small {
    margin-top: 25px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.payment-icons-small {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons-small i {
    font-size: 1.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons-small i:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .preset-buttons {
        flex-wrap: wrap;
    }
    
    .preset-amount {
        flex: 0 0 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .preset-amount {
        flex: 0 0 100%; /* Full width on very small screens */
        margin-bottom: 5px;
    }
}

/* Donation Sections Container */
.donation-sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: stretch;
}

.individual-donation-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.business-donation-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* Make donation section and business donation section the same height */
.donation-section, .business-donation-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Business Donation Section */
.business-donation-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center; /* Center all content in business donation section */
}

.business-donation-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.business-donation-content {
    margin-bottom: 25px;
    text-align: center; /* Center the business donation content */
}

.business-donation-image {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.business-image {
    width: 320px;
    height: 280px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.business-image:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for business image */
@media (max-width: 768px) {
    .business-image {
        width: 280px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .business-image {
        width: 220px;
        height: 200px;
    }
}

@media (max-width: 320px) {
    .business-image {
        width: 200px;
        height: 180px;
    }
}

.business-read-more-btn {
    width: auto !important;
    min-width: 200px !important;
    max-width: 350px !important;
    padding: 12px 30px !important;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: 1rem !important;
}

.business-benefits {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    text-align: center; /* Center the business benefits section */
}

/* Flex spacer to push content to the top and maintain equal height */
.flex-spacer {
    flex-grow: 1;
    min-height: 20px; /* Minimum height to ensure some space */
}

/* Responsive Design for Donation Sections */
@media (max-width: 768px) {
    .donation-sections-container {
        flex-direction: column;
    }
    
    .individual-donation-wrapper,
    .business-donation-wrapper {
        width: 100%;
    }
    
    .donation-section, .business-donation-section {
        height: auto;
    }
}

/* Donor List */
.donor-list-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 40px auto;
}

.donor-list-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
    position: relative;
}

.donor-list-section h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.donor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.donor-card {
    display: flex;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: center;
    background-color: var(--white);
    border-left: 4px solid var(--accent-color);
    position: relative; /* Enable absolute positioning for badges */
}

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

.donor-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    padding: 8px;
}

.green-icon {
    width: 100%;
    height: 100%;
    filter: invert(48%) sepia(79%) saturate(456%) hue-rotate(86deg) brightness(95%) contrast(95%);
}

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

.donor-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.donor-amount {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.donor-message {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.no-donors-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    text-align: center;
    grid-column: 1 / -1;
}

#no-donors {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-left: 15px;
}

/* Donor Status Badges */
.donor-status-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 2;
    transition: all 0.2s ease;
}

.donor-status-badge.completed {
    background-color: var(--primary-color);
    color: white;
}

.donor-status-badge.completed::before {
    content: "✓";
    font-size: 10px;
    font-weight: bold;
}

.donor-status-badge.committed {
    background-color: var(--primary-button-color);
    color: white;
}

.donor-status-badge.committed::before {
    content: "";
    width: 12px;
    height: 12px;
    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='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.donor-status-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Screen reader support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for badges */
@media (max-width: 768px) {
    .donor-status-badge {
        width: 18px;
        height: 18px;
        top: 5px;
        right: 5px;
    }
    
    .donor-status-badge.completed::before,
    .donor-status-badge.committed::before {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .donor-status-badge {
        width: 16px;
        height: 16px;
        top: 4px;
        right: 4px;
    }
    
    .donor-status-badge.completed::before,
    .donor-status-badge.committed::before {
        font-size: 8px;
    }
}

/* Image Grid */
.image-grid-section {
  padding: 40px 5%;
}

.image-grid-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 15px;
}

.image-grid .grid-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.image-grid .grid-item:hover {
  transform: scale(1.02);
  box-shadow: var(--box-shadow);
}

.image-grid .grid-item.wide {
  grid-column: span 2;
}

.image-grid .grid-item.tall {
  grid-row: span 2;
}

.image-grid .grid-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Impact Snippet Section */
.impact-snippet, .about-snippet, .companies-section {
  padding: 60px 5%;
  text-align: center;
}

.impact-snippet {
  background-color: var(--primary-color);
  color: var(--white);
}

.hero-impact-text {
  margin-top: 10px;
  color: var(--white); /* Make text white */
}

.hero-impact-text p {
  max-width: 600px; /* Adjust max-width for better readability within hero */
  margin: 0 auto 20px; /* Adjust margin */
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-snippet {
  background-color: var(--white);
}

.companies-section {
  background-color: var(--accent-color);
  color: var(--white);
}

.impact-snippet h2, .about-snippet h2, .companies-section h2 {
  margin-bottom: 20px;
  font-size: 2.2rem;
  font-family: var(--special-elite-font);
}

.impact-snippet p, .about-snippet p, .companies-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
  line-height: 1.8;
  font-family: var(--main-font);
}

/* Climate Goals Section */
.climate-goals-section {
  padding: 40px 5%;
  text-align: center;
  background-color: var(--white);
}

.climate-goals-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-family: var(--special-elite-font);
  font-size: 2rem;
}

.climate-goals-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.climate-goal {
  width: 15%;
  max-width: 15%;
  padding: 5px;
  margin: 7px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.climate-goal:hover {
  transform: translateY(-5px);
}

.climate-goal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .climate-goal {
    width: 15%;
    max-width: 15%;
  }
}

@media (max-width: 480px) {
  .climate-goal {
    width: 25%;
    max-width: 25%;
    margin: 5px;
  }
}

/* Climate Goals on Donate Page */
.climate-goals-donate {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.climate-goals-donate h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: var(--special-elite-font);
}

.climate-goals-donate-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.climate-goal-donate {
  width: 80px;
  height: 80px;
  margin: 5px;
  transition: transform 0.3s ease;
}

.climate-goal-donate:hover {
  transform: translateY(-3px);
}

.climate-goal-donate-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 80px;
}

@media (max-width: 768px) {
  .climate-goal-donate {
    width: 60px;
    height: 60px;
  }
  
  .climate-goal-donate-image {
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .climate-goal-donate {
    width: 50px;
    height: 50px;
    margin: 3px;
  }
  
  .climate-goal-donate-image {
    max-width: 50px;
  }
  
  .climate-goals-donate-container {
    gap: 5px;
  }
}

/* Articles Section */
.articles-preview-section {
  padding: 40px 5%;
}

.articles-preview-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-family: var(--special-elite-font);
  font-size: 2.2rem;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  border-radius: var(--border-radius);
}

.article-card a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.article-card img {
  width: calc(100% + 30px); /* Add extra width to cover any margins */
  height: 200px;
  object-fit: cover;
  object-position: top; /* Default to top positioning for all images */
  display: block;
  margin: 0 -15px 0 -15px; /* Negative margin to counteract any existing margins */
  padding: 0;
  border: none;
  box-sizing: border-box;
}

/* Fix for the specific image in the "Our Journey Begins" article */
img[src*="IMG_3169_hq.webp"] {
  object-position: center 30%; /* Adjust vertical position to show the important part */
}

.article-card h3 {
  padding: 15px 15px 5px;
  color: var(--text-color);
  font-family: var(--special-elite-font);
  font-size: 1.5rem;
}

.article-card h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  padding: 0;
  margin: 0;
  display: inline;
}

.article-card h3 a:hover {
  color: var(--primary-color);
}

.article-card p {
  padding: 0 15px 15px;
  color: var(--dark-gray);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
}

.article-card a {
  display: inline-block;
  margin: 0 15px 15px;
  font-weight: bold;
}

/* Updates Page */
.updates-list-section {
  padding: 40px 5%;
}

.updates-list-section h1 {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.articles-list.full-list .article-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 900px;
  margin: 0 auto 30px;
}

.articles-list.full-list .article-card img {
  height: 100%;
}

.article-date {
  color: var(--dark-gray);
  font-style: italic;
  padding: 0 15px;
  margin-bottom: 10px;
}

/* Article Detail Page */
.article-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 120px 20px 0 20px; /* Add top padding to account for fixed header and banner */
}

.article-detail .article-content {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
}

.article-header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.article-featured-image {
  margin-bottom: 30px;
}

.article-featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  color: var(--text-color);
}

.article-gallery {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

.article-gallery h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--special-elite-font);
  font-size: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: transparent;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  border-radius: var(--border-radius);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .gallery-item img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 120px;
  }
}

.article-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Impact Page */
.impact-page-content {
    padding-top: 120px; /* Add padding to account for fixed header and banner */
}

/* Impact Hero Section */
.impact-hero {
    text-align: center;
    margin-bottom: 60px;
    background-image: url('/images/impact/impact_top_banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 60px 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.impact-hero h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.impact-milestone {
    max-width: 600px;
    margin: 0 auto;
}

.milestone-number {
    font-size: 5rem;
    font-weight: bold;
    font-family: var(--special-elite-font);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.milestone-text {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: var(--special-elite-font);
}

.milestone-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Updates Section */
.updates-section {
    margin-bottom: 60px;
}

.updates-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: var(--special-elite-font);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.update-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.update-image {
    height: 250px;
    overflow: hidden;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-card:hover .update-image img {
    transform: scale(1.05);
}

.update-content {
    padding: 25px;
}

.update-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 10px;
}

.update-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--special-elite-font);
}

.update-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0;
    margin: 0;
    display: inline;
}

.update-content h3 a:hover {
    color: var(--primary-color);
}

.update-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-button-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Future Plans Section */
.future-plans-section {
    margin-bottom: 60px;
    background-color: var(--background-color);
    padding: 50px 30px;
    border-radius: var(--border-radius);
}

.future-plans-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: var(--special-elite-font);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.plan-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.plan-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--special-elite-font);
}

.plan-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Impact Areas */
.impact-areas {
    margin-bottom: 60px;
}

.impact-item {
    margin-bottom: 40px;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.impact-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--special-elite-font);
}

.impact-text p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Impact Images Section */
.impact-images-section {
    margin-bottom: 60px;
    text-align: center;
}

.impact-images-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--special-elite-font);
}

.impact-images-section > p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.impact-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.impact-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.impact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.impact-image:hover img {
    transform: scale(1.05);
}

/* Create mosaic layout with different sizes */
.impact-image:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.impact-image:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.impact-image:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.impact-image:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
}

.impact-image:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.impact-image:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
}

.impact-image:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
}

.impact-image:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
}

.image-placeholder {
    background-color: var(--light-gray);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-placeholder:hover {
    background-color: rgba(42, 157, 143, 0.1);
    border-color: var(--accent-color);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.image-placeholder p {
    color: var(--dark-gray);
    font-weight: bold;
    margin: 0;
}

.image-placeholder small {
    color: var(--primary-color);
    font-style: italic;
}

/* No Updates Message */
.no-updates {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.no-updates p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    font-style: italic;
}

/* Responsive Design for Impact Page */
@media (max-width: 768px) {
    .impact-hero h1 {
        font-size: 2.2rem;
    }
    
    .milestone-number {
        font-size: 3.5rem;
    }
    
    .milestone-text {
        font-size: 1.4rem;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-item {
        text-align: center;
    }
    
    .impact-images-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    /* Simplify mosaic on tablet */
    .impact-image:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .impact-image:nth-child(2),
    .impact-image:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .impact-image:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .impact-image:nth-child(5),
    .impact-image:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .impact-image:nth-child(7) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .impact-image:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .impact-hero {
        padding: 40px 20px;
    }
    
    .milestone-number {
        font-size: 2.8rem;
    }
    
    .future-plans-section,
    .impact-item {
        padding: 20px;
    }
    
    .updates-section h2,
    .future-plans-section h2,
    .impact-images-section h2 {
        font-size: 2rem;
    }
    
    /* Mobile mosaic layout */
    .impact-images-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 10px;
    }
    
    /* Reset all mosaic rules for mobile - single column */
    .impact-image:nth-child(1),
    .impact-image:nth-child(2),
    .impact-image:nth-child(3),
    .impact-image:nth-child(4),
    .impact-image:nth-child(5),
    .impact-image:nth-child(6),
    .impact-image:nth-child(7),
    .impact-image:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Donate Page */
.donate-page-content {
    padding-top: 120px; /* Add padding to account for fixed header and banner */
}

/* Contact Page Styles */
.contact-page-content {
    padding-top: 120px; /* Match the donate and payment page padding */
    background-color: var(--background-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.contact-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.contact-header .sub-headline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-header .tree-icon {
    font-size: 3rem;
    margin: 20px auto;
    animation: gentle-bounce 2s infinite ease-in-out;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.contact-card-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.contact-card-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Contact Form Section Styling */
.contact-card .form-section {
    margin-bottom: 30px;
}

.contact-card .form-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.contact-card .form-group {
    margin-bottom: 20px;
}

.contact-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.contact-card .form-group input,
.contact-card .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-card .form-group input:focus,
.contact-card .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

.contact-card .form-actions {
    text-align: center;
    margin-top: 30px;
}

.contact-card .btn-primary {
    cursor: pointer;
    background-color: var(--primary-button-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-card .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.contact-info-section,
.corporate-inquiries-section {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-info-section h3,
.corporate-inquiries-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.info-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-color);
    font-size: 1rem;
}

.donate-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.donate-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.sub-headline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.tree-icon {
margin-top:20px;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.donation-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.donation-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.donation-card-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.preset-amount {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 calc(50% - 7.5px); /* Half width minus half the gap */
    min-width: 0;
    max-width: none;
    text-align: center;
    box-sizing: border-box;
}

.preset-amount:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preset-amount.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-amount-section {
    margin: 30px 0;
    text-align: center;
}

.custom-amount-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: bold;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Currency symbol for the large donation form */
.input-group .currency-symbol {
    background-color: var(--light-gray);
    padding: 10px 15px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-weight: bold;
    font-size: 1.2rem;
}

.custom-amount-section input {
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 0;
    font-size: 1.2rem;
    width: 100px;
    text-align: center;
}

.trees-count {
    padding: 10px 15px;
    background-color: var(--light-gray);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: bold;
}

.btn-donate {
    background: linear-gradient(to right, var(--primary-button-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, var(--accent-color), var(--primary-button-color));
}

.donation-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.benefit-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-item p {
    color: var(--text-color);
    font-size: 1rem;
}

.alternative-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.corporate-partnerships {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.corporate-partnerships::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.corporate-partnerships h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.payment-methods {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.payment-methods h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    font-size: 3rem;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    padding: 10px;
}

.payment-icon:hover {
    transform: translateY(-5px);
}

.fa-cc-visa {
    color: #1a1f71;
}

.fa-cc-mastercard {
    color: #eb001b;
}

.fa-cc-amex {
    color: #006fcf;
}

.fa-paypal {
    color: #003087;
}

.crypto-link-section {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.crypto-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

.crypto-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.new-donation-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

.new-donation-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Crypto Donate Page */
.crypto-donate-page-content {
    padding-top: 120px; /* Add padding to account for fixed header and banner */
}

.crypto-donate-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.crypto-donate-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.crypto-donation-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.crypto-donation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.crypto-donation-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.crypto-donation-card-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.crypto-donation-content {
    margin-bottom: 30px;
    text-align: center;
}

.crypto-donation-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.crypto-donation-actions {
    text-align: center;
    margin: 30px 0;
}

.crypto-donate-btn {
    background: linear-gradient(to right, var(--primary-button-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.crypto-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, var(--accent-color), var(--primary-button-color));
    color: var(--white);
}

.crypto-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.corporate-partnerships p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.thank-you-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.thank-you-message {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .donation-options {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .preset-amount {
        flex: 0 0 calc(50% - 7.5px);
    }
    
    @media (max-width: 480px) {
        .preset-amount {
            flex: 0 0 100%;
            margin-bottom: 10px;
        }
    }
    
    .donation-benefits {
        flex-direction: column;
    }
    
    .benefit-item {
        margin-bottom: 20px;
    }
}

.about-content h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Impact Page Map Styles */
.impact-map-section {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.impact-map-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.impact-map-section p {
    margin-bottom: 20px;
    text-align: center;
}

#impact-map {
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1; /* Ensure map stays below header */
    position: relative;
}

.map-info {
    font-size: 0.9em;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    #impact-map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    #impact-map {
        height: 300px;
    }
}

.about-text {
  margin-bottom: 40px;
}

.about-text p {
  line-height: 1.8;
}

.about-mission h2, .about-team h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.mission-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin: 15px 0 5px;
  color: var(--text-color);
}

.team-member p {
  color: var(--dark-gray);
  margin-bottom: 15px;
}

/* Error Pages */
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

.error-content {
  text-align: center;
  max-width: 500px;
  padding: 30px;
}

.error-content h1 {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.error-content h2 {
  margin-bottom: 20px;
}

.error-content p {
  margin-bottom: 30px;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

@media (max-width: 480px) {
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon i {
  color: var(--white);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-panama-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.panama-flag {
  width: 60px;

  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.panama-text {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--white);
  opacity: 0.9;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .panama-flag {
    width: 50px;
  }
  
  .panama-text {
    font-size: 0.75rem;
  }
  .mobile-menu-toggle {
    display: flex;
    position: fixed; /* Keep toggle fixed */
    top: 15px; /* Position at a fixed distance from the top */
    right: 20px;
    z-index: 102;
    transform: none; /* Remove the transform */
  }
  
  header.scrolled .mobile-menu-toggle span {
    background-color: var(--accent-color);
  }
  
  .nav-container {
    position: fixed;
    top: 40px; /* Position below banner when banner is visible */
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-gray);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    transition: right 0.3s ease, top 0.3s ease; /* Add transition for top property */
    z-index: 99;
  }
  
  .nav-container.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 0;
  }
  
  nav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 10px;
  }
  
  .language-switcher {
    margin-top: 20px;
    justify-content: center;
  }
  
  .hero {
    min-height: 500px; /* Increased minimum height */
    padding-top: 100px; /* Increased padding to account for fixed header */
  }
  
  .hero-content {
    padding: 30px 15px; /* Reduced padding */
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .big-number {
    font-size: 4.8rem; /* Reduced font size for mobile */
  }
  
  .hero-buttons {
    gap: 15px; /* Reduced gap between buttons */
  }
  
  .articles-list.full-list .article-card {
    grid-template-columns: 1fr;
  }
  
  .articles-list.full-list .article-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  /* Adjust header position for smaller mobile devices */
  header {
    top: 0; /* No banner on mobile, so position at top */
  }
  
  /* Adjust mobile menu toggle position for smaller devices */
  .mobile-menu-toggle {
    top: 15px; /* Keep at a fixed distance from the top */
    transform: none; /* Remove the transform */
  }
  
  /* Adjust nav container position for smaller devices */
  .nav-container {
    top: 40px; /* Match header position */
  }
  
  .hero {
    min-height: 100vh; /* Use viewport height instead of fixed height */
    padding-top: 120px; /* Increased padding for header */
  }
  
  .hero-content {
    padding: 20px 15px; /* Further reduced padding */
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .big-number {
    font-size: 3.8rem; /* Further reduced font size for smaller screens */
  }
  
  .hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 250px; /* Limit width of stacked buttons */
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons a {
    width: 100%; /* Make buttons full width */
    text-align: center;
    box-sizing: border-box;
  }
  
  .counter-progress {
    padding: 15px; /* Reduced padding */
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid .grid-item.wide,
  .image-grid .grid-item.tall,
  .image-grid .grid-item.large {
    grid-column: auto;
    grid-row: auto;
  }
  
  .footer-social {
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .panama-text {
    font-size: 0.75rem;
  }
}

/* Gallery Page Styles */
.gallery-container {
    padding-top: 120px; /* Account for fixed header and banner */
    min-height: 100vh;
    background-color: var(--background-color);
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.gallery-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--special-elite-font);
}

/* Gallery Viewer */
.gallery-viewer {
    margin-bottom: 30px;
    padding: 0 20px;
}

.main-image-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--black);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Image Caption Overlay with Gradient */
.image-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 30px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    color: var(--white);
    z-index: 1;
    text-align: left;
}

.image-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: var(--special-elite-font);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.image-description {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 800px;
    font-family: var(--main-font);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Thumbnails */
.gallery-thumbnails {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.thumbnails-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.thumbnail-wrapper {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.thumbnail-wrapper.active {
    border-color: var(--accent-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover .thumbnail {
    transform: scale(1.05);
}

.thumbnail-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.2rem;
    border: 2px dashed var(--primary-color);
}

/* Empty Gallery State */
.gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.empty-content {
    text-align: center;
    max-width: 500px;
    background-color: var(--white);
    padding: 50px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-family: var(--special-elite-font);
}

.empty-content p {
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-container {
        padding-top: 100px;
    }
    
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .main-image-wrapper {
        height: 50vh;
        min-height: 300px;
    }
    
    .image-caption-overlay {
        padding: 40px 20px 15px;
    }
    
    .image-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .image-description {
        font-size: 1rem;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .thumbnail-wrapper {
        width: 100px;
        height: 70px;
    }
    
    .thumbnails-container {
        gap: 10px;
        padding: 15px 0;
    }
    
    .thumbnail-more {
        width: 100px;
        height: 70px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-viewer {
        padding: 0 10px;
    }
    
    .gallery-thumbnails {
        padding: 0 10px;
    }
    
    .main-image-wrapper {
        height: 40vh;
        min-height: 250px;
    }
    
    .image-caption-overlay {
        padding: 30px 15px 12px;
    }
    
    .image-title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .image-description {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .thumbnail-wrapper {
        width: 80px;
        height: 60px;
    }
    
    .thumbnail-more {
        width: 80px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .thumbnails-container {
        gap: 8px;
        justify-content: center;
    }
    
    .empty-content {
        padding: 30px 20px;
    }
    
    .empty-content h2 {
        font-size: 1.5rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* Loading Animation */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.gallery-nav-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.thumbnail-wrapper:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-nav-btn {
        background-color: var(--white);
        border: 2px solid var(--black);
    }
    
    .thumbnail-wrapper.active {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .main-image,
    .gallery-nav-btn,
    .thumbnail-wrapper,
    .thumbnail {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none; /* Hidden by default, shown via JS */
    animation: slide-up 0.5s ease;
    border-top: 4px solid var(--primary-color);
}

@keyframes slide-up {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-consent-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--special-elite-font);
    margin: 0;
}

.cookie-consent-close {
    background: transparent;
    border: none;
    color: var(--dark-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cookie-consent-message {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-family: var(--main-font);
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
}

.cookie-accept-btn {
    background-color: var(--primary-button-color);
    color: var(--white);
}

.cookie-accept-btn:hover {
    background-color: var(--accent-color);
}

.cookie-reject-btn {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.cookie-reject-btn:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

.cookie-settings-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cookie-settings-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cookie-consent {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
}