/* ============================================================
   IMPORTS
============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap");

/* ============================================================
   GLOBAL RESET
============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  background: #f7f5f2;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
}

/* ============================================================
   CSS VARIABLES
============================================================ */

:root {
  --gold: #c0873f;
  --gold-light: #e8d5a3;
  --gold-faint: #c0873f22;
  --blue: #4e7bdb;
  --green: #07a072;
  --ink: #1a1815;
  --paper: #f7f5f2;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ============================================================
   GLOBAL SECTION
============================================================ */

section {
  width: 100%;
  padding: 3rem;
}

/* ============================================================
   DIVIDER
============================================================ */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c0873f66, transparent);
}

.divider-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid #c0873f44;
  border-radius: 999px;
}

/* ============================================================
   HEADER & NAVIGATION
============================================================ */

header {
  display: flex;
  height: 80px;
  width: 100%;
  padding: 0 2rem;
  background: transparent;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease-in-out;
  z-index: 100;
  gap: 3rem;
  position: fixed;
}

header.active {
  background: var(--white);
}

/* ============================================================
   LOGO
============================================================ */

.logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  padding: 0.6rem;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(192, 135, 63, 0.35),
    0 0 10px rgba(192, 135, 63, 0.25), 0 0 18px rgba(192, 135, 63, 0.18);
  transition: 0.3s ease;
}

.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   BUTTONS
============================================================ */

.header-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.login-btn {
  text-decoration: none;
  width: 100px;
}

.login-btn button {
  width: 100%;
  padding: 0.5rem 0;
  background: #007bff;
  color: var(--white);
  margin: auto;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: large;
  font-weight: bold;
  transition: background 0.4s ease;
  cursor: pointer;
}

.donate-btn {
  width: 200px;
  padding: 0.5rem 0;
  background: var(--gold);
  color: var(--white);
  margin: auto;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: large;
  font-weight: 550;
  transition: background 0.4s ease;
  text-decoration: none;
  cursor: pointer;
}

.donate-btn:hover {
  background: #a06828;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-size: large;
  padding: 0.5rem;
  transition: 0.4s;
  font-weight: bold;
}

/* ============================================================
   HERO
============================================================ */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero {
  position: relative;
  background-image: url("/images/home-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.home-hero * {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 60vh;
}

.hero-txt {
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

/* ============================================================
   HOME PROJECTS SECTION
============================================================ */

.home-projects-section {
  padding: 60px;
  background: var(--paper);
  overflow: hidden;
}

.home-projects-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  justify-content: flex-start;
  gap: 1.8rem;
  flex-wrap: nowrap;
  margin: 2.5rem 0;
  width: 100%;
}

.projects-wrapper {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.project-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e8e0d4;
  background: #fff;
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 2;
}

.project-scroll-btn.ps-left {
  left: -10px;
}
.project-scroll-btn.ps-right {
  right: -10px;
}

.project-scroll-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.home-project-card {
  position: relative;
  width: 400px;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  flex: 0 0 auto;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.home-project-card:hover {
  box-shadow: 0 0 8px #4e7bdb, 0 0 20px #4e7bdb55, 0 0 40px #4e7bdb22;
  border: 1px solid var(--blue);
  transform: translateY(-5px);
}

.home-project-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.home-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
}

.home-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.75) 70%,
    rgba(0, 0, 0, 0.92) 100%
  );
  z-index: 2;
}

.home-card-top {
  display: flex;
  justify-content: flex-end;
}

.home-card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(78, 123, 219, 0.85);
  padding: 5px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-project-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-card-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-card-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.home-card-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--blue), var(--green));
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-card-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.home-donate-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-project-card:hover .home-donate-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HOME NEWS SECTION
============================================================ */

.home-news-section {
  padding: 60px;
  background: var(--paper);
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2rem;
}

.home-news-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.home-news-card.featured {
  grid-row: 1 / 3;
}
.home-news-card.featured .home-news-img-wrapper {
  height: 340px;
}
.home-news-card.featured .home-news-title {
  font-size: 1.5rem;
}
.home-news-card.featured .home-news-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 4;
}

.home-news-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.home-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-news-card:hover .home-news-img {
  transform: scale(1.06);
}

.home-news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
}

.home-news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.home-news-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.home-news-meta i {
  color: var(--gold);
}

.home-news-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: gap 0.25s ease, color 0.25s ease;
  letter-spacing: 0.3px;
}

.home-news-readmore:hover {
  gap: 12px;
  color: #a06828;
}
.home-news-readmore i {
  font-size: 11px;
  transition: transform 0.25s ease;
}
.home-news-readmore:hover i {
  transform: translateX(3px);
}

.home-news-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.view-all-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.view-all-news-btn:hover {
  background: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 135, 63, 0.35);
}

/* ============================================================
   TESTIMONIALS
============================================================ */

.testimonials {
  padding: 4rem 2rem;
  background: #eef2fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonial-card {
  max-width: 350px;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 12px 30px;
}

.testimonial-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-card h3 {
  color: var(--blue);
  font-size: 1.1rem;
}

.quote-icon {
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  color: #c0873f22;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 20px;
  font-weight: 700;
}

/* ============================================================
   IMPACT STATS
============================================================ */

.impact-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  background: var(--ink);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #c0873f22;
  border: 1px solid #c0873f44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 12px;
  color: #7a7060;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ============================================================
   GET INVOLVED
============================================================ */

.get-involved {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.get-involved h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.get-involved p {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.6;
  opacity: 0.9;
}

.get-involved-btn {
  margin-top: 1rem;
  width: 240px;
  height: 55px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--white);
  color: var(--green);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
}

.get-involved-btn:hover {
  background: #e6f7f1;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   EMPTY STATES
============================================================ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #f9fafb;
  border-radius: var(--radius);
  margin: 40px auto;
  max-width: 600px;
}

.empty-state i {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 20px;
  display: block;
}

.empty-state p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.empty-state .get-involved-btn {
  margin: 20px auto 0;
}

/* ============================================================
   STATUS BADGES
============================================================ */

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
}

.status-badge.success {
  background: #d1fae5;
  color: #065f46;
}
.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}
.status-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================================================
   LOADING STATE
============================================================ */

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.loading-state i {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.fa-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   PROFILE BUTTON & AVATAR
============================================================ */

.user-profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.profile-btn h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.profile-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.avator {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
}

.avator i {
  font-size: 1.5rem;
}

/* ============================================================
   PROFILE MODAL
============================================================ */

.profile-modal {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 500px;
  background: var(--white);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}

.profile-modal.active {
  transform: translateX(0);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  color: #1f2937;
}

.close-modal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--border);
  color: #1f2937;
}

/* ============================================================
   PROFILE TABS
============================================================ */

.profile-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #667eea;
}
.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* ============================================================
   PROFILE MODAL SECTIONS
============================================================ */

.modal-section {
  display: none;
  padding: 1rem;
}
.modal-section.active {
  display: block;
}

.overview-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
}

.overview-card-header {
  text-align: center;
  padding: 40px 30px;
  color: var(--white);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.large-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.user-details h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
}
.user-details p {
  margin: 0 0 10px 0;
  opacity: 0.9;
}

.role {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px;
}

.stat-card {
  text-align: center;
}

.stat-card i {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  color: #667eea;
  background: #f3f4f6;
}

.stat-info h4 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #1f2937;
}
.stat-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   DONATIONS (PROFILE)
============================================================ */

.donations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.donations-header h2 {
  margin: 0;
}
.filter-buttons {
  display: flex;
  gap: 5px;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}
.filter-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: var(--white);
}

.donations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.donation-card {
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  background: #f9fafb;
  transition: var(--transition);
}

.donation-card:hover {
  background: #f3f4f6;
  transform: translateX(5px);
}

.donation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  padding: 1rem 0;
}

.donation-card-header h4 {
  margin: 0;
  font-size: 25px;
  color: #1f2937;
}
.donation-amount {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
}

.donation-details {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.donation-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   SETTINGS (PROFILE)
============================================================ */

.setting-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.setting-form h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
}
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: var(--white);
  background: #667eea;
  cursor: pointer;
  transition: var(--transition);
}

.save-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.settings-form hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ============================================================
   LOGOUT BUTTON
============================================================ */

.logout-btn {
  width: 100%;
  padding: 12px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.logout-btn:hover {
  background: #fecaca;
}

/* ============================================================
   MESSAGE MODALS
============================================================ */

.message-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.message-content {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: slideUp 0.3s ease-out;
}

.message-content.success,
.message-content.error {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-content i {
  font-size: 70px;
}
.message-content.success i {
  color: #10b981;
}
.message-content.error i {
  color: #ef4444;
}
.message-content h2 {
  margin: 0;
  color: #1f2937;
}
.message-content p {
  margin: 0;
  color: var(--muted);
}

.ok-btn {
  padding: 12px 40px;
  background: #667eea;
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ok-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   FOOTER
============================================================ */

footer {
  background: #1a1a1a;
  width: 100%;
  color: var(--white);
}
.footer-top {
  display: flex;
  padding: 4rem 3rem;
  gap: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  flex: 1.8;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.footer-logo .logo-brand-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  display: block;
  line-height: 1.2;
}

.footer-logo .logo-brand-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.7;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links i {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
  border-radius: 50%;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover i {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
}

.footer-col {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 0.3rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: #d0d0d0;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-col ul li span {
  color: #d0d0d0;
  font-size: 0.9rem;
}

.footer-cta-col {
  flex: 1.2;
  min-width: 200px;
}

.footer-cta-col p {
  font-size: 0.88rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  background: var(--gold);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-bottom: 1.5rem;
}

.footer-cta-btn:hover {
  background: #a06828;
  transform: translateY(-2px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #a0a0a0;
  margin: 0;
}
.footer-contact p i {
  color: var(--gold);
  font-size: 0.85rem;
  width: 16px;
}

.footer-bottom {
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}
.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: #a0a0a0;
}
.footer-links span {
  color: #444;
}

/* ============================================================
   MEDIA QUERIES
============================================================ */

@media (min-width: 1200px) {
  header.active .profile-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
  }
  header.active .profile-btn:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.08);
  }
  header.active .avator i {
    color: var(--ink);
  }
  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: 8px solid var(--gold);
    border-radius: 10px;
  }
  nav {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  .navigation-btn,
  .close-btn {
    display: none;
  }
}

@media (max-width: 1200px) {
  header {
    justify-content: space-between;
  }
  header.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #1a1a2e;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #16213e;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
  }

  nav.active {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
    position: relative;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a {
    display: block;
    padding: 14px 5px;
    font-weight: 600;
    color: #c9d1d9;
  }
  .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .header-btns {
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .donate-btn,
  .login-btn {
    width: 100%;
  }

  .navigation-btn {
    display: block;
    cursor: pointer;
    width: 50px;
  }
  .navigation-btn i {
    font-size: 2rem;
    color: white;
  }
  .close-btn {
    position: absolute;
    right: 8px;
    top: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
  }
  
  .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
  .project-scroll-btn {
    display: none;
  }
}

@media (max-width: 1024px) {
  .home-news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-news-card.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .home-news-card.featured .home-news-img-wrapper {
    height: 260px;
  }
}

@media (max-width: 768px) {
  /* Projects */
  .home-projects-section {
    padding: 40px 16px;
  }
  .home-projects-container {
    gap: 1rem;
    width: 100%;
  }
  .projects-wrapper {
    width: 100%;
  }
  .home-project-card {
    width: 250px;
    height: 300px;
  }
  .home-project-title {
    font-size: 16px;
  }
  .home-card-amounts {
    font-size: 11px;
  }

  /* News */
  .home-news-section {
    padding: 40px 16px;
  }
  .home-news-img-wrapper {
    height: 160px;
  }
  .home-news-body {
    padding: 14px 16px 18px;
    gap: 8px;
  }
  .home-news-title {
    font-size: 1rem;
  }
  .home-news-excerpt {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  /* Testimonials */
  .testimonials {
    padding: 3rem 1.5rem;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 1.5rem;
  }
  .testimonial-card p {
    font-size: 0.9rem;
  }

  /* Get involved */
  .get-involved h1 {
    font-size: 2rem;
  }
  .get-involved p {
    font-size: 1rem;
  }
  .get-involved-btn {
    width: 200px;
    height: 48px;
    font-size: 1rem;
  }

  /* Impact stats */
  .stat h2 {
    font-size: 2rem;
  }
  .impact-stats {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }

  /* Profile */
  .profile-modal {
    width: 100%;
  }

  /* Footer */
  .footer-top {
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .footer-bottom {
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    flex: 1 1 100%;
  }
  .footer-col {
    flex: 1 1 45%;
    min-width: 140px;
  }
}

@media (max-width: 640px) {
  .home-news-section {
    padding: 40px 20px;
  }
  .home-news-grid {
    grid-template-columns: 1fr;
  }
  .home-news-card.featured .home-news-img-wrapper {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .home-project-card {
    width: 240px;
    height: 280px;
  }
  .home-project-title {
    font-size: 14px;
  }
  .home-card-amounts {
    font-size: 10px;
  }
  .home-news-img-wrapper {
    height: 140px;
  }
  .home-news-title {
    font-size: 0.95rem;
  }
  .footer-col {
    flex: 1 1 100%;
  }
}
