/* 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;
}

/* Top navbar with contact info */
.top-navbar {
    background-color: rgba(255, 182, 193, 0.8); /* Light pink with transparency */
    text-align: right;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.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: #f5e5e8;
}

/* Main navigation bar */
.main-navbar {
    background-color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
}

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

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

.main-navbar a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #FFB6C1;
    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: #e38aa1;
}

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

.new-message {
    font-size: 1.5em;
    color: #FFB6C1;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card style */
.card {
    background-color: rgba(255, 255, 255, 0.8);
    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;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.card:hover::after {
    border-color: #FFB6C1;
}

.card h2 {
    color: #FFB6C1;
}

.card p {
    color: #555;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
}

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

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: #FFB6C1;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e38aa1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 182, 193, 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: #f5e5e8;
}

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

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

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

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

.swiper-pagination {
    bottom: 10px;
}

.swiper-container {
    position: relative;
    margin-bottom: 20px;
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.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;
    margin-bottom: 10px;
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 15;
}

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

.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;
    flex-direction: column;
    top: 100%;
}

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

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

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

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nav-left a {
        margin: 10px 0;
    }
}

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

.gallery-item {
    display: inline-block;
    margin: 10px;
}

.gallery-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Donation card images */
.card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

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

.donation-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFB6C1;
    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: #e38aa1;
}
