/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding-bottom: 140px; /* space for floating logo */
}

.slogan{
    font-style: italic;
    font-size: 11px;
    font-family: cursive;
}

/* ---------- NAVBAR ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #005f73;
  color: white;
  padding: 15px 40px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.navlinks a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
  padding: 8px 4px;
  border-radius: 6px;
}

.navlinks a:hover,
.navlinks a.active {
  color: #ffd166;
  background: rgba(255,255,255,0.03);
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navlinks {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background-color: #0d5c2e;
    flex-direction: column;
    align-items: center;
    padding: 15px 12px;
    gap: 15px;
    z-index: 9999; 
  }

  .navlinks.active {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }

  /* Animate hamburger to X when opened */
  .hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.open div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
}

/* ---------- CONTENT SECTIONS ---------- */
.content-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 48px 4%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content-section h2 {
  color: black;
  margin-bottom: 12px;
}

.content-section ul {
  margin-left: 20px;
  margin-top: 10px;
}

.content-section ul li {
  margin-bottom: 5px;
}

/* ---------- GALLERY ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  flex: 1 1 30%;
  background: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  color: #0a9396;
  margin: 10px 0;
}

/* ---------- FORMS (DONATE / GENERAL) ---------- */
.donate-form,
.form-section {
  background: rgba(255, 255, 255, 0.98);
  padding: 22px;
  border-radius: 12px;
  max-width: 600px;
  margin: 20px auto 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.donate-form label,
.form-section label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: #153b3a;
  font-size: 0.98rem;
}

.donate-form input,
.donate-form textarea,
.form-section input,
.form-section textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

.donate-form button,
.form-section button,
button[type="submit"] {
  background: #0a9396;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.donate-form button:hover,
.form-section button:hover {
  transform: translateY(-3px);
  background: #007f8c;
}

/* ---------- SUCCESS MESSAGE ---------- */
.success-message {
  display: none;
  margin-top: 18px;
  text-align: center;
  background: #e6ffe6;
  border: 1px solid #009900;
  color: #006600;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
}

.success-message.show {
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* ---------- HIDDEN UTILITY ---------- */
.hidden {
  display: none !important;
}

/* ---------- BANK DETAILS ---------- */
.bank-details {
  margin: 40px auto;
  padding: 18px;
  max-width: 820px;
  background: #f7f9fc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  text-align: center;
}

.bank-details h3 {
  color: #0a9396;
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Two-column layout */
.accounts-container {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 14px;
}

.account-box {
  flex: 1;
  min-width: 260px;
  background: #ffffff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.account-box h4 {
  color: #005f73;
  font-size: 1.08rem;
  margin-bottom: 8px;
  border-bottom: 2px solid #0a9396;
  padding-bottom: 6px;
}

.account-box p {
  margin: 8px 0;
  color: #333;
  line-height: 1.45;
  font-size: 0.96rem;
}

/* ---------- FLOATING LOGO ---------- */
.bottom-logo {
  position: fixed;
  bottom: 80px;
  right: 30px;
  z-index: 1000;
  opacity: 0.95;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.bottom-logo img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.bottom-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  .content-section {
    padding: 28px 5%;
    margin: 24px auto;
  }

  .accounts-container {
    flex-direction: column;
  }

  .account-box {
    width: 100%;
  }

  .bottom-logo {
    display: none; /* hide floating logo on mobile */
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: #003844;
  color: white;
  text-align: center;
  padding: 26px 10px;
  font-size: 0.9rem;
}

/* ---------- JOIN US PAGE STYLING (UPDATED) ---------- */

/* Container for the 3 cards */
.donate-options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: nowrap; /* ensures all 3 stay side by side */
  overflow-x: auto; /* allow horizontal scroll on smaller screens */
  padding-bottom: 10px;
}

/* Individual card */
.donate-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 320px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  flex: 0 0 320px; /* keep consistent width in row */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.donate-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.1); /* make image clearer and vivid */
  border-bottom: 3px solid #0a9396;
}

.donate-card h3 {
  color: #005f73;
  margin: 16px 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.donate-card p {
  padding: 0 18px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Card hover effect */
.donate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Button styling */
.donate-btn {
  background: #0a9396;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 0 0 14px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background: #007f8c;
}

/* Ensure link inside button inherits correct styling */
.donate-btn a {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

/* Responsive layout — only stack on very small devices */
@media (max-width: 900px) {
  .donate-options {
    flex-wrap: wrap;
  }

  .donate-card {
    flex: 1 1 90%;
    max-width: 400px;
  }
}
