/* Global Styles */
/* Color variables inspired by the Palestinian flag: deep green and crimson red as accents. */
:root {
  --primary-color: #006400; /* deep green */
  --secondary-color: #B22222; /* crimson red */
  --background-color: #fdfdfd;
  --text-color: #212121;
  --light-gray: #f7f7f7;
  --dark-gray: #333333;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

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

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

/* Header and Navigation */
header {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav li {
  margin: 0;
}

nav a {
  font-weight: 500;
  padding: 8px 12px;
  color: var(--text-color);
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  position: relative;
  background-image: url('../images/hero_large.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 200px 0;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  /* Increase the hero headline size further for stronger impact on the home page */
  font-size: 4.8rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.hero p {
  /* Make the sub‑headline even larger to improve readability */
  font-size: 2rem;
  margin-bottom: 40px;
}

.hero .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  /* Larger padding and font size for the primary call‑to‑action */
  padding: 22px 48px;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: var(--secondary-color);
}

/* Goal Section */
.goal-section {
  background-color: var(--light-gray);
  padding: 60px 0;
  text-align: center;
}

.goal-section h2 {
  /* Increase the section heading size for the campaign goal */
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.goal-section p {
  /* Larger font for goal description to emphasise transparency */
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.transparency-note {
  color: var(--secondary-color);
  font-style: italic;
}

/* Mission Section */
.mission {
  padding: 60px 0;
}

.mission h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

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

.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 0 30px;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.card p {
  font-size: 1rem;
  margin: 0;
}

/* When a card contains an image, ensure the image fills the card width and has rounded top corners. */
.card img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 20px;
}

/* About Snippet */
.about-snippet {
  background-color: var(--light-gray);
  padding: 60px 0;
  text-align: left;
}

.about-snippet h2 {
  /* Increase heading size for the home page about section */
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-snippet p {
  font-size: 1.3rem;
  margin-bottom: 0;
}

/* Newsletter */
.newsletter {
  background-color: var(--dark-gray);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.newsletter p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.newsletter input[type="email"] {
  padding: 12px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  width: 280px;
}

.newsletter button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: #fff;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

footer h3,
footer h4 {
  margin: 0 0 10px;
  color: var(--primary-color);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 8px;
}

footer li a {
  color: #fff;
  transition: color 0.3s;
}

footer li a:hover {
  color: var(--secondary-color);
}

footer .copy {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

footer .copy a {
  color: var(--primary-color);
  margin: 0 5px;
  font-weight: 500;
}

/* Page Specific Styles */
.page-content {
  padding: 80px 0;
}

.page-content h1 {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: left;
}

.page-content p,
.page-content li {
  font-size: 1.1rem;
  line-height: 1.7;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
}

.update-entry {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.update-entry h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* About page specific styles */
.about-image {
  display: block;
  /* Reduce the maximum width on the about page image so it doesn’t dominate the layout */
  max-width: 420px;
  width: 100%;
  border-radius: 8px;
  margin: 0 auto 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Involvement Section Styles */

/* The involvement section uses a vertical stack of items with images and text. Each item
   is laid out in a flexible row on large screens and a column on small screens. */
.involve {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Each item contains an image and a text block. */
.involve-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

/* Image wrapper ensures consistent sizing and rounded corners. */
.involve-image {
  flex: 1 1 35%;
  max-width: 35%;
}

.involve-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Text wrapper takes remaining space and centers content vertically. */
.involve-text {
  flex: 1 1 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.involve-text h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.involve-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* Responsive adjustments for involvement items */
@media (max-width: 768px) {
  .involve-item {
    flex-direction: column;
  }
  .involve-image,
  .involve-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .involve-text h3 {
    font-size: 1.5rem;
  }
  .involve-text p {
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0;
  }
  .hero h1 {
    /* Larger headings on mobile to maintain prominence */
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.4rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cards {
    flex-direction: column;
    align-items: stretch;
  }
  .card {
    flex: 1 1 100%;
  }
  .newsletter form {
    flex-direction: column;
  }
  .newsletter input[type="email"] {
    width: 100%;
  }
}