h1 {
	font-size: 40px;
	color: #666;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 60px;
}

/* banner */

section.banner {
	margin-top: 79px;
	width: 100%;
	background-color: #f0f0f0;
	position: relative;
	padding: 0px;
}

.banner .img-container {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1440px;
	max-height: 500px;
	margin: 0 auto;
	overflow: hidden;
}

.banner .img-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5%;
	height: 100%;
	background: linear-gradient(to right,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0) 100%
	);
}

.banner .img-container::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 5%;
	height: 100%;
	background: linear-gradient(to left,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0) 100%
	);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* banner end */


/* ==========================================================================
   News Section
   ========================================================================== */
.news {
    min-height: 500px;
}

/* News Header */
.news .news-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.news .news-subtitle-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.news .news-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-grey);
}

/* News Link */
.news .news-subtitle-container .news-link {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-grey);
    text-decoration: none;
    position: relative;
}

.news .news-subtitle-container .news-link::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-grey);
    position: absolute;
    bottom: -1px;
    left: 0;
    transform-origin: left center;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.news .news-subtitle-container .news-link:hover::before {
    transform: scaleX(1);
}

.news .news-subtitle-container .news-link:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='18' viewBox='0 0 10 18' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.674961 1.17504C1.13057 0.719425 1.86926 0.719425 2.32488 1.17504L9.32488 8.17504C9.54367 8.39383 9.66659 8.69058 9.66659 9C9.66659 9.30941 9.54367 9.60616 9.32488 9.82495L2.32488 16.825C1.86927 17.2806 1.13057 17.2806 0.674961 16.825C0.21935 16.3693 0.21935 15.6306 0.674961 15.175L6.85 9L0.674961 2.82495C0.219349 2.36934 0.219349 1.63065 0.674961 1.17504Z' fill='%233C3C3B'/%3E%3C/svg%3E");
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.news .news-subtitle-container .news-link:hover:after {
    transform: translateX(5px);
}

/* News Gallery */
.news .news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1066px;
    margin-left: auto;
    margin-right: auto;
}

.news .news-gallery .news-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    max-height: 430px;
    height: 430px;
    width: 100%;
}

/* News Item Images */
.news .news-gallery .news-item img {
    width: 100%;
    height: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news .news-gallery .news-item:hover img {
    height: 430px;
    max-height: 430px;
}

/* News Item Content */
.news .news-gallery .news-item .news-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.news .news-gallery .news-item:hover .news-item-content {
    display: none;
}

.news .news-gallery .news-item .news-item-date {
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-grey);
}

.news .news-gallery .news-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--menu-links);
}

.news .news-gallery .news-item p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-grey);
}

.news .news-gallery .news-item .news-item-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    color: black !important;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

/* News Item Overlay */
.news .news-gallery .news-item .news-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px;
}

.news .news-gallery .news-item:hover .news-item-overlay {
    opacity: 1;
}

.news .news-gallery .news-item .news-item-overlay .link-to-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news .news-gallery .news-item .news-item-overlay .news-item-date-overlay,
.news .news-gallery .news-item .news-item-overlay .news-item-title-overlay,
.news .news-gallery .news-item .news-item-overlay .news-item-description-overlay,
.news .news-gallery .news-item .news-item-overlay .news-item-link-overlay {
    color: #fff;
}

.news .news-gallery .news-item .news-item-overlay .news-item-overlay-content {
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

/* News Item Category */
.news .news-gallery .news-item .news-item-category {
    position: absolute;
    top: 20px;
    left: 0;
    background: var(--chery-red);
    color: white;
    padding: 8px 15px;
    font-size: 0.875rem;
    z-index: 2;
    text-transform: uppercase;
}

/* Decorative triangle in bottom corner */
.news .news-gallery .news-item .news-item-category:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-top: 10px solid #a30318;
}

.news .news-link-all-news-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.news .news-link-all-news {
	border-radius: 19.949px;
	border: 0.997px solid #666;
	text-decoration: none;
	padding: 7.98px 100px;
	color: var(--text-grey);
}

.news .news-link-all-news:hover {
	background: #666;
	color: white;
}

/* section news content */

.news-content {
	padding: 40px 0;
}

.news-content .section-title {
    font-size: 40px;
    color: #666;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out;
    position: relative;
}

.news-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--chery-red);
    transform: translateX(-50%);
    animation: expandWidth 0.8s ease-out 0.6s forwards;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.news-content .news-content-body .entry-content img {
	width: 80% !important;
	height: auto;
}

.news-content .news-content-body .entry-content p {
	margin-bottom: 20px;
}

.news-content .news-content-body .entry-content h2,
.news-content .news-content-body .entry-content h3,
.news-content .news-content-body .entry-content h4,
.news-content .news-content-body .entry-content h5,
.news-content .news-content-body .entry-content h6 {
	margin-bottom: 20px;
}

.news-detail {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.news-image {
    width: 50%;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.5s ease;
}

.news-image img {
    width: 100%;
	border-radius: 8px;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-image:hover img {
    transform: scale(1.03);
}

.news-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 0px 40px;
}

.news-title {
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text-grey);
    margin: 0;
    text-transform: unset;
    padding-top: 40px;
    animation: slideUp 0.6s ease-out;
}

.news-date {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin: 0;
    font-weight: 400;
    animation: slideUp 0.6s ease-out 0.1s;
    animation-fill-mode: both;
}

.news-body {
    font-size: 1.25rem;
    color: var(--text-grey);
    animation: fadeIn 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

/* news body styles */

.news-body h1,
.news-body h2,
.news-body h3,
.news-body h4,
.news-body h5,
.news-body h6 {
	color: var(--text-grey);
	text-transform: unset;
	margin-bottom: 10px;
	text-align: left;
}

.news-body h1 {
	font-size: 1.5rem;

}

.news-body h2 {
	font-size: 1.375rem;
}

.news-body h3 {
	font-size: 1.25rem;
}

.news-body h4 {
	font-size: 1.125rem;
}

.news-body h5 {
	font-size: 1rem;
}

.news-body h6 {
	font-size: 0.875rem;
}

.news-body strong {
	font-weight: 600;
}

.news-body em {
	font-style: italic;
}

.news-body u {
	text-decoration: underline;
}

.news-body s {
	text-decoration: line-through;
}



.news-body a {
    color: var(--chery-red);
    text-decoration: underline;
}

.news-body a:hover {
    text-decoration: none;
}

.news-body p {
    margin-bottom: 20px;
	font-weight: 500;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-body img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-info-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out 0.3s;
    animation-fill-mode: both;
}

.btn-next svg {
    transform: rotate(180deg);
}

.btn-back, .btn-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-grey);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    font-weight: 400;
    position: relative;
}

.btn-back {
    animation: slideInLeft 0.6s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn-next {
    animation: slideInRight 0.6s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn-back:hover, .btn-next:hover {
    color: var(--chery-red);
}

.btn-back i, .btn-next i {
    margin: 0 8px;
}

/* section news content end */

/* Estilos para la paginación personalizada */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: #e0e0e0;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i {
    margin: 0 5px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: #e0e0e0;
}

.pagination-number.active {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

.pagination-ellipsis {
    color: #777;
    letter-spacing: 2px;
}

/* Media Queries para News */
@media (max-width: 1167px) {
    /* News Section */
    .news .news-gallery {
        grid-template-columns: repeat(auto-fill, minmax(332px, 1fr));
    }

    .news .news-gallery .news-item {
        max-width: 332px;
    }

    .news .news-gallery .news-item img {
        height: 280px;
        max-height: 280px;
    }
}

@media (max-width: 1024px) {
    /* News Section */
    .news .news-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .news .news-gallery .news-item {
        max-width: 280px;
    }

    .news .news-gallery .news-item img {
        height: 240px;
        max-height: 240px;
    }

    .news-detail {
        gap: 20px;
    }

    .news-info {
        padding: 0px 20px;
    }

    .news-title {
        font-size: 1.5rem;
        padding-top: 20px;
    }

    .news-date {
        font-size: 1.125rem;
    }

    .news-body {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
	h1 {
		font-size: 1.875rem;
		margin-bottom: 20px;
	}

    /* News Section */
    .news .news-title {
        font-size: 1.65rem;
    }

    .news .news-subtitle {
        font-size: 1.125rem;
    }

    .news .news-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        justify-content: center;
        justify-items: center;
    }

    .news .news-gallery .news-item {
        max-width: 280px;
        max-height: max-content;
        margin: 0 auto;
    }

    .news .news-gallery .news-item img {
        height: 200px;
        max-height: 200px;
    }

    .news .news-gallery .news-item:hover img {
        height: 100px;
        max-height: 100px;
    }

    .news .news-gallery .news-item .news-item-content {
        padding: 8px;
        gap: 2px;
    }

    .news .news-gallery .news-item .news-item-date {
        font-size: 0.65rem;
    }

    .news .news-gallery .news-item h3 {
        font-size: 0.8rem;
        margin: 2px 0 3px;
    }

    .news .news-gallery .news-item p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .news .news-gallery .news-item .news-item-link {
        font-size: 0.7rem;
        margin-top: 3px;
    }

    .news .news-gallery .news-item .news-item-category {
        top: 5px;
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .news .news-gallery .news-item .news-item-category:after {
        bottom: -5px;
        border-right: 5px solid transparent;
        border-top: 5px solid #a30318;
    }

	a.news-item-link-ver-mas.only-mobile {
		font-size: 0.8rem;
		color: #666;
		font-weight: 500;
		text-decoration: none;
		text-transform: uppercase;
		transition: all 0.3s ease;
	}

	a.news-item-link-ver-mas.only-mobile:hover {
		color: #333;
	}

    .news-content .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .news-detail {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .news-image {
        width: 100%;
        animation: fadeIn 0.6s ease-out;
    }

    .news-info {
        width: 100%;
        padding: 0;
        animation: slideUp 0.5s ease-out;
    }

    .news-title {
        font-size: 1.375rem;
        padding-top: 0;
        animation: slideUp 0.5s ease-out;
    }

    .news-date {
        font-size: 1rem;
        animation: slideUp 0.5s ease-out 0.05s;
    }

    .news-body {
        font-size: 1rem;
        animation: fadeIn 0.6s ease-out 0.1s;
    }

    .news-body p {
        margin-bottom: 15px;
    }

    .news-body img {
        margin: 15px 0;
    }

    .news-info-container:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-back, .btn-next {
        font-size: 1rem;
    }
}

@media (max-width: 599px) {
	h1 {
		font-size: 1.5rem;
		margin-bottom: 20px;
	}

    /* News Section */
    .news .news-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 12px;
        justify-content: center;
    }

    .news .news-gallery .news-item {
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .news .news-gallery .news-item img {
        height: 100px;
        max-height: 100px;
    }

    .news .news-gallery .news-item:hover img {
        height: 100px;
        max-height: 100px;
    }

    .news .news-gallery .news-item .news-item-content {
        padding: 8px;
        gap: 2px;
    }

    .news .news-gallery .news-item .news-item-date {
        font-size: 0.65rem;
    }

    .news .news-gallery .news-item h3 {
        font-size: 0.8rem;
        margin: 2px 0 3px;
    }

    .news .news-gallery .news-item p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .news .news-gallery .news-item .news-item-link {
        font-size: 0.7rem;
        margin-top: 3px;
    }

    .news .news-gallery .news-item .news-item-category {
        top: 5px;
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .news .news-gallery .news-item .news-item-category:after {
        bottom: -5px;
        border-right: 5px solid transparent;
        border-top: 5px solid #a30318;
    }

	a.news-item-link-ver-mas.only-mobile {
		font-size: 0.8rem;
		color: #666;
		font-weight: 500;
		text-decoration: none;
		text-transform: uppercase;
		transition: all 0.3s ease;
	}

	a.news-item-link-ver-mas.only-mobile:hover {
		color: #333;
	}

    .news-title {
        font-size: 1.25rem;
    }

    .news-date {
        font-size: 0.875rem;
    }

    .news-body {
        font-size: 0.875rem;
    }

    .news-body p {
        margin-bottom: 12px;
    }

    .news-body img {
        margin: 12px 0;
    }

    .btn-back, .btn-next {
        font-size: 0.875rem;
    }

    .news-navigation {
		border-top: 1px solid #B0B1B4;
		padding-top: 30px;
        margin-top: 30px;
    }

    .news-info-container {
        gap: 10px;
    }

    .news-detail {
        padding: 0 10px;
    }
}

@media (max-width: 359px) {
    /* News Section */
    .news .news-gallery {
        gap: 8px;
    }

    .news .news-gallery .news-item img {
        height: 80px;
        max-height: 80px;
    }

    .news .news-gallery .news-item:hover img {
        height: 80px;
        max-height: 80px;
    }

    .news .news-gallery .news-item .news-item-content {
        padding: 5px;
    }

    .news .news-gallery .news-item h3 {
        font-size: 0.7rem;
        margin: 1px 0 2px;
    }

    .news .news-gallery .news-item p {
        font-size: 0.65rem;
    }

    .news .news-gallery .news-item .news-item-link {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    .news-title {
        font-size: 1.125rem;
    }

    .news-date {
        font-size: 0.8125rem;
    }

    .news-body {
        font-size: 0.8125rem;
    }

    .btn-back, .btn-next {
        font-size: 0.8125rem;
        gap: 5px;
    }

    .news-navigation {
        margin-top: 20px;
    }

    .news-info-container {
        gap: 8px;
    }
}

/* Animaciones para la página de noticias */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
