/* certificates.css */

/* ======= General ======= */
body {
    background-color: #f4f6f8;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: #333;
}

/* ======= Heading Principal ======= */
h1.text-primary {
    font-weight: bold;
    font-size: 2.5rem;
    color: #0d6efd;
}

/* ======= Dropdown Filter ======= */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    min-width: 220px;
    font-weight: 500;
}

.dropdown-menu {
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.dropdown-item:hover {
    background-color: #e9ecef;
}

/* ======= Cards de Certificados ======= */
#certificatesContainer {
    margin-top: 2rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.75rem;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.12);
}

.card-img-top {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    height: 200px;
    object-fit: cover;
}

/* Card Body */
.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.card-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.view-certificate {
    border-radius: 0.5rem;
    font-weight: 500;
}

/* ======= Modal Certificado ======= */
.modal-content {
    border-radius: 1rem;
    padding: 1rem;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
    color: #0d6efd;
}

.modal-body img {
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#modalOrganization {
    margin-top: 1rem;
    font-weight: 600;
}

#modalDescription, #modalDate {
    color: #6c757d;
}

/* ======= Responsive Ajustes ======= */
@media (max-width: 768px) {
    .d-flex.flex-md-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .dropdown-menu {
        width: 90vw;
        max-width: none;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .dropdown-toggle {
        min-width: 100%;
    }
}
