/* ====== ROOT VARIABLES ====== */
:root {
  --primary: #004f46;
  --accent: #004f46;
  --light: #F7F9F7;
  --dark: #1C1C1C;
  --gray: #6c757d;
  --transition: 0.3s ease;
}

/* ====== BASE ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Poppins', sans-serif; 
  color: var(--dark); 
  background-color: white; 
  line-height: 1.7; 
  scroll-behavior: smooth; 
  display: flex; /* For sticky footer */
  flex-direction: column; /* For sticky footer */
  min-height: 100vh; /* For sticky footer */
}
h1,h2,h3 { font-weight: 600; }
a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--accent); }
img { border-radius: 0 !important; }

/* ====== NAVIGATION - DESKTOP DEFAULT STYLES ====== */
.navbar { 
  position: sticky; 
  top: 0; 
  width: 100%; 
  background: rgba(255,255,255,0.95); 
  backdrop-filter: blur(8px); 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  z-index: 999; 
  padding: 15px 0;
}

.nav-inner { 
  max-width: 1200px; 
  margin: auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 20px;
}

.nav-logo { 
  font-weight: 700; 
  font-size: 1.4rem; 
  text-decoration: none; 
  color: var(--primary); 
}

/* Desktop Links */
.nav-links { 
  list-style: none; 
  display: flex; /* Default: Visible on Desktop */
  gap: 25px; 
  margin: 0; 
  padding: 0; 
  align-items: center; 
}

.nav-links a { 
  font-weight: 500; 
  padding: 6px 0; 
  display: inline-block; 
  color: #333;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

/* Language Button (Desktop) */
#langToggle { 
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  color: #333;
}
#langToggle:hover { 
  color: var(--primary); 
}

/* ====== DROPDOWN ====== */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 100;
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
}
.dropdown-menu li { padding: 0 20px; }
.dropdown-menu li a { display:block; padding:8px 0; color:#333; font-size:0.95em; }
.dropdown-menu li a:hover { background:#f0f0f0; }


/* ====== MOBILE COMPONENTS (HIDDEN BY DEFAULT ON DESKTOP) ====== */

/* CRITICAL FIX: Hide mobile menu and hamburger on desktop */
.hamburger {
  display: none; 
}

.mobile-menu {
  display: none; 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 10000; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Class added by JS to show the menu */
.mobile-menu.open {
  display: flex; 
  left: 0;
}

/* Mobile Menu Links */
.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
}
.mobile-menu ul li {
  padding: 15px 0;
}
.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  display: block;
}

/* Mobile Language Toggle */
#mobileLangToggle {
  font-size: 1.2rem;
  padding: 10px 25px;
  margin-top: 30px;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block !important; 
}


/* ====== HERO (Index Page Only) ====== */
.hero-banner {
  position: relative;
  min-height: 90vh; 
  height: auto; 
  background: linear-gradient(rgba(0,79,70,0.5), rgba(0,79,70,0.5)),
              url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-position: top center; 
}

.hero-overlay { position:relative; z-index:2; max-width:900px; padding:0 20px; }
.hero-text h1 { font-size:2.8rem; margin-bottom:20px; }
.hero-text p { font-size:1.2rem; margin-bottom:35px; }
.hero-btn { background: var(--primary); color:white; padding:14px 36px; border-radius:40px; font-weight:500; font-size:1rem; transition:all var(--transition); margin-right:12px; display:inline-block; }
.hero-btn.secondary { background:transparent; border:2px solid white; }
.hero-btn:hover { background: var(--accent); transform:translateY(-2px); }

/* ====== SECTIONS (Index Page Only) ====== */
.split-section { display:flex; align-items:center; justify-content:space-between; gap:50px; padding:80px 5%; flex-wrap:wrap; background:transparent; }
.split-section.reverse { flex-direction:row-reverse; }
.split-section .text { flex:1; max-width:600px; }
.split-section .text h2 { color: var(--primary); font-size:2.2rem; margin-bottom:20px; }
.split-section .text p, .split-section .text ul { color: var(--gray); font-size:1rem; line-height:1.8; }
.split-section .image { flex:1; height:350px; }
.split-section .image img {
  width:100%;
  height:350px;
  object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,0.1);
  transition: transform var(--transition);
}
.split-section .image img:hover { transform:scale(1.03); }

/* HIGHLIGHT SECTION (Index Page Only) */
.highlight-section {
  width: 100%;
  padding: 80px 20px; 
  color: white;
  text-align: center;
  box-sizing: border-box;
  background: var(--primary); 
}

.highlight-inner { max-width: 1200px; margin: auto; }
.highlight-section h2 { font-size: 2.2rem; margin-bottom: 20px; }
.highlight-section p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.highlight-btn {
  background-color: var(--accent);
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}
.highlight-btn:hover { background-color: #fff; color: var(--primary); }


/* ====== NEWS PAGE GRID LAYOUT FIX ====== */
.news-container {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 0 20px; /* added horizontal padding for smaller screens */
}

/* LEFT COLUMN LIST */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: #222;
  border-bottom: 2px solid #ddd;
  padding-bottom: 15px;
}

.news-item img {
  width: 85px;
  height: 85px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
  color: #004f46;
}

.news-item .date {
  font-size: 0.85rem;
  color: #555;
}

/* FEATURED EVENT */
.featured-event {
  display: flex;
  gap: 20px;
  border: 2px solid #004f46;
  padding: 18px;
  text-decoration: none;
  height: fit-content; /* Ensure it wraps content */
}

.featured-event a {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%; /* Important for internal flex layout */
}

.featured-date {
  border: 2px solid #004f46;
  padding: 15px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-date .day {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004f46;
}

.featured-date .month {
  margin-top: -10px;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #333;
}

.featured-content h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: #004f46;
}

.featured-content .location {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}
/* END NEWS PAGE GRID LAYOUT FIX */


/* ====== FOOTER ====== */
footer { 
  margin-top: auto; 
  width: 100%;
  background-color:#004f46; 
  color:white; 
  text-align:center; 
  padding:30px 20px; 
  border-top: none
}
.footer-links a { color:white; text-decoration:none; margin:0 8px; font-weight:600; }
.footer-links a:hover { text-decoration:underline; }
.social-icons a { color:white; font-size:20px; margin:0 8px; transition:color var(--transition); }
.social-icons a:hover { color:#00bfa5; }

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 0;
  display: none;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: 600;
  z-index: 9999;
}
#backToTop:hover {
  background: var(--accent);
}


/* ====== RESPONSIVE (MOBILE VIEW) ====== */
@media (max-width: 900px) { 
  /* Navigation Fix: Hide Desktop Nav, Show Mobile Toggle */
  .nav-links, #langToggle {
    display: none !important; 
  }

  .hamburger {
    display: block; 
    z-index: 10001;
    
    /* FIX: Absolute positioning to ensure proper spacing from top/left edge */
    position: absolute; 
    top: 25px;   /* Moves it down */
    left: 25px;  /* Moves it right (away from the edge) */
    background: transparent; 
    border: none;
    cursor: pointer;
  }
  
  /* Nudge the logo over so it doesn't overlap the new hamburger position */
  .nav-logo {
      margin-left: 50px; 
  }

  /* Index Page Layout Adjustments */
  .split-section{
    flex-direction:column;
    text-align:center;
    padding:60px 5%;
  }
  .split-section.reverse{
    flex-direction:column;
  } 

  .hero-text h1{
    font-size:2rem;
  } 
  .hero-text p{
    font-size:1rem;
  } 
}

@media (max-width: 768px) {
  /* News Page Mobile Layout */
  .news-container { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding: 20px; /* Use consistent padding */
  }
  .news-list, .featured-event { 
    width: 100%; 
  }
  .news-item { 
    flex-direction: column; 
    gap: 10px; 
  }
  .news-item img { 
    width: 100%; 
    height: auto; 
    max-height: 200px;
  }
  .featured-event a { 
    flex-direction: column; 
    gap: 10px; 
  }
  .featured-date { 
    margin-bottom: 10px; 
    border: 2px solid #004f46;
  }
  .featured-event {
    gap: 0;
  }
  .featured-event a {
    flex-direction: row;
    align-items: center;
  }
  .featured-date {
    min-width: 80px;
    padding: 10px;
  }
  .featured-date .day {
    font-size: 1.8rem;
  }
  .featured-date .month {
    font-size: 0.8rem;
  }
  .featured-content h2 {
    font-size: 1.2rem;
  }
  .featured-content {
    padding-left: 10px;
  }
}
.split-section ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.split-section ul li {
  margin-bottom: 10px; /* optional spacing */
}
.hero-btn,
.hero-btn:hover {
  color: white !important;
}
.hero-btn {
  display: inline-block;
  width: auto;
}
.highlight-btn {
  background: #004f46;      /* green */
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.2s;
}

.highlight-btn:hover {
  background: #004f46;      /* darker green */
}
/* ============================= */
/* CONTACT FORM SECTION */
/* ============================= */

.contact-form-section {
  padding: 70px 20px;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #222;
}

/* FORM BOX */
#contactForm {
  background: #ffffff;
  padding: 35px 40px;
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* INPUTS */
#contactForm input,
#contactForm textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

#contactForm textarea {
  resize: vertical;
  min-height: 140px;
}

/* FOCUS STATE */
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #2C7A4B;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* BUTTON */
#contactForm button {
  width: 100%;
  padding: 14px;
  background: #004f46; /* green */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#contactForm button:hover {
  background: #15803d; /* darker green */
  transform: translateY(-1px);
}


/* STATUS MESSAGE */
#formStatus {
  margin-top: 16px;
  font-size: 14px;
  color: #16a34a;
  font-weight: 500;
  text-align: center;
}

/* ERROR STATE (OPTIONAL) */
#formStatus.error {
  color: #dc2626;
}

/* MOBILE */
@media (max-width: 600px) {
  #contactForm {
    padding: 30px 24px;
  }

  .contact-form-section h2 {
    font-size: 26px;
  }
}
footer,
footer p,
footer a {
  color: #ffffff !important;
}
.footer-phone {
  color: #ffffff !important;
  text-decoration: none;
}
.donation-box {
  background: #f7f9f8;
  border-left: 5px solid #004f46;
  padding: 25px;
  margin-top: 25px;
  border-radius: 8px;
}

.donation-email {
  font-size: 1.1rem;
  color: #004f46;
}
