* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #fc6e62;
  --secondery-color: #eb5b4e;
  --light-gray: #f9f9f9;
}
body {
  font-family: Arial, sans-serif;
}

.container {
  padding-right: 40px;
  padding-left: 40px;
  margin-right: auto;
  margin-left: auto;
}
/* Navbar */

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fc6e62;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  color: #444;
  font-weight: 500;
  padding: 8px 15px;
}

.nav-links a:not(.login):not(.register):hover {
  color: var(--secondery-color, #eb5b4e);
  transform: scale(1.1);
}

.nav-links .register {
  border: 1px solid #fc6e62;
  color: #fc6e62;
}

.nav-links .register:hover {
  background-color: #fc6e62;
  color: white;
}

.nav-links .login {
  background-color: #fc6e62;
  color: white;
}

.nav-links .login:hover {
  background-color: var(--secondery-color, #eb5b4e);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 20px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #f8f9fa;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: right;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

.campaigns-list {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#campaigns-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 70px;
}

.campaign-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  text-align: center;
}

.campaign-card:hover {
  transform: translateY(-5px);
}

.campaign-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.campaign-card-content {
  padding: 1rem;
}

.hero {
  margin: 50px auto;
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(to left, #faccc1, #e6dbd9);
  border-radius: 5px;
  text-align: center;
}

.hero h5 {
  font-size: 26px;
  text-transform: capitalize;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 16px;
  color: #6c6b6b;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.content img {
  width: 100%;
  max-width: 700px;
  height: 435px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-box {
  max-width: 700px;
  text-align: center;
}

.text-box h2 {
  font-size: 22px;
  margin: 15px;
  color: #222;
}

.text-box p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.buttons .btn-primary a {
  text-decoration: none;
  color: #ccc;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondery-color);
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #fc6e62;
}
.btn-secondary a {
  text-decoration: none;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #f7f7f7;
}

.avatars {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
  }

  .hero h5 {
    font-size: 22px;
  }

  .text-box h2 {
    font-size: 20px;
  }

  .text-box p {
    font-size: 14px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

.card-text {
  padding: 50px 0;
  text-align: center;
}
.card-text h4 {
  margin: 20px 0;
  font-size: 24px;
  text-transform: uppercase;
}
.card-text p {
  color: #6c6b6b;
}

#myCampaignsList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fdfdfd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.card-actions {
  display: flex;
  justify-content: space-evenly;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.card-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.edit-btn {
  background: #3498db;
  color: white;
}

.edit-btn:hover {
  background: #217dbb;
}

.delete-btn {
  background: #e74c3c;
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

.pledges-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.pledges-table th,
.pledges-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.pledges-table th {
  background: #f4f4f4;
  font-weight: bold;
}

.pledges-table tr:nth-child(even) {
  background: #fafafa;
}

.section {
  display: flex;
  background: #fdecec;
  border-radius: 15px;
  overflow: hidden;
  flex-wrap: wrap;
}

.text-content {
  flex-basis: 70%;
  padding: 50px;
}

.text-content h2 {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.text-content h3 {
  font-size: 24px;
  color: #777;
  font-weight: normal;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
}

.steps {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-weight: bold;
  color: #333;
}

.step h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #222;
}

.step p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.image {
  flex-basis: 30%;
}

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

@media (max-width: 900px) {
  .section {
    flex-direction: column;
  }

  .image img {
    height: 300px;
  }

  .text-content {
    padding: 30px;
  }
}

footer {
  margin-top: 100px;
  background: black;
  color: #fff;
  padding: 50px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-left {
  flex: 1 1 50%;
  padding: 20px;
}

.footer-left h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-left button {
  margin: 30px 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-left button:hover {
  background: var(--secondery-color);
}

.footer-right {
  flex: 1 1 50%;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  gap: 20px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

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

.footer-column ul li {
  margin-bottom: 12px;
  font-size: 14px;
  cursor: pointer;
}

.footer-column ul li:hover {
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid #444;
  padding-top: 15px;
}

@media (max-width: 1200px) {
  .footer-left,
  .footer-right {
    flex: 1 1 100%;
  }

  .footer-right {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-column {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .footer-right {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }
}
/* login */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 10px auto;
}

.auth-container .form-wrapper {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.auth-container .form-wrapper p {
  margin: 30px 0;
}
.auth-container .form-wrapper p a {
  color: #f44336e0;
}
.auth-container .tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}

.auth-container .tab-link {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: #555;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.auth-container .tab-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.auth-container .auth-form {
  display: flex;
  flex-direction: column;
}

.auth-container .auth-form.hidden {
  display: none;
}

.auth-container .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.auth-container .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.auth-container .form-group input {
  width: 90%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.auth-container .submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 40%;
  text-align: center;
  cursor: pointer;
  margin: 10px auto;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.auth-container .submit-btn:hover {
  background-color: var(--secondery-color);
}
.auth-container .form-group input:focus {
  color: #222;
  outline: none;
}
/* create camppaign  */
/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  background: #f7f8fa;
}

/* Left Column */
.left-column {
  width: 30%;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.left-column .home {
  display: block;
  margin-bottom: 40px;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}
.left-content {
  max-width: 300px;
  text-align: left;
}

.left-content h2 {
  font-size: 1.7rem;
  line-height: 1.7;
  font-weight: bold;
  margin-bottom: 25px;
  color: #2c3e50;
}

.left-content p {
  font-size: 1rem;
  color: #555;
}

/* Right Column */
.right-column {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-column h4 {
  /* margin-bottom: 20px; */
  color: #444;
  margin: 16px 0 5px;
}
.form-wrapper {
  background: #fff;
  width: 100%;
  max-width: 600px;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.form-wrapper h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

/* Form Groups */

.form-group {
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Select box style */
.form-group select {
  width: 70%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #2c3e50;
  outline: none;
  transition: 0.3s;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%232c3e50' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.form-group select option {
  padding: 10px;
}

/* Row Style */
.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 15px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex-basis: 45%;
}

.form-row .form-group input {
  width: 100%;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.form-group label {
  display: block;
  margin: 17px 0 10px;
  color: #2c3e50;
}
.form-group input,
.form-group textarea {
  width: 70%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2c3e50;
  outline: none;
  box-shadow: 0 0 6px #eeee;
}

/* Buttons */
button {
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 10px;
}

.add-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  margin-right: 10px;
}

.add-btn:hover {
  background: var(--secondery-color);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  margin: 15px 0;
}

.submit-btn:hover {
  background: var(--secondery-color);
}

/* Responsive - Hide Left Column */
@media (max-width: 992px) {
  .left-column {
    display: none;
  }
  .right-column {
    width: 100%;
    padding: 20px;
  }
  .form-wrapper {
    border-radius: 12px;
  }
}

/* Styles for user-dashboard.html */
.dashboard-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-container h2 {
  color: #333;
  margin-bottom: 2rem;
}

.user-campaigns,
.user-pledges {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.campaign-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.campaign-card:hover {
  transform: translateY(-5px);
}

.campaign-card-content {
  padding: 1rem;
}

.pledges-list {
  list-style: none;
  padding: 0;
}

.pledge-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.pledge-item:last-child {
  border-bottom: none;
}

/* Campaign Details Page Styles */
.campaign-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 50px;
}

.campaign-image-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.campaign-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.campaign-info h1 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.campaign-info p {
  font-size: 1.1em;
  color: #2c3e50;
  line-height: 1.6;
}

.stats-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
}

.stats-container p {
  margin: 5px 0;
}

.pledge-btn {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 70%;
  margin: 20px auto;
  transition: background-color 0.3s ease;
}

.pledge-btn:hover {
  background-color: var(--secondery-color);
}

#rewards-list h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}
/* Responsive Design */
@media (max-width: 992px) {
  .campaign-details-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px;
  }

  .campaign-image-container {
    height: 300px;
  }

  .campaign-info h1 {
    font-size: 2em;
  }

  .pledge-btn {
    width: 70%;
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .campaign-image-container {
    height: 200px;
  }

  .campaign-info h1 {
    font-size: 1.6em;
  }

  .campaign-info p {
    font-size: 1em;
  }

  .stats-container {
    padding: 10px;
  }

  .pledge-btn {
    font-size: 0.95em;
    padding: 10px;
  }
}

/* Dashboard Container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
}

.navbar-links {
  display: flex;
  gap: 15px;
}

.navbar-links a {
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.3s;
  color: #444;
}

.navbar .navbar-links a:hover {
  transform: scale(1.1);
  color: var(--secondery-color);
}

/* 📱 للشاشات الصغيرة */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
  }

  .navbar-links {
    flex-direction: column;
    background: #f8f9fa;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-links.active {
    display: flex;
  }
}

.navbar .navbar-links a:hover {
  transform: scale(1.1);
  color: var(--secondery-color);
}
.dashboard-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Sections */
section {
  margin-bottom: 30px;
}

/* User Profile */
.user-profile-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.user-profile-section p {
  font-size: 15px;
  color: #555;
}

/* My Campaigns */
.my-campaigns-section h2,
.my-pledges-section h2 {
  font-size: 26px;
  margin-bottom: 30px;
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
  color: #2c3e50;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: #fdfdfd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
p.card-title {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 800;
  font-size: 18px;
}

.card:hover {
  transform: translateY(-5px);
}
.card a {
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  justify-content: space-evenly;
  padding: 8px 15px;
}

.card-actions button {
  background: var(--primary-color);
  border: none;
  color: #fff;
  padding: 9px 30px;
  border-radius: 6px;
  cursor: pointer;
}

.card-actions button:hover {
  background: var(--secondery-color);
}

/* My Pledges (Table) */
#pledges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: center;
  overflow-x: auto;
}

#pledges-table thead {
  background: #ecf0f1;
}

#pledges-table th,
#pledges-table td {
  border: 1px solid #ddd;
  padding: 12px;
}

#pledges-table th {
  font-weight: bold;
  color: #2c3e50;
}

#pledges-table tr:nth-child(even) {
  background: #fafafa;
}

#pledges-table tr:hover {
  background: #eee;
  transition: background 0.2s ease-in-out;
}

#no-pledges-message,
#no-campaigns-message {
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  color: #888;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .card-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* style for browse campaign  */

/* Section 1 */
.intro-section {
  text-align: center;
  margin-bottom: 40px;
}

.intro-section h1 {
  font-size: 2em;
  color: #2c3e50;
  margin: 15px 0;
}

.intro-section > p {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 30px;
}

.intro-image {
  width: 80%;
  height: 400px;
  border-radius: 9px;
  object-fit: cover;
  margin: 30px 0;
  background-attachment: scroll;
}

/* Section 2 */
.campaigns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0 20px;
}

.campaigns-header h2 {
  font-size: 2em;
  color: #2c3e50;
  margin: 15px 0;
}

.view-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

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

.campaign-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.campaign-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.campaign-card .content {
  padding: 15px;
}

.campaign-card h3 {
  height: 50px;
  font-size: 1em;
  color: #2c3e50;
}

.campaign-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
}

.campaign-card small {
  display: block;
  color: #777;
  font-size: 0.85em;
}

/* Responsive */
@media (max-width: 992px) {
  .steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .intro-section h1 {
    font-size: 1.8em;
  }

  .intro-image {
    height: 250px;
  }

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

/* style for browse campaign */

.browse-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.browse-header {
  text-align: center;
  margin-bottom: 40px;
}

.browse-header h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Search bar */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.search-bar input {
  width: 300px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s;
}

.search-bar input:focus {
  border-color: var(--secondery-color);
  outline: none;
  box-shadow: 0 0 2px var(--secondery-color);
}

.search-bar button {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.search-bar button:hover {
  background: var(--secondery-color);
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.filter-btn {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.filter-btn:hover {
  background: var(--secondery-color);
  color: #fff;
}

.filter-btn.active {
  background: var(--secondery-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Campaigns Grid */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.campaigns-grid .card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
  text-decoration: none;
}

.campaigns-grid .card:hover {
  transform: translateY(-6px);
}

.campaigns-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.campaigns-grid .card-content {
  padding: 15px;
  height: 90px;
}

.campaigns-grid .card-title {
  font-size: 15px;
  font-weight: bold;
  color: #2c3e50;
  height: 30px;
}

.campaigns-grid .card-description {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

#no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 18px;
  color: #999;
}

/* styles for edit campaign  */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* The Close Button */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Form styles within the modal for consistency */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* The Close Button */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Form styles within the modal for consistency */
.modal-content .form-group {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.modal-content button:hover {
  background-color: var(--secondery-color);
}

/* style for payment  */

.payment-container {
  background: #fff;
  padding: 40px 50px;
  border-radius: 14px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 550px;
  margin: 30px auto;
}

.payment-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fc6e62;
}

.payment-container p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1rem;
  color: #555;
}

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

.payment-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.payment-container .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  transition: 0.3s;
}

.payment-container .form-group input:focus {
  border-color: #fc6e62;
}

.submit {
  width: 100%;
  padding: 14px;
  background: #fc6e62;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit:hover {
  background: #eb5b4e;
}
.donate a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}
