﻿body {
}

.title-top-row {
    width: 100%;
    font-family: 'TT Drugs Trial', sans-serif;
    text-align: center;
    font-size: 1.2rem;
    padding-top: 10px;
    padding-bottom: 12px;
    color: white;
    background-color: black;
}

    .title-top-row h1 {
        margin: 0;
        font-size: 1.6rem;
        color: #fff;
        text-shadow: 1px 1px #000;
    }

    .title-top-row p {
        margin: 4px 0 0;
        font-size: 1rem;
        color: #f1f1f1;
    }

/* Accessibility helper (shared naming w/ Home.css) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Grid item is now a <button> - reset native button styling */
.grid-item {
    width: 100%;
    max-width: 200px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    display: block;
}

    .grid-item:focus-visible {
        outline: 3px solid #0078d4;
        outline-offset: 3px;
        border-radius: 8px;
    }

    .grid-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
        display: block;
    }

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

    .grid-item p {
        font-family: 'TT Drugs Trial', sans-serif;
        padding: 5px;
        border-radius: 6px;
        color: white;
        margin-top: 3px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(10px);
    }


.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

    .modal.modal--hidden {
        display: none;
    }

    .modal img {
        max-width: 90%;
        max-height: 80vh;
        border-radius: 10px;
    }

    .modal p {
        color: white;
        margin-top: 10px;
        font-size: 1.2rem;
        font-family: 'TT Drugs Trial', sans-serif;
        padding: 10px;
        border-radius: 6px;
        background-color: black;
        text-align: center;
    }

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .modal-close:hover,
    .modal-close:focus-visible {
        background: #d9534f;
        outline: none;
    }

/* Bottom CTA section */
.ourwork-cta {
    max-width: 780px;
    margin: 40px auto;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    color: #222;
}

    .ourwork-cta h2 {
        margin: 0 0 0.5rem;
        font-size: 1.5rem;
    }

    .ourwork-cta p {
        margin: 0 0 1.25rem;
        color: #444;
        line-height: 1.5;
    }

.ourwork-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cta {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.15s ease, background 0.15s ease;
}

    .cta:hover {
        transform: translateY(-1px);
    }

.cta-primary {
    background: #28a745;
    color: #fff;
}

    .cta-primary:hover {
        background: #1f8a38;
    }

.cta-secondary {
    background: #0078d4;
    color: #fff;
}

    .cta-secondary:hover {
        background: #005fa8;
    }

.grupo-delistas {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    width: 100%;
    gap: 0; /* Optional: spacing between columns */
}

.div-list {
    background: rgba(0, 0, 0, 01);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 0px;
    margin-left: 0px;
    border-radius: 0px 0px 0px 0px;
    text-align: left;
}

.custom-list {
    list-style-type: square;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 10px;
}

    .custom-list li {
        font-family: 'TT Drugs Trial', sans-serif;
        font-size: 16px;
        color: #ffffff;
        text-shadow: 1px 1px #000000;
    }

.div-list-dos {
    background: rgba(0, 0, 0, 01);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 0px;
    margin-left: 0px;
    border-radius: 0px 0px 0px 0px;
    text-align: left;
}

.custom-list-dos {
    list-style-type: square;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 10px;
}

    .custom-list-dos li {
        font-family: 'TT Drugs Trial', sans-serif;
        font-size: 16px;
        color: #ffffff;
        text-shadow: 1px 1px #000000;
    }

@media only screen and (max-width: 600px) {
    /* Mobile-first layout */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 5px;
        margin-left: -10px;
    }

    /* Grid item styling */
    .grid-item {
        text-align: center;
        cursor: pointer;
    }

        .grid-item img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            transition: transform 0.3s ease;
        }

            /* Touch-friendly hover effect */
            .grid-item img:active {
                transform: scale(1.05);
            }

    /* Modal styling for mobile */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.85);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        z-index: 999;
    }

        .modal.modal--hidden {
            display: none;
        }

        .modal img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 10px;
        }

        .modal p {
            color: white;
            font-size: 1rem;
            margin-top: 12px;
            text-align: center;
            font-family: 'TT Drugs Trial', sans-serif;
            background-color: black;
            padding: 10px;
            border-radius: 6px;
        }
    
}