  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500&display=swap');

  * {
      margin: 0;
      padding: 0;
  }

  body {
      background-color: var(--white);
      transition: all 0.3s ease-in;
      overflow-x: hidden;
      font-family: 'Poppins', sans-serif;
      padding-top: 70px;
  }

  body {
      scrollbar-width: none;
      -ms-overflow-style: none;
  }

  p {
      font-family: 'Merriweather', serif;
      line-height: 30px;
      text-indent: 10px;
  }

  :root {
      --white: white;
      --black: black;
      --primary-color: #007bff;
      --secondary-color: #28a745;
      --light-gray: #f8f9fa;
      --gray: #1c1e1f;
      --border-color: #dee2e6;
      --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      --dim-txt: #333;
      --light-dim-txt: #232323;
      --light-white: rgb(237, 237, 237);
      --card-border: rgba(0, 0, 0, 0.348);
  }

  html.dark-mode {
      --white: black;
      --black: white;
      --dim-txt: rgb(193, 190, 190);
      --light-dim-txt: rgb(144, 139, 139);
      --card-shadow: 0 4px 8px rgba(0, 157, 255, 0.534);
      --card-border: rgba(255, 255, 255, 0.232);
      --gray: #a8acae;

  }

  header {
      position: fixed;
      width: 100%;
      z-index: 10;
      top: 0;
      font-weight: 500;
  }

  .menu {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      /* flex-wrap: wrap; */
      align-items: center;
      padding: 16px 10px;
      background-color: var(--white);
  }

  .logo img {
      width: 150px;
      padding: 10px;
  }

  .menu-items {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      margin-right: 20px;
  }

  .menu-items a {
      text-decoration: none;
      color: var(--black);
      font-size: 16px;
      transition: all 0.4s ease;
  }

  .menu-items button {
      background-color: rgba(255, 255, 255, 0);
      border-color: rgba(255, 255, 255, 0);
      cursor: pointer;
      font-size: 16px;
      font-weight: 0;
      padding: 0%;
  }

  .hamburger {
      display: none;
  }

  .menu-items a:hover {
      color: rgb(15, 11, 211);
      transform: scale(1.1);
  }

  .btn-close {
      display: none;
  }

  .theme-toggle {
      width: 50px;
      height: 40px;
      border-radius: 10px;
      border-color: #00000000;
      cursor: pointer;
      background-color: var(--black);
      color: var(--white);
  }

  .theme-toggle i {
      color: var(--black);
  }

  @media (max-width:768px) {

      .menu-items {
          display: none;
      }

      .menu-items {
          flex-direction: column;
          background: #0e0d0dcc;
          position: fixed;
          top: 0;
          right: -350px;
          width: 180px;
          height: 100%;
          padding: 60px 20px;
          transition: right 0.3s ease;
          z-index: 999;

      }

      .menu-items a {
          color: white;

      }

      .menu-items button {
          color: rgb(255, 255, 255);
      }

      .btn-close {
          display: block;
          cursor: pointer;
      }


      .hamburger {
          display: block;
          margin-right: 20px;
          cursor: pointer;
          color: var(--black);

      }

      .menu-items.show {
          right: -30px;
          display: flex;
          flex-direction: column;
          flex-wrap: wrap;
          justify-content: flex-start;
          align-content: flex-start;
      }

      .hamburger:hover {
          color: #b82e5e;
      }

  }

  footer {
      background-color: #2c3e50;
      color: #bdc3c7;
      padding-top: 60px;
  }

  .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
  }

  .footer-column {
      display: flex;
      flex-direction: column;
  }

  .footer-column h4 {
      font-size: 18px;
      color: #ffffff;
      margin-bottom: 20px;
      position: relative;
      padding-bottom: 10px;
  }

  .footer-column h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background-color: #3498db;
  }

  .footer-logo {
      font-size: 32px;
      font-weight: 700;
      color: #ffffff;
      text-decoration: none;
      margin-bottom: 10px;
  }

  .footer-tagline {
      margin: 0 0 20px 0;
      line-height: 1.6;
  }

  .follow-us a {
      display: inline-block;
      margin-right: 10px;
      transition: transform 0.3s ease;
  }

  .follow-us a:hover {
      transform: translateY(-4px);
  }

  .follow-us img {
      width: 36px;
      height: auto;
  }

  .footer-menu a {
      color: #bdc3c7;
      text-decoration: none;
      margin-bottom: 12px;
      display: block;
      transition: color 0.3s ease, padding-left 0.3s ease;
  }

  .footer-menu a:hover {
      color: #ffffff;
      padding-left: 5px;
  }

  .contact-us p {
      margin: 0 0 12px 0;
  }

  .contact-us span {
      font-weight: 700;
      color: #ffffff;
      margin-right: 8px;
  }

  .contact-us a {
      color: #bdc3c7;
      text-decoration: none;
      transition: color 0.3s ease;
  }

  .contact-us a:hover {
      color: #ffffff;
  }

  .signup-news-letter p {
      margin: 0 0 20px 0;
      line-height: 1.6;
  }

  .newsletter-form {
      display: flex;
  }

  @media (max-width:478px) {
      .newsletter-form {
          flex-wrap: wrap;
          flex-direction: column;
          gap: 20px;
      }

      .newsletter-form a {
          width: 100px;
          text-align: center;
      }

      .newsletter-form input {
          border-radius: 5px !important;
      }

      .newsletter-form a {
          border-radius: 5px !important;
      }
  }

  .newsletter-form input {
      flex-grow: 1;
      border: 1px solid #4a627a;
      background-color: #3b5066;
      padding: 12px;
      border-radius: 5px 0 0 5px;
      color: #ffffff;
      outline: none;
  }

  .newsletter-form input::placeholder {
      color: #95a5a6;
  }

  .newsletter-form a {
      padding: 12px 20px;
      text-decoration: none;
      border: none;
      background-color: #3498db;
      color: #ffffff;
      font-weight: 700;
      cursor: pointer;
      border-radius: 0 5px 5px 0;
      transition: background-color 0.3s ease;
  }

  .newsletter-form button:hover {
      background-color: #2980b9;
  }


  .footer-bottom-bar {
      margin-top: 40px;
      padding: 20px 15px;
      text-align: center;
      background-color: rgba(0, 0, 0, 0.2);
  }

  .footer-bottom-bar p {
      margin: 0;
      font-size: 14px;
  }

  .footer-bottom-bar a {
      color: #ffffff;
      text-decoration: none;
      font-weight: 600;
  }

  .footer-bottom-bar a:hover {
      text-decoration: underline;
  }

  .hero {
      background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/browse-campaign-hero.jpg');
      height: 80vh;
      background-size: cover;
      background-position: center center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
  }

  .hero h1 {
      font-size: 4rem;
      color: white;
  }

  .hero p {
      font-size: 1.5rem;
      color: white;
  }

  @media (max-width:478px) {
      .hero h1 {
          font-size: 2.5rem;
      }

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

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

  header {
      text-align: center;
      margin-bottom: 2rem;
  }

  .controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
  }

  #search-input {
      flex-grow: 1;
      padding: 20px 12px;
      border: 1px solid var(--border-color);
      border-radius: 5px;
      min-width: 200px;
      margin: 30px;
      background-color: var(--white);
  }

  .sort-and-view {
      display: flex;
      gap: 15px;
      align-items: center;
  }

  .sort-select {
      padding: 8px 12px;
      border: 1px solid var(--border-color);
      border-radius: 5px;
      color: var(--black);
      background-color: var(--white);
  }

  .view-toggle button {
      background: none;
      border: 1px solid var(--border-color);
      padding: 8px 12px;
      cursor: pointer;
      font-size: 1rem;
      color: var(--gray);
  }

  .view-toggle button.active {
      background-color: var(--primary-color);
      color: #fff;
      border-color: var(--primary-color);
  }

  .view-toggle button:first-child {
      border-top-left-radius: 5px;
      border-bottom-left-radius: 5px;
  }

  .view-toggle button:last-child {
      border-top-right-radius: 5px;
      border-bottom-right-radius: 5px;
      border-left: none;
  }

  .campaign-item {
      background-color: var(--white);
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--card-border);
      box-shadow: var(--card-shadow);
      transition: transform 0.2s ease-in-out;
  }

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

  .campaign-item .campaign-image {
      position: relative;
  }

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

  .campaign-item .category-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      padding: 4px 8px;
      font-size: 0.8rem;
      border-radius: 4px;
  }

  .campaign-item h3 {
      margin: 0 0 5px 0;
      font-size: 1.2rem;
      color: var(--black);
  }

  .campaign-item .organizer {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 10px;
  }

  .campaign-item .description {
      font-size: 0.95rem;
      line-height: 1.5;
      color: var(--gray);
      margin-bottom: 15px;
  }

  .campaign-item .progress-bar {
      width: 100%;
      height: 8px;
      background-color: var(--light-gray);
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 5px;
  }

  .campaign-item .progress-bar div {
      height: 100%;
      background-color: var(--secondary-color);
  }

  .campaign-item .stats {
      display: flex;
      justify-content: space-between;
      font-size: 0.9rem;
      margin-bottom: 15px;
  }

  .campaign-item .raised {
      font-weight: bold;
      color: var(--black);
  }

  .campaign-item .goal,
  .campaign-item .donors {
      color: var(--gray);
  }

  .campaign-item .donate-btn {
      display: block;
      width: 200px;
      padding: 12px;
      background-color: var(--primary-color);
      color: #fff;
      text-align: center;
      text-decoration: none;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.2s;
  }

  .campaign-item .donate-btn:hover {
      background-color: #0056b3;
  }

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

  .campaigns-grid .campaign-content {
      padding: 15px;
  }

  .campaigns-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin: 4%;
  }

  .campaigns-list .campaign-item {
      display: flex;
      align-items: center;
  }

  .campaigns-list .campaign-image {
      flex-shrink: 0;
  }

  .campaigns-list img {
      width: 250px;
      height: 100%;
  }

  .campaigns-list .campaign-content {
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 100%;
  }

  #no-results {
      text-align: center;
      padding: 40px;
      color: var(--gray);
      display: none;
  }


  .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 30px;
      color: var(--black);
  }

  .pagination button {
      background: none;
      border: 1px solid var(--border-color);
      color: var(--primary-color);
      padding: 10px 15px;
      cursor: pointer;
      font-size: 1rem;
  }

  .pagination button:disabled {
      color: var(--gray);
      cursor: not-allowed;
  }

  #page-info {
      padding: 0 20px;
      font-weight: bold;
  }

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

  .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }

  .modal-content-form {
      background-color: var(--white);
      padding: 30px;
      border-radius: 8px;
      width: 90%;
      max-width: 500px;
      position: relative;
      color: var(--black);
  }

  .modal-close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 2rem;
      color: var(--gray);
      cursor: pointer;
  }

  .modal-content-form h2 {
      margin-top: 0;
  }

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

  .form-group label {
      display: block;
      margin-bottom: 5px;
  }

  .form-group input {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border-color);
      border-radius: 5px;
      box-sizing: border-box;
  }

  .confirm-donation-btn {
      width: 100%;
      padding: 12px;
      background-color: var(--secondary-color);
      color: #fff;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      cursor: pointer;
  }


  @media (max-width: 768px) {
      .controls {
          flex-direction: column;
          gap: 20px;
      }

      .sort-and-view {
          width: 100%;
          justify-content: space-between;
      }

      .campaigns-list .campaign-item {
          flex-direction: column;
      }

      .campaigns-list img {
          width: 100%;
          height: 180px;
      }
  }

  .cta {
      height: 20vh;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #FFFFFF;
      padding: 60px 20px;
      text-align: center;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
      justify-items: center;
      justify-content: center;
      margin: 2%;
      overflow: hidden;
  }
  @media (max-width:478px) {
    .cta{
        height: auto;
    }
  }

  .cta h1 {
      font-size: 2rem;
  }

  .cta a {
      padding: 16px;
      border: 1px solid;
      text-decoration: none;
      border-radius: 40px;
      color: white;
      transition: all 0.4s;
  }

  .cta a:hover {
      background-color: white;
      color: #667eea;
  }

  #campaign-details {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      max-width: 600px;
      height: 100%;
      background: var(--white);
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
      overflow-y: auto;
      transition: right 0.4s ease-in-out;
      z-index: 1000;
  }

  #campaign-details.active {
      right: 0;
  }

  .details-container {
      display: flex;
      flex-direction: column;
      height: 100%;
  }

  .details-image {
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-bottom: 4px solid #f5f5f5;
      border-radius: 0 0 10px 10px;
  }

  .details-content {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
  }

  .details-header h2 {
      font-size: 1.5rem;
      margin: 0 0 5px;
      color: var(--dim-txt);
  }

  .details-header .organizer {
      font-size: 0.9rem;
      color: var(--light-dim-txt);
  }

  .details-stats {
      background: var(--white);
      border-radius: 10px;
      padding: 15px;
  }

  .progress-bar {
      height: 10px;
      background: white;
      border-radius: 5px;
      overflow: hidden;
      margin-bottom: 10px;

  }

  .progress {
      height: 100%;
      background: linear-gradient(90deg, #4CAF50, #81C784);
      border-radius: 5px;
  }

  .stats-text {
      display: flex;
      justify-content: space-between;
      font-size: 0.95rem;
      color: var(--dim-txt);
  }

  .details-body h3 {
      font-size: 1.2rem;
      margin-bottom: 8px;
      color: var(--dim-txt);
  }

  .details-body p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 10px;
      color: var(--light-dim-txt);
  }

  .details-footer {
      margin-top: auto;
      padding: 15px 0;
      text-align: center;
  }

  .details-footer .donate-btn {
      background: #ff6b35;
      border: none;
      padding: 12px 20px;
      font-size: 1rem;
      border-radius: 6px;
      color: #fff;
      cursor: pointer;
      transition: background 0.3s ease;
  }

  .details-footer .donate-btn:hover {
      background: #e65c2e;
  }

  #campaign-details .close-btn {
      position: absolute;
      right: 10px;
      background: none;
      border: none;
      font-size: 2rem;
      cursor: pointer;
      color: var(--black);
  }

  @media (max-width: 768px) {
      #campaign-details {
          max-width: 100%;
      }

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

      .details-body p {
          font-size: 0.9rem;
      }
  }

  .head {
      font-size: 46px;
      color: var(--black);
      margin: 3%;
  }


  /* Login Form design */

  .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      overflow-y: auto;
      justify-content: center;
      padding: 5px;
  }

  .modal-content {
      border-radius: 12px;
      overflow-y: auto;
      min-height: 90vh;
      display: flex;
      flex-direction: column;
      position: relative;
      animation: fadeIn 0.3s ease;
  }

  @media (max-width:768px) {
      .modal-content {
          margin-top: 5%;
      }
  }


  @keyframes fadeIn {
      from {
          transform: scale(0.9);
          opacity: 0;
      }

      to {
          transform: scale(1);
          opacity: 1;
      }
  }


  .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 22px;
      cursor: pointer;
  }

  .campaign-item.highlight {
  outline: 3px solid #f00105;
  /* transition: outline 0.3s ease; */
}
