* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

body {
    background: #efede1;
    color: #193d6f;
    height: 100%;
    width: 100%;
}

.container {
    min-height: 100vh;
    display: flex;
}

.content {
    width: 55%;
    margin: 30px 50px;
}

.content-image {
    background: url('../images/Backdrop_2026_Original.jpg');
    width: 45%;
    background-size: cover;
}

.certificate {
    margin-bottom: 60px;
}

.certificate-title {
    font-size: 3.75rem;
    font-weight: 800;
    text-align: center;
    animation: fadeInUp 0.5s ease-in;
}

.certificate-subtitle {
    font-size: 2.0rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-in;
}

.main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    line-height: 1.8;
    align-items: center;
}

.content-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-in;
}

.content-row {
    display: flex;
    flex-direction: row;
    font-size: 1.8rem;
    font-weight: 600;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    height: auto;
}

.content-row-input {
    min-width: 22rem;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 0.5rem;
    border: none;
    border-radius: 10px;
    position: relative;
    text-align: center;
    border: 1px solid #193d6f;
}

select.content-row-input,
select.content-row-input option {
    text-align: left;
    text-align-last: left;
}

.notice-heading {
    text-decoration: underline;
    background: transparent;
    z-index: 1;
}

.notice {
    margin: 30px 50px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.4;
    background: transparent;
    animation: fadeInUp 0.5s ease-in;
}

.notice-columns {
    display: grid;
    font-size: 18px
}

.notice-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.buttons {
    grid-area: buttons;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-in;
}

.button-section-button {
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: orange;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #193d6f;
}

    .button-section-button:hover {
        background: rgb(71, 12, 94);
        transform: scale(1.05);
    }

.para {
    margin-bottom: 0.2rem;
}


#full_name_404 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ff4d4d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Media Queries */
@media (max-width: 1400px) {
    .content {
        width: 55%;
    }

    .certificate {
        font-size: 2.5rem;
    }

    .content-heading {
        font-size: 2rem;
    }

    .content-row {
        font-size: 1.4rem;
    }

    .button-section-button {
        font-size: 1.1rem;
    }

    .notice {
        margin: 20px 0 !important;
        padding: 10px;
        max-height: 280px;
    }

    .notice-heading {
        font-size: 1.4rem;
    }

    .notice-row {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .content {
        width: 90%;
    }

    .content-image {
        width: 100%;
        height: 90vh;
    }

    .certificate {
        font-size: 2rem;
    }

    .content-heading {
        font-size: 1.8rem;
    }

    .content-row {
        font-size: 1.2rem;
    }

    .button-section-button {
        font-size: 1rem;
    }

    .notice {
        padding: 8px;
        max-height: 260px;
    }

    .notice-heading {
        font-size: 1.2rem;
    }

    .notice-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .content {
        width: 95%;
        grid-template-columns: 1fr;
        grid-template-areas:
            "certificate"
            "main"
            "notice"
            "buttons";
    }

    .certificate {
        font-size: 1.5rem;
    }

    .content-heading {
        font-size: 1.5rem;
    }

    .content-row {
        font-size: 1rem;
    }

    .button-section-button {
        font-size: 0.9rem;
    }

    .content-row-input {
        min-width: 15rem;
        font-size: 1rem;
    }

    .notice {
        padding: 6px;
        max-height: 240px;
    }

    .notice-heading {
        font-size: 1.1rem;
    }

    .notice-row {
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {
    .content {
        width: 95%;
        grid-template-columns: 1fr;
    }

    .certificate {
        font-size: 1.2rem;
    }

    .content-heading {
        font-size: 1.2rem;
    }

    .content-row {
        font-size: 0.9rem;
    }

    .button-section-button {
        font-size: 0.8rem;
    }

    .content-row-input {
        min-width: 10rem;
        font-size: 0.8rem;
    }

    .notice {
        padding: 5px;
        max-height: 220px;
    }

    .notice-heading {
        font-size: 1rem;
    }

    .notice-row {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .content {
        width: 95%;
    }

    .certificate {
        font-size: 1rem;
    }

    .content-heading {
        font-size: 1rem;
    }

    .content-row {
        font-size: 0.7rem;
    }

    .button-section-button {
        font-size: 0.7rem;
    }

    .content-row-input {
        min-width: 10rem;
        font-size: 0.7rem;
    }

    .notice {
        padding: 4px;
        max-height: 200px;
    }

    .notice-heading {
        font-size: 0.9rem;
    }

    .notice-row {
        font-size: 0.6rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
