/* ==========================================================================
   MANUSATHKAMA CHARITY DESIGN SYSTEM
   Sri Lanka Inspired Palette & Modern Responsive UI
   Primary Colors: Deep Blue (#0B4F8C), Warm Orange (#F28C28), Green Accent (#10B981)
   Typography: Poppins & Inter
   ========================================================================== */

:root {
  --primary-blue: #0B4F8C;
  --primary-blue-hover: #083C6C;
  --warm-orange: #F28C28;
  --warm-orange-hover: #D97517;
  --success-green: #10B981;
  --success-green-soft: #E6F4EA;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(11, 79, 140, 0.05);
  --shadow-md: 0 10px 25px rgba(11, 79, 140, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 79, 140, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.25;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--warm-orange);
}

/* Header & Navbar */
.top-bar {
  background-color: var(--primary-blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #FFFFFF;
}

.top-bar a:hover {
  color: var(--warm-orange);
}

.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  sticky: top;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-blue), var(--warm-orange));
  color: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(242, 140, 40, 0.3);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue) !important;
  background-color: rgba(11, 79, 140, 0.08);
}

/* Custom Buttons */
.btn-custom-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 14px rgba(11, 79, 140, 0.25);
  transition: all 0.3s ease;
}

.btn-custom-primary:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 79, 140, 0.35);
}

.btn-custom-orange {
  background-color: var(--warm-orange);
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--warm-orange);
  box-shadow: 0 4px 14px rgba(242, 140, 40, 0.3);
  transition: all 0.3s ease;
}

.btn-custom-orange:hover {
  background-color: var(--warm-orange-hover);
  border-color: var(--warm-orange-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 140, 40, 0.4);
}

.btn-custom-outline {
  background-color: transparent;
  color: var(--primary-blue);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(11, 79, 140, 0.95), rgba(11, 79, 140, 0.8)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #FFFFFF;
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-light);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-badge {
  background: rgba(242, 140, 40, 0.2);
  border: 1px solid var(--warm-orange);
  color: var(--warm-orange);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-bottom: 35px;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Section Styling */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 50px;
}

/* Statistics Counter Cards */
.stats-container {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 55px;
  height: 55px;
  background: rgba(11, 79, 140, 0.08);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Value / Transparency Cards */
.value-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--warm-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.15), rgba(11, 79, 140, 0.15));
  color: var(--warm-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.project-card:hover .project-img-box img {
  transform: scale(1.06);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-blue);
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-active {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
}

.status-completed {
  background: rgba(100, 116, 139, 0.9);
  color: #FFFFFF;
}

.project-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.progress-container {
  margin-bottom: 15px;
}

.custom-progress-bar {
  height: 10px;
  background-color: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--warm-orange));
  border-radius: var(--radius-pill);
  transition: width 1s ease-in-out;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

/* How It Works Steps */
.step-card {
  text-align: center;
  position: relative;
  padding: 20px 10px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--warm-orange);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(242, 140, 40, 0.4);
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  color: rgba(11, 79, 140, 0.15);
  margin-bottom: 10px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

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

/* Filter Pill Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(11, 79, 140, 0.2);
}

/* Donation Page Components */
.donation-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.amount-btn {
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--warm-orange);
  background: rgba(242, 140, 40, 0.08);
  color: var(--warm-orange);
}

/* Transparency Tables & Receipt Links */
.table-custom {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom th {
  background: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 14px 18px;
}

.table-custom td {
  padding: 14px 18px;
  vertical-align: middle;
}

/* Footer */
.footer {
  background: #062846;
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 25px;
}

.footer h5 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--warm-orange);
  padding-left: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .stats-container {
    margin-top: 20px;
  }
}
