/*
Custom Styles
*/

.lang-translator {
    display: block;
    margin: 10px;
	float: left;
}

.language-tab {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.btn-toggle {
    margin: 0 2px;
    padding: 0;
    position: relative;
    border: none;
    height: 1.6rem;
    width: 3.2rem;
    border-radius: 1.5rem;
    background-color: #fff !important;
	outline: 1.8px solid #1e3a70 !important;
    outline-offset: -2px;
}

.btn-toggle.active {
    outline: 1.8px solid #1e3a70;
    outline-offset: -2px;
}

.btn-toggle>.handle {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 1.125rem;
    background: #3bb3d8;
    transition: left 0.25s;
}

.btn-toggle.active>.handle {
    left: 1.6875rem;
    transition: left 0.25s;
}

@media (max-width: 1269px) {
	.lang-translator.desktop {
		display: none !important;
	}
}


/*** blog section ***/

.custom-blog-archive {
    padding: 80px 0 80px;
}

.custom-blog-archive .archive-title {
    margin-bottom: 25px;
}


/* Filters
-------------------------------------------------- */

.archive-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 30px;
}

.archive-filter-select select,
.archive-filter-search input {
    width: 100%;
    height: 46px;
    border: 1px solid #d7dce1;
    border-radius: 5px;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
}

.archive-filter-search {
    display: flex;
    position: relative;
}

.archive-filter-search input {
    padding-right: 55px;
}

.archive-filter-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #000;
    color: #fff;
    cursor: pointer;
}


/* Posts Grid
-------------------------------------------------- */

.custom-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.custom-post-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.post-card-image {
    display: block;
    overflow: hidden;
}

.post-card-image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .3s ease;
}

.custom-post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 15px;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-date {
    margin-bottom: 15px;
    font-size: 13px;
    opacity: .7;
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
}

.post-card-more {
    display: inline-block;
    margin-top: 15px;
}


/* Pagination
-------------------------------------------------- */

.custom-pagination {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 3px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.custom-pagination .page-numbers.current {
    background: #000;
    border-color: #000;
    color: #fff;
}


/* Tablet
-------------------------------------------------- */

@media (max-width: 991px) {

    .custom-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile
-------------------------------------------------- */

@media (max-width: 767px) {

    .archive-filter-form {
        grid-template-columns: 1fr;
    }

    .custom-post-grid {
        grid-template-columns: 1fr;
    }

    .post-card-image img {
        height: auto;
    }

}