.certi-details {
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 42px;
    background: #fafafa;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Summary Button */
.certi-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fbb560e9;
    padding: 16px 20px;
    font-size: 27px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    list-style: none;
    border-radius: 42px;
    transition: background-color 0.4s ease;
}

.certi-summary:hover {
    background-color:hsl(274, 76%, 87%);
    border-radius: 42px;
}

/* Arrow animation */
.certi-details[open] .arrow {
    transform: rotate(180deg);
}

/* Arrow icon */
.arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

/* Content Styling */
.certi-content {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    font-size: 15px;
    color: #555;
    animation: slideDown 0.3s ease;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certi-content a {
    color: hsl(274, 76%, 87%);
    text-decoration: none;
}

.certi-content a:hover {
    text-decoration: none;
}




details {
    max-width: auto;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    transition: all 0.3s ease;
}



table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 12px 20px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color:#fbb560e9;

    color: black;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

#viewcerti table a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
  }
  
  /* Hover effect */
  #viewcerti table a:hover {
    color: #0056b3;
    text-decoration: underline;
  }
  

@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 10px;
        background: #fff;
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        font-weight: bold;
        text-align: left;
        padding-left: 5px;
    }
}