/* Basic Reset & Typography */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For responsiveness */
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #555;
}

/* Main Content */
main {
    padding: 40px 20px;
}

#certification-list h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
    font-size: 2rem;
}

/* Filters */
.filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.certification-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.certification-item img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.certification-item h3 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.5rem;
}

.certification-item .issuer {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.certification-item .date {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.certification-item .description {
    font-size: 0.95em;
    color: #666;
    flex-grow: 1; /* Allows description to take up available space */
    margin-bottom: 15px;
}

.certification-item .view-credential-btn {
    display: inline-block;
    background-color: #28a745; /* Green button */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px; /* Space above button */
    transition: background-color 0.3s ease;
}

.certification-item .view-credential-btn:hover {
    background-color: #218838;
}

/* Hidden state for filtering */
.certification-item.hidden {
    display: none;
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .certifications-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

    .filter-btn {
        display: block;
        width: calc(100% - 10px);
        margin: 5px auto;
    }
}