/*--- Typography ---*/
.w-100 {
    width: 100%;
}

header h2 {
    font-weight: normal;
    margin: 0.5rem auto 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff;
    color: #111;
    padding: 10px;
    text-align: center;
}

header .header-mid {
    h1 {
        font-size: 2.1rem;
        font-weight: 600;
        margin-bottom: 0;
    }
    h2 {
        font-weight: 600;
        margin-top: 0;
        line-height: 36px;
    }
    p {
        font-weight: 500;
        margin-bottom: 0;
    }
    .preface {
        font-size: 1.5rem;
    }
    .title-np {
        font-size: 1.85rem;
        letter-spacing: 2px;
    }
    .title-en {
        font-size: 1.5rem;
    }
    .subtitle-np {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    .subtitle-en {
        font-size: 1.05rem;
    }
}

.logo {
    width: 130px;
}

nav {
    background-color: #ef3a98;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 14px;
    font-size: 1.5rem;
}

.registration-form {
    background-color: #fff;
    padding: 30px 60px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.registration-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group click {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}

.form-group select {
    appearance: none;
}

.form-group select:after {
    appearance: none;
}

.form-group input[type="submit"] {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-group input[type="submit"]:hover {
    background-color: #45a049;
}

.custom-select {
    position: relative;
    padding: 0;
}

.custom-select::after {
    content: "\25BC"; /* Unicode for arrow down */
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    pointer-events: none; /* This ensures the arrow doesn't interfere with the select functionality */
}

/* ... Multioption toggle ... */
.multi-toggle {
    display: none;
}

.multi-toggle .show {
    display: block;
}

li {
    margin-bottom: 5px;
}

/*** Admit Card ***/
.admit-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border: 2px solid #000;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.stamp {
    width: 100px;
    height: auto;
}
.letterhead {
    margin-bottom: 30px;
    padding-bottom: 20px;
}
.letterhead h1 {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.letterhead p {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: bold;
}
.symbol-no {
    position: absolute;
    top: 175px;
    left: 40px;
    font-size: 16px;
}
.photo-box {
    position: absolute;
    top: 175px;
    right: 40px;
    width: 120px;
    height: 150px;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.photo-box img {
    width: 100%;
}

.photo-text {
    text-orientation: mixed;
    font-size: 14px;
    letter-spacing: 1px;
    color: #888;
}
.student-info {
    margin-top: 100px;
    margin-left: 0;
    max-width: fit-content;
}
.info-row {
    display: flex;
    margin-bottom: 20px;
}
.info-label {
    width: 120px;
    font-weight: bold;
}
.info-value {
    flex-grow: 1;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 7px;
}
.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 90px;
}
.signature-box {
    width: 200px;
    text-align: center;
}
.signature-box p {
    margin-bottom: 0;
}
.signature-line {
    width: 100%;
    border-bottom: 1px solid #000;
    margin-bottom: 5px;
}
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.1;
    pointer-events: none;
    white-space: nowrap;
}
.watermark img {
    width: 300px;
    height: auto;
}

#page ul,
#page ol {
    padding-left: 0.5rem;
    list-style: none;
}

#page ol {
    list-style: none;
}

@media (max-width: 545px) {
    .registration-form {
        padding: 30px;
    }

    #page .table,
    #page .table th,
    #page .table td,
    #page .table thead,
    #page .table tbody {
        width: 100%;
        display: block;
    }

    #page .table tbody {
        width: 100%;
        display: flex;
    }

    #page .table tr {
        width: 50%;
    }

    #page .table td {
        min-height: 2.5rem;
    }

    #page #table-1 td {
        min-height: 7rem;
    }

    #page ul li,
    #page ol li {
        margin-bottom: 0.75rem;
    }
}
