/* =========================================================
   Global
========================================================= */
* { box-sizing: border-box }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
.container { width: 90%; max-width: 1100px; margin: auto; padding: 20px }

/* =========================================================
   Topbar
========================================================= */
/* ======= Topbar Layout ======= */
.topbar {
  background: #222;
  color: #fff;
  padding: 6px 0;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  margin-right: 15px;
}

.topbar-right {
  display: flex;
  align-items: center;
}

/* ======= Donate Button ======= */
/* Heart styling + animated pulse donate button */
.donate-btn {
  background-color: #ff8800;
  color: #fff;
  padding: 6px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseGlow 2s infinite ease-in-out;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background-color: #e67300;
  animation: none; /* stop glowing on hover */
}

/* Heart animation */
.heart {
  display: inline-block;
  animation: heartbeat 1.5s infinite ease-in-out;
}

/* glowing background animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(255, 136, 0, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 12px rgba(255, 136, 0, 0.7); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 rgba(255, 136, 0, 0.4); transform: scale(1); }
}

/* heart beat animation */
@keyframes heartbeat {
  0%, 40%, 80%, 100% { transform: scale(1); }
  20%, 60% { transform: scale(1.3); }
}

/* ======= Floating Donate Button (always visible) ======= */
.donate-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #ff8800;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;
  animation: pulseGlow 2s infinite ease-in-out;
  transition: background 0.3s ease, transform 0.2s;
}

.donate-btn:hover {
  background-color: #e67300;
  transform: scale(1.05);
  animation: none;
}

/* Heart animation */
.heart {
  display: inline-block;
  animation: heartbeat 1.5s infinite ease-in-out;
}

/* glowing animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(255,136,0,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 14px rgba(255,136,0,0.8); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 rgba(255,136,0,0.4); transform: scale(1); }
}

/* heartbeat animation */
@keyframes heartbeat {
  0%, 40%, 80%, 100% { transform: scale(1); }
  20%, 60% { transform: scale(1.3); }
}

/* Responsive size for small screens */
@media (max-width: 600px) {
  .donate-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }
}






/* =========================================================
   Header & Logo
========================================================= */
.site-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo { height: 60px }

/* =========================================================
   Navigation
========================================================= */
.main-nav {
  background: #28a745;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 700;
}
.main-nav a:hover { color: #ffdd57 }

/* =========================================================
   Footer
========================================================= */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 14px;
}
footer a { color: #ffc107 }

/* =========================================================
   Universal Card
========================================================= */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px) }
.card img, .card iframe, .card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: 15px }
.card-body h3 { margin: 0 0 10px; color: #28a745 }
.card-body p { color: #555; font-size: 14px }
.card-body a.btn {
  display: inline-block;
  padding: 8px 14px;
  background: #28a745;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.card-body a.btn:hover { background: #e67e22 }

/* =========================================================
   Forms and Buttons
========================================================= */
form input[type=text],
form select,
form textarea,
form input[type=email],
form input[type=file] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}
.btn-primary {
  background: #28a745;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-danger {
  background: #dc3545;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================================================
   Page Specific Grids
========================================================= */
.resources-container,
.campaigns-container,
.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* =========================================================
   Detail Pages
========================================================= */
.resource-detail, .campaign-detail {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Admin Pages
========================================================= */
.admin-wrap { max-width: 1000px; margin: 20px auto; padding: 20px }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 }
.admin-card {
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   Login Page
========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/login-bg.jpg') no-repeat center/cover;
}
.login-box {
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 8px;
  width: 360px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================================
   Homepage Slider
========================================================= */
.slider {
  width: 100%;
  max-height: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}
.slide {
  display: none;
  position: relative;
  animation: fade 1.5s ease-in-out;
}
.slide img {
  width: 200%;
  height: 200px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 10px;
}
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
}
.caption {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  color: #fff;
  background-color: rgba(0,0,0,0.55);
  font-size: 2rem;
  padding: 14px 30px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0;
  animation: captionFadeUp 1.5s ease forwards;
}

/* Animations */
@keyframes fade { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes captionFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =========================================================
   Mobile Menu
========================================================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 25px;
  top: 25px;
  z-index: 1000;
}
.bar {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 5px;
}

/* Show hamburger and hide links on mobile */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #28a745;
    text-align: center;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 999;
  }
  .main-nav a {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    display: block;
  }
  .main-nav.active {
    display: flex;
    animation: slideDown 0.35s ease forwards;
  }
}

/* Smooth menu animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Small topbar fix for mobile */
@media(max-width:600px){
  .topbar-inner{flex-direction:column;align-items:flex-start}
  .logo{height:50px}
}


======donation media=======

@media (max-width: 600px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    margin-top: 8px;
    text-align: left;
  }

  .donate-btn {
    display: inline-block;
  }
}



/* ===== ORG CHART ===== */
.org-chart {
  display: flex;
  justify-content: center;
  text-align: center;
  overflow-x: auto;
  padding: 30px 0;
}

.org-chart ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  list-style: none;
}

.org-chart li {
  position: relative;
  padding: 20px 5px 0 5px;
  text-align: center;
}

.org-chart li::before, 
.org-chart li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #0e9f6e;
  width: 50%;
  height: 20px;
}

.org-chart li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #0e9f6e;
}

.org-chart li:only-child::before, 
.org-chart li:only-child::after {
  display: none;
}

.org-chart li:only-child {
  padding-top: 0;
}

.org-chart li:first-child::before, 
.org-chart li:last-child::after {
  border: 0 none;
}

.org-chart li:last-child::before {
  border-right: 2px solid #0e9f6e;
  border-radius: 0 5px 0 0;
}

.org-chart li:first-child::after {
  border-radius: 5px 0 0 0;
}

.member-card {
  background: #fff;
  border: 2px solid #0e9f6e;
  border-radius: 10px;
  display: inline-block;
  padding: 15px;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.member-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0e9f6e;
  margin-bottom: 10px;
}

.member-card h3 {
  margin: 0;
  font-size: 16px;
  color: #222;
}

.member-card p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #0e9f6e;
  font-weight: 600;
}

/* Responsive */
@media(max-width:768px) {
  .org-chart ul {flex-direction: column; align-items: center;}
  .org-chart li::before, .org-chart li::after {display: none;}
}


.category-title {
  margin-top: 40px;
  color: #2e7d32;
  border-left: 5px solid #ff9800;
  padding-left: 10px;
  font-size: 20px;
}

.recipe-card ul {
  margin: 10px 0;
  padding-left: 20px;
}

.recipe-card h4 {
  margin-top: 10px;
  color: #444;
  font-size: 15px;
}


