/* Modern NGO Website Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --text-color: #374151;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Header Styles */
header {
  background: white;
  color: var(--dark-color);
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.top-bar {
  background-color: rgb(14, 39, 108);
  padding: 10px 0;
  font-size: 0.875rem;
  color: white;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info i {
  margin-right: 5px;
  color: var(--accent-color);
}

.contact-info span {
  margin-right: 20px;
  color: white;
}
.social-links a {
  color: white;
  margin-left: 15px;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

.nav-bar {
  padding: 15px 0;
}

.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 small {
  font-size: 0.8rem;
  color: var(--text-color);
  font-weight: normal;
}

.logo p {
  font-size: 0.875rem;
  opacity: 0.9;
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  position: relative;
  height: auto;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: block;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  transition: opacity 0.5s ease;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slide.active {
  display: block;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.about-text h3 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-color);
}

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

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light-color);
  border-radius: 10px;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-color);
}

/* Members Section */
.members {
  padding: 80px 0;
  background-color: var(--light-color);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.member-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.member-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
}

.member-content {
  padding: 25px;
}

.member-content h3 {
  color: var(--dark-color);
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.member-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.member-content p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Works Section */
.works-bg {
  background-color: var(--light-color);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.work-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.work-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.work-content {
  padding: 25px;
}

.work-content h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.work-content p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-item:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gallery-item:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gallery-item:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay i {
  color: white;
  font-size: 3rem;
}

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-section {
  background: var(--light-color);
  padding: 40px;
  border-radius: 10px;
}

.contact-item {
  display: flex;
  align-items: start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-item-content h4 {
  color: var(--dark-color);
  margin-bottom: 5px;
}

.contact-item-content p {
  color: var(--text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: white;
}

.footer-section p,
.footer-section ul {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0;
  text-align: center;
  color: #9ca3af;
}

/* Donate Page Specific */
.donation-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.donation-method {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

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

.donation-method i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.donation-method h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
}

.donation-method p {
  color: var(--text-color);
  margin-bottom: 20px;
}

.amount-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 15px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: var(--dark-color);
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: auto;
    margin: 0;
    padding: 0;
  }

  .slider-nav button {
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-info span {
    display: block;
    margin: 5px 0;
  }

  .logo h1 {
    font-size: 1.2rem;
    gap: 8px;
  }

  .logo img {
    height: 50px !important;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    gap: 10px;
    box-shadow: var(--shadow-lg);
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .amount-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    height: auto;
    margin: 0;
    padding: 0;
  }

  .slider-nav button {
    padding: 6px 10px;
    font-size: 1rem;
  }

  .causes-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .amount-selector {
    grid-template-columns: 1fr;
  }
}

/* ===== Donate Popup Modal ===== */
.donate-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.3s ease;
}

.donate-modal-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.donate-modal {
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.donate-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}

.donate-modal-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.donate-modal-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 30px 30px 25px;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.donate-modal-header i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

.donate-modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.donate-modal-header p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.donate-modal-body {
  padding: 25px 30px 30px;
}

/* Gateway Selector */
.gateway-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.gateway-option {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.gateway-option input[type="radio"] {
  display: none;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s;
  background: #f9fafb;
}

.gateway-card i {
  font-size: 1.6rem;
  color: #6b7280;
  transition: color 0.3s;
}

.gateway-card span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

.gateway-option.active .gateway-card,
.gateway-option input:checked ~ .gateway-card {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.gateway-option.active .gateway-card i,
.gateway-option input:checked ~ .gateway-card i {
  color: #2563eb;
}

/* Gateway Sections */
.gateway-section {
  display: none;
  animation: fadeInSection 0.4s ease;
}

.gateway-section.active {
  display: block;
}

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

/* Cashfree Info */
.cashfree-info {
  text-align: center;
  padding: 25px 20px;
  background: #f0fdf4;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  margin-bottom: 20px;
}

.cashfree-info i {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 12px;
}

.cashfree-info p {
  color: #15803d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Donate Modal Button */
.donate-modal-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-size: 1.05rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-weight: 600;
}

.donate-modal-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.donate-modal-btn i {
  margin-right: 8px;
}

/* PayU Form inside modal */
#payuDonateForm .form-group {
  margin-bottom: 16px;
}

#payuDonateForm .form-group label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#payuDonateForm .form-group label i {
  color: #2563eb;
  font-size: 0.85rem;
}

#payuDonateForm .form-group label small {
  color: #9ca3af;
  font-weight: 400;
}

#payuDonateForm .form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
  background: #f9fafb;
}

#payuDonateForm .form-group input:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quick amount buttons */
.amount-quick-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.quick-amt {
  padding: 8px 4px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  transition: all 0.3s;
}

.quick-amt:hover,
.quick-amt.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .donate-modal {
    width: 95%;
    max-height: 85vh;
  }

  .donate-modal-header {
    padding: 22px 20px 18px;
  }

  .donate-modal-header h2 {
    font-size: 1.3rem;
  }

  .donate-modal-body {
    padding: 20px;
  }

  .amount-quick-btns {
    grid-template-columns: repeat(2, 1fr);
  }
}
