/* Base Reset and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #0c6b58;
  --secondary-color: #f4a261;
  --light-bg: #f9f9f9;
  --dark-text: #222;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  color: var(--dark-text);
}

/* Buttons */
.btn, .dnt {
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  margin: 5px;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: var(--primary-color);
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--primary-color);
}
.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}
.dnt {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn:hover, .dnt:hover {
  opacity: 0.8;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-logo img {
  height: 80px;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--dark-text);
  margin: 4px 0;
  transition: 0.4s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
  position: relative;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8px;
  position: relative;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #f6f4f4;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100vw;
  height: 100%;
  padding: 40px 20px;
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  padding: 20px 0;
  text-decoration: none;
  color: var(--dark-text);
  font-size: 1.2em;
}
.mobile-menu a:hover {
  color: var(--primary-color);
}
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
.overlay.active {
  display: block;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Hero Section */
.hero {
  position: relative;
  background: url(images/srammage.jpg) center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  animation: fadeIn 2s ease-in;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 42px;
  text-shadow: 0px 4px 2px rgba(7, 59, 20, 0.8);
  margin-bottom: 30px;
  line-height: 1.4;
}
.hero-description {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.6;
  color: #e0f4de;
}
.cta-buttons {
  margin-top: 30px;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 56px; }
  .hero-description { font-size: 0.9rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 180px 40px; }
  .hero h1 { font-size: 64px; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 36px; text-align: left; }
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .cta-buttons .btn {
    width: 100%;
  }
}

/* Section Styling */
section {
  padding: 3rem 1rem;
  text-align: center;
}
h1, h2, h3 {
  margin-bottom: 20px;
}

/* Section Navigation */
.section-nav {
  padding: 60px 20px;
}
.section-nav-line {
  height: 4px;
  width: 200px;
  margin: 20px auto;
  background-color: var(--secondary-color);
  border-radius: 2px;
}
.section-nav-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 30px 0;
}
.nav-item {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: 0.3s ease;
}
.nav-item:hover {
  color: var(--secondary-color);
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, #e0f7fa, #fff);
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.mission-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.mission-title {
  font-size: 2.5rem;
  color: #00796b;
  margin-bottom: 20px;
  font-weight: bold;
}
.mission-intro, .mission-closing {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.7;
}
.mission-pillars {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  text-align: left;
}
.mission-pillars li {
  background: #f1fdfc;
  border-left: 6px solid #26a69a;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}
.mission-pillars li:hover {
  background: #e0f2f1;
}
@media (max-width: 768px) {
  .mission-pillars {
    grid-template-columns: 1fr;
  }
  .mission-title {
    font-size: 2rem;
  }
}

/* Campaigns */
.featured-campaigns .campaigns-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.campaign {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.campaign:hover {
  transform: translateY(-10px);
}
.campaign img {
  width: 100%;
  border-radius: 10px;
}

/* Partners Marquee */
.partners-section {
  background: white;
  padding: 40px 0;
  overflow: hidden;
}
.partners-section p{
  text-align: center;
  margin-bottom: 20px;
  color: #555;
  font-size: .8rem;
}
.partners-section h2 {
  margin-bottom: 30px;
  color: #222;
}
.marquee-wrapper {
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}
.partner-logo {
  flex: 0 0 auto;
  background: white;
  margin: 0 20px;
  padding: 10px 20px;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-height: 60px;
  width: 100%;
  object-fit: contain;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .partner-logo {
    width: 140px;
    height: 80px;
    margin: 0 10px;
  }
}

/* Impact */
.impact-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.stat {
  background-color: #fff;
  padding: 20px;
  width: 150px;
  text-align: center;
  transition: transform 0.3s;
}
.stat i {
  font-size: 3em;
  color: var(--primary-color);
}
.stat h3 {
  font-size: 2.5em;
  color: var(--primary-color);
}
.stat p {
  font-size: 1.1em;
}
.stat:hover {
  transform: translateY(-10px);
}

/* Contact Details */
.contact-details {
  background: blanchedalmond;
  padding: 40px 20px;
  text-align: center;
}
.contact-details h2 {
  margin-bottom: 20px;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-item i {
  font-size: 2em;
  color: black;
}
.contact-link {
  text-decoration: none;
  color: rgb(174, 8, 174);
  font-weight: bold;
}
.contact-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}
.footer-top {
  text-align: center;
}
.footer-top img {
  height: 80px;
  border-radius: 50%;
}
.tagline {
  color: var(--light-bg);
  font-size: 0.9rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}
.footer-column h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer a {
  padding: 10px 8px;
  display: inline-block;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
}
.footer-column ul li a:hover {
  text-decoration: underline;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.social-icons a {
  color: #00b7ff;
  font-size: 1.3rem;
}
.social-icons a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 0.95rem;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Newsletter */

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

.newsletter-form .input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

.newsletter-form button {
  position: relative;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  overflow: hidden;
}

.newsletter-form .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

.success-message,
.error-message {
  height: 40px; /* or whatever height fits nicely */
  display: none;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.show-message {
  display: block;
}


.success-message {
  color: green;
}

.error-message {
  color: red;
}


.error-message {
  color: red;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
