.all_awards-section {
    max-width: 1500px;
    margin: 2rem auto; /* Adjusted margin */
    padding-top: 0; /* Remove top padding as heading is outside */
}

/* Back button styles */
.back-btn {
    display: block; /* To allow margin auto centering */
    width: fit-content; /* Adjust width to content */
    margin: 2rem auto; /* Center button and add some margin */
    padding: 10px 20px;
    background-color: #002368ea;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none; /* Remove underline from button itself if it's not an anchor */
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1.5rem;
    font-weight: 500;
}

.back-btn a {
    color: white; /* Ensure text color is white */
    text-decoration: none; /* Remove underline from anchor text */
    display: inline-flex; /* Align icon and text */
    align-items: center;
}

.back-btn i {
    margin-right: 8px; /* Space between icon and text */
}

.back-btn:hover {
    background-color: #0128d5;
}

.back-btn:focus,
.back-btn a:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 3px rgba(0, 31, 167, 0.586); /* Custom focus ring */
}

/* Certificate Section */
.certificate-section {
    margin: 4rem auto 2rem auto;
    padding: 2rem 1rem;
    background: transparent;
    min-height: 100vh;
    padding: 2rem 3%;
}

.certificate-section .heading {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.certificate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.certificate-card {
    background: #fff;
    border-radius: 10px;
    border: 2px solid #00000030;
    box-shadow: 0 1px 10px rgba(0,0,0,0.13);
    width: 300px;
    min-height: 380px;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.certificate-card:hover {
    box-shadow: 0 0 15px #0000004f;
    border: 1px solid #00000068;

}

.certificate-card img {
    width: 100%;
    object-fit: cover;
    border: 0.7px solid #7a7a7a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.342);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #002368ea;
    margin-bottom: 0.5rem;
    text-align: center;
}

.cert-desc {
    font-size: 1.3rem;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.certificate-modal .modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    max-width: 450px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalPop 0.3s;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.certificate-modal .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2.2rem;
    color: #002368ea;
    background: #b1b1b184;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.certificate-modal .close-btn:hover {
    color: #ff8401;
}

.certificate-modal img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #a9a9a9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.287);
}

.certificate-modal h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #002368ea;
    margin-bottom: 0.5rem;
    text-align: center;
}

.certificate-modal p {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.certificate-modal .modal-social {
    display: flex;
    gap: 18px;
    margin: 1rem 0;
    justify-content: center;
}

.certificate-modal .modal-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5ecfb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #002368ea;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
}

.certificate-modal .modal-social a:hover {
    background: #002368ea;
    color: #fff;
    transform: scale(1.1);
}

.certificate-modal .modal-actions {
    display: flex;
    gap: 18px;
    margin-top: 1rem;
    justify-content: center;
}

.certificate-modal .modal-download,
.certificate-modal .modal-share {
    background: #002368ea;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.certificate-modal .modal-download:hover,
.certificate-modal .modal-share:hover {
    background: #ff8401;
    transform: scale(1.05);
}

/* All Awards Section */
.all_awards {
    padding: 2rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .certificate-card {
        width: 320px;
        min-height: 300px;
        padding: 1.2rem;
    }
    .certificate-modal .modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .certificate-section {
        padding: 1rem 0.2rem;
    }
    .certificate-container {
        flex-direction: column;
        align-items: center;
    }
    .certificate-card {
        width: -webkit-fill-available;
        min-height: 220px;
        padding: 0.8rem;
    }
    .certificate-modal .modal-content {
        padding: 1.5rem;
        max-width: 98vw;
    }
    .certificate-modal img {
        max-width: 95vw;
    }
}

/* Dark Mode Styles */
.dark-mode .cert-title {
    color: #F8A145;
}
.dark-mode .certificate-card {
    background: #191919;
    color: #fff;
    box-shadow: 0 0 10px #ffffff4c;
    border: 1px solid #ffffff1f;

}
.dark-mode .certificate-card:hover {
    box-shadow: 0 0 15px #ffffff3d;
    border: 1px solid #ffffff51;
}
.dark-mode .cert-desc {
    color: #fff;
}
.dark-mode .certificate-modal .modal-content {
    background: #262626;
    color: #fff;
}
.dark-mode .certificate-modal h3 {
    color: #F8A145;
}
.dark-mode .certificate-modal p {
    color: #fff;
}
.dark-mode .certificate-modal .close-btn {
    color: #F8A145;
}
.dark-mode .certificate-modal .close-btn:hover {
    color: #ff8401;
}
.dark-mode .certificate-modal .modal-social a {
    background: #000;
    color: #F8A145;
}
.dark-mode .certificate-modal .modal-social a:hover {
    background: #F8A145;
    color: #000;
}
.dark-mode .certificate-modal .modal-download,
.dark-mode .certificate-modal .modal-share {
    background: #F8A145;
    color: #000;
}
.dark-mode .certificate-modal .modal-download:hover,
.dark-mode .certificate-modal .modal-share:hover {
    background: #ff8401;
    color: #fff;
}