/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 50px; /* Adjust based on the height of your navbar */
    background-color: #f5f5f5;
    color: #333;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0; /* You can adjust this value as needed */
    right: 0; /* Use or adjust this value as necessary */
    width: auto; /* Adjust the width automatically based on left/right values */
    background-color: #333;
    padding: 0 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Keep it above other content */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Caption (Logo + Name) */
.nav-caption {
    color: #f7e4e7;
    font-size: 1.2em;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

.nav-caption img {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-caption img:hover {
    transform: scale(1.1);
}

/* Navbar Menu */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 20px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Active and Hover States */
.nav-item.active a,
.nav-item a:hover {
    background-color: #e94560;
}

/* Active/hover indicator */
.nav-item.active::after,
.nav-item:hover::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #e94560;
    border-radius: 50%;
}

/* Dropdown Menu Styles */
.nav-item .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
}

.nav-item .dropdown-menu li a {
    padding: 10px 20px;
    color: #fff;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-item .dropdown-menu li a:hover {
    background-color: #e94560;
}

/* Show Dropdown Menu on Hover */
.nav-item:hover .dropdown-menu {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-item .dropdown-menu {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        box-shadow: none;
    }
}

/* Mobile Header */
.mobile {
    display: none; /* Hidden for larger screens */
    background-color: #333;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0f0f22;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile .nav-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7e4e7;
    font-size: 1.2em;
}

.mobile .nav-caption img {
    height: 40px;
    width: auto;
}

.mobile .menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
}

/* Mobile Menu Styles */
.mobile .nav-menu {
    display: flex; /* Keep flex layout */
    flex-direction: column;
    background-color: #333;
    position: fixed;
    bottom: -100%; /* Initially hidden below the viewport */
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
    margin: 0;
    transform: translateY(100%); /* Hidden off-screen */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth slide-in effect */
    opacity: 0; /* Invisible initially */
    pointer-events: none; /* Disable interaction initially */
}

.mobile .nav-menu.active {
    transform: translateY(0); /* Slide into view */
    opacity: 1; /* Fully visible */
    pointer-events: auto; /* Enable interaction */
    bottom: 0; /* Fix to the bottom of the screen */
}

.mobile .nav-item a {
    display: block;
    padding: 15px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile .nav-item a:hover {
    background-color: #e94560;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url('images/needy2.jfif') no-repeat center center/cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Content inside Hero Section */
.hero-content {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    padding: 30px;
    border-radius: 10px;
}

/* Hero Title */
.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Hero Caption */
.hero-caption {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* Buttons */
.hero-buttons .btn {
    display: inline-block;
    margin: 10px 15px;
    padding: 15px 25px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Primary Button */
.primary-btn {
    background-color: #cc0088;
    color: white;
}

.primary-btn:hover {
    background-color: #d32499;
    transform: translateY(-2px);
}

/* Secondary Button */
.secondary-btn {
    background-color: #ff5722;
    color: white;
}

.secondary-btn:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

/* Carousel Section Styles */
.carousel-section {
    position: relative;
    overflow: hidden;
    background-color: #0f0f0f;
    padding: 20px 0;
}

.carousel-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    flex: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0); /* Animation zoom effect */
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: slideIn 1s ease-out forwards;
}

.carousel-caption h2 {
    font-size: 2.5em;
    margin: 0 0 10px;
}

.carousel-caption p {
    font-size: 1.2em;
    margin: 0;
}

/* Animations */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer Section Styles */
.foundation-footer {
    background: linear-gradient(to bottom, #222, #333);
    color: #f5f5f5;
    padding: 50px 20px 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-call-to-action {
    text-align: center;
    flex: 1 1 100%;
    margin-bottom: 40px;
}

.footer-call-to-action h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #e94560;
}

.footer-call-to-action p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.donate-button {
    background-color: #e94560;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.donate-button:hover {
    background-color: #c73350;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1 1 30%;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #e94560;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.social-media {
    display: flex;
    gap: 0px;
    width: 5px;
}

.social-media a {
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #e94560;
}

/* Social Media Icon Styling */
.social-media a {
    display: inline-block;
    margin: 0 5px; /* Adjust spacing between icons */
    transition: transform 0.3s ease;
}

.social-media img {
    width: 70px; /* Adjust the width of the icons */
    height: 60px; /* Adjust the height of the icons */
    border-radius: 50%; /* Optional: Make the icons circular */
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}

.footer-subscription {
    text-align: center;
    flex: 1 1 100%;
}

.footer-subscription h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #e94560;
}

.footer-subscription p {
    margin-bottom: 20px;
}

.footer-subscription form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-subscription input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 300px;
    max-width: 80%;
}

.footer-subscription button {
    background-color: #e94560;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-subscription button:hover {
    background-color: #c73350;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* Newsletter Section */
.footer-subscription {
    text-align: center;
    margin-top: 20px;
}

.footer-subscription h3 {
    font-size: 1.5em;
    color: #fff;
}

.footer-subscription p {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    gap: 10px; /* Add spacing between input and button */
}

.newsletter-form input[type="email"] {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0px 0px 5px rgba(233, 69, 96, 0.5);
}

.newsletter-form .subscribe-button {
    background-color: #e94560;
    color: #fff;
    border: none;
    padding: 10px 80px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form .subscribe-button:hover {
    background-color: #c8354f;
}

.success-container {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f5f5;
    color: #333;
    max-width: 600px;
    margin: 50px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.success-container h1 {
    font-size: 2.5em;
    color: #e94560;
}

.success-container p {
    font-size: 1.2em;
    margin: 20px 0;
}

.return-home {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.return-home:hover {
    background-color: #e94560;
}

.line-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.line-with-text::before,
.line-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #333; /* Line style */
    margin: 0 10px;
}

.line-with-text span {
    font-weight: bold;
    color: #e94560; /* Text color */
}

.custom-line {
    border: none; /* Remove default borders */
    height: 1px; /* Set the height of the line */
    background-color: #e94560; /* Choose your preferred color */
    margin: 30px 30px; /* Add spacing around the line */
}

.custom-line2 {
    border: none; /* Remove default borders */
    height: 1px; /* Set the height of the line */
    background-color: #e94560; /* Choose your preferred color */
    margin: 20px 30px; /* Add spacing around the line */
}
