﻿html {
    scroll-behavior: smooth;
}

body {
    /*    font-family: 'Work Sans';*/
    overflow-x: hidden;
}

.diam-img {
    height: 165px;
    margin: auto;
    object-fit: contain;
    width: 100%;
}

.diam-img-sm {
    height: 125px;
    margin: auto;
    object-fit: contain;
    width: 100%;
}

.diam-img-lg {
    height: 350px;
    margin: auto;
    object-fit: contain;
    width: 100%;
}

.dna-container {
    padding: 24px 0;
    height: 100vh;
    position: relative;
}

.share-btn {
    position: fixed;
    z-index: 999;
    bottom: 25px;
    right: 25px;
    height: 52px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0F5E9F;
    color: white;
    font-size: 18px;
    border: 0;
}

.table {
    font-size: inherit;
}

.dna-lab-tabs .nav-link {
    color: #5a5a5a;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
}

.dna-lab-tabs .nav-link.active {
    color: #0f5e9f;
    border-color: #dee2e6 #dee2e6 #fff;
}

.slider-nav .slick-slide {
    border: 1px solid transparent;
}

.slider-nav .slick-current {
    border-color: black;
}

.dna-container {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
}

.row.flex-nowrap.overflow-auto.items.h-100,
.items {
    flex-wrap: wrap !important;
    overflow: visible !important;
    height: auto !important;
}

.certificate-section {
    position: relative;
    padding-bottom: 40px;
}

.certificate-card {
    overflow: hidden;
    border-radius: 8px;
}

.certificate-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 650px;
}

#certificateFrame {
    width: 100%;
    height: 650px;
    min-height: 650px;
    border: 0;
    display: block;
    overflow: hidden;
    background: #fff;
}

/* Larger desktops */
@media (min-width: 1400px) {
    .certificate-wrapper,
    #certificateFrame {
        height: 700px;
        min-height: 700px;
    }
}

/* Laptop / tablet */
@media (max-width: 991px) {
    .certificate-wrapper,
    #certificateFrame {
        height: 550px;
        min-height: 550px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .certificate-wrapper,
    #certificateFrame {
        height: 420px;
        min-height: 420px;
    }
}

#backToTop {
    position: absolute;
    right: 0;
    bottom: 0;
    background: transparent;
    border: none;
    color: #0d6efd;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 5;
}

    #backToTop:hover {
        color: #0a58ca;
        text-decoration: underline;
    }

/* Download & Share Card */
.download-share-card {
    border-radius: 18px;
    overflow: visible;
}

    .download-share-card .card-body {
        padding: 18px 14px 20px;
    }

    .download-share-card .card-title {
        color: #0d5cab;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 0;
    }

    .download-share-card hr {
        margin: 12px 0 16px;
        border-top: 1px solid #d3d3d3;
        opacity: 1;
    }

.download-share-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.download-share-btn.btn-outline-info,
.download-share-btn.btn-outline-success {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .2s ease;
}

.download-share-btn.btn-outline-info {
    border: 1px solid #5ea2ff;
    background: #fff;
    color: #5ea2ff;
    justify-content: center;
    box-shadow: none;
}

    .download-share-btn.btn-outline-info:hover,
    .download-share-btn.btn-outline-info:focus {
        background: #f4f8ff;
        border-color: #3f8cff;
        color: #3f8cff;
        box-shadow: none;
    }

.download-share-btn i {
    font-size: 14px;
}

.dropdown-arrow {
    margin-left: 2px;
    font-size: 10px;
}

/* Dropdown */
.custom-hover-dropdown {
    position: relative;
    display: inline-block;
}

.custom-hover-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 165px;
    background: #f3f3f3;
    border: 1px solid #bdbdbd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    display: none;
    z-index: 9999;
}

.custom-hover-dropdown:hover .custom-hover-menu {
    display: block;
}

/* Dropdown rows */
.custom-hover-item,
.image-download-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    background: #f3f3f3;
    border: 0;
    border-bottom: 1px solid #d8d8d8;
    cursor: pointer;
    text-align: left;
}

    .custom-hover-item:hover,
    .image-download-item:hover {
        background: #e7e7e7;
    }

    .custom-hover-item input[type="checkbox"] {
        margin: 0;
        accent-color: #073b61;
    }

/* Dropdown action button */
.custom-hover-share-btn {
    width: 100%;
    border: 0;
    background: #3f3f3f;
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
}

    .custom-hover-share-btn:hover {
        background: #2c2c2c;
    }

/* Mobile */
@media (max-width: 768px) {
    .download-share-actions {
        justify-content: center;
    }

    .download-share-btn {
        min-width: 130px;
    }
}

/* External Link Button Animation */
.blink-btn {
    animation: blinkGreen 1s infinite;
}

@keyframes blinkGreen {
    0%, 100% {
        background-color: #198754;
        border-color: #198754;
        color: #fff;
        box-shadow: 0 0 5px rgba(25, 135, 84, 0.3);
        transform: scale(1);
    }

    50% {
        background-color: #28a745;
        border-color: #28a745;
        color: #fff;
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
        transform: scale(1.08);
    }
}