* {
    box-sizing: border-box;
}

/* Reset */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: #333;
}

body {
    font-family: sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}
header h1{
    display: flex;
    align-items: center;
}
header h1 img {
    height: 40px;
}

header ul {
    display: flex;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    display: flex;
    align-items: center;
    height: 40px;
}

header ul li a i {
    font-size: 24px;
    margin-right: 5px;
}

.link-text {
    display: none;
}

/* Sub */
#sub {
    padding: 20px;
}

.slider-container {
    position: relative;
    overflow: hidden; /* Add this */
}

.slider {
    display: flex;
}

.slider li {
    margin-right: 10px;
    flex: 0 0 30%;
}

.slider img {
    width: 100%;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.register, .notice {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.register {
    background: #f0ad4e;
    color: #fff;
    border: 1px solid #d98e28; /* Darker border for outline */
    border-bottom: 5px solid #d98e28; /* Thick bottom border for depth */
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 10px;
    transition: all 0.1s ease-in-out;
}

.register:hover {
    background-color: #e89f3a; /* Darken on hover */
}

.register:active {
    background-color: #d98e28;
    /* "Compress" the bottom border */
    border-bottom-width: 2px;
    /* Adjust padding to keep height constant and shift text down */
    padding: 12px 10px 11px 10px;
}

.notice {
    background: #fff;
    color: #5bc0de;
    border: 1px solid #5bc0de;
}

/* Main */
main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0ad4e;
    padding-bottom: 5px;
}
h3{
    font-size: 1em;
}
p{
    font-size: 0.9em;
}
/* Ranking */
main section > ul > li {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.ranking li {
    display: flex;
    align-items: center;
}

.pickup a,
.ranking a {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-right: 40px; /* Add space for the icon */
}

main section ul:not(.ranking) li a .fa-chevron-right,
.ranking a .fa-chevron-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.rank-num {
    font-size: 1.8em;
    font-weight: bold;
    margin-right: 15px;
    color: #f0ad4e;
}

.pickup img,
.ranking img {
    width: 80px;
    margin-right: 15px;
}

/* Search */
#cont-sea form {
    display: flex;
    margin-bottom: 15px;
}

#cont-sea input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #eee;
}

#cont-sea button {
    padding: 10px 15px;
    border: none;
    background: #f0ad4e;
    color: #fff;
}

#cont-sea ul li a {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    position: relative;
}
.bana{
    display: block;
    margin-top: 20px;
}
.bana img{
    width: 100%;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px;
}

.user-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #555;
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
}

/* Responsive */
@media (min-width: 768px) {
    .slider li {
        flex-basis: 19%;
    }

    main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    section {
        width: 48%;
        display: flex;
        flex-direction: column;
    }

    #cont-sea {
        width: 100%;
    }

    main > section:not(#cont-sea) > ul {
        flex-grow: 1;
    }

    .link-text {
        display: inline;
    }
}
