@import url("https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  /* Primary Theme Colors */
  --primary-color: #009e8e; /* Refined Teal */
  --primary-dark: #007e70; /* Deeper Teal */
  --primary-light: #3a4b57; /* Warm Slate Gray */
  --secondary-color: #84a59d; /* Muted Jade (more elegant) */
  --accent-color: #2563eb; /* Rich Professional Blue */
  --accent-light: #60a5fa; /* Softer Accent Blue */

  /* Status Colors */
  --success-color: #22c55e; /* Soft Emerald Green */
  --warning-color: #eab308; /* Golden Yellow */
  --info-color: #06b6d4; /* Calm Cyan */

  /* Text Colors */
  --text-primary: #1f2937; /* Very Dark Gray */
  --text-secondary: #4b5563; /* Medium Gray */
  --text-muted: #9ca3af; /* Muted Gray */

  /* Backgrounds */
  --bg-primary: #ffffff; /* White */
  --bg-secondary: #f9fafb; /* Light Off White */
  --bg-accent: #f1f5f9; /* Very Light Gray */
  --bg-muted: #e0f2f1; /* Light Aqua Tint */
  --bg-light: #f4fdfc; /* Pale Mint */
  --gradient-primary: linear-gradient(135deg, #009e8e 0%, #007e70 100%);
  --gradient-bg: linear-gradient(135deg, #c5f6e9 0%, #a7f3d0 100%);

  /* Borders */
  --border-color: #d1e7e4; /* Subtle Greenish Border */
  --border-accent: #cbd5e1; /* Balanced Gray Border */
  --border-focus: #009e8e; /* Focus Teal */

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 10px 15px rgba(0, 0, 0, 0.08);

  /* Border Radius */
  --border-radius: 12px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  /* background: var(--gradient-bg); */
  min-height: 100vh;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--bg-secondary);
}

/* Flex wrapper for pushing footer down */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
}

/* Main content should expand */
main {
  flex: 1;
  padding: 50px 0 50px;
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Navbar */
.navbar {
  background: #fff !important;
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Navbar Link Styles */
.navbar-nav .nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Hover Background Animation Layer */
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: var(--transition);
}

/* Hover & Active States */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  left: 0;
}

/* Dropdown Item Hover Fix */
.dropdown-item {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  transition: var(--transition);
  border-radius: 6px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 0 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-img {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  /* object-fit: cover; */
  display: block;
  margin: 10px auto;
}

.container {
  min-height: 100%;
}

/* Enhanced Form Styles */
.form-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 10px auto;
}

.form-header {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.1;
}

.form-header h4 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.form-header small {
  opacity: 0.9;
  font-size: 0.875rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.form-body {
  padding: 2.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row.two-columns {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .form-row.two-columns {
    grid-template-columns: 1fr;
  }
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.form-label.required::after {
  content: " *";
  color: var(--primary-color);
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  font-weight: 400;
  background: var(--bg-secondary);
  transition: var(--transition);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgb(220 53 69 / 0.1);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.875rem;
  z-index: 2;
  pointer-events: none;
}

.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  background: var(--bg-secondary);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: var(--bg-primary);
  transform: translateY(-1px);
}

.file-upload.dragover {
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgb(220 53 69 / 0.1);
}

.file-upload input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.file-upload-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.file-upload strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.file-upload p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.file-selected {
  background: #f0fdf4;
  border-color: var(--success-color);
  color: var(--success-color);
}

.submit-btn {
  width: 100%;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn i {
  margin-right: 0.5rem;
}

/* Loading state */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-body {
    padding: 1.5rem;
  }

  .form-header {
    padding: 1.5rem;
  }

  .form-header h4 {
    font-size: 1.5rem;
  }
}

/* Form validation styles */
.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--primary-color);
}

.form-control:valid:not(:placeholder-shown) {
  border-color: var(--success-color);
}

/* Focus trap for better accessibility */
.form-control:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* Alert Styles */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid var(--primary-color);
}
/* Footer styling */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #f1f1f1;
  padding: 40px 0 20px;
  text-align: center;
  margin-top: auto; /* Pushes footer to bottom */
  position: relative;
  z-index: 1;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Footer Text */
footer p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

footer .small {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-body {
    padding: 20px;
  }

  .form-header {
    padding: 20px;
  }

  .main-header h1 {
    font-size: 1.5rem;
  }

  .hero-img {
    height: 200px;
  }

  footer {
    padding: 30px 10px 15px;
  }

  footer .footer-social a {
    font-size: 1rem;
    margin: 0 6px;
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* About Section CSS */
.ab-sec {
  padding:50px 0 50px;
  position: relative;
}

/* Container for content */
.container-custom {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Image styling */
.ab-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ab-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Typography */
.ab-title {
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ab-sub {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.ab-para {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Content wrapper */
.ab-text {
  padding: 2rem 0;
  max-width: 90%;
}

/* Director's signature styling */
.director-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--primary-color);
}

.signature-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.signature-title {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.signature-org {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.signature-website {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0;
}

/* Founder info styling */
.founder-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.founder-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.founder-details {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.founder-details strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Hindi text styling */
.hindi-text {
  font-family: "Hind", sans-serif;
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
}

/* Enhanced spacing and layout */
.row {
  --bs-gutter-x: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .ab-text {
    max-width: 100%;
    padding: 1rem 0;
  }

  .row {
    --bs-gutter-x: 2rem;
  }
}

@media (max-width: 768px) {
  .ab-sec {
    padding: 80px 0;
  }

  .container-custom {
    padding: 0 1rem;
  }

  .ab-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .ab-sub {
    font-size: 1.1rem;
    justify-content: center;
  }

  .ab-para {
    font-size: 1.05rem;
    text-align: left;
  }

  .ab-img {
    height: auto;
    margin-bottom: 2rem;
  }

  .director-signature {
    text-align: center;
    margin-top: 2rem;
  }

  .signature-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .ab-title {
    font-size: 1.9rem;
  }

  .ab-sec {
    padding: 60px 0;
  }

  .ab-text {
    padding: 0.5rem 0;
  }

  .ab-img {
    height: 250px;
  }

  .ab-para {
    font-size: 1rem;
  }

  .container-custom {
    padding: 0 1rem;
  }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section spacing improvements */
.ab-sec + .ab-sec {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.img-icon {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto; /* ensures horizontal centering */
}

.donation-wrapper {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  position: relative;
  font-family: "Hind", serif;
}

.donation-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  padding: 3rem;
}
.main-content2 {
  display: grid;
  grid-template-columns: 1fr;
  padding: 3rem;
}

/* Left Content */
.content-section {
  max-width: 100%;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.main-title i {
  color: var(--accent-color);
}

.subtitle {
  background: var(--bg-accent);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.section-heading.first {
  margin-top: 0;
}

.content-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list i {
  color: var(--accent-color);
  margin-top: 2px;
  font-size: 0.9rem;
}

.features-list i.fa-pen-nib {
  color: var(--primary-color);
}

/* Fixed contact info alignment */
.contact-info p {
  margin: 0;
  line-height: 2.2;
}

.contact-info p > * {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.contact-info i {
  color: #007bff;
  width: 20px;
  margin-right: 12px;
  text-align: center;
  flex-shrink: 0;
}

.contact-info a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #007bff;
}

/* Alternative: Better structured version */
.contact-info-improved {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.contact-info-improved .section-heading {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.contact-info-improved .section-heading i {
  color: #007bff;
  font-size: 1.2em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 8px 0;
}

.contact-item i {
  color: #007bff;
  width: 24px;
  margin-right: 15px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1em;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-item a:hover {
  color: #007bff;
}

/* Right Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-card,
.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.form-card:hover,
.qr-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Styling */
.donation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #c53030 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

/* QR Code Section */
.qr-container {
  text-align: center;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border: 3px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.qr-card {
  max-width: 600px;
}
.qr-card:hover .qr-code-img {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.qr-title {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.qr-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.qr-url {
  background: var(--bg-accent);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
}

/* Footer */
.footer {
  background: var(--bg-accent);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.last-updated {
  color: var(--accent-color);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .main-content2 {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .main-title {
    font-size: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer {
    padding: 1.5rem;
  }

  .qr-code-img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem 1rem;
  }

  .form-card,
  .qr-card {
    padding: 1.5rem;
  }

  .main-title {
    font-size: 1.75rem;
  }
}

/* Animation */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table UI */
/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Professional Header */

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.header-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Filter Section */
.filter-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.filter-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section h4 i {
  color: var(--primary-color);
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 158, 142, 0.1);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 1.5rem 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-title h1 {
    font-size: 1.5rem;
  }

  .header-stats {
    gap: 1rem;
  }

  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .member-detail-card img {
    height: 150px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation */
.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Styling */
.alert {
  margin: 1.5rem 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--success-color);
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--warning-color);
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--danger-color);
}

/* Table Container */
.table-container {
  padding: 0;
  margin: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modern Table */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  background: var(--bg-primary);
}

.modern-table thead {
  background: var(--bg-secondary);
}

.modern-table thead th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.modern-table tbody tr:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 158, 142, 0.1);
}

.modern-table tbody tr:last-child {
  border-bottom: none;
}

.modern-table tbody td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.modern-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Modern Button Design */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  min-width: fit-content;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-warning-modern {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.btn-warning-modern:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-success-modern {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-success-modern:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary-modern {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #007e70 0%, #006b5d 100%);
  box-shadow: 0 8px 25px rgba(0, 158, 142, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .members-header {
    padding: 1rem 1.5rem;
  }

  .members-header h4 {
    font-size: 1.1rem;
  }

  .alert {
    margin: 1rem 1.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .btn-modern {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  /* Stack table on mobile */
  .table-responsive {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .btn-modern {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Badge for count */
.count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Member Card */

.members-section {
  margin-bottom: 2rem;
}

.members-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.members-header h4 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Member Cards */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.member-detail-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.member-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary-color);
}

.member-detail-card img {
  width: 100%;
  height: 300px; /* or a max-height if needed */
  object-fit: contain; /* shows full image without cropping */
  border-bottom: 2px solid var(--bg-muted);
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.card-text strong {
  color: var(--text-primary);
  margin-right: 0.25rem;
  min-width: 45px;
}

.no-members {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.no-members i {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

/* Member Details Card */
/* Base Header Style - common for all */
.page-header {
  background: var(--bg-primary);
  border-bottom: 3px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  color: var(--text-color, #333); /* optional */
}

/* Default spacing (Professional Header) */
.page-header.spaced {
  margin-bottom: 2rem;
}

/* Member Details Header Variant */
.page-header.member-style {
  margin: -2rem -2rem 2rem -2rem;
  padding: 2rem;
}

/* Another Variant (e.g., Compact View) */
.page-header.compact {
  margin: -1rem -1rem 1rem -1rem;
  padding: 1.5rem 1rem;
}

.header-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.header-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

/* Main Content */
.member-detail-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.member-detail-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.member-detail-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.card-header {
  background: var(--bg-light);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-image {
  width: 80px !important;
  height: 80px !important;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--primary-color);
}
.qr-code-image {
  width: 80px !important;
  height: 80px !important;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.member-basic-info {
  flex: 1;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.member-id {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-body {
  padding: 2rem;
}

.info-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
  transition: var(--transition);
}

.info-item:hover {
  background: var(--bg-muted);
}

.info-icon {
  color: var(--primary-color);
  font-size: 1rem;
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.info-value {
  color: var(--text-primary);
  font-weight: 400;
}

.info-value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.info-value a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.action-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-back:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-back i {
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .page-header {
    margin: -1rem -1rem 1rem -1rem;
    padding: 1.5rem 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-title h1 {
    font-size: 1.5rem;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
  }

  .member-image {
    width: 100px;
    height: 100px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .info-icon {
    margin-bottom: 0.25rem;
  }
}

/* Animation */
.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
