/* === Global styles === */
body {
    font-family: 'Poppins', sans-serif;
    background: #010e1d;
    color: #e6e6e6;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    
}

.p{
        font-size: 16px !important;
}

/* Links inside instruction paragraphs */
.inst p a {
    text-decoration: none;
    color: #d6ac42;
    font-size: 16px!important;
    
}

/* Back to site button */
.back-to-site {
    background-color: #d6ac42;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #0f1f33;
    min-width: 210px;
    padding: 10.5px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s ease-in-out,
                background-color 0.2s ease-in-out,
                border-color 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out;
}
.back-to-site:hover {
    background-color: #c49932;
    color: #0f1f33;
}

/* Back button responsiveness */
@media (max-width: 1198px) {
    .back-to-site {
        font-size: 16px;
        line-height: 27px;
        min-width: 160px;
        padding: 10px 15px;
    }
}
@media (max-width: 767px) {
    .back-to-site {
        font-size: 14px;
        line-height: 25px;
        min-width: 130px;
        padding: 7.5px 15px;
    }
    .logo {
        max-width: 100px;
    }
    body {
        font-size: 13px;
    }
}

/* Logo scaling */
header img.img-fluid {
    max-width: 100px;
}
@media (max-width: 575px) {
    header img.img-fluid {
        max-width: 100px;
    }
}

/* Main container panel */
main.container {
    background: #0f1f33;
    border-radius: 10px;
    padding: 2rem;
    color: inherit;
}

/* Section titles */
main h5 {
    color: #d6ac42;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Instruction list with numbered badges */
.inst ul {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
    margin-top: 1rem;
}
.inst ul li {
    position: relative;
    margin-bottom: 0rem;
    padding: 0.5rem 0 0.5rem 3rem;
    background: transparent;
    border: none;
    color: inherit;
        font-size: 16px;
}
.inst ul li::before {
    counter-increment: step-counter;
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #d6ac42;
    color: #0f1f33;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.inst ul li + li {
    border-top: 1px solid #1b2b45;
    padding-top: 1rem;
}

/* Preview panel */
.col-md-3.text-center .row {
    background: #0d1733;
    border: 1px solid #2c3e56;
    border-radius: 8px;
    padding: 1rem;
}
.col-md-3.text-center img {
    max-height: 320px;
    object-fit: contain;
    border-radius: 4px;
}

/* Search field */
#search.form-control {
    background: #0d1733;
    border: 1px solid #2c3e56;
    color: #e6e6e6;
    border-radius: 4px;
    height: 48px;
}
#search.form-control::placeholder {
    color: #8fa4c2;
}

/* Suggestions list */
#display_list { margin-top: 0.5rem; }
#prList {
    background: #0d1733;
    border: 1px solid #2c3e56;
    border-radius: 4px;
    max-height: 300px !important;
    overflow-y: auto !important;
    position: relative;
    z-index: 1;
}
#prList .list-group-item {
    background: transparent;
    border: none;
    color: #e6e6e6;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #1b2b45;
}
#prList .list-group-item:last-child { border-bottom: 0; }
#prList .list-group-item:hover { background: #132342; }

/* Certificate display */
#display_certificate {
    background: #0d1733;
    border: 1px solid #2c3e56;
    border-radius: 4px;
    padding: 1rem;
    color: #e6e6e6;
}

/* Download PDF button */
.pdf-btn .btn {
    background-color: #d6ac42;
    color: #0f1f33;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    font-weight: 600;
}
.pdf-btn .btn:hover { background-color: #c49932; }

/* Responsive adjustments */
@media (max-width: 768px) {
    main.container {
        padding: 1.5rem;
    }
    .inst ul li {
        padding-left: 3rem;
    }
}
/* Swap positions on ≥ md: image LEFT, copy RIGHT */
@media (min-width: 768px) {
  main .row.mt-4.mb-2.flex-column-reverse.flex-md-row.justify-content-between {
    flex-direction: row-reverse !important;
  }
}
