/* Global styles for the NGO website
   Design: modern, bright, clean and friendly reminiscent of Apple's minimalist aesthetic.
   Colors: soft blues and grays with plenty of white space.
*/

:root {
  --primary-color: #3b82f6; /* Tailwind blue-500 */
  --primary-hover: #2563eb; /* Tailwind blue-600 */
  --text-color: #1f2937; /* Tailwind gray-800 */
  --bg-color: #ffffff;
  --light-bg: #f9fafb; /* Tailwind gray-50 */
  --border-color: #e5e7eb; /* Tailwind gray-200 */
  --heading-font: 'Arial', 'Helvetica', sans-serif;
  --body-font: 'Arial', 'Helvetica', sans-serif;
}

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

header {
  width: 100%;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.language-switch {
  margin-left: 1rem;
  font-weight: 500;
}

.language-switch a {
  text-decoration: none;
  margin-left: 0.5rem;
  color: var(--text-color);
}

.language-switch a.active {
  font-weight: 600;
  color: var(--primary-color);
}

/* Hero section */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--heading-font);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

footer {
  background-color: var(--light-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

footer h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

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

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

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

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: var(--body-font);
  font-size: 1rem;
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: var(--primary-hover);
}

/* Blog styles */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-post {
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-post-content {
  padding: 1rem;
}

.blog-post-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.blog-post-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.blog-post-content a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}