.ebook-container {
	margin-top: 60px;
    --font-medium: 14px;
    --font-title: 16px;
    --font-big: 32px;
}

.w50 {
    width: 50%;
}

/* --------------------- */
.ebook-header-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.banner.banner--header img {
    width: 100%;
}

.ehc-line {
    width: 4px;
    height: 32px;
    border-radius: 4px;
    background-color: #0065ff;
}

.ehc-text {
    font-family: Montserrat SemiBold, Arial, sans-serif;
    color: #0065ff;
    font-size: var(--font-big);
}

.ehc--cp {
    margin-bottom: 24px;
}

.ehc-more {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    text-align: left;
}

.cp-header {
    display: flex;
    justify-content: space-between;
}
/* --------------------- */

/* --------------------- */

.search {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    box-shadow: 3px 10px 20px 0px #0000001f;
    border-radius: 12px;
    background-color: #ffffff;
    margin-top: -47px;
    z-index: 2;
    position: relative;
}

.search .is-form-style::after {
    background: url("/sites/amis/images/pages/ebook/16-search.svg") no-repeat
        center center;
    height: 16px;
    width: 16px;
    top: 24px;
    left: 12px;
    opacity: 1;
}

.sleft {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sright {
    display: flex;
    align-items: flex-end;
}

.search ul {
    list-style: none;
}

.search ul li {
    margin: 0;
}

.category-dropdown,
.date-dropdown {
    position: relative;
    cursor: pointer;
}

.category-dropdown .options {
    z-index: 2;
    width: 100%;
    border-radius: 9px;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 10px 25px rgba(124, 130, 141, 0.2);
    overflow: hidden;
    position: absolute;
    top: 44px;
    transition: all 0.7s ease;
    background-color: white;
    backdrop-filter: blur(4.5px);
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

.category-dropdown .options .option {
    padding: 16px;
    border-radius: 9px;
    transition: all 0.2s ease;
    color: #292d34;
}

.category-dropdown.opened .options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown::before {
    content: "";
    display: inline-block;
    position: absolute;
    right: 12px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url(/sites/amis/images/pages/ebook/16-dropdown.svg) no-repeat;
    pointer-events: none;
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.date-dropdown::before {
    content: "";
    display: inline-block;
    position: absolute;
    right: 12px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url(/sites/amis/images/pages/ebook/16-calendar.svg) no-repeat;
    pointer-events: none;
    cursor: pointer;
}

.category-dropdown.opened::before {
    transform: rotate(-180deg);
}

.category-dropdown .options .option {
    padding: 8px 12px;
}
.category-dropdown .options .option:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.search .srow {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.search .is-search-form {
    max-width: 3000px;
    border-radius: 6px;
    border: 1px solid #dfe1e6;
}

.search .ic-cancel-input {
    display: none;
}

.fg1 {
    flex-grow: 1;
}

.search .custom-input,
.search .is-form-style input.is-search-input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 28px !important;
    cursor: pointer;
    height: 44px;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    border-radius: 6px;
}

.search .custom-input {
    padding: 10px 16px;
}

.btn--search {
    border-radius: 6px;
    background-color: #0065ff;
    position: relative;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn--search:hover {
    cursor: pointer;
}

.btn--search .icon-search {
    background: url(/sites/amis/images/pages/ebook/ic-search-white.png)
        no-repeat center;
    width: 16px;
    height: 16px;
}

.btn__text {
    color: #fff;
    font-weight: 600;
    font-size: var(--font-title);
    line-height: 20px;
}

/* --------------------- */

/* --------------------- */

/* ---------------- */

/* ---------------- */

.explore {
    margin: 80px 0;
    display: block;
}

.explore-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.explore-tag {
    position: relative;
    flex: 1;
}

.explore-tag a:hover {
    opacity: 0.9;
}

.explore-tag img {
    width: 100%;
    border-radius: 6px;
}
.explore-header {
    margin-bottom: 24px;
}

.et-content .et__title {
    font-weight: 500;
    margin-bottom: 8px;
}

.et__expand {
    display: flex;
    gap: 8px;
	font-size: var(--font-medium);
}

.et__expand img {
    width: 16px;
    height: 16px;
}

.et-content {
    position: absolute;
    bottom: 0px;
    padding: 12px;
    font-family: Montserrat;
    font-size: var(--font-title);
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    color: white;
    font-weight: 400;
}

.et-content .et__title {
    font-weight: 500;
    margin-bottom: 8px;
}

.banner.banner--bottom img {
    width: 100%;
    margin-top: 80px;
}

/* ---------------- */

.chc-line {
    width: 4px;
    height: 32px;
    border-radius: 4px;
    background-color: #0065ff;
}

.chc-text {
    font-family: Montserrat SemiBold, Arial, sans-serif;
    color: #0065ff;
    font-size: var(--font-big);
}

.chc-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    text-align: left;
}
a.np-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0065ff;
    margin-bottom: 24px;
}

.cp-container {
    width: 970px;
    padding: 0 35px;
}

.cp__title {
    font-family: Montserrat;
    font-size: var(--font-title);
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    color: #172b4d;
    margin-top: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.cp__tag {
    background: #deebff;
    width: fit-content;
    padding: 2px 8px;
    color: #0065ff;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    font-family: "Montserrat";
}

.cp__ulti {
    display: flex;
    gap: 8px;
    align-items: center;
    line-height: 21px;
    font-size: var(--font-medium);
}

.cp__ulti {
    color: #0065ff;
}

.cp__title a {
    color: #172b4d;
}

.cp__ulti img {
    width: 16px;
    height: 16px;
}

.ebook-header-content {
    margin-bottom: 24px;
}

.category-post-container {
    margin-top: 80px;
}

.category-post-container:first-child {
    margin-top: 52px;
}

/* ---- cp odd ---- */

.category-post-container:nth-child(odd) .cp-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 16px;
    row-gap: 16px;
}

.category-post-container:nth-child(odd) .cp {
    flex-grow: 1;
}

.category-post-container:nth-child(odd) .cp__title {
    margin-top: 4px;
    margin-bottom: 12px;
}

.category-post-container:nth-child(odd) .cp__img img {
    width: 200px;
	min-width: 200px;
    height: 112px;
}

.category-post-container:nth-child(odd) .cp {
    display: flex;
    gap: 16px;
}

/* ---------------- */

/* ---------------- */

.category-post-container:nth-child(even) .cp-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.category-post-container:nth-child(even) .cp__img img {
    width: 270px;
    height: 151px;
    border-radius: 6px;
}

.category-post-container:nth-child(even) .cp {
    box-shadow: 0px 0px 8px 0px #00000029;
    border-radius: 6px;
    max-width: 270px;
    width: 270px;
}

.category-post-container:nth-child(even) .cp__title {
    margin-top: 12px;
    margin-bottom: 12px;
}

.category-post-container:nth-child(even) .cp-content {
    padding: 16px;
}

.paging-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.search .custom-input:focus,
.search .is-form-style input.is-search-input:focus {
    border: 1px solid #0065ff;
}

/* ---------------- */

@media (min-width: 1366px) {
    .ebook-container .container {
        width: 1200px;
    }
}

@media (max-width: 968px) {
    .explore-tag {
        width: 170px;
        flex: unset;
    }
    .category-post-container:nth-child(even) .cp-wrapper {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 768px) {
    .category-post-container:nth-child(odd) .cp-wrapper {
        grid-template-columns: auto;
    }
    .banner.banner--bottom img {
        margin-top: 40px;
    }
    .explore {
        margin: 40px 0;
    }
    .ebook-container {
        --font-medium: 12px;
        --font-title: 14px;
        --font-big: 24px;
    }
}

@media (max-width: 567px) {
	.category-post-container {
		margin-top: 40px;
	}
	
	.search {
		margin-top: -25px;
		padding: 12px;
		justify-content: center;
	}
	
	.search .srow {
		gap: 16px;
	}
	
	.chc-text {
		font-size: 20px;
	}
	
	.category-post-container:nth-child(odd) .cp__img img, 
	.category-post-container:nth-child(even) .cp__img img {
		width: 100%;
		height: auto;
	}
	
	.category-post-container:nth-child(odd) .cp__img img {
		max-height: 207px;
	}
	
	.category-post-container:nth-child(even) .cp__img img {
		max-height: 190px;
	}
	
    .et-content {
        padding: 24px;
    }
    .category-post-container:nth-child(odd) .cp {
        flex-direction: column;
    }

    .category-post-container:nth-child(even) .cp-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        display: flex;
    }
	
	.category-post-container:nth-child(odd) .cp-wrapper {
		row-gap: 24px;
	}

    .category-post-container:nth-child(even) .cp {
        max-width: unset;
        width: 100%;
    }
	
	.category-post-container:nth-child(odd) .cp {
        box-shadow: 0px 0px 8px 0px #00000029;
		border-radius: 6px;
		overflow: hidden;
    }
	
	.category-post-container:nth-child(odd) .cp-content {
		padding: 0 16px 16px;
	}
	
	.explore-content {
		gap: 5px;
	}
}


