/* =========================
   GLOBAL
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* =========================
   PRELOADER
========================= */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #eee;
  border-top: 5px solid #0a8f3c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #0a8f3c;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.logo img {
  width: 45px;
  margin-right: 12px;
}

nav {
  display: flex;
}

nav a {
  margin: 0 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

/* ACTIVE NAV LINK */
nav a.active {
  color: #f4c430;
}

nav a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #f4c430;
  left: 0;
  bottom: -5px;
}

nav a:hover {
  color: #f4c430;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-img.active {
  opacity: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  color: #f4c430;
}

.hero-overlay p {
  font-size: 1.3rem;
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #f4c430;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #d4a520;
  transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  color: #0a8f3c;
  font-size: 32px;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.grid div {
  padding: 22px;
  border-left: 6px solid #0a8f3c;
  border-bottom: 4px solid #0057b7;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  background: #fff;
}

/* =========================
   NEWS GRID
========================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center; /* centers content horizontally in each grid cell */
}

.news-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.news-card img {
  width: 100%;
  height: auto;
  border-bottom: 4px solid #0a8f3c;
}

.news-card h3 {
  margin: 15px 0 10px;
  color: #0a8f3c;
}

.news-card p {
  padding: 0 15px 15px;
  color: #333;
}
/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.04);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #222;
  color: #ddd;
  padding: 50px 20px;

}

/* =========================
   FOOTER GRID
========================= */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 15px;
  color: #f4c430;
}

.footer-column p,
.footer-column a {
  color: #ddd;
  text-decoration: none;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #f4c430;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 20px;
  }
}
/* =========================
   BACK TO TOP
========================= */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #f4c430;
  border-radius: 50%;
  padding: 12px 16px;
  cursor: pointer;
}

/* =========================
   MOBILE MENU
========================= */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0a8f3c;
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  nav a {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.about-image-container img {
  width: 100%;
  max-width: 600px; /* controls large image issue */
  height: auto;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-overlay h1 {
    font-size: 3.5rem;
  }

  .hero-overlay p {
    font-size: 1.5rem;
  }
}