@charset "utf-8";
/* CSS Document */

.page-margin {
    max-width: 1350px;
    margin: 0 auto;
}

.hero-section {
    background: #EBECEB;
    padding: 4em 0 6em;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title h1 {
    margin: 0;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 30px;
}

.hero-title p {
    color: #3B5069;
    margin: 8px 0;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 2em auto 0;
    border-radius: 24px 24px 0 0;
}

.search-container:not(.open) {
    border-radius: 24px;
}

.search-container.open {
    box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.24);
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 24px;
    padding: 6px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 50px;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease-in-out;
}

.search-box input:focus,
.search-box select:focus,
.search-box:focus-within {
    outline: none;
}

.search-container:not(.open) .search-box:focus-within {
    border-color: #dadce0;
    box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.24);
}

.search-container.open .search-box {
    border-color: #dadce0;
    border-bottom-color: #f1f5f9;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none !important;
}

.search-btn {
    padding: 0;
    border: none;
    background: none;
    font-size: 20px;
    color: #0066cc;
}

.search-icon {
    color: #64748b;
    margin-right: 8px;
}

.category-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.category-select {
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    padding-left: 16px;
    padding-right: 18px;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 2px;
    pointer-events: none;
    color: #475569;
}

.divider {
    width: 1px;
    height: 30px;
    background-color: #cbd5e1;
    margin: 0 12px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: #0f172a;
    background: transparent;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: none;
    max-height: 240px;
    overflow-y: auto;
    overflow: hidden;
    z-index: 50;
}

.search-container.open .autocomplete-dropdown {
    display: block;
    box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.24), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.autocomplete-item.active,
.autocomplete-item:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.autocomplete-item .item-title {
    font-size: 14px;
    color: #000;
    margin: 0;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
}



#papersList {
    margin-bottom: 100px;
}

.list-container {
    width: 100%;
    max-width: 800px;
    margin: 5em auto 2em;
}

.paper-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

.item-number {
    width: 40px;
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    padding-top: 2px;
}

.item-content {
    flex: 1;
}

.list-container .item-content a {
    text-decoration: none;
}

.list-container .item-title {
    font-size: 18px;
    color: #0066CC;
    margin: 0 0 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.list-container .item-title:hover {
    text-decoration: underline;
}

.item-title:hover {
    text-decoration: none;
}

.item-category {
    font-size: 14px;
    font-weight: 700;
    color: #555555;
    margin-bottom: 8px;
}

.item-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
}

.page-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
}

.page-btn:hover {
    text-decoration: underline;
}

.page-btn.active {
    font-weight: 700;
    color: #000000;
}

.page-btn:disabled {
    color: #cccccc;
    cursor: not-allowed;
    background: none;
}

.bottom-name {
    margin: 0;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 17px;
    text-align: center;
}

/*********************
Media
*********************/

@media only screen and (max-width: 1400px) {
    .page-margin {
        max-width: 1200px;
        margin: 2.5em auto 4em;
    }
}

@media only screen and (max-width: 1250px) {
     .page-margin {
        max-width: 1100px;
    }
}

@media only screen and (max-width: 1150px) {
    .page-margin {
        max-width: unset;
        margin: 2.5em 2em 4em;
    }
}

@media only screen and (max-width: 992px) {
    .list-container {
        max-width: unset;
    }
}

@media only screen and (max-width: 800px) {
    .search-container {
        max-width: 600px;
    }
    .hero-title h1 {
        font-size: 26px;
    }
}

@media only screen and (max-width: 600px) {
    .page-margin {
        margin: 1em 2em 4em;
    }
    .search-container {
        max-width: unset;
        width: calc(100% - 4em);
    }
    .search-container.open .autocomplete-dropdown {
        margin: 0 2em;
    }
}

@media only screen and (max-width: 500px) {
    .category-select-wrapper {
        display: none;
    }
    .divider {
        display: none;
    }
    .search-container input[type=text] {
        padding-left: 16px;
    }
    .hero-title h1 {
        font-size: 23px;
    }
    .list-container .item-title {
        font-size: 16px;
    }
    .search-box {
        border-radius: 12px;
    }
    .autocomplete-dropdown {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

@media only screen and (max-width: 450px) {
    .page-margin {
        margin: 1em 1.5em 4em;
    }
    .hero-title p {
        font-size: 13px;
    }
    .search-container {
        width: calc(100% - 3em);
    }
}





































