html {
    scroll-behavior: smooth;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50; /* Ensures it stays above other content */
}
body {
	padding-top: 70px; /* Adjust this value based on your navbar height */
    font-family: 'Nunito', sans-serif;
}

header {
    height: 50vh;
    background-size: cover;
    background-position: center;
	padding-top: 6rem; /* Adds padding to the top to separate text from the navbar */
    min-height: 70vh; /* Ensures the hero section has a minimum height */
}

/* Ensure the menu icon is always visible on small screens */
#menu-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100; /* Ensures it stays above other content */
}

@media (min-width: 768px) {
    .core-values div {
        padding: 2rem 1rem;
    }
	
	#approach-hero h1 {
		font-size: 3rem; /* Larger font size on medium and large screens */
	}
}

@media (max-width: 768px) {
    header {
        height: 40vh;
		padding-top: 8rem; /* More padding on smaller screens */
    }
	
	.text-3xl {
        font-size: 2rem;
    }

    .text-lg {
        font-size: 1rem;
    }
	
    .text-4xl {
        font-size: 2.5rem;
    }

    .text-xl {
        font-size: 1.25rem;
    }

    .bg-cover {
        height: 300px;
    }

    .text-center {
        text-align: center;
    }
	
	.hero-paragraph {
		margin-top: 30px;
        margin-left: 30px;
        margin-right: 30px;
		margin-bottom: 30px;
    }
	
	.core-values div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .grid {
        display: block;
    }

    .hidden {
        display: none;
    }

    .flex {
        display: block;
    }

    .flex-col {
        flex-direction: column;
    }

    .flex-row {
        flex-direction: row;
    }

    .justify-between {
        justify-content: space-between;
    }

    .items-center {
        align-items: center;
    }

    .text-center {
        text-align: center;
    }
}

.zigzag {
    clip-path: inset(0 0 100% 0); /* Initially hide the entire path from top */
    animation: reveal 1s ease-in-out forwards;
}

@keyframes reveal {
    to {
        clip-path: inset(0 0 0 0); /* Reveal the entire path */
    }
}

/* Initial state: hidden and slightly below */
.peek-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state: fully opaque and in place */
.peek-up-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-orange-outline {
	background-color: white;
	color: #FFA500; /* Orange text color */
	border: 2px solid #FFA500; /* Orange border */
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: bold;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-orange-outline:hover {
	background-color: #FFA500; /* Orange background on hover */
	color: white; /* White text on hover */
	border-color: #FFA500; /* Orange border on hover */
}

/* Styles for Login, Learn More, and Donate Now buttons */
.btn-blue-outline {
	background-color: #1E90FF;
	color: white; /* Blue text color */
	border: 2px solid #1E90FF; /* Blue border */
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: bold;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-blue-outline:hover {
	background-color: #0000FF; /* Blue background on hover */
	color: white; /* White text on hover */
	border-color: #0000FF; /* Blue border on hover */
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Make the bounce more pronounced */
    }
}

.bounce-arrow:hover i {
    animation: bounce-up 0.8s ease-in-out infinite; /* Slow down the animation */
}

#approach-hero {
	padding-top: 40px;
	padding-bottom: 40px; /* Reduces the height */
}

#approach-hero h1 {
	font-size: 2.5rem;
	line-height: 1.2;
}

#approach-hero .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }


#approach-hero img.hero-img {
        max-width: 100%;
        height: auto;
    }

@media (min-width: 1024px) {
        #approach-hero img.hero-img {
            height: 100vh; /* The image will occupy 100% of the viewport height on larger screens */
            object-fit: cover; /* Ensures the image scales properly without distortion */
        }

        #approach-hero .container {
            padding-left: 3rem;
            padding-right: 3rem; /* Adds larger left and right margins for bigger screens */
        }
    }
	
.modal {
    display: none; /* Hidden by default; set to 'block' to show */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid black;
    width: 80%; /* Could be more or less, depending on screen size */
    max-height: 80%; /* Prevents overflowing on small screens */
    overflow-y: auto; /* Enable scrolling for content that exceeds the modal height */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: Add a class for when the modal is active */
.modal.show {
    display: block; /* Show the modal */
}
