/* FAHUZ Support for Vulnerable Groups - Global Standard Humanitarian CSS */

:root {
  --primary: #198754;
  --primary-dark: #0f5132;
  --primary-light: #20c997;
  --primary-subtle: #d1e7dd;
  --primary-gradient: linear-gradient(135deg, #0f5132 0%, #198754 50%, #20c997 100%);
  --secondary-green: #2e7d32;
  --accent-gold: #eab308;
  --dark-text: #1e293b;
  --muted-text: #64748b;
  --light-bg: #f8fafc;
  --mint-bg: #f0fdf4;
  --card-border: #e2e8f0;
  --white: #ffffff;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  background-color: #0b3d26;
  color: #d1fae5;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #d1fae5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #ffffff;
}

.top-bar .badge-cac {
  background-color: rgba(32, 201, 151, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(32, 201, 151, 0.4);
  font-weight: 500;
  border-radius: 20px;
  padding: 4px 10px;
}

/* Navbar */
.navbar-fahuz {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand-logo {
  height: 58px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 81, 50, 0.15);
  object-fit: contain;
}

.navbar-brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.navbar-brand-sub {
  font-size: 0.72rem;
  color: var(--secondary-green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.nav-link {
  font-weight: 600;
  color: #334155 !important;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--mint-bg);
}

.btn-fahuz-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
  transition: all 0.3s ease;
}

.btn-fahuz-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.35);
}

.btn-fahuz-outline {
  background: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 18px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-fahuz-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Page Header / Hero Banners */
.page-hero {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-slider-section {
  position: relative;
  background: #0f2b1c;
  color: white;
}

.hero-slide-item {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 46, 26, 0.95) 0%, rgba(15, 81, 50, 0.85) 50%, rgba(25, 135, 84, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #d1fae5;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Section Headings */
.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted-text);
  font-size: 1.05rem;
  max-width: 720px;
}

/* Stats Counter Section */
.impact-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.impact-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(15, 81, 50, 0.12);
  border-color: var(--primary-subtle);
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--mint-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted-text);
  font-weight: 600;
}

/* Feature & Thematic Cards */
.pillar-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15, 81, 50, 0.1);
  border-color: var(--primary-subtle);
}

.pillar-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Activity Cards */
.activity-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.activity-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #e2e8f0;
}

.activity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-img-wrap img {
  transform: scale(1.06);
}

.activity-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 81, 50, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.activity-photos-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.activity-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-location {
  font-size: 0.85rem;
  color: var(--secondary-green);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.35;
  margin-bottom: 12px;
}

.activity-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.activity-title a:hover {
  color: var(--primary);
}

/* Team Cards */
.team-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 81, 50, 0.1);
  border-color: var(--primary-subtle);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(15, 81, 50, 0.25);
  border: 3px solid #ffffff;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.team-badge {
  display: inline-block;
  background: var(--mint-bg);
  color: var(--secondary-green);
  border: 1px solid var(--primary-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Gallery Grid */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background: #e2e8f0;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 81, 50, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
  text-align: center;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

/* Footer */
.footer-fahuz {
  background: #082819;
  color: #cbd5e1;
  padding: 70px 0 25px;
  position: relative;
  font-size: 0.92rem;
}

.footer-fahuz h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 22px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-fahuz h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-fahuz a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-fahuz a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* Admin Styling */
.admin-sidebar {
  min-height: 100vh;
  background: #0b3d26;
  color: #d1fae5;
  box-shadow: 4px 0 20px rgba(0,0,0,0.05);
}

.admin-sidebar .nav-link {
  color: #a7f3d0 !important;
  padding: 12px 20px !important;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: #157347 !important;
  color: #ffffff !important;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.admin-card-header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 18px 24px;
  font-weight: 700;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
