/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1 {
  text-align: center;
}

:root {
  --body: #fff;
  --button1: #4caf50;
  --button2: #2196f3;
  --linksOnHover: #4caf50;
  --icons: #619464;
  --wbgText: #333;
  --dbgText: white;
}

/* SCROLLBAR STYLE */
::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 95%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(86, 45%, 54%);
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--body);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.navbar ul {
  list-style: none;
}

/* Update both height and width for a proportional increase */
.logo-img {
  height: 80px; /* Adjust this value */
  width: auto; /* This maintains the aspect ratio based on the height */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--wbgText);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--linksOnHover);
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--body);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 120px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Button styles */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.donate-btn {
  background-color: var(--button1);
  color: var(--dbgText);
}

.volunteer-btn {
  background-color: var(--button2);
  color: var(--dbgText);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Profile dropdown styles */
.profile-dropdown {
  position: relative;
  cursor: pointer;
}

.profile-icon {
  font-size: 1.5rem;
  color: var(--wbgText);
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--body);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 1000;
}

.profile-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--wbgText);
}

.profile-dropdown-content a:hover {
  background-color: #f5f5f5;
}

.profile-dropdown:hover .profile-dropdown-content {
  display: block;
}

/* Footer styles */
footer {
  background-color: var(--wbgText);
  color: var(--dbgText);
  width: 100%;
  margin-top: auto;
  padding-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--icons);
}

/* Contact form styles */

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h3 {
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--body);
  border-radius: 4px;
  background-color: var(--body);
}

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

.send-btn {
  background-color: var(--button1);
  color: var(--dbgText);
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background-color: #222;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 1rem;
    margin: 1rem 0;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

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

  main {
    padding: 1rem;
  }
}
/* Add responsiveness */
@media (max-width: 768px) {
  .formname {
    flex-direction: column;
  }
}

.item-container {
  position: relative;
  margin: 24px;
  width: 320px;
  height: 570px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 0 30px 5px rgb(0, 0, 0, 0.15);
  cursor: pointer;
}
