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

html,
body {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
}

body {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: "Helvetica Neue", Arial, sans-serif;
	margin: 0;
	padding: 20px 0 0 0;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-image: url("images/world_img.webp");
	filter: brightness(0.9) contrast(1.5) saturate(1.8);
	background-color: rgba(73, 73, 68, 0.141);
	background-blend-mode: multiply;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	pointer-events: none;
}

.master-grid-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 92%;
	max-width: 900px;
	margin: 30px auto;
	padding: 0 25px;
	z-index: 10;
}

/* --- HEADER & RAINBOW TEXT --- */

.main-header {
	grid-column: 1 / -1;
	text-align: center;
	z-index: 30;
}

.main-title {
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	font-size: clamp(2rem, 8vw, 4rem);
	font-weight: bold;
	margin-top: 3vh;
}

.subtitle {
	color: #ffffff;
	font-weight: 700;
	margin: 10px auto 15px auto;
	text-align: center;
	font-size: 1.4rem;
	line-height: 1.4;
}

/* --- U=U BANNER --- */

.u-u-link {
	grid-column: 1 / -1;
	text-decoration: none;
	transition: transform 0.2s ease;
	position: relative;
	z-index: 10;
	display: block;
}

#u-u-notice {
	background: #ffffff !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border-left: 3px solid #f544b1;
	/* border-right: 6px solid #f544b1; */
	padding: 15px 20px;
	border-radius: 12px;
	text-align: center;
	color: rgba(22, 7, 230);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	transition:
		transform 0.2s ease,
		background 0.2s ease;
	cursor: pointer;
}

#u-u-notice h4 {
	text-transform: uppercase;
	margin-bottom: 5px;
	font-weight: 800;
}

#u-u-notice:hover {
	transform: scale(1.01);
	background: #fafafa !important;
}

/* --- TRANSLATOR, BENTO & SEARCH CARDS --- */

.three-search-container {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 90%;
	max-width: 500px;
	margin: 40px auto;
	position: relative;
	overflow: visible !important;
	z-index: 2000;
}

#translator-anchor {
	width: 100%;
	font-weight: 700;
	letter-spacing: 1px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

#translator-anchor::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	background-image: url("images/globe-icon.svg");
	background-repeat: no-repeat;
	background-size: contain;
	filter: invert(12%) sepia(95%) saturate(5453%) hue-rotate(244deg) brightness(85%) contrast(148%);
	pointer-events: none;
	z-index: 10;
}

/* --- DESKTOP TRANSLATOR DROPDOWN --- */

#translator-anchor select {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 1) !important;
	border: 1px solid rgb(228, 82, 191);
	border-left: 3px solid rgb(228, 82, 191);
	border-radius: 50px !important;
	color: rgba(22, 7, 230, 1) !important;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: 1px;
	text-decoration: none;
	line-height: normal;
	height: 50px;
	padding: 8px 15px !important;
	text-align: center;
	text-align-last: center;
	outline: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#translator-anchor select option {
	background: rgba(22, 7, 230, 0.93) !important;
	color: #ffffff !important;
	padding: 12px !important;
	font-size: 1.1rem;
}

#translator-anchor select:hover {
	background: rgba(22, 7, 230, 1) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
	box-shadow:
		0 8px 15px rgba(12, 12, 12, 0.3),
		inset 0 3px 5px rgba(255, 255, 255, 0.4);
	transform: translateY(-2px);
	transition: all 0.2s ease-out;
}

/* #translator-anchor .gt_selector img {
	margin-top: -2px !important;
	margin-right: 8px !important;
} */

/* THE SEARCH AND MAP PILLS */

.landing-search-wrap input,
.search-map-link {
	width: 100%;
	height: 50px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 20px !important;
	border-radius: 50px;
	background: rgba(255, 255, 255, 1);
	letter-spacing: 2px;
	text-decoration: none;
	border: 1px solid rgb(228, 82, 191);
	border-left: 3px solid rgb(228, 82, 191);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	font-size: 16px;
	color: rgba(22, 7, 230, 1);
	font-weight: 800;
	text-align: center;
	outline: none;
	caret-color: #ffffff;
}

.landing-search-wrap input::placeholder {
	color: rgba(22, 7, 230, 1);
	letter-spacing: 2px;
}

.landing-search-wrap input:hover::placeholder {
	color: #ffffff !important;
}

/* --- DROPDOWN MENU--- */

.search-results-floating {
	position: absolute;
	top: 80%;
	top: auto !important;
	left: 0;
	width: 100%;
	display: none;
	flex-direction: column;
	z-index: 2000;
	background: rgba(22, 7, 230, 0.993) !important;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 12px;
	padding: 10px;
	gap: 0;
	overflow-y: auto;
	overflow-x: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	margin-top: 1px;
	max-height: 45vh;
}

.search-results-floating .country-card.search-item-card:hover {
	transform: scale(1.02) translateY(-5px);
	background: rgba(22, 7, 230, 1);
	border-bottom: 1px solid #ffffff;
	border-radius: 50px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
	z-index: 10;
}

.landing-search-wrap,
.search-map-link {
	position: relative;
	width: 100%;
}

.landing-search-wrap input:hover,
.search-map-link:hover {
	background: rgba(22, 7, 230, 1) !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow:
		0 8px 15px rgba(12, 12, 12, 0.3),
		inset 0 3px 5px rgba(255, 255, 255, 0.4);
}

.bento-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	position: relative;
	z-index: 10;
}

.bento-card {
	background: rgba(22, 7, 230, 0.8);
	backdrop-filter: blur(9px);
	-webkit-backdrop-filter: blur(9px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-left: 3px solid rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.25),
		inset 0 -3px 8px rgba(0, 0, 0, 0.3);
	will-change: transform;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
	transform: translateY(-5px);
	background: rgba(22, 7, 230, 0.7);
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.bento-card.breaking-red {
	background: rgba(228, 3, 3, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-left: 3px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 4px 15px rgba(228, 3, 3, 0.3);
}

.bento-card.breaking-red:hover {
	background: rgba(228, 3, 3, 0.9);
	border-color: #ffffff;
	box-shadow: 0 8px 20px rgba(228, 3, 3, 0.6);
}

/* Country Cards */

.country-card {
	display: flex !important;
	align-items: center !important; /* Centers Inner Pill on Y-axis */
	justify-content: center !important; /* Centers Inner Pill on X-axis */
	margin: 12px auto !important;
	padding: 10px !important; /* Space between color frame and blue box */
	border-radius: 15px !important;
	text-decoration: none !important;
	min-height: 70px !important; /* Ensures consistent height */
	border: none !important;
	background: rgba(22, 7, 230, 0.95) !important; /* Your signature blue */
	color: #ffffff !important;
	width: 100% !important;
	padding: 12px 5px !important;
	border-radius: 10px !important;
	text-align: center !important;
	font-size: 1.2rem !important; /* Bigger letters */
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 3. Status Backgrounds (Slightly Transparent) */
.country-card.green {
	background-color: rgba(0, 180, 0, 0.9) !important;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
.country-card.amber {
	background-color: rgba(223, 157, 16, 0.9) !important;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.country-card.red {
	background-color: rgba(200, 0, 0, 0.9) !important;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* --- THE ANTARCTICA ICE CARD --- */
.country-card.ice {
	/* A crisp, frozen blue-grey at 0.89 opacity */
	background-color: rgba(102, 207, 241, 0.966) !important;
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.country-card:hover {
	transform: translateY(-3px); /* Subtle lift up */
	filter: brightness(1.15); /* Slight highlight */
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

/* Make the inner blue box pop even more on hover */
.country-card:hover span {
	background: rgba(22, 7, 230, 1) !important; /* Solid blue on hover */
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Specific Red Glow for Danger */
.country-card.red:hover {
	box-shadow: 0 0 20px rgba(200, 0, 0, 0.6);
}

/* Tap Effect (Mobile/All) */
.country-card:active {
	transform: scale(0.97);
	filter: brightness(0.9);
}

/* --- QUICK EXIT --- */

.exit-btn {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(228, 3, 3, 0.99);
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-top: none;
	backdrop-filter: blur(15px);
	color: white;
	padding: 10px 20px;
	font-weight: 600;
	z-index: 50;
	text-transform: uppercase;
	z-index: 9999;
	text-decoration: none;
	border-radius: 0 0 12.5px 12.5px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* --- FOOTER --- */

.site-footer {
	width: 100%;
	background: rgba(22, 7, 230, 0.9);
	border-top: 1px solid rgba(252, 248, 248, 0.8);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	margin-top: auto;
	z-index: 100;
	padding: 10px 0 10px 0;
}

.footer-container {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-card a {
	text-decoration: none;
	color: #ffffff; /* Improved contrast */
	font-weight: 800;
	font-size: 0.8rem;
}

.footer-bottom-bar {
	text-align: center;
	margin-top: 5px;
	border-top: 1px solid rgba(36, 64, 142, 0.1);
	padding-top: 5px;
}

.footer-copyright {
	color: rgba(249, 249, 250);
	font-size: 0.65rem;
	font-weight: 600;
	margin: 0;
}

.neutral {
	background-color: rgba(0, 230, 0, 0.8);
}

.neutral span,
.neutral i {
	color: #faf2f2 !important;
}

.neutral:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	filter: brightness(1.1);
}

.neutral:hover i,
.neutral:hover span {
	color: #ffffff;
}

.social-pill i {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.social-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 38px;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-left: 3px solid rgba(255, 255, 255, 0.8);
	box-shadow:
		0 4px 10px rgba(0, 0, 0, 0.2),
		inset 0 0 8px rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.social-pill span {
	font-size: 1rem;
	font-weight: 700;
	color: white;
	margin-left: 8px;
}

.facebook {
	background-color: rgba(20, 91, 245, 0.8);
	border-color: rgba(255, 255, 255, 0.6);
}
.x-twitter {
	background-color: #000000;
}
.youtube {
	background-color: #ff0000;
}

.social-pill:hover {
	transform: translateY(-3px) scale(1.02);
	border-color: rgba(255, 255, 255, 1);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
	filter: brightness(1.1);
}

.gwn-logo {
	position: relative;
	font-size: 2rem;
	font-weight: 700;
	text-transform: uppercase;
	display: inline-block;
	letter-spacing: -2.9px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 1;
	padding-left: 0.4em;
	margin-left: -0.4em;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(240, 240, 240, 0.9) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.gwn-logo::after {
	content: "";
	position: absolute;
	bottom: 1.8px;
	left: 0;
	width: calc(100% + 0.03em);
	height: 4px;
	background: linear-gradient(180deg, #ff3399 0%, #d62b82 100%);
	box-shadow:
		inset 0 -2px 0 rgba(0, 0, 0, 0.2),
		0 2px 4px rgba(0, 0, 0, 0.2);
	border-radius: 1px;
	z-index: -1;
}

.gwn-logo:hover {
	transform: translateY(-4px);
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media screen and (max-width: 480px) {
	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: -1;
		background: url("images/world_img_mobile.webp") center/cover no-repeat;
		background-size: 100% 100%;
		filter: brightness(0.7) contrast(1.6) saturate(1.8);
		background-color: rgba(25, 1, 241, 0.281);
		background-blend-mode: multiply;
	}

	.master-grid-container {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 10px;
		gap: 15px;
		z-index: 10;
	}

	.landing-search-wrap {
		position: relative !important;
		overflow: visible !important;
		width: 100% !important;
		z-index: 20;
	}

	.search-results-floating {
		position: absolute !important;
		top: 50px !important;
		left: 0 !important;
		width: 100% !important;
		z-index: 1000 !important;
		display: none;
	}

	#translator-anchor {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.bento-grid {
		display: grid !important;
		grid-template-columns: 1fr !important;
		width: 100% !important;
		gap: 15px;
		position: relative;
		z-index: 10;
	}

	.master-grid-container > *,
	.country-card,
	#manual-news-portal,
	.u-u-link,
	.main-header,
	#info-display-area {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		box-sizing: border-box;
	}

	.footer-container {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 15px !important;
	}
}

/* --- MOBILE & TABLET BACKGROUND --- */

@media screen and (max-width: 1100px) {
	body::before {
		background: url("images/world_img_mobile.webp") center/cover no-repeat !important;
		background-size: 100% 100% !important;
		filter: brightness(0.7) contrast(1.6) saturate(1.8) !important;
		background-color: rgba(25, 1, 241, 0.281) !important;
		background-blend-mode: multiply !important;
	}
}

@media (min-width: 481px) and (max-width: 1100px) {
	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: -1;
		background: url("images/world_img_mobile.webp") center/cover no-repeat;
		background-size: 100% 100%;
		filter: brightness(0.7) contrast(1.6) saturate(1.8);
		background-color: rgba(25, 1, 241, 0.281);
		background-blend-mode: multiply;
	}

	.master-grid-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 30px 40px 30px;
	}

	#translator-anchor.landing-pill-style {
		width: 100% !important;
		position: relative !important;
		height: 50px !important;
	}

	.goog-te-gadget-simple {
		width: 100% !important;
		height: 50px !important;
		display: flex !important;
		align-items: center !important;
		padding: 0 15px 0 15px !important;
		box-sizing: border-box !important;
		border: none !important;
		background: white !important;
		border-radius: 50px !important;
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
	}

	/* 4. Hide the Google Logo/Trash that causes shifting */
	.goog-te-gadget-icon,
	.goog-te-menu-value img,
	.goog-te-menu-value span:nth-child(3) {
		display: none !important;
	}

	.bento-grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 20px !important;
		gap: 20px !important;
	}

	/* Fix the Translator on wider portrait screens */
	#translator-anchor,
	.landing-search-wrap,
	.search-map-link {
		width: 100% !important;
		max-width: 500px !important;
		margin: 0 auto !important;
	}

	/* Isolate the translator when it is inside the three-pill stack */
	.three-search-container #translator-anchor {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 500px !important;
		margin: 0 auto !important;
		display: flex !important;
	}

	/* ---  TABLET FOOTER --- */
	.footer-container {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 15px 20px !important;
		max-width: 800px;
		margin: 0 auto;
		padding: 10px 20px !important;
	}

	.footer-card {
		display: flex !important;
		justify-content: center !important;
		flex: 0 1 auto !important;
		width: auto !important;
	}
}

/* 27" Monitor "Studio Mode" */
@media (min-width: 1700px) {
	.home-hero {
		margin-top: 6vh !important;
		text-align: center;
	}

	.home-hero .main-title {
		font-size: 5rem !important;
	}
}

/* 30" Monitor "Studio Mode" */
@media (min-width: 2000px) {
	.home-hero {
		margin-top: 17vh !important;
		text-align: center;
	}

	.home-hero .main-title {
		font-size: 5rem !important;
	}
}
