/* Menu */
.menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #007BFF;
    text-align: left;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 6px;
}
.menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.menu a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
}
.menu a:hover {
    background: #0056b3;
}

/* Global Styles */
body {
    margin: 0;
    font-family: sans-serif;
}

/* Nav Bar */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #007BFF;
    color: white;
    z-index: 1000;
}
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.menu-icon {
    position: absolute;
    left: 20px;
    cursor: pointer;
    color: white;
}
.donate-btn {
    background: #ffcc00;
    color: black;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    padding-top: 70px;
    text-align: center;
    margin-bottom: 10px; 20px;
}
.hero-logo {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Buttons */
.join-btn {
    margin: 20px auto;
    padding: 14px;
    width: 85%;
    background: #ffcc00;
    font-weight: bold;
    font-size: 20px;
    color: black;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* Carousel */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    padding: 0 10vw;
}
.carousel-card {
    flex: 0 0 auto;
    width: 260px;
    margin: 0 10px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: scale(0.92);
    scroll-snap-align: center;
}
.carousel-card.center {
    opacity: 1;
    transform: scale(1.03);
    border-left: 6px solid green;
}
.carousel-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}
.carousel-preview {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

/* Form */
.popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1200;
}
.popup-form input, .popup-form button {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    font-size: 18px;
    border-radius: 8px;
    box-sizing: border-box;
}
.popup-form button {
    background: #007BFF;
    color: white;
    font-weight: bold;
    border: none;
}
.close-btn {
    background: red;
    color: white;
    padding: 12px 18px;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    z-index: 1300;
}

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.menu-icon {
    position: absolute;
    left: 20px;
    cursor: pointer;
    color: white;
}
.donate-btn {
    background: #ffcc00;
    color: black;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    padding-top: 70px;
    text-align: center;
    margin-bottom: 10px; 20px;
}

.hero-logo {
    max-width: 85%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.animated-quote {
    animation: fadeInUp 2.5s ease-in-out forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.join-btn {
    margin: 20px auto;
    padding: 14px;
    width: 85%;
    background: #ffcc00;
    font-weight: bold;
    font-size: 20px;
    color: black;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* Carousel */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    padding: 0 10vw;
}
.carousel-card {
    flex: 0 0 28%;
    max-width: 28%;
    flex: 0 0 auto;
    width: 260px;
    margin: 0 10px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: scale(0.92);
    scroll-snap-align: center;
}
.carousel-card.center {
    flex: 0 0 34%;
    max-width: 34%;
    opacity: 1;
    transform: scale(1.03);
    border-left: 6px solid green;
}
.carousel-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}
.carousel-details {
    font-size: 16px;
    color: #333;
}

/* Form */
.popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1200;
}
.popup-form input, .popup-form button {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    font-size: 18px;
    border-radius: 8px;
    box-sizing: border-box;
}
.popup-form button {
    background: #007BFF;
    color: white;
    font-weight: bold;
    border: none;
}
.close-btn {
    background: red;
    color: white;
    padding: 12px 18px;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    z-index: 1300;
}

/* Overlap Layout */
.logo-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
}

.hero-photo-overlap {
    position: absolute;
    top: 20px;
    right: 5%;
    width: 300px;
    height: auto;
    max-width: 40vw;
    border-radius: 8px;
    z-index: 1;
}

/* Responsive fix for mobile */
@media (max-width: 600px) {
    .hero-photo-overlap {
        position: static;
        width: 90%;
        max-width: 300px;
        margin-top: 20px;
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-photo {
        max-width: 90%;
        height: auto;
    }
}
.hero-overlay {
    bottom: 5px;
    left: 20px;
    right: 20px;
    background: rgba(0,123,255,0.85);
    color: white;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

@media (max-width: 600px) {
    .hero-overlay {
        bottom: 0;
        left: 10px;
        right: 10px;
        font-size: 16px;
        padding: 14px 20px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


@media (min-width: 768px) {
    .hero-logo {
        max-width: 50% !important;
    }
}

.join-btn-navbar {
    background: #ffcc00;
    color: black;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    margin-left: 12px;
}

@media (max-width: 767px) {
    .nav-buttons {
        margin-left: 60px;
    }
}
@media (min-width: 768px) {
    .carousel-wrapper {
        margin-top: -40px !important;
    }
}
@media (min-width: 768px) {
    .hero-photo {
        max-width: 50%;
    }
}

.about-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.about-carousel-wrapper {
  overflow-x: auto;
}
.about-carousel-track {
  display: flex;
  gap: 20px;
}
.about-card {
  flex: 1 1 100%;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
  .about-carousel-track {
    flex-direction: column;
  }
  .about-carousel-wrapper {
    overflow: visible;
  }
  .about-card {
    max-width: 100%;
  }
}