:root {
	--brand-color: 15, 17, 38;
	--brand-white-color: 255, 255, 255;
	--brand-secundary-white-color: 247, 247, 249;
	--brand-hi-color: 255, 73, 48;
	--brand-secundary-bg: 22, 25, 55;
	--brand-stroke-dark-blue: 32, 36, 79;
	--brand-neutral-color: 197, 197, 209;
	--button-secondary-color: 22, 161, 220;
	--button-secondary-color-hover: 31, 131, 221;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Roboto Condensed', Arial, sans-serif;
}

body {
	background-color: rgb(var(--brand-color));
	color: rgb(var(--brand-white-color));
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Styles */
header {
	background-color: rgba(var(--brand-secundary-bg), 0.9);
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgb(var(--brand-stroke-dark-blue));
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 28px;
	font-weight: 700;
	color: rgb(var(--brand-hi-color));
	text-transform: uppercase;
	text-decoration: none;
}

.logo span {
	color: rgb(var(--brand-white-color));
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 25px;
}

nav ul li a {
	color: rgb(var(--brand-white-color));
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 16px;
	transition: color 0.3s;
}

nav ul li a:hover {
	color: rgb(var(--brand-hi-color));
}

/* Hero Section */
.hero {
	background: linear-gradient(to bottom, rgba(var(--brand-secundary-bg), 0.8), rgba(var(--brand-color), 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgb(22,25,55)"/><path d="M0 0L100 100" stroke="rgb(32,36,79)" stroke-width="2"/><path d="M100 0L0 100" stroke="rgb(32,36,79)" stroke-width="2"/></svg>');
	padding: 80px 0;
	text-align: center;
}

.hero h1 {
	font-size: 42px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.hero p {
	font-size: 18px;
	max-width: 700px;
	margin: 0 auto 30px;
	color: rgb(var(--brand-neutral-color));
}

.btn {
	display: inline-block;
	background-color: rgb(var(--button-secondary-color));
	color: rgb(var(--brand-white-color));
	padding: 12px 25px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	transition: background-color 0.3s;
}

.btn:hover {
	background-color: rgb(var(--button-secondary-color-hover));
}

/* Country Selector */
.country-selector {
	background-color: rgb(var(--brand-secundary-bg));
	padding: 15px 0;
	text-align: center;
	border-bottom: 1px solid rgb(var(--brand-stroke-dark-blue));
}

.country-selector p {
	display: block;
	margin-right: 10px;
	color: rgb(var(--brand-neutral-color));
}

.country-dropdown {
	display: inline-block;
	position: relative;
}

.country-btn {
	background-color: transparent;
	border: 1px solid rgb(var(--brand-stroke-dark-blue));
	color: rgb(var(--brand-white-color));
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.country-btn:hover {
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
}

.country-list {
	position: absolute;
	top: 100%;
	left: 0;
	width: 200px;
	background-color: rgb(var(--brand-secundary-bg));
	border: 1px solid rgb(var(--brand-stroke-dark-blue));
	border-radius: 4px;
	padding: 10px;
	z-index: 10;
	display: none;
	margin-top: 5px;
	max-height: 300px;
	overflow-y: auto;
}

.country-list a {
	color: #fff;
	text-decoration: none;
	display: block;
}

.country-list.show {
	display: block;
}

.country-list ul {
	list-style: none;
}

.country-list ul li {
	padding: 8px 10px;
	cursor: pointer;
	border-radius: 3px;
}

.country-list ul li:hover {
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
	color: rgb(var(--brand-hi-color));
}

.countries-info {
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	text-align: center;
}

.countries-info p {
	font-weight: 700;
	margin-bottom: 8px;
	color: rgb(var(--brand-hi-color));
}

.country-flags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.country-flag {
	width: 30px;
	height: 20px;
	border-radius: 3px;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	background-color: rgba(var(--brand-white-color), 0.1);
	border: 1px solid rgba(var(--brand-white-color), 0.2);
}

/* Category Navigation */
.category-nav {
	background-color: rgb(var(--brand-secundary-bg));
	padding: 20px 0;
	border-bottom: 1px solid rgb(var(--brand-stroke-dark-blue));
}

.category-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.category-btn {
	background-color: transparent;
	border: 1px solid rgb(var(--brand-stroke-dark-blue));
	color: rgb(var(--brand-neutral-color));
	padding: 8px 15px;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 700;
	transition: all 0.3s;
	text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
	background-color: rgb(var(--brand-hi-color));
	color: rgb(var(--brand-white-color));
	border-color: rgb(var(--brand-hi-color));
}

/* Ranking Section */
.ranking-section {
	padding: 60px 0;
}

.section-title {
	text-align: center;
	font-size: 32px;
	text-transform: uppercase;
	color: rgb(var(--brand-white-color));
}

.section-title-subtitle {
	text-align: center;
	margin-bottom: 40px;
}

.current-filter {
	text-align: center;
	margin-bottom: 20px;
	color: rgb(var(--brand-neutral-color));
	font-size: 18px;
}

.current-filter span {
	color: rgb(var(--brand-hi-color));
	font-weight: 700;
}

.ranking-grid {
	display: grid;
	gap: 25px;
}

.rank-item {
	background-color: rgb(var(--brand-secundary-bg));
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s;
	border: 1px solid rgb(var(--brand-stroke-dark-blue));
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	display: grid;
	gap: 25px;
	margin-bottom: 30px;
}

.rank-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rank-header {
	display: flex;
	align-items: center;
	padding: 15px;
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
}
.rank-header > a {
	color: #fff;
	text-decoration: none;
}
.rank-header img {
	max-width: calc(100% - 50px);
}

.rank-number {
	font-size: 32px;
	font-weight: 700;
	color: rgb(var(--brand-hi-color));
	margin-right: 15px;
	min-width: 40px;
	text-align: center;
}

.rank-logo {
	width: 50px;
	min-width: 50px;
	height: 50px;
	background-color: rgb(var(--brand-white-color));
	border-radius: 8px;
	margin-right: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: rgb(var(--brand-color));
	text-transform: uppercase;
}

.rank-name {
	font-size: 18px;
	font-weight: 700;
}
.rank-name > span {
	display: block;
	font-size: 10px;
	color: #dcdcdc;
}

.rank-content {
	padding: 15px;
}

.rank-details {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
}

.rank-detail {
	text-align: center;
}

.detail-value {
	font-size: 20px;
	font-weight: 700;
	color: rgb(var(--brand-hi-color));
}

.detail-label {
	font-size: 12px;
	color: rgb(var(--brand-neutral-color));
}

.star-rating {
	display: flex;
	justify-content: center;
	margin: 10px 0;
}

.star-rating i {
	color: #FFD700;
	margin: 0 2px;
	font-size: 16px;
}

.rank-bonus {
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	text-align: center;
	font-weight: 700;
}

.rank-go-btn {
	padding: 0 15px;
	align-items: center;
	align-content: center;
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
}

.rank-button {
	display: block;
	text-align: center;
	background-color: rgb(var(--button-secondary-color));
	color: rgb(var(--brand-white-color));
	padding: 10px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.3s;
	align-items: center;
	align-content: center;
	text-transform: uppercase;
}

.rank-button:hover {
	background-color: rgb(var(--button-secondary-color-hover));
}

/* Footer */
footer {
	background-color: rgb(var(--brand-secundary-bg));
	padding: 50px 0 20px;
	border-top: 1px solid rgb(var(--brand-stroke-dark-blue));
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.footer-column h3 {
	color: rgb(var(--brand-white-color));
	margin-bottom: 20px;
	font-size: 18px;
	text-transform: uppercase;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 10px;
}

.footer-column ul li a {
	color: rgb(var(--brand-neutral-color));
	text-decoration: none;
	transition: color 0.3s;
}

.footer-column ul li a:hover {
	color: rgb(var(--brand-hi-color));
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgb(var(--brand-stroke-dark-blue));
	color: rgb(var(--brand-neutral-color));
	font-size: 14px;
}

.text-center {
	text-align: center;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.pagination-list {
	display: flex;
	list-style: none;
	gap: 8px;
}

.pagination-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pagination-link {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(var(--brand-stroke-dark-blue));
	border-radius: 4px;
	color: rgb(var(--brand-white-color));
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s;
}

.pagination-link:hover {
	background-color: rgba(var(--brand-stroke-dark-blue), 0.5);
}

.pagination-link.active {
	background-color: rgb(var(--brand-hi-color));
	border-color: rgb(var(--brand-hi-color));
}

.pagination-link.dots {
	border: none;
	cursor: default;
}

.pagination-link.dots:hover {
	background-color: transparent;
}

.pagination-prev,
.pagination-next {
	width: auto;
	padding: 0 15px;
}

/* fix colors */
.country-selector, .category-nav {
	background-color: #ededed;
	border-bottom: 1px solid #c0c0c0;
}
.country-selector p {
	color: #222;
}
.country-btn {
	border-radius: 0px;
	border: 2px solid #d8dff3;
	color: rgb(var(--brand-stroke-dark-blue));
}
.country-btn:hover {
	background-color: rgb(var(--brand-hi-color));
	color: rgb(var(--brand-white-color));
	border-color: rgb(var(--brand-hi-color));
}
.country-list {
	background-color: #dcdcdc;
	border: 1px solid #c0c0c0;
}
.country-list a {
	color: #000000;
}
.ranking-section {
	background: #fff;
	color: rgb(var(--brand-stroke-dark-blue));
}
.category-btn {
	border-radius: 0px;
	border: 2px solid #d8dff3;
	color: rgb(var(--brand-stroke-dark-blue));
	font-style: italic;
	text-transform: uppercase;
	font-size: 16px;
}
.category-btn:hover {
	color:#000;
}
.section-title, .current-filter {
	color: rgb(var(--brand-stroke-dark-blue));
}
.ranking-grid {
	color: #fff;
}
.rank-item {
	border-radius: 0px;
	border: 2px solid #d8dff3;
}
.btn, .rank-button, .rank-bonus, .countries-info, .country-list ul li, .country-list, .rank-logo, .pagination-link {
	border-radius: 0px;
}
.pagination-link {
	color: rgb(var(--brand-stroke-dark-blue));
	border: 2px solid #d8dff3;
}

/* Responsive Design */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
	}

	nav ul {
		margin-top: 15px;
		flex-wrap: wrap;
		justify-content: center;
	}

	nav ul li {
		margin: 5px 10px;
	}

	.hero h1 {
		font-size: 32px;
	}

	.hero p {
		font-size: 16px;
	}

	.ranking-grid {
		grid-template-columns: 1fr;
	}
	.country-selector {
		padding: 10px 0;
	}

	.country-selector p {
		display: block;
		margin-bottom: 8px;
	}

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

	.rank-button {
		margin-top: 15px;
		margin-bottom: 15px;
	}
}