/* Base Resets & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #111111;
    padding: 0 40px 40px 40px;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Cinzel', serif;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {    
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name { 
    color: #ea580c; 
    font-size: 1.25rem; 
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ea580c;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Cinzel', serif;
}

.nav-links a:hover { 
    color: #ea580c;
}

.nav-links li {
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e293b; 
    min-width: 180px; 
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3); 
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
    top: 100%;
    left: 0;
    border-radius: 6px; 
    border-top: 3px solid #ea580c; 
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #f1f5f9; 
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: #e67e22;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn-donate {
    background: #ea580c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* Hero Title Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px 20px;
}

.hero-section h1 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 15px;
}

.hero-section h3 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Category Filters styling */
.filters-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    color: #999999;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.filter-btn:hover, .filter-btn.active {
    color: #00c292;
}

.separator {
    color: #ccc;
    font-size: 0.6rem;
}

/* Responsive Masonry-Inspired Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 260px;
    gap: 15px;
    grid-auto-flow: dense;
}

/* Image Card Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effects */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Making specific boxes wider */
.item-wide {
    grid-column: span 2;
}

/* Animation states for Javascript filter logic */
.gallery-item.hide {
    transform: scale(0.8);
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.gallery-item.show {
    transform: scale(1);
    opacity: 1;
}

/* ==========================================
MOBILE & TABLET RESPONSIVE BREAKPOINTS
========================================== */

@media (max-width: 992px) {
    body {
        padding: 0 15px 30px 15px;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 0.8rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: #ffffff;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #1e293b;
        text-align: center;
    }

    .dropdown-content li a {
        text-align: center;
    }

    .item-wide { 
        grid-column: span 1; 
    }

    .hero-section {
        padding: 40px 10px 30px 10px;
    }

    .hero-section h1 { 
        font-size: 1.25rem; 
    }

    .hero-section h3 { 
        font-size: 0.9rem; 
    }

    .filters-container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        grid-auto-rows: 220px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .btn-donate {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}