body {
    font-family: Arial;
    margin: 0 20px 20px 20px;
}

.logo-bar {
    background: white;
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.logo-bar img {
    max-height: 80px;
}

main {
    flex: 1;
}

.main-header {
    background-color: #830e21;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 15px 10px;
    gap: 10px;
}

.main-header h1 {
    margin: 0;
    font-size: 26px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 4px;
}

.search-box button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    background: white;
    color: #830e21;
    font-weight: bold;
    cursor: pointer;
}

#searchBtn i {
    margin-right: 6px;
    font-size: 16px;
}

main {
    background: white;
    padding: 20px;
    min-height: 60vh;
}

.result {
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
}

.result h2 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.result p {
    margin: 0;
    font-size: 14px;
}

.pagination {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    background: none;
    border: none;

    color: #830e21;
    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
    padding: 5px 8px;
}

.page-btn:disabled {
    color: #bbb;
    cursor: default;
    opacity: 0.5;
}

.page-btn:disabled:hover {
    background: none;
}

.page-info {
    font-size: 14px;
    color: #333;
}

.welcome {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: white;
    background-color: #830e21;
    padding: 12px;
    border-top: 2px solid #5e0a19;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 12px;
}

.about-link {
    cursor: pointer;
    color: #830e21;
    text-decoration: underline;
}

.mail-link {
    color: #830e21;
    text-decoration: none;
}

.mail-link:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 400px;
    margin: 10% auto;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: #830e21;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.modal-body {
    padding: 15px;
    font-size: 14px;
}

.model-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.close {
    cursor: pointer;
    font-size: 18px;
}