/* General Reset */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

h1, h3, p {
    margin: 0;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    
  }
  
  
  .logo img{
    width: 120px;
    margin-right: 10px;
    
  }
  
  .menu{
    margin: 0 400px;
  }
  
  .menu a{
    margin-left: 40px;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    text-decoration: none;
  } 
  
  .btn a button{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    background-color: #28a745;
    color: #fff;
    transition: background-color 0.3s;
  }
  .btn a button:hover{
    background-color: #3a9c42;
    transform: scale(1.05);
  }
  


/* Header Banner */
.header-banner {
    text-align: center;
    padding: 76px 0px;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("./about\ us\ banner\ 3.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
}

.header-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-banner p {
    font-size: 1.5rem;
    color: #ddd;
    margin-top: 10px;
}

@media (max-width: 768px) {
    header{
      display: none;
    }
    .header-banner{
        background-image: none;
        background-color: #424242;
      }
  
  }
  
  @media (max-width: 480px) {
    header{
      display: none;
    }
    .header-banner{
        background-image: none;
        background-color: #424242;
      }
  }

/* Causes Section */
.causes-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Flexible for desktop */
    gap: 30px;
    padding: 40px 8%; /* Reduced padding for a cleaner layout */
    margin: 0 auto;
    max-width: 1200px; /* Restrict width for larger screens */
}

/* Cause Card */
.cause-card {
    background: #fff;
    border-radius: 15px; /* Rounded corners for modern look */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cause-card:hover {
    transform: translateY(-10px); /* Lift on hover for interaction */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

/* Cause Card Image */
.cause-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Cause Card Details */
.cause-details {
    padding: 20px 15px;
}

.cause-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
}

.cause-details p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-buttons .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px; /* Fully rounded buttons */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-primary {
    background-color: #ff5722; /* Vibrant orange */
    color: #fff;
}

.cta-buttons .btn-primary:hover {
    background-color: #e64a19;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.2);
    transform: scale(1.05);
}

.cta-buttons .btn-secondary {
    background-color: #28a745; /* Green for secondary actions */
    color: #fff;
}

.cta-buttons .btn-secondary:hover {
    background-color: #218838;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
    transform: scale(1.05);
}

/* Progress Bar */
.progress {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
}

.progress .raised,
.progress .goal {
    font-size: 0.9rem;
    color: #555;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #28a745, #218838);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .causes-section {
        grid-template-columns: 1fr; /* Single column for mobile */
        padding: 20px;
    }

    .cause-card img {
        height: 180px;
    }

    .cta-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .causes-section {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }

    .cause-card img {
        height: 200px;
    }
}
