/* AVARTI VIKASH - Trust/NGO Website - White + Light Blue Theme */
:root {
  --white: #ffffff;
  --light-blue: #87ceeb;
  --light-blue-dark: #5eb8e0;
  --light-blue-bg: #e8f4fc;
  --text-dark: #2c3e50;
  --text-muted: #5a6c7d;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(94, 184, 224, 0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Responsive typography */
html { font-size: 16px; }
@media (max-width: 768px) { html { font-size: 15px; } }
@media (max-width: 480px) { html { font-size: 14px; } }

a {
  color: var(--light-blue-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--light-blue); }

/* Header & Nav */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--light-blue-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--light-blue-dark); }
.logo-img { height: 40px; width: auto; vertical-align: middle; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--light-blue);
  color: var(--light-blue-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-dark);
  font-weight: 500;
}
.main-nav a:hover {
  background: var(--light-blue-bg);
  color: var(--light-blue-dark);
}
.main-nav a.active {
  background: var(--light-blue-bg);
  color: var(--light-blue-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--light-blue-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--light-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--light-blue);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--light-blue-dark);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--light-blue);
  color: var(--light-blue-dark);
}
.btn-outline:hover {
  background: var(--light-blue-bg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--light-blue-bg) 0%, var(--white) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Page content */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-blue-bg);
}

/* Cards grid - responsive */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--light-blue-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--light-blue);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light-blue-dark);
  box-shadow: 0 0 0 3px rgba(94, 184, 224, 0.2);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-blue-bg);
}
.data-table th {
  background: var(--light-blue-bg);
  color: var(--text-dark);
  font-weight: 600;
}
.data-table tr:hover td {
  background: rgba(232, 244, 252, 0.5);
}
@media (max-width: 640px) {
  .data-table { font-size: 0.9rem; }
  .data-table th, .data-table td { padding: 0.5rem; }
}

/* Dashboard layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 120px);
}
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}
.sidebar {
  background: var(--light-blue-bg);
  border-radius: var(--radius-lg);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.sidebar a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.sidebar a:hover, .sidebar a.active {
  background: var(--light-blue-bg);
  color: var(--light-blue-dark);
}
.dashboard-main { min-width: 0; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: var(--light-blue-bg); color: var(--text-dark); border: 1px solid var(--light-blue); }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.site-footer a { color: var(--light-blue); }

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }
.hide { display: none !important; }
.download-btn {
  background: var(--light-blue-dark);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition);
}
.download-btn:hover { opacity: 0.9; transform: translateY(-1px); }
