/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f9f9f9;
}

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

/* Header */
header {
  background: #2c5f2d;
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

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

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #1abc9c;
}

/* Hero Section */
.hero {
  background: #A4B494;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  background: #a7d397;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  background: #1abc9c;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #16a085;
}

/* Blog Section */
.blog {
  padding: 60px 0;
  background: #fff;
}

.blog h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-post {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.images {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.images img {
  width: 50%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.images img:hover {
  transform: scale(1.05);
}

.content {
  padding: 20px;
}

.content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.content p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #1abc9c;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
footer {
  background: #2c5f2d;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

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

/* Our Heroes Section */
.heroes {
  padding: 60px 0;
  background: #f4f4f4;
}

.heroes h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.team-member {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #1abc9c;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.team-member .role {
  font-size: 1.1rem;
  color: #1abc9c;
  font-weight: 500;
  margin-bottom: 10px;
}

.team-member .description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Our Story1 Section */
.story {
  padding: 80px 0;
  background: #f9f9f9;
}

.story h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: #2c3e50;
  font-weight: 700;
}

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

.story-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.story-block h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 600;
}

.story-block p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Sponsors Section */
.sponsors {
  padding: 60px 0;
  background: #fff;
}

.sponsors h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.sponsor-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sponsor-logo {
  width: 150px;
  height: auto;
  margin-bottom: 15px;
}

.sponsor-card h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.sponsor-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Styling for open sponsor slots */
.open-slot {
  background: #eef7f0;
  border: 2px dashed #1abc9c;
  color: #1abc9c;
  font-weight: bold;
}

.open-slot h3 {
  color: #1abc9c;
}

.sponsor-cta {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #1abc9c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.sponsor-cta:hover {
  background: #16a085;
}


.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0; 
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Section */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.blog-post {
  flex: 0 0 33.33%; /* Visa tre inlägg i taget */
  box-sizing: border-box;
  padding: 0 10px; /* Lägg till lite utrymme mellan inläggen */
}

/* Knappar för att bläddra */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Dölj knappar när de inte är användbara */
.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .blog-post {
    flex: 0 0 50%; /* Visa två inlägg i taget på mindre skärmar */
  }
}

@media (max-width: 480px) {
  .blog-post {
    flex: 0 0 100%; /* Visa ett inlägg i taget på mycket små skärmar */
  }
}

/* Impact Counter */
.impact-counter {
  background: rgba(255, 255, 255, 0.2); /* Genomskinlig bakgrund */
  padding: 10px 20px;
  border-radius: 25px; /* Rundade hörn */
  display: inline-block;
  margin: 10px 0;
  font-size: 1.2rem;
  color: #fff;
  backdrop-filter: blur(5px); /* Ger ett glasigt utseende */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Tunn ram */
}

.counter {
  font-weight: bold;
  font-size: 1.5rem;
  color: #1abc9c; /* Accentfärg för siffran */
}

.counter {
  transition: transform 0.2s ease-out, color 0.3s ease;
}

.counter-changing {
  transform: scale(1.3);
  color: #16a085; /* Ljusare grön vid räkning */
}
