/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.logo {border-radius: 10px;}

a {
    text-decoration: none;
    color: #007bff; /* Example link color */
}
    .flash-close{
        cursor: pointer;
        font-size: 30px;
        margin-left: auto;
    }
    .flash-message {
        display: flex; 
        align-items: center;
        
        padding-left: 10px;
        border-radius: 5px;
    }
    .flash-message.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    .flash-message.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header and Navigation */
header {
    background-color: #708090;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}


/* Hero Section */
.hero_forgot {
    background: url('/public/img/lake.png') center/cover no-repeat;
    min-height: 80vh; /* Minimum height for the hero section */
}
.hero {
    background: url('/public/img/drop_of_water.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 0 0 10rem 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    align-items: center;
    justify-content: space-between;
    /*background-color: #f4f4f4;*/
    padding: 20px;
    min-height: 60vh; /* Minimum height for the hero section */
}

.hero-text, .hero-image {
    flex: 1 1 45%; /* Allows items to grow and shrink, with a base width of 45% */
    padding: 20px;
    min-width: 300px; /* Prevents content from becoming too narrow */
    max-width: 600px; /* Prevents content from becoming too narrow */
}

/* Ensure the SVG scales to fill its container */
.hero-image svg {
    display: block;
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    max-width: 400px; /* Optional: limit maximum size of SVG */
    margin: 0 auto; /* Center the SVG within its container */
}

.cta-button {
    background-color: #28a745;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #218838;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f9f9f9;
}
.about p {
    font-size: 1.5rem;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background-color: rgba(94, 196, 209, 0.5);
}

.projects p {
    margin-top: 0;
    margin-bottom: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /*grid-template-columns: 1fr 1fr 1fr;*/
    gap: .5rem;
    padding: 0px 50px;
}

.project-item {
    display: flex; flex-direction: column; justify-content: flex-end;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}

.project-item.policy{
    background: url('/public/img/policy.png') center/cover no-repeat;
    height: 500px;
}
.project-item.cases{
    background: url('/public/img/casesissues.png') center/cover no-repeat;
    height: 500px;
}
.project-item.research{
    background: url('/public/img/research.png') center/cover no-repeat;
    height: 500px;
}

.project-item img {
    /*width: 100px;*/
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.w-back{
    background-color: white;
    opacity: .9;
    border-radius: 10px;
    bottom: 10px;
}

/* Donate Section */
.donate {
    background-color: #e9ecef;
    padding: 4rem 0;
    text-align: center;
}

/* Contact Section */
.contact{
    padding: 4rem 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact textarea {
    font-family: 'Lato', sans-serif;
}

.contact select {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px; 
}
    
.contact button {
    background-color: #006400;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #06402b;
}

/* Stay Informed Section */
.stay_informed{
    padding: 4rem 0;
    background-color: #0F5C6A;
    color: white;
}

#old-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.stay_informed input,
.stay_informed textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.stay_informed button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.stay_informed button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

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

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        width: 90%;
    }
    .logo {
        border-radius: 10px;
        width: 175px;
        height: auto;
    }
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #255c6b;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Visible state */
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

    .form-group {
        margin-bottom: 20px;
        max-width: 500px;
        width: 100%;
    }
    
    label {
        display: block;
        margin-bottom: 5px;
        width: 100%;
        text-align: left;
        color: black;
    }
    
    .no-events{
        pointer-events: none;
    }


/* --- Modal Backdrop --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* --- Modal Backdrop (hidden by default) --- */
.modalx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none; /* HIDDEN INITIALLY */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Show modal when active */
.modalx-backdrop.active {
  display: flex;
}

/* --- Modal Box --- */
.modalx {
  background: #fff;
  padding: 20px;
  width: 25%;
  min-width: 350px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-align: center;
  font-family: Arial, sans-serif;
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

/* --- Title --- */
.modalx h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- Code Input Boxes --- */
.code-inputs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.code-inputs input {
  width: 45px;
  height: 55px;
  font-size: 28px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.code-inputsIssue input {
  width: 45px;
  height: 55px;
  font-size: 28px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.code-inputs input:focus {
  border-color: #007bff;
}

/* --- Buttons --- */
.modal-btn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  color: blue;
  border-radius: 8px;
  cursor: pointer;
}

/* Show Modal Button */
#openModalBtn {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  background-color: transparent;
  color: white;
  
}
/* Show Modal Button */
#openModalBtnIssue {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  background-color: transparent;
  color: black;  
}

#issueTable tr:nth-child(4n + 1),
#issueTable tr:nth-child(4n + 2) {
  background-color: #F0F8FF;
}

#issueTable tr:nth-child(4n + 3),
#issueTable tr:nth-child(4n + 4) {
  background-color: #ffffff;
}