/* #region Common */
.category-template {
    padding-top: 60px;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    color: #1F2629;
}

.text-bold {
    font-family: Inter Bold;
}

.section-p {
    padding: 40px 0;
}

.banner-image {
    width: 100%;
}

@media (min-width: 1200px) {
    .category-template .container {
        width: 1200px;
    }
}

@media (max-width: 979px) {
    .section-p {
        padding: 30px 0;
    }
}

@media (max-width: 767px) {
    .section-p {
        padding: 30px 0;
    }
}
/* #endregion */

/* #region Search Results */
.search-results {
    display: none;
    margin-top: 80px;
}

.search-loading {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #E8F7FC;
    border-top-color: #19ACE1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading p {
    font-size: 16px;
    color: #8B9FA7;
}

.search-header {
    margin-bottom: 20px;
}

.more-documents {
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.more-documents-line {
    width: 4px;
    height: 32px;
    border-radius: 4px;
    background-color: #19ACE1;
}

.more-documents-title {
    font-family: Inter SemiBold;
    font-size: 36px;
    color: #19ACE1;
}

.search-title, .search-empty {
    font-size: 24px;
    text-align: center;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0 30px;
}

.search-empty p {
    font-size: 24px;
    margin: 0;
}

.search-error {
    text-align: center;
    padding: 80px 20px;
}

.search-error p {
    font-size: 18px;
    color: #E53935;
    margin: 0 0 24px;
}

/* Pagination */
.search-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #E0E0E0;
    background: #ffffff;
    color: #1F2629;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn img {
    max-width: 100%;
}

.pagination-btn:hover:not(.active) {
    border-color: #19ACE1;
    color: #19ACE1;
    background: #E8F7FC;
}

.pagination-btn.active {
    background: #19ACE1;
    color: #ffffff;
    border-color: #19ACE1;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 50%;
}

.pagination-dots {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #E0E0E0;
    background: #ffffff;
    border-radius: 4px;
}

@media (max-width: 979px) {
    .search-title {
        font-size: 28px;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .more-documents {
        padding-top: 30px;
    }

    .more-documents-title {
        font-size: 24px;
    }

    .search-results {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 24px;
    }

    .search-header {
        margin-bottom: 24px;
    }

    .more-documents {
        padding-top: 24px;
    }

    .more-documents-title {
        font-size: 20px;
    }

    .search-results {
        margin-top: 24px;
    }

    .search-pagination {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 20px;
    }

    .search-header {
        margin-bottom: 0px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-empty p,
    .search-error p {
        font-size: 16px;
    }

    .btn-reset-search {
        font-size: 14px;
        padding: 10px 20px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-dots {
        width: 36px;
        height: 36px;
    }

    .pagination-dots img,
    .pagination-btn img {
        width: 18px;
    }
}
/* #endregion */
/* #region Hero */
.hero {
    position: relative;
    margin-bottom: 80px;
}

.search-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; 
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
}

/* Search Box Styling */
.search-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 12px;
}

.search-box-input {
    position: relative;
    flex: 1;
}

input.search-input {
    border: 1px solid #DFE1E6;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    padding: 12px 46px 12px 16px;
    color: #1F2629;
    height: auto;
    line-height: 22px;
}

.search-input::placeholder {
    color: #8B9FA7;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-clear:hover {
    opacity: 1;
}

.search-clear img {
    width: 20px;
    height: 20px;
    display: block;
}

.search-submit {
    font-family: Inter Bold;
    background: #1E9FD8;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.search-submit:hover {
    background: #1789BF;
}

.search-submit img {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .search-box {
        padding: 6px 6px 6px 16px;
        gap: 8px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .search-submit {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .search-submit span {
        display: none;
    }
    
    .search-submit img {
        width: 24px;
        height: 24px;
    }

    .hero {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-bottom: 0;
    }

    .search-wrapper {
        padding: 0;
        position: relative;
        margin-top: 16px;
        transform: unset;
    }
    
    .search-box {
        padding: 6px 6px 6px 12px;
    }
    
    .search-input {
        font-size:  14px;
    }
    
    .search-clear img {
        width: 18px;
        height: 18px;
    }
}
/* #endregion */

/* #region document */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    font-family: Inter Bold;
    font-size: 36px;
    margin: 0;
}

a.view-all {
    font-family: Inter SemiBold;
    color: #19ACE1;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.document-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 32px 0 0;
}

.document-item {
    display: flex;
    flex-direction: column;
    background-color: #FFF;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    padding: 12px;
    height: 100%;
}

.document-thumbnail {
    display: inline-block;
    aspect-ratio: 346/194;
    border-radius: 6px;
    overflow: hidden;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-item:hover .document-thumbnail img {
    scale: 1.1;
    transition: all 0.3s ease-in-out;
}

.document-content {
    padding: 20px 4px 4px;
}

a.document-category {
    display: inline-block;
    font-family: Inter Medium;
    color: #19ACE1;
    padding: 4px 8px;
    background-color: #E8F7FC;
    border-radius: 20px;
}

a.document-title {
    font-family: Inter SemiBold;
    font-size: 18px;
    display: block;
    color: #1F2629;
    margin: 12px 0 16px;
}

a.document-title:hover {
    color: #19ACE1;
}

.document-carousel .owl-stage {
    display: flex;
    padding: 8px 0;
    margin: 0;
}

.document-carousel.owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 24px;
}

.document-carousel.owl-theme .owl-dots .owl-dot span {
    width: 16px;
    height: 16px;
    margin: 0 6px;
    background: #E2E7E9;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #19ACE1;
}

@media (max-width: 979px) {
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }

    .document-carousel {
        margin-top: 24px;
        grid-template-columns: 1fr;
    }

    a.document-category {
        font-size: 14px;
    }

    a.document-title {
        font-size: 16px;
        margin: 12px 0;
    }
}
/* #endregion */
