/* Reset margins and paddings for the body and main elements */
body, header, nav, footer {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Style for the body background image */
body {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 80px;
}

/* Style for the top navbar with contact info */
.top-navbar {
    background-color: rgba(70, 130, 180, 0.8); /* Steel blue with transparency */
    text-align: right;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.top-navbar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.top-navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: white;
    transition: width 0.3s;
    bottom: -5px;
    left: 0;
}

.top-navbar a:hover::after {
    width: 100%;
}

.top-navbar a:hover {
    color: #ddd;
}

/* Style for the main navigation bar */
.main-navbar {
    background-color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative; /* Ensure main-navbar is positioned */
    z-index: 10; /* Adjust z-index if necessary */
}


.nav-left {
    display: flex;
    align-items: center;
}

.main-navbar a {
    color: #4682B4;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Stylish hover effect for navbar links */
.main-navbar a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #4682B4;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.main-navbar a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.main-navbar a:hover {
    color: #315f8c;
}

/* New message section */
.message-section {
    text-align: center;
    margin-top: 10px;
}

.new-message {
    font-size: 1.5em;
    color: #4682B4; /* Light blue color to match the navbar */
    opacity: 0; /* Initially hide the message */
    animation: fadeIn 2s forwards; /* Apply animation */
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* Start with full transparency */
        transform: translateY(-50px); /* Move up slightly */
    }
    100% {
        opacity: 1; /* Fully opaque */
        transform: translateY(0); /* Return to original position */
    }
}

/* Style for the card */
.card {
    background-color: rgba(255, 255, 255, 0.8); /* White with transparency */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    position: relative; /* Position relative for pseudo-element */
    overflow: hidden; /* Hide overflowing border */
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent; /* Initial transparent border */
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.5s ease; /* Transition for border color */
    pointer-events: none; /* Allow clicks to pass through */
}

.card:hover::after {
    border-color: #4682B4; /* Change border color on hover */
}

.card h2 {
    color: #4682B4;
}

.card p {
    color: #555;
}

/* Style for the application form */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    color: #4682B4;
}

form input, form select, form textarea, form button {
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

form textarea {
    resize: vertical;
}

form button {
    background-color: #4682B4;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #315f8c;
}

/* Style for the footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(70, 130, 180, 0.8); 
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: white;
    transition: width 0.3s;
    bottom: -5px;
    left: 0;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-nav a:hover {
    color: #ddd;
}

.apply-button-container {
    text-align: center;
    margin-top: 20px;
}

.apply-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4682B4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background-color: #315f8c;
}

/* Adjust the fonts */
body, header, nav, footer, h1, h2, p, a {
    font-family: "Courier New", Courier, monospace;
}

.swiper-pagination {
    bottom: 10px; /* Adjust the distance from the bottom of the swiper container */
}

.swiper-container {
    position: relative;
    margin-bottom: 20px;
    z-index: 1; /* Ensure Swiper container is behind dropdown menu */
}

.swiper-slide img {
    width: 100%;
    height: 300px; /* Adjust the height as needed */
    object-fit: cover; /* Maintain aspect ratio and cover the entire slide */
}

.swiper-slide {
    position: relative;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.slide-content p {
    font-size: 24px; /* Adjust the font size as needed */
    margin-bottom: 10px;
}

/* Responsive Navbar */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative; /* Ensure nav-hamburger is positioned */
    z-index: 15; /* Ensure it is above other content */
}

.nav-hamburger i {
    font-size: 24px;
    color: #4682B4;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 20; /* Ensure dropdown content is above Swiper container */
    flex-direction: column;
    top: 100%; /* Adjust dropdown position */
}

.dropdown-content a {
    color: #4682B4;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.nav-hamburger:hover .dropdown-content {
    display: flex;
    top: 50px; /* Adjust dropdown position */
}

/* Media Queries */
/* Adjust the styling of navbar links for smaller screens */
@media (max-width: 768px) {
    .nav-left {
        display: flex;
        flex-direction: column; /* Stack navbar links vertically */
        align-items: center; /* Center align navbar links */
        text-align: center; /* Center align text */
    }
    
    .nav-left a {
        margin: 10px 0; /* Add some vertical spacing between navbar links */
    }
}

/* Add these styles to your existing CSS file */

/* Style for the gallery container */
.gallery-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* White with transparency */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 900px;
}

/* Style for the gallery items */
.gallery-item {
    display: inline-block;
    margin: 10px;
}

/* Style for the gallery images */
.gallery-item img {
    width: 300px; /* Set fixed width */
    height: 200px; /* Set fixed height */
    object-fit: cover; /* Maintain aspect ratio and cover the entire box */
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow */
    transition: transform 0.3s ease; /* Optional: Add a hover effect */
}

/* Optional: Hover effect for gallery images */
.gallery-item img:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}

/* Responsive images for donations */
.card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto; /* Center the images */
}

.donation-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.donation-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4682B4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.donation-link i {
    margin-right: 10px;
}

.donation-link:hover {
    background-color: #315f8c;
}
