/* ===========================
   VARIABLES
=========================== */
:root {
  --primary: #1a4e8a;
  --secondary: #2ab27b;
  --light: #f5f7fa;
  --dark: #1c1c1c;
  --gray: #6b7280;
}

/* ===========================
   RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===========================
   BASE STYLES
=========================== */
body {
  line-height: 1.7;
  font-size: 18px;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  padding-top: 70px;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  display: block;
  padding-bottom: 0.6rem;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray);
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
.header {
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo img {
  height: 34px;
  width: auto;
}

.logo,
.logo:focus,
.logo img,
.logo img:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  color: #333;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s ease-in-out;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--secondary);
}

.nav a:hover::after {
  width: 100%;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  display: none;
  background: none;
  border: none;
  color: #333;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  background: url('https://picsum.photos/id/1011/1600/900') center/cover no-repeat;
  position: relative;
  color: #fff;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  max-width: 750px;
  margin: 0 auto 1.8rem;
  font-size: 1.25rem;
  color: #f1f1f1;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  white-space: nowrap;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  background: var(--secondary);
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  font-weight: 600;
  font-size: 1.15rem;
}

.btn:hover {
  background: var(--primary);
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 4.5rem 0;
  scroll-margin-top: 75px;
}

.section.light {
  background: var(--light);
}

.section.colored {
  background: #eef6f2;
}

/* ===========================
   GRID CARDS
=========================== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  color: var(--dark);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* ===========================
   IMPACT SECTION
=========================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.impact-item {
  background: #fff;
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.impact-item i {
  font-size: 2.4rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.impact-item h4 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}

.impact-item p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===========================
   EVENTS & UPDATES
=========================== */
#events.section.colored {
  background: #eef8f4;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-content {
  padding: 1.8rem;
  text-align: left;
}

.event-content h4 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.event-meta {
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0.8rem;
}

.event-meta i {
  color: var(--secondary);
  margin-right: 6px;
}

.event-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

#events h4,
#events .event-meta,
#events p {
  text-align: left !important;
  margin-left: 0;
  margin-right: 0;
}

/* ===========================
   TESTIMONIALS
=========================== */
#testimonials {
  padding: 60px 20px;
  background: #f8fafc;
  text-align: center;
}

#testimonials .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.testimonial-slider {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
  max-width: 520px;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

/* ===========================
   GALLERY
=========================== */
#gallery {
  background: #eef8f4;
  padding: 3rem 0;
}

#gallery .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

#gallery .gallery-slider {
  max-width: 960px;
  margin: 0 auto;
}

#gallery .swiper-slide {
  width: 500px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================
   CONTACT
=========================== */
#contact {
  text-align: center;
}

.contact-box {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  max-width: 650px;
  margin: 0 auto;
}

.contact-box form {
  width: 100%;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 2.5rem;
}

.footer p,
.footer-contact {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-contact {
  line-height: 1.7;
}

.footer-contact a {
  color: #e5e5e5;
  text-decoration: underline;
}

.socials {
  margin-top: 0.5rem;
}

.socials a {
  margin: 0 12px;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--secondary);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  body {
    padding-top: 60px;
  }

  .logo img {
    height: 30px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .event-content {
    padding: 1.2rem;
  }

  .event-content h4 {
    font-size: 1.2rem;
  }

  .event-image img {
    height: 200px;
  }
}

/* ===========================
   404 PAGE
=========================== */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.error-404 .container {
  max-width: 700px;
  margin: auto;
}

.error-404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.error-404 p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ===========================
   RESOURCES & DOWNLOADS
=========================== */
#downloads {
  background: #eef8f4;
  padding: 4.5rem 0;
  text-align: center;
}

#downloads .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

#downloads .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.download-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  padding: 2.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.download-card i {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.download-card h4 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.download-card p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 90%;
  text-align: center;
}

.download-card .btn.btn-small {
  display: inline-block;
  font-size: 0.95rem;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-card .btn.btn-small:hover {
  background: var(--primary);
  transform: translateY(-1px);
}
