div.certificate
{
    border-radius: 32px;
    border: 1px solid #332f35;
    margin-top: 128px;
    margin-bottom: 40px;
    background-color: #1B1B1B;
    background-image: url('/files/imgs/pages/course-certificate/view-for-guest/bg-grid.svg');
    background-repeat: repeat;
    background-size: 11.5%;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 80px;
    padding-right: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 80px rgba(0, 0, 0, 0.2);
}

.certificate-info
{
    margin-top: 48px;
    margin-bottom: 128px;
    color: #9894af;
}

.certificate-info a, .certificate-info a:visited {
    display: inline-block;
    color: #A294F5;
    text-decoration: none;
    font-size: 18px;
    font-family: "Inter-Tight", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease-in-out;
}

.certificate-info a:hover {
    color: #7966e1;
}

/* Add SVG shape styling */
svg.shape {
    position: absolute;
    top: -200px;
    right: -150px;
    filter: blur(96px);
    z-index: 1;
    opacity: 0.6;
}

/* Ensure content appears above the SVG */
.row {
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4 {
    font-family: "Inter-Tight", sans-serif;
    font-weight: 700;
    line-height: 1.24;
    color: #ffffff;
}

h1
{
    font-size: 128px;
}

h2
{
    font-size: 28px;
}

h3
{
    font-size: 28px;
}

h4
{
    font-size: 48px;
}

.logo
{
    margin-top: 40px;
}

.qrcode {
    width: 178px;
}

.qr-text-link {
    color: #C1C5D0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: block;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    
    .logo svg
    {
        width: 128px;
    }

    div.certificate
    {
        background-size: 20%;
        padding: 24px;
        margin-top: 16px;
    }

    .certificate-info
    {
        margin-bottom: 16px;
    }

    svg.shape {
        top: -150px;
        right: -400px;
        transform: scale(0.8);
    }

    h1 {
        margin-bottom: 0px;
        margin-top: 4px;
        font-size: clamp(32px, 12vw, 56px);
        /* margin-left: max(2px, calc(1vw*0.5)); */
    }
    
    h2 {
        font-size: 20px;
    }

    h2.author {
        margin-top: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        margin-top: 8px;
        font-size: 32px;
    }
    
    .logo {
        margin-top: 24px;
    }
    
    .qrcode,
    .qrcode svg {
        width: 100%;
        height: auto;
    }

    .qr-text-link {
        font-size: 16px;
        text-align: left;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 768px) {

    .logo svg
    {
        width: 128px;
    }

    div.certificate
    {
        padding: 24px 40px;
        margin-top: 16px;
    }

    .certificate-info
    {
        margin-bottom: 16px;
    }

    svg.shape {
        top: -160px;
        right: -450px;
        transform: scale(0.9);
    }

    h1 {
        font-size: 80px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    h4 {
        margin-top: 8px;
        font-size: 36px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 992px) {

    .logo svg
    {
        width: 160px;
    }

    div.certificate
    {
        padding: 32px 48px;
        margin-top: 64px;
    }

    .certificate-info
    {
        margin-bottom: 64px;
    }

    h1 {
        font-size: 88px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    h3 {
        margin-top: 50px;
        margin-left: 24px;
        font-size: 26px;
    }
    
    h4 {
        margin-top: 8px;
        margin-left: 24px;
        font-size: 42px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1200px) {
    h1 {
        font-size: 96px;
    }

    div.certificate
    {
        margin-top: 80px;
    }

    .certificate-info
    {
        margin-bottom: 80px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Default styles are already set for this breakpoint */
}


  