/* Al-Hidaya Home Styles - Clean, validated, exact colors by category */
:root {
  --bg: #f8faf6;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --brand: #7c8737;
  --brand2: #5f6b26;
  --accent: #cb6d28;
  --accent2: #28a745;
  --line: #e5ead5;
  --soft: #f3f6ea;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  /* Gradient palette mapped to categories */
  --gradient1: linear-gradient(135deg, #7c8737 0%, #5f6b26 100%);
  /* sponsorship + hero */
  --gradient2: linear-gradient(135deg, #cb6d28 0%, #a8571b 100%);
  /* financial */
  --gradient3: linear-gradient(135deg, #28a745 0%, #198754 100%);
  /* educational */
  --gradient4: linear-gradient(135deg, #6f8f3d 0%, #28a745 100%);
  /* food */
  --gradient5: linear-gradient(135deg, #9aa348 0%, #cb6d28 100%);
  /* seasonal */
  --gradient6: linear-gradient(135deg, #4f6f2a 0%, #7c8737 100%);
  /* religious */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --brand: #f8fafc;
  --brand2: #e2e8f0;
  --line: #334155;
  --soft: #1e293b;
}

html,
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(95, 107, 38, .96) 0%, rgba(124, 135, 55, .9) 52%, rgba(203, 109, 40, .78) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: .3;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='.22'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='.04'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none'%3E%3Cpath d='M120 720c120-120 220-170 360-130 92 26 147 78 233 78 102 0 167-75 262-99 159-40 290 20 503 189' stroke='url(%23g)' stroke-width='16' stroke-linecap='round'/%3E%3Cpath d='M180 618c65-22 110-78 132-141 47 64 98 102 169 128 89 33 207 42 320 0 94-35 151-91 202-169 47 76 99 122 183 165 98 50 181 55 296 44' stroke='rgba(255,255,255,.18)' stroke-width='10' stroke-linecap='round'/%3E%3Ccircle cx='1245' cy='210' r='118' fill='rgba(255,255,255,.07)'/%3E%3Ccircle cx='1120' cy='255' r='54' fill='rgba(255,255,255,.09)'/%3E%3Ccircle cx='320' cy='190' r='72' fill='rgba(255,255,255,.06)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: .6;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

.hero-logo {
  width: clamp(90px, 12vw, 140px);
  height: auto;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25));
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: .9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-inline: auto;
  animation: fadeInUp 1s ease .2s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease .4s both;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  justify-content: center;
}

.btn-primary {
  background: var(--gradient1);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--line);
}

/* Categories */
.categories-section {
  margin: -80px auto 60px;
  position: relative;
  z-index: 10;
  max-width: 1400px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  color: var(--brand);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(243, 246, 234, .95) 100%);
  border: 1px solid rgba(124, 135, 55, .16);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: none;
}

.section-header p {
  font-size: 1.2rem;
  opacity: 1;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.category-card {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: .4s;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .2);
  border-color: rgba(255, 255, 255, .3);
}

/* Full badge */
.category-card .full-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.category-header {
  height: 220px;
  background: var(--gradient1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  padding: 30px;
}

.category-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .45s ease;
}

.category-card:hover .category-media img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .48) 100%);
}

/* Exact gradient mapping by category */
.category-card[data-category="sponsorship"] .category-header {
  background: var(--gradient1);
}

.category-card[data-category="financial"] .category-header {
  background: var(--gradient2);
}

.category-card[data-category="educational"] .category-header {
  background: var(--gradient3);
}

.category-card[data-category="food"] .category-header {
  background: var(--gradient4);
}

.category-card[data-category="seasonal"] .category-header {
  background: var(--gradient5);
}

.category-card[data-category="religious"] .category-header {
  background: var(--gradient6);
}

.category-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="3" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.category-icon {
  font-size: 5rem;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, .9);
  transition: .3s;
  position: relative;
  z-index: 3;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.category-subtitle {
  font-size: 1rem;
  opacity: .9;
  position: relative;
  z-index: 3;
}

.category-content {
  padding: 35px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.category-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.category-stat {
  background: linear-gradient(135deg, var(--soft), rgba(124, 135, 55, .08));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: .3s;
}

.category-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Progress */
.category-progress {
  margin-bottom: 25px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-percentage {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.progress-bar-container {
  height: 12px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient1);
  border-radius: 10px;
  transition: width 2s ease;
  position: relative;
}

/* Progress color by category */
.category-card[data-category="sponsorship"] .progress-bar-fill {
  background: var(--gradient1);
}

.category-card[data-category="financial"] .progress-bar-fill {
  background: var(--gradient2);
}

.category-card[data-category="educational"] .progress-bar-fill {
  background: var(--gradient3);
}

.category-card[data-category="food"] .progress-bar-fill {
  background: var(--gradient4);
}

.category-card[data-category="seasonal"] .progress-bar-fill {
  background: var(--gradient5);
}

.category-card[data-category="religious"] .progress-bar-fill {
  background: var(--gradient6);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  animation: shimmer 3s infinite;
}

.category-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.btn-register {
  background: var(--gradient1);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 16px 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 2;
  text-decoration: none;
}

/* Button color by category */
.category-card[data-category="sponsorship"] .btn-register {
  background: var(--gradient1);
}

.category-card[data-category="financial"] .btn-register {
  background: var(--gradient2);
}

.category-card[data-category="educational"] .btn-register {
  background: var(--gradient3);
}

.category-card[data-category="food"] .btn-register {
  background: var(--gradient4);
}

.category-card[data-category="seasonal"] .btn-register {
  background: var(--gradient5);
}

.category-card[data-category="religious"] .btn-register {
  background: var(--gradient6);
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-register[disabled] {
  opacity: .7;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
  transform: none;
}

.btn-explore {
  background: var(--soft);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  text-decoration: none;
}

.btn-explore:hover {
  background: var(--line);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient1);
}

.stat-card.gradient2::before {
  background: var(--gradient2);
}

.stat-card.gradient3::before {
  background: var(--gradient3);
}

.stat-card.gradient4::before {
  background: var(--gradient4);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-card .stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Projects overview */
.projects-section {
  margin: 60px 0;
  padding: 40px 0;
  background: var(--soft);
  border-radius: 24px;
}

.projects-overview {
  text-align: center;
  padding: 60px 40px;
}

.overview-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--brand);
}

.overview-description {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.7;
}

.overview-action {
  background: var(--gradient1);
  color: #fff;
  border: 0;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.overview-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Search */
.search-page {
  padding-bottom: 48px;
}

.search-header {
  background: linear-gradient(135deg, rgba(95, 107, 38, .95) 0%, rgba(124, 135, 55, .92) 50%, rgba(203, 109, 40, .78) 100%);
  padding: 34px 0 28px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(95, 107, 38, .16);
}

.search-container {
  display: grid;
  gap: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input,
.filter-group select,
.range-inputs input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(124, 135, 55, .18);
  background: rgba(255, 255, 255, .96);
  padding: 12px 16px;
  font-size: 1rem;
}

.search-btn,
.advanced-search-toggle,
.page-btn {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: .25s ease;
}

.search-btn {
  min-width: 56px;
  background: #cb6d28;
  color: #fff;
}

.advanced-search-toggle {
  justify-self: start;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
}

.advanced-filters {
  padding: 20px 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand2);
  font-weight: 700;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.filter-actions,
.search-results-header,
.project-actions,
.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-actions,
.search-results-header,
.pagination {
  justify-content: space-between;
}

.filter-actions {
  margin-top: 14px;
}

.search-results-header {
  margin: 28px 0 18px;
}

.search-results-header h2 {
  color: var(--brand);
  margin: 0;
}

.search-results-header p {
  color: var(--muted);
  margin: 0;
}

.search-page .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.search-page .project-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.search-page .project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.search-page .project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gradient1);
}

.search-page .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .3s ease;
}

.search-page .project-card:hover .project-image img {
  transform: scale(1.07);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .5) 100%);
  z-index: 1;
}

.project-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.search-page .project-content {
  padding: 20px;
}

.search-page .project-title {
  margin: 0 0 14px;
  color: var(--brand2);
  font-size: 1.3rem;
}

.search-page .project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.search-page .stat-item {
  background: linear-gradient(135deg, #fff, var(--soft));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.search-page .stat-value {
  font-weight: 800;
  color: var(--brand);
}

.stat-label-sm {
  margin-top: 4px;
  font-size: .85rem;
  color: var(--muted);
}

.search-page .progress-container {
  margin-bottom: 16px;
}

.search-page .progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.search-page .progress-bar {
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.search-page .progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #7c8737 0%, #cb6d28 100%);
  border-radius: inherit;
}

.search-page .project-actions {
  justify-content: space-between;
}

.search-page .project-actions .btn {
  flex: 1;
}

.no-results,
.loading {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.pagination {
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand2);
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
  background: var(--gradient1);
  color: #fff;
}

.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Modal (present but optional) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 20px;
}

.modal-content {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
}

.modal-header {
  background: var(--gradient1);
  color: #fff;
  padding: 30px;
  border-radius: 24px 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.modal-header p {
  margin: 0;
  opacity: .9;
  font-size: 1.1rem;
}

.modal-header button {
  background: rgba(255, 255, 255, .2);
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: .3s;
}

.modal-header button:hover {
  background: rgba(255, 255, 255, .3);
}

.modal-body {
  padding: 35px;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .3s;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 135, 55, .12);
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.info-section {
  background: var(--soft);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.info-section h4 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.1rem;
}

.info-section ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.form-actions button {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-actions button[type="button"] {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.form-actions button[type="submit"] {
  border: 0;
  background: var(--gradient1);
  color: #fff;
  flex: 2;
}

.form-actions button:hover {
  transform: translateY(-2px);
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50px;
  padding: 10px 15px;
  color: #fff;
  cursor: pointer;
  transition: .3s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .3);
}

.floating-whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(18, 140, 126, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* ======================================================
   HERO HEADER + SWIPER SLIDER
   ====================================================== */
.hero-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.hero-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12));
}

.hero-logo-fallback {
  align-items: center;
  gap: 8px;
}

.hero-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.hero-title-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand, #7c8737);
  font-family: 'Cairo', sans-serif;
}

.hero-title-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted, #888);
  letter-spacing: 0.01em;
}

/* Swiper Hero Slider */
.hero-slider {
  width: 100%;
  height: 55vh;
  min-height: 340px;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.heroSwiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(95, 107, 38, .75) 0%, rgba(40, 40, 40, .55) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 700px;
}

.hero-slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.hero-slide-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 20px;
  opacity: .92;
}

.hero-slide-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(203, 109, 40, .4);
  transition: transform .2s, box-shadow .2s;
}

.hero-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(203, 109, 40, .5);
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

@media (max-width: 640px) {
  .hero-slider {
    height: 45vh;
    min-height: 260px;
  }
}


.floating-whatsapp i {
  font-size: 1.5rem;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(18, 140, 126, .34);
}

/* Utilities */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .category-card {
    min-height: 480px;
  }

  .category-header {
    height: 180px;
    padding: 25px 20px;
  }

  .category-icon {
    font-size: 4rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .category-content {
    padding: 25px;
  }

  .category-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-register,
  .btn-explore {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    gap: 20px;
  }

  .category-card {
    min-height: 450px;
  }

  .category-header {
    height: 160px;
    padding: 20px;
  }

  .category-icon {
    font-size: 3.5rem;
  }

  .category-title {
    font-size: 1.3rem;
  }

  .category-content {
    padding: 20px;
  }

  .category-stats {
    gap: 12px;
  }

  .category-stat {
    padding: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin: 10px;
    display: inline-block;
  }

  .modal-dialog {
    padding: 10px;
  }

  .modal-content {
    max-width: 95vw;
  }
}

/* Blazor error UI */
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
  display: none;
  left: 0;
  padding: .6rem 1.25rem .7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: .75rem;
  top: .5rem;
}