/* Stripe Elements specific styling */
.stripe-element-container {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
  min-height: 40px;
  position: relative;
  z-index: 1; /* Ensure it's above other elements */
}

.stripe-element-container:focus-within {
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
  outline: none;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
  .stripe-element-container {
    min-height: 44px; /* Slightly taller on mobile for better touch targets */
  }
  
  /* Force the iframe to be visible and interactive */
  .stripe-element-container iframe {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2 !important;
    position: relative !important;
  }
  
  /* Ensure the modal is properly positioned */
  #donation-modal .modal-content {
    margin: 10% auto;
    width: 95%;
    max-width: 450px;
    padding: 20px;
  }
  
  /* Improve form element spacing */
  #payment-form .form-group {
    margin-bottom: 20px;
  }
  
  /* Make sure the submit button is easily tappable */
  #payment-form .btn {
    padding: 12px;
    font-size: 16px;
  }
}

/* Fix for any potential z-index issues */
#donation-modal {
  z-index: 9999;
}

#donation-modal .modal-content {
  z-index: 10000;
}

/* Add these styles to your CSS file */
.helper-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #4b5563;
}

.test-cards {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  margin-left: 1rem;
  color: #4b5563;
}

#card-errors {
  color: #fa755a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}



/* Base styles */
:root {
    --primary: #1d4ed8;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #020817;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary-foreground);
    padding: 2px;
    object-fit: contain;
    background-color: white;
}

.header {
    background-color: rgba(29, 78, 216, 0.9);
    color: var(--primary-foreground);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-foreground);
}



.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 1rem;
}

.nav-list a {
    color: var(--primary-foreground);
    text-decoration: none;
}

.nav-list a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Donate button styles */
.donate-btn {
    background-color: #e11d48;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.donate-btn:hover {
    background-color: #be123c;
}

.desktop-donate {
    margin-right: 1rem;
}

.mobile-donate {
    display: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(29, 78, 216, 0.9);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

.show {
  display: block;
}

/* Hero section styles */
.hero {
    height: 100vh;
    background-image: url('./images/big/joyful-woman-celebrating-against-vibrant-abstract-background-free-photo.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-foreground);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1:not(.hero-title) {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Hero title styles */
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.title-word {
    display: inline-block;
}

/* Mobile styles for hero title */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-word {
        display: block;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }
   
    .hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    }

    .card {
    background-color: var(--muted);
    padding: 2rem;
    border-radius: 0.5rem;
    flex: 1;
    text-align: left;

    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.card p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: red;
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #1e40af;
}

/* Section styles */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* About section styles */
.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Mission and Goals section styles */
.mission-content,
.goals-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--muted);
    padding: 2rem;
    border-radius: 0.5rem;
    flex: 1;
    text-align: left;

}


.card h3 {
    margin-bottom: 1rem;
    font-variant: small-caps;
    color: blue;
}

.card h5 {
    margin-bottom: 1rem;
    font-style: italic;
}

.card ul {
    list-style-position: inside;
}

.image-container2 {
    flex: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.image-container2 img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 500px;
}

.image-container {
    flex: 1;
    height: 600px;
    overflow: hidden;
    border-radius: 0.5rem;
}

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

/* News section styles */
.news {
    background-color: var(--muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news .card {
    background-color: var(--background);
}

.news .image-container {
    height: 200px;
    margin-bottom: 1rem;
}

/* Contact section styles */
.contact-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.container h2{
    font-size: 60px;
    color: blue;

}

.contact-content h3, .contact-info h3{
    color: blue;

}

.contact-form,
.contact-info,
.social-media {
    flex: 1 1 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
}

.contact-form textarea {
    height: 150px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item .icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Social Media styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #1e40af;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer styles */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    padding: 2rem 0;
}

/* Modal styles */
.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 {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 0.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Donation form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

#donation-amount {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
}

#payment-form .btn {
    margin-top: 1rem;
}

#card-element {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
}

#card-errors {
    color: #dc2626;
    margin-top: 0.5rem;
}

/* Stripe Elements styling */
#card-element {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

#card-element:focus {
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
  outline: none;
}

#card-element.StripeElement--focus {
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
}

#card-element.StripeElement--invalid {
  border-color: #fa755a;
}

#card-errors {
  color: #fa755a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Donation modal improvements */
#donation-modal .modal-content {
  max-width: 500px;
  width: 90%;
  padding: 1.5rem;
}

#payment-form .btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: #e11d48;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#payment-form .btn:hover {
  background-color: #be123c;
}

#payment-form .btn:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h3 {
    color: #2ecc71;
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 20px;
}

/* Button disabled state */
.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
  #donation-modal .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1rem;
  }
  
  #card-element {
    padding: 10px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  #donation-amount {
    font-size: 1rem;
    padding: 10px;
  }

  .dropdown {
    width: 100%;
    position: relative;
    display: block;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown-content.show {
    display: block;
    max-height: 500px;
    padding: 0.5rem 0;
  }
  
  .dropdown-content li {
    margin-left: 1.5rem;
  }
  
  .dropdown-content a {
    padding: 0.5rem 0;
    display: block;
  }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(29, 78, 216, 0.9);
        padding: 1rem;
    }

    .nav.active {
        display: block;
    }
   
    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-foreground);
        position: relative;
        transition: all 0.3s ease-in-out;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
        position: absolute;
    }

    .menu-icon::before {
        top: -8px;
    }

    .menu-icon::after {
        bottom: -8px;
    }

    .menu-toggle.active .menu-icon {
        background-color: transparent;
    }

    .menu-toggle.active .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .menu-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    .desktop-donate {
        display: none;
    }

    .mobile-donate {
        display: block;
    }

    .mobile-donate .donate-btn {
        width: 100%;
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    .mission-content,
    .goals-content {
        flex-direction: column;
    }

    .image-container {
        height: 200px;
    }

    .contact-content > div {
        flex-basis: 100%;
    }
}