@font-face {
	font-family: Alleyster;
	src:
		local("Alleyster"),
		url(../Fonts/Alleyster.woff2) format("woff2");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: Helvetica;
	src: url(../Fonts/Helvetica-Bold.woff2) format("woff2");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: Helvetica;
	src: url(../Fonts/Helvetica.woff2) format("woff2");
	font-weight: 400;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul {
	list-style: disc;
}

a {
	text-decoration: none;
}

body {
	color: #000;
	font-family: Helvetica;
}

.header {
	width: 100%;
	height: 64px;
	background-color: #fff;
	border-bottom: 2px solid #333;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-container {
	width: 728px;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	height: 60%;
}

.logo-img {
	height: 100%;
	flex-shrink: 0;
}

.header-search-container {
	display: flex;
	align-items: center;
	gap: 8px;
}

#search-input {
	width: 280px;
	padding: 8px 16px;
	border: 1.6px solid #ccc;
	border-radius: 20px;
	outline: none;
	font-size: 14px;
	transition: all 0.3s ease;
	color: #000;
}

#search-input::placeholder {
	color: #ccc;
}

#search-input:focus {
	border-color: #333;
	box-shadow: 0 0 5px rgba(163, 108, 243, 0.2);
}

#search-button {
	padding: 8px 20px;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#search-button:hover {
	background-color: #555;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.footer-container {
	width: 100%;
	padding: 10px 0 24px 0;
	background-color: #1f1f1f;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.footer-logo {
	height: 60px;
	flex-shrink: 0;
	margin: 20px 0 0 0;
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
}

.footer-links.top {
	margin-bottom: 12px;
}

.footer-link {
	color: #eee;
	transition: all 0.3s ease;
}

.footer-link.light {
	color: #666;
}

.footer-link:hover {
	color: #a36cf3;
}

.footer-copyright {
	width: 100%;
	background-color: #202020;
	text-align: center;
	color: #666;
	font-size: 14px;
	line-height: 22px;
	padding: 18px 0;
}

.container {
	max-width: 728px;
	margin: 0 auto;
	padding: 30px 0 120px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rsoc-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.main-title {
	font-size: 28px;
	line-height: 32px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
}

.intro-text {
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: #000;
}

/* Related searches */
.related-searches {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.related-title {
	font-size: 14px;
	line-height: 20px;
	color: #999999;
	text-transform: capitalize;
}

.search-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding: 0 20px;
	background-color: #0064e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-item:hover {
	background-color: #ff941a;
	box-shadow: 0 4px 12px rgba(0, 100, 224, 0.2);
}

.search-item.orange {
	background-color: #ff941a;
}

.search-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-item .icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	fill: white;
}

.search-text {
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: white;
	text-transform: capitalize;
	white-space: nowrap;
	border: none;
}

.featured-image {
	width: 100%;
	height: 300px;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

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

.content-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.section-title {
	font-size: 24px;
	line-height: 28px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
	margin-bottom: 10px;
}

.section-text {
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	color: #000;
}

.subsection-title {
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
}

.subsection-text {
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
	color: #000;
}

.content-list {
	padding-left: 24px;
	display: flex;
	flex-direction: column;
}

.content-list li {
	font-size: 16px;
	line-height: 26px;
	color: #000;
	text-transform: capitalize;
	margin-bottom: 0;
	display: list-item;
}

.content-list > li:has(> h3.subsection-title)::marker {
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
}

.content-list.styled li {
	margin-bottom: 0;
}

.content-list.styled li:last-child {
	margin-bottom: 0;
}

.content-list li strong {
	font-weight: 700;
}

.table-section {
	width: 100%;
	/*max-width: 728px;*/
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.data-table thead {
	background-color: #faeee0;
}

.data-table > thead > tr > th > p.section-text {
	font-weight: 700;
}

.data-table th,
.data-table td {
	padding: 16px;
	border: 1px solid #e3e3e3;
	font-size: 16px;
	line-height: 26px;
	font-weight: 700;
	color: #000;
	text-align: left;
	text-transform: capitalize;
	vertical-align: middle;
}

.data-table td {
	font-weight: 400;
}

.data-table tbody tr:hover {
	background-color: #fafafa;
}

.navigation {
	display: flex;
	gap: 24px;
	height: 64px;
	align-items: center;
}

.nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 64px;
	padding: 0 20px;
	border: 3px solid #000;
	border-radius: 999px;
	background-color: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Outfit", sans-serif;
}

.icon-prev,
.icon-next {
	fill: #000;
}

.nav-button span {
	font-size: 18px;
	line-height: 20px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
	white-space: nowrap;
}

.nav-button.prev {
	width: 250px;
	flex-shrink: 0;
}

.nav-button.next {
	flex: 1;
}

.nav-button:hover:not(.disabled) {
	background-color: #000;
}

.nav-button:hover:not(.disabled) span {
	color: white;
}

.nav-button:hover:not(.disabled) svg {
	fill: white;
}

.nav-button.disabled {
	border-color: #cccccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.nav-button.disabled svg {
	fill: #cccccc;
}

.nav-button.disabled span {
	color: #cccccc;
}

.nav-button svg {
	flex-shrink: 0;
}

.disclaimer-section {
	border-left: 4px solid #e0e0e0;
	padding-left: 16px;
}

.disclaimer-text {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #999;
}

.disclaimer-text-content {
	font-style: italic;
}

.author-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.author-header {
	display: flex;
	align-items: center;
	gap: 16px;
}

.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

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

.author-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.author-name {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	line-height: 1.2;
}

.author-title {
	font-size: 14px;
	font-style: italic;
	color: #666;
	font-weight: 400;
}

.author-bio {
	font-size: 16px;
	line-height: 26px;
	color: #000;
	font-weight: 400;
}

@media (max-width: 768px) {
	.container {
		padding: 20px 16px 60px;
		gap: 16px;
	}

	.rsoc-content {
		gap: 16px;
	}

	.main-title {
		font-size: 24px;
		line-height: 28px;
	}

	.search-text {
		font-size: 16px;
		line-height: 20px;
		white-space: normal;
	}

	.search-item {
		height: auto;
		min-height: 80px;
		padding: 16px;
	}

	.featured-image {
		height: 200px;
	}

	.navigation {
		flex-direction: column;
		height: auto;
		gap: 16px;
	}

	.nav-button.prev,
	.nav-button.next {
		width: 100%;
		flex: auto;
	}

	/* Fallback for browsers without :has() support */
	.table-section {
		overflow-x: auto;
	}

	/* Modern browsers with :has() support */
	@supports selector(*:has(> *)) {
		.table-section {
			overflow-x: unset;
		}

		*:has(> .data-table) {
			overflow-x: auto;
		}
	}

	.data-table {
		min-width: 600px;
	}

	.data-table th,
	.data-table td {
		padding: 12px;
		font-size: 14px;
	}

	.header-container {
		width: calc(100% - 32px);
	}
}

@media (max-width: 560px) {
	.footer-links {
		flex-direction: column;
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.main-title {
		font-size: 22px;
		line-height: 26px;
	}

	.search-item {
		padding: 12px;
	}

	.search-text {
		font-size: 14px;
	}

	.section-title {
		font-size: 20px;
		line-height: 24px;
	}

	.subsection-title {
		font-size: 18px;
		line-height: 22px;
	}
}

.search-container {
	max-width: 728px;
	margin: 0 auto;
	padding: 30px 0 120px 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.search-results-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.result-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.card-content-wrapper {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.card-text-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-transform: capitalize;
}

.card-title {
	font-size: 24px;
	line-height: 28px;
	font-weight: 700;
	color: #0049a3;
}

.title-link {
	font-weight: 500;
	color: #202130;
}

.title-link:hover {
	color: #0049a3;
	text-decoration: underline;
}

.card-description {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #000;
}

.card-image {
	width: 147px;
	height: 110px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
}

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

.visit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	background-color: #0064e0;
	color: white;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	transition: background-color 0.3s ease;
	width: fit-content;
}

.visit-btn:hover,
.visit-btn.hover {
	background-color: #0057c2;
}

.visit-btn svg {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	fill: white;
}

.divider {
	width: 100%;
	height: 1px;
	background-color: #e0e0e0;
}

.article-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-transform: capitalize;
}

.article-title {
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: #202130;
}

.article-text {
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: #4d5156;
}

.article-meta {
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	color: #4d5156;
}

.search-bottom-section {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 32px 0;
}

.related-searches-section {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.related-searches-title {
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: #000;
	text-transform: capitalize;
	max-width: 300px;
}

.search-tags-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.search-tag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 28px;
	background-color: #f5f5f5;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-tag:hover {
	background-color: #f0f7ff;
}

.search-tag:hover span {
	color: #0064e0;
}

.search-tag:hover svg {
	fill: #0064e0;
}

.search-tag span {
	font-size: 16px;
	line-height: 19px;
	font-weight: 400;
	color: #000;
	text-transform: capitalize;
	width: 260px;
}

.search-tag.active span {
	font-weight: 400;
	color: #0064e0;
}

.search-tag svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.search-box {
	display: flex;
	gap: 24px;
	height: 64px;
	background-color: white;
	border: 1px solid #dddddd;
	border-radius: 8px;
	padding: 8px 8px 8px 16px;
	max-width: 728px;
}

.search-input-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
}

.search-input-wrapper svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #666666;
}

.search-input::placeholder {
	color: #666666;
}

.search-button {
	padding: 12px 24px;
	background-color: #000;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-button:hover {
	background-color: #000000;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 728px;
}

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

.page-num,
.page-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 12px 10px;
	border: none;
	border-radius: 999px;
	background-color: transparent;
	cursor: pointer;
	font-size: 16px;
	line-height: 16px;
	font-weight: 400;
	color: #363636;
	transition: all 0.3s ease;
}

.page-num:hover,
.page-num.hover {
	background-color: #f0f7ff;
	color: #0064e0;
}

.page-num.active {
	background-color: #0064e0;
	color: white;
}

.page-dots {
	cursor: default;
}

.page-dots:hover {
	background-color: transparent;
}

.topsearch {
	font-size: 16px;
	font-weight: 500;
	color: #202130;
	margin-top: 0;
}

/* Mobile Search Modal */
.mobile-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.mobile-search-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-search-container {
	position: fixed;
	top: 23%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 90%;
	max-width: 600px;
	background-color: #fff;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease,
		transform 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mobile-search-container.active {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.mobile-search-container input {
	width: 100%;
	padding: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease;
}

.mobile-search-container input:focus {
	border-color: #333;
}

.mobile-search-container input::placeholder {
	color: #999;
}

#mobile-search-button {
	width: 100%;
	padding: 16px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#mobile-search-button:hover {
	background-color: #555;
}

.header-search-button {
	display: none;
	align-items: center;
	justify-content: center;
	border: none;
	background-color: transparent;
	cursor: pointer;
}

@media (max-width: 768px) {
	.search-container {
		padding: 20px 16px 60px;
		gap: 24px;
	}

	.card-content-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.card-image {
		width: 100%;
		height: 200px;
	}

	.pagination {
		width: 100%;
		justify-content: center;
	}

	.pagination-numbers {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media (max-width: 648px) {
	.header {
		height: 50px;
	}

	.header-search-container {
		display: none;
	}

	.header-search-button {
		display: flex;
	}
}

@media (max-width: 480px) {
	.card-title {
		font-size: 20px;
		line-height: 24px;
	}

	.card-description,
	.article-text {
		font-size: 14px;
		line-height: 20px;
	}

	.visit-btn {
		width: 100%;
		font-size: 16px;
	}

	.search-tag span {
		font-size: 14px;
		width: auto;
	}

	.search-button {
		padding: 8px 14px;
	}

	.page-num,
	.page-dots {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
}

@media (max-width: 360px) {
	.search-box {
		gap: 0;
	}

	.search-input-wrapper svg {
		display: none;
	}
}
