#cert-verify {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#base {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-image: url('../img/bg/cert.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#bg-fade {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(0,0,0,0.45);
}

#text-div {
    width: 80%;
    max-width: 600px;
    padding: 40px 24px 15px 24px;
    text-align: center;
    margin-bottom: 18px;
}

#text-div h1 {
    font-size: 2.4rem;
    width: 100%;
    color: #fff;
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    animation: fadeInUp 1.5s ease-out forwards, textGlow 4s ease-in-out infinite;
}

#text-div p {
    color: #f8f8f8;
    font-family: sans-serif;
    font-size: 1.1rem;
    margin-top: 12px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1.8s ease-out forwards;
    animation-delay: 0.6s;
}

#certbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    margin-top: 12px;
}

#certificateButton {
    background: linear-gradient(90deg, #0055a5 0%, #0277bd 100%);
    border: none;
    border-radius: 40px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    transition: background 0.2s;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 1.2s;
}

.tp-btn {
    display: inline-block;
    padding: 12px 32px;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: background 0.2s;
    background: none;
    margin:0;
}


.tp-btn:hover,
#certificateButton:hover {
    background: linear-gradient(90deg, #0277bd 0%, #0055a5 100%);
    color: #fff;
}

@media (max-width: 900px) {
    #text-div {
        width: 90%;
        max-width: 90vw;
        padding: 32px 10px 10px 10px;
    }
    #text-div h1 {
        font-size: 2.4rem;
    }
    #text-div p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    #base, #bg-fade {
        padding: 0;
        min-height: 100vh;
    }
    #text-div {
        width: 98%;
        padding: 20px 5px 5px 5px;
        margin-bottom: 10px;
    }
    #text-div h1 {
        font-size: 2rem;
    }
    #certbtn {
        margin-top: 8px;
    }
    .tp-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    #text-div h1 {
        font-size: 1.6rem;
    }
    .tp-btn {
        font-size: 0.93rem;
        padding: 6px 12px;
    }
}
@keyframes fadeInUp {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 0px rgba(255,255,255,0);
  }
  50% {
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
  }
  100% {
    text-shadow: 0 0 0px rgba(255,255,255,0);
  }
}
