/* Certificate Styles */
.certificate {
    border: 10px solid #084298;
    border-radius: 7px;
    color: #000;
    position: relative;
    background-color: #fdfdfd;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);

    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.certificate::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: 1;
}

.certificate-header {
    margin-top: 30px;
    text-align: center;
    color: #052C65;
}

.certificate-header h4 {
    font-family: "Times New Roman", Times, serif;
    font-size: 2.5rem;
    color: #052C65;
    margin: 0;
    font-weight: bold;
}

.certificate-body {
    text-align: center;
}

.certificate-body .recipient-name {
    font-style: italic;
    margin-top: 20px;
    font-size: 3.0em;
    font-weight: bold;
}

.course-name {
    font-size: 1.5em;
    color: #052C65;
}

.certificate-body p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

.certificate-badge {
    display: block;
    float: left;
    width: 64px;
    height: 80px;
    margin-top: 0;
    margin-left: 0;
}

.certificate-seclablogo {
    display: block;
    width: 194px;
    float: right;
    margin-top: 50px;
    margin-right: 10px;
}

/* Increase specificity to override custom.css .btn-close */
button.sidebar-close-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    width: 45px;
    height: 45px;
}

button.sidebar-close-floating:active {
    transform: scale(0.95);
}

/* Polaroid Styles */
.polaroid {
    width: 150px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 5px 20px 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.polaroid-img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    display: block;
    /* Ensures the image behaves correctly within its container */
}

.polaroid-no-img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.polaroid-no-img {
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Non-Image File Placeholder Styles */
.file-placeholder {
    width: 150px;
    height: 125px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.file-placeholder:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.file-placeholder .file-icon {
    font-size: 3rem;
    color: #6c757d;
    line-height: 1;
}

a {
    text-decoration: none;
}

.video-container {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

.video-container iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Flexbox for card titles with icons courses.view */
.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Disable sidebar animation on mobile */
#sidebarMenu.collapsing {
    transition: none !important;
}

/* Remove toggle button focus border/shadow */
.navbar-toggler:focus {
    box-shadow: none !important;
}