/* =========================================
   HANDS OF MERCY - MASTER STYLESHEET
   ========================================= */

/* --- GLOBAL STYLES --- */
/* --- GLOBAL STYLES --- */
body { 
  margin: 0; 
  padding: 0; 
  background-color: #0d2c4d; /* Keeps the solid blue as a fallback while the image loads */
  
  /* The Overlay Magic: 85% opaque navy blue layered over your photo */
  background-image: linear-gradient(rgba(13, 44, 77, 0.85), rgba(13, 44, 77, 0.85)), url('/Images/honduras-landscape.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Keeps the background still while scrolling */
  
  font-family: 'Open Sans', 'Helvetica Neue', sans-serif; 
}.hom-wrapper { 
  color: #333; 
  line-height: 1.6; 
  position: relative; 
  overflow-x: hidden; 
  min-height: 100vh; 
}
.hom-wrapper a { text-decoration: none; }

/* --- NAVIGATION BAR --- */
.hom-nav { 
  display: flex; 
  justify-content: flex-end; /* Pushes the menu links to the far right */
  align-items: center; 
  padding: 15px 40px; 
  background: #0d2c4d; 
  color: white; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  position: relative; /* This is required to let the title center itself */
}
.hom-menu { 
  display: flex; 
  align-items: center; 
  font-size: 0.9rem; 
  font-weight: 600; 
}

.hom-menu a, .hom-menu a:visited, .hom-menu a:active { 
  color: white; 
  opacity: 0.9; 
  transition: opacity 0.3s; 
  text-decoration: none; 
}

.hom-menu a:hover { 
  opacity: 1; 
  text-decoration: underline; 
}

/* Adds the vertical divider text after every link EXCEPT the last one */
.hom-menu a:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.4); /* Faded white so it doesn't overpower the text */
  margin: 0 15px; /* Adds the exact spacing needed on both sides */
  display: inline-block;
  cursor: default;
}
.hom-logo-text { 
  font-size: 1.5rem; 
  font-weight: 700; 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); /* Locks the text perfectly in the center */
}

/* --- BACKGROUND WATERMARKS --- */
.watermark-left, .watermark-right { 
  position: fixed; /* Changed from absolute to fixed */
  top: 110px; 
  width: 400px; 
  opacity: 0.15; 
  z-index: 0; 
  pointer-events: none; 
}
.watermark-left { left: -50px; }
.watermark-right { right: -50px; }

/* --- SHARED SUB-PAGE HEADERS --- */
.page-header { 
  text-align: center; 
  color: white; 
  padding: 60px 20px 20px 20px; 
  position: relative; 
  z-index: 1; 
}
.page-title { 
  font-size: 2.5rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  margin-bottom: 10px; 
}
.page-subtitle { 
  font-size: 1.2rem; 
  opacity: 0.8; 
  max-width: 600px; 
  margin: 0 auto; 
}

/* =========================================
   1. HOMEPAGE SPECIFIC STYLES
   ========================================= */
.hom-hero-section { position: relative; padding: 60px 20px; max-width: 1100px; margin: 0 auto; z-index: 1; }
.hom-hero-card { display: flex; background-color: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); min-height: 450px; }
.hom-hero-image { 
  flex: 6; 
  background-image: url('/Images/clinic-photo.jpg'); 
  background-size: cover; 
  background-position: center; 
  position: relative; 
}
.hom-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.hom-hero-content { color: white; max-width: 500px; z-index: 2; }
.hom-hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; text-transform: uppercase; }
.hom-hero-text { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.95; }

.hom-hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background-color: #2c82c9; color: white; padding: 12px 25px; border-radius: 5px; font-weight: 700; display: inline-block; transition: background 0.2s; }
.btn-primary:hover { background-color: #1b5a90; }
.btn-secondary { background-color: transparent; color: white; padding: 10px 25px; border: 2px solid white; border-radius: 5px; font-weight: 700; display: inline-block; transition: background 0.2s, color 0.2s; }
.btn-secondary:hover { background-color: white; color: #0d2c4d; }

.hom-stats-bar { display: flex; justify-content: space-between; background-color: #1a4a7a; color: white; padding: 25px 0; border-radius: 0 0 12px 12px; margin-top: 20px; text-align: center; max-width: 1100px; margin: 20px auto 0px auto; border-radius: 8px; }
.stat-box { flex: 1; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-box:last-child { border-right: none; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 1px; }

.hom-section-divider { text-align: center; max-width: 800px; margin: 10px auto 30px auto; position: relative; z-index: 1; padding: 0 20px; }
.hom-section-divider h2 { color: white; font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.hom-section-divider p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.hom-programs-section { max-width: 1100px; margin: 0 auto 40px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; z-index: 1; position: relative; padding: 0 20px; }
.program-card { background: white; border-radius: 12px; padding: 35px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.program-title { color: #0d2c4d; font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.program-text { color: #555; margin-bottom: 25px; font-size: 1.05rem; }
.btn-health { background-color: #9b59b6; }
.btn-health:hover { background-color: #8e44ad; }
.btn-scholar { background-color: #e67e22; }
.btn-scholar:hover { background-color: #d35400; }

.hom-coffee-section { max-width: 1100px; margin: 0 auto 40px auto; border-radius: 12px; overflow: hidden; position: relative; z-index: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.coffee-header { background-color: #4da658; color: white; padding: 15px 30px; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.coffee-card-body { 
  height: 350px; 
  background-image: url('/Images/coffee-photo.jpg'); 
  background-size: cover; 
  background-position: center; 
  position: relative; 
  display: flex; 
  align-items: flex-end; 
}.coffee-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); width: 100%; padding: 40px; color: white; }
.coffee-text { max-width: 700px; font-size: 1.2rem; margin-bottom: 20px; }
.btn-coffee { background-color: #4da658; color: white; padding: 12px 25px; border-radius: 5px; font-weight: 700; display: inline-block; }
.btn-coffee:hover { background-color: #3d8b46; }

/* =========================================
   2. MISSION REPORT SPECIFIC STYLES
   ========================================= */
.report-container { background: white; max-width: 900px; margin: 40px auto 80px auto; padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; z-index: 1; }
.report-section { margin-bottom: 40px; }
.report-section:last-child { margin-bottom: 0; }
.report-section h3 { color: #0d2c4d; font-size: 1.8rem; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.report-section p { font-size: 1.1rem; color: #444; margin-bottom: 15px; }
.highlight-quote { font-size: 1.3rem; font-weight: 600; color: #2c82c9; border-left: 5px solid #2c82c9; padding-left: 20px; margin: 30px 0; font-style: italic; line-height: 1.4; }
.btn-back { display: inline-block; background-color: #eee; color: #333; padding: 10px 20px; border-radius: 5px; font-weight: 600; margin-top: 20px; transition: background 0.2s; }
.btn-back:hover { background-color: #ddd; }

/* Carousel Styles */
.carousel-container { max-width: 100%; margin-top: 40px; }
.main-image-wrapper { position: relative; width: 100%; height: 500px; border-radius: 12px; overflow: hidden; background-color: #111; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.main-image { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease-in-out; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; padding: 15px 20px; cursor: pointer; font-size: 1.5rem; border-radius: 5px; transition: background 0.3s; z-index: 2; }
.carousel-btn:hover { background: #2c82c9; }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
.thumbnail-track { display: flex; gap: 10px; overflow-x: auto; margin-top: 15px; padding-bottom: 10px; scrollbar-width: thin; }
.thumbnail-track::-webkit-scrollbar { height: 8px; }
.thumbnail-track::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.thumbnail { height: 80px; min-width: 120px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s, border 0.2s; border: 3px solid transparent; }
.thumbnail.active, .thumbnail:hover { opacity: 1; border-color: #2c82c9; }

/* =========================================
   3. DONATE PAGE SPECIFIC STYLES
   ========================================= */
.content-container { background: white; max-width: 900px; margin: 40px auto 80px auto; padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; z-index: 1; }
.info-box { background-color: #f8f9fa; border-left: 5px solid #2c82c9; padding: 25px; border-radius: 0 8px 8px 0; margin-bottom: 40px; font-size: 1.05rem; color: #444; }
.info-box h3 { margin-top: 0; color: #0d2c4d; font-size: 1.4rem; }
.info-box p { margin-bottom: 10px; }
.info-box p:last-child { margin-bottom: 0; }
.highlight-text { font-weight: 700; color: #d35400; }
.donation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.donate-card { border: 2px solid #eee; border-radius: 10px; padding: 30px; text-align: center; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.donate-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: #2c82c9; }
.donate-logo { height: 40px; margin-bottom: 20px; opacity: 0.8; }
.donate-card h4 { font-size: 1.4rem; color: #0d2c4d; margin: 0 0 15px 0; }
.donate-card p { font-size: 0.95rem; color: #666; margin-bottom: 25px; min-height: 50px; }
.btn-donate { display: block; width: 100%; box-sizing: border-box; padding: 12px 20px; border-radius: 5px; font-weight: 700; text-transform: uppercase; transition: background 0.2s; }
.btn-zeffy { background-color: #00b289; color: white; }
.btn-zeffy:hover { background-color: #009371; }
.btn-square { background-color: #006aff; color: white; }
.btn-square:hover { background-color: #0056cc; }
.prayer-support { text-align: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; font-style: italic; color: #555; }

/* =========================================
   MOBILE RESPONSIVE SETTINGS (All Pages)
   ========================================= */
@media (max-width: 768px) {
  .hom-hero-card { flex-direction: column; }
  .hom-hero-overlay { position: relative; background: #0d2c4d; }
  .hom-hero-image { height: 250px; flex: none; }
  .hom-stats-bar { flex-direction: column; gap: 20px; }
  .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;}
  .hom-programs-section { grid-template-columns: 1fr; padding: 0; }
  .watermark-left, .watermark-right { display: none; }
  .report-container, .content-container { padding: 30px 20px; margin: 20px; }
  .page-title { font-size: 2rem; }
  .hom-nav { flex-direction: column; gap: 15px; }
  .hom-logo-text { position: static; transform: none; } /* Resets the title for mobile */
  .donation-grid { grid-template-columns: 1fr; }
}

/* =========================================
   4. CAMPAIGN TAB BUTTONS (Zeffy/Square)
   ========================================= */
.campaign-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 20px 0;
  flex-wrap: wrap; /* Keeps them neat on mobile */
}

.tab-btn {
  background-color: #f8f9fa;
  color: #555;
  border: 2px solid #ccc;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.tab-btn:hover {
  border-color: #00b289;
  color: #00b289;
}

/* This styles whichever button is currently selected */
.tab-btn.active {
  background-color: #00b289;
  color: white;
  border-color: #00b289;
}

.campaign-embed-box {
  display: none; /* Hides all of them by default */
  width: 100%; 
  text-align: center; 
  margin: 20px 0 40px 0;
}

/* We force the first one to show up when the page loads */
#medical-embed { display: block; }