@import url('global.css');
/* ========================================
   ONGS PAGE STYLES
   ======================================== */
.ongs-category {
    margin-bottom: 4rem;
}

.bg-video3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.bg-video3 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(1.2);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    color: var(--light-green);
    margin-bottom: 2rem;
    font-weight: 600;
}

.category-title i {
    color: var(--sage-green);
    font-size: 1.5rem;
}

.ongs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ong-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(67, 160, 71, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ong-card.featured {
    border: 2px solid var(--sage-green);
    box-shadow: 0 0 30px rgba(67, 160, 71, 0.3);
}

.ong-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(67, 160, 71, 0.5);
    box-shadow: 0 20px 40px rgba(27, 94, 32, 0.3);
}

.ong-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.ong-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage-green), var(--leaf-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.ong-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
}

.ong-info h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--light-green);
}

.ong-type {
    background: rgba(67, 160, 71, 0.2);
    color: var(--sage-green);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ong-gallery {
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 0.5rem;
}

/* Botão de lupa sobre a imagem principal */
.gallery-main { position: relative; }
.img-zoom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .25s ease, transform .25s ease;
    z-index: 2;
}
.img-zoom-btn:hover { background: rgba(67,160,71,0.8); transform: scale(1.08); }
.img-zoom-btn i { pointer-events: none; }

/* Modal de imagem */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}
.image-modal.active { display: flex; }
.image-modal-inner {
    max-width: 900px;
    width: 100%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 2.2rem;
    position: relative;
}
.image-modal-close {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}
.image-modal-close:hover { color: var(--light-green); }
#image-modal-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}
/* Navegação (prev/next) */
.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background .25s ease, transform .25s ease;
    z-index: 5;
}
.image-modal-nav.prev { left: 12px; }
.image-modal-nav.next { right: 12px; }
.image-modal-nav:hover { background: rgba(67,160,71,0.85); transform: translateY(-50%) scale(1.08); }
.image-modal-nav:disabled { opacity: .35; cursor: default; transform: translateY(-50%); }
@media (max-width: 600px){
    #image-modal-img { max-height: 60vh; }
    .image-modal-inner { padding: .75rem .75rem 2rem; }
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Esconde a terceira miniatura para manter apenas 2 thumbs (total 3 imagens com a principal) */
.gallery-thumbs img:nth-child(3) {
    display: none;
}

.gallery-thumbs img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbs img:hover {
    transform: scale(1.05);
    border: 2px solid var(--sage-green);
}

.ong-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ong-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ong-actions button {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-learn-more {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sage-green);
    border: 1px solid rgba(67, 160, 71, 0.3);
}

.btn-learn-more:hover {
    background: rgba(107, 207, 40, 0.2);
    border-color: var(--sage-green);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

/* Mobile Small (até 480px) */
@media (max-width: 480px) {
    .ongs-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .ong-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .ong-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ong-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .ong-info h4 {
        font-size: 1.1rem;
    }
    
    .gallery-main img {
        height: 150px;
    }
    
    .ong-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ong-actions button {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

/* Mobile Medium (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .ongs-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .ong-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .category-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .ong-actions {
        flex-wrap: wrap;
    }
    
    .ong-actions button {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
    }
}

/* Mobile Large / Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .ongs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }
    
    .ong-card {
        max-width: 100%;
        width: 100%;
    }
    
    .category-title {
        text-align: center;
    }
}

