/* -- Layout & Structure -- */
.posts-table__inner {
	padding: 6.3rem 0 5.3rem;
}

.posts-table__form {
	display: flex;
  	align-items: flex-end;
  	margin-bottom: 2.45rem;
}

.posts-table__form span {
	display: block;
  	transform: translateY(-0.8rem);
  	margin: 0 2rem;
}

.posts-table__input-wrapper {
	flex: 1;
}

.posts-table label {
	font-weight: 600;
}

.posts-table__input {
	padding: 1.6rem 5.5rem 1.6rem 2.4rem;
  	border: 1px solid var(--color-form);
}

.posts-table__input-box {
	position: relative;
}

.posts-table__input-box::after {
	content: "";
  	position: absolute;
  	right: 2.3rem;
  	top: 50%;
  	transform: translateY(-50%);
  	width: 1.1rem;
  	height: 0.6rem;
  	background: url("../img/arrow-select.svg") no-repeat center/cover;
}

.posts-table__submit {
	margin-left: 1.5rem;
  	padding: 1.6rem 2rem;
  	min-width: 15.2rem;
  	height: 100%;
  	background-color: var(--orange);
  	border-radius: 2.5rem;
  	font-weight: 700;
  	color: var(--white);
  	transition: all 0.3s ease;
}

.posts-table__submit:hover {
	background-color: var(--green);
  	color: var(--white);
}

.posts-table__submit:active {
	background: var(--green-active);
}

/* -- Post List Items -- */
.posts-table__list {
	margin-bottom: 2rem;
}

.posts-table__item {
	display: flex;
  	align-items: center;
  	justify-content: space-between;
  	padding: 3rem 4rem 3rem 2.9rem;
  	position: relative;
  	transition: all 0.3s ease;
  	border-bottom: 1px solid var(--color-form);
	font-size: 18px;
	line-height: 1.1;
	
}

.posts-table__item::before {
	content: "";
  	position: absolute;
  	top: calc(50% + 0.5rem);
  	left: 2.5rem;
  	transform: translateY(-50%);
  	width: 1.2rem;
  	height: 1.2rem;
  	background-color: var(--blue);
  	border-radius: 50%;
  	z-index: 2;
  	transition: background-color 0.3s;
}

.posts-table__hover {
	position: absolute;
  	top: 0;
  	left: 0;
  	height: 100%;
  	width: 0;
  	background: var(--green);
  	color: var(--white);
  	transition: all 0.3s ease;
}

.posts-table__item:hover {
	color: var(--white);
}

.posts-table__item:hover .posts-table__hover {
	width: 100%;
}

.posts-table__item:hover .posts-table__hover::after {
	opacity: 1;
  	visibility: visible;
}

.posts-table__item:hover .posts-table__caption::before {
	background-color: var(--orange);
}

.posts-table__caption {
	display: block;
  	padding-left: 3.5rem;
	padding-right: 1rem;
  	position: relative;
}

.posts-table__date {
	position: relative;
  	z-index: 2;
	white-space: nowrap;	
}

.posts-table__link {
	position: absolute;
  	inset: 0;
  	z-index: 2;
  	width: 100%;
  	height: 100%;
}

.posts-table__text {
	line-height: 1.94;
}

/* -- Pagination -- */
.posts-table__btns {
	display: flex;
  	align-items: center;
  	justify-content: flex-end;
  	gap: 0.25rem;
  	margin-top: 3rem;
}

.posts-table__btns .page-numbers {
	display: inline-flex;
  	align-items: center;
  	justify-content: center;
  	min-width: 2.8rem;
  	height: 3.2rem;
  	padding: 0 0.25rem;
  	font-size: 1.6rem;
  	font-weight: 400;
  	color: #000;
  	background: none;
  	border: none;
  	position: relative;
  	text-decoration: none;
  	transition: color 0.3s ease;
}

.posts-table__btns .page-numbers.current {
	color: var(--orange);
  	font-weight: 600;
  	pointer-events: none;
}

.posts-table__btns .page-numbers.current::after {
	content: "";
  	position: absolute;
  	bottom: -0.2rem;
  	left: 50%;
  	transform: translateX(-50%);
  	width: 1.2rem;
  	height: 2px;
  	background-color: var(--orange);
  	border-radius: 1px;
}

.posts-table__btns .page-numbers.dots {
	cursor: default;
}

.posts-table__btn {
	margin: 0 0.5rem;
  	width: 3rem;
  	height: 3rem;
  	border-radius: 50%;
  	background-position: center;
  	background-repeat: no-repeat;
  	background-size: contain;
	display: inline-flex;
}

.posts-table__prev {
	background-image: url("../img/orange-arr-left.svg");
}

.posts-table__next {
	background-image: url("../img/orange-arr-right.svg");
}

/* -- Responsive -- */
@media only screen and (max-width: 1024px) {
	.posts-table__inner {
    	padding-top: 2.6rem;
  	}

  	.posts-table__form {
    	flex-direction: column;
    	align-items: center;
  	}

  	.posts-table__form span {
    	display: none;
  	}

  	.posts-table__input-wrapper {
    	width: 100%;
    	max-width: 34.7rem;
    	margin-bottom: 2rem;
  	}

  	.posts-table__input-wrapper:last-child {
    	margin-bottom: 0;
  	}

  	.posts-table__list {
    	margin-bottom: 1.58rem;
  	}

  	.posts-table__item {
    	flex-direction: column;
    	align-items: flex-start;
    	padding: 2.6rem 2rem 2.15rem 4.7rem;
    	border-bottom: 1px solid var(--color-form);
  	}

  	.posts-table__item::before {
    	left: 0;
  	}

  	.posts-table__caption {
    	padding-left: 0;
    	font-size: 1.6rem;
    	line-height: 1.58;
  	}

  	.posts-table__date {
    	font-size: 1.4rem;
    	line-height: 1.5;
  	}
}