/* Base Styles */
body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Styles */
.w3-top {
    position: sticky;
    z-index: 1000;
}

.w3-bar .w3-button {
    padding: 16px;
    transition: background-color 0.3s;
}

.w3-bar .w3-button:hover {
    background-color: #575757;
}

.w3-bar .w3-button.active {
    background-color: #007bff;
}

/* Banner Animation */
@keyframes flashing {
    0% { color: black; }
    50% { color: #d4af37; } /* Gold color */
    100% { color: black; }
}

#flashing-text {
    animation: flashing 1s infinite alternate;
    font-weight: bold;
}

/* Banner positioning */
.w3-container.banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

/* Hero section */
.hero-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    height: 40vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.hero-text h1, .hero-text h2 {
    font-size: 4vw;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Page header for internal pages */
.page-header {
    margin-top: 70px;
    padding: 30px;
    background-color: #f5f5f5;
    text-align: center;
}

/* Leadership/Contact Cards */
.w3-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.w3-card img {
    width: 100%;
    border-bottom: 2px solid #343a40;
}

.w3-card h4 {
    margin: 8px 0;
    color: #007bff;
}

.w3-card p {
    margin: 4px 0;
}

.w3-card .w3-opacity {
    font-size: 0.85em;
    color: #6c757d;
}

.w3-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-item {
    margin: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
}

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

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: #3f51b5;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #303f9f;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1, .hero-text h2 {
        font-size: 5.5vw;
        white-space: normal;
    }
    
    .w3-half, .w3-third, .w3-quarter {
        width: 100%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .drawer-menu {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-text h1, .hero-text h2 {
        font-size: 6.5vw;
    }
}

/* Mobile Navigation */
.mobile-nav {
    background-color: #000;
    padding: 16px;
    display: none;
}

.hamburger-menu {
    font-size: 24px;
    cursor: pointer;
    padding: 16px;
    color: white;
}

.drawer-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.drawer-menu a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.drawer-menu a:hover {
    color: #f1f1f1;
}

.drawer-menu .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Slideshow */
.mySlides {
    display: none;
}

/* Misc */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
}

footer .w3-hover-opacity:hover {
    opacity: 0.7;
}

footer a {
    color: #343a40;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.section-border {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

/* Event cards */
.event-card {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Volunteer section cards */
.volunteer-card {
    transition: all 0.3s ease;
}

.volunteer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Button styles */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

/* Impact numbers */
.impact-number {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0;
}

.impact-label {
    font-size: 18px;
    color: #666;
}