:root {
    --primary: #003a66;
    --accent: #e11f53;
    --white: #ffffff;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; }
.top-bar { background: var(--primary); color: white; padding: 10px 5%; font-size: 14px; display: flex; justify-content: space-between; }
nav { background: #fff; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
nav a { text-decoration: none; color: #333; margin: 0 15px; font-weight: bold; transition: 0.3s; }
nav a:hover { color: var(--accent); }

h1, h2, h3, .heading-text { color: var(--primary); }

.btn-donate { background: var(--primary); color: white; padding: 10px 25px; border: none; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.btn-donate:hover { background: var(--accent); }

/* Slider */
.slider { width: 100%; height: 500px; overflow: hidden; position: relative; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 20px; }
.slide.active { opacity: 1; }
.slide-content { background: rgba(0,0,0,0.5); padding: 30px; border-radius: 10px; }

/* Grid Hover Effects */
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 50px 5%; }
.grid-item { position: relative; overflow: hidden; height: 300px; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-overlay { position: absolute; bottom: -100%; left: 0; width: 100%; height: 100%; background: rgba(0, 58, 102, 0.9); color: white; transition: 0.5s; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.grid-item:hover .grid-overlay { bottom: 0; }

footer { background: var(--primary); color: white; padding: 50px 5%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
footer h4 { border-bottom: 2px solid var(--accent); padding-bottom: 10px; }

/* Previous CSS included here... */

/* Grid for 3 columns (About Page) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 5%;
}

/* Grid for 4 columns (Services Page) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 5%;
}

/* Hover effect: Slide up text */
.hover-box {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 8px;
}
.hover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hover-box .overlay {
    position: absolute;
    top: 100%; /* Hidden below */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 58, 102, 0.9);
    color: white;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}
.hover-box:hover .overlay {
    top: 0;
}

/* Contact Page Layout */
.contact-container {
    display: flex;
    gap: 40px;
    padding: 50px 5%;
    align-items: center;
}
.contact-image { flex: 1; }
.contact-text { flex: 1; }
.contact-image img { width: 100%; border-radius: 10px; }

/* Form Styles */
input, textarea { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; }