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

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

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: "Helvetica Neue", Arial, sans-serif;
	margin: 0;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: url("images/world_img.webp") center/cover no-repeat;
	filter: brightness(0.8) contrast(1.6) saturate(1.6);
	background-color: rgba(10, 158, 238, 0.3);
	background-blend-mode: multiply;
	pointer-events: none;
}

#update-status {
	color: #ffffff !important;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	margin: 15px 0 5px 0 !important;
	padding: 5px 0;
	width: 100%;
	display: block;
}

h2 {
	text-align: center;
	color: #ffffff;
	margin-bottom: 20px;
}
.master-grid-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 92%;
	max-width: 1000px;
	margin: 20px auto;
	padding: 0 25px;
	box-sizing: border-box;
	z-index: 10;
}

.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);
}

.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: 4vh;
}

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

/* --- 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);
	border: 1px solid rgb(228, 82, 191);
	border-left: 3px solid rgb(228, 82, 191);
	border-radius: 50px !important;
	border-radius: 50px;
	color: rgba(22, 7, 230, 1);
	font-weight: 800;
	text-transform: uppercase;
	transition: 0.3s ease;
	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;
	appearance: none;
	text-align: center;
	text-align-last: center;
	outline: none;
	cursor: pointer;
	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;
}

/* 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);
}

/* Country Cards */

.country-card {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 12px auto !important;
	padding: 10px !important;
	border-radius: 15px !important;
	text-decoration: none !important;
	min-height: 70px !important;
	border: none !important;
	background: rgba(22, 7, 230, 0.95) !important;
	color: #ffffff !important;
	width: 100% !important;
	padding: 12px 5px !important;
	border-radius: 10px !important;
	text-align: center !important;
	font-size: 1.2rem !important;
	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 {
	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);
	filter: brightness(1.15);
	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;
	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);
}

.news-feed-wrapper {
	grid-column: 1 / -1;
	width: 95%;
	max-width: 1000px;
	margin: 10px auto 20px auto;
}

/* THE PINNED INDICATOR */
.manual-pinned {
	position: relative;
}

.manual-pinned::before {
	content: "📌 PINNED";
	position: absolute;
	top: 10px;
	right: 15px;
	background: rgba(22, 7, 230, 0.3);
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.05rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	z-index: 5;
	pointer-events: none;
	text-transform: uppercase;
}

/* THE MAIN BOX: */
.news-accordion,
.manual-pinned {
	background: rgba(22, 7, 230, 0.88);
	backdrop-filter: blur(15px) saturate(150%);
	-webkit-backdrop-filter: blur(15px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.877);
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	text-align: center;
	cursor: pointer;
}

.news-accordion summary::-webkit-details-marker {
	display: none;
}

/* THE GLOBAL ACCORDION ENGINE */
.news-accordion summary,
.manual-pinned summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 25px;
	min-height: 140px;
	cursor: pointer;
	outline: none;
}

.news-accordion[open] {
	cursor: default;
}

/* FORCE THE ORDER: Title -> Tags -> Date */
.news-accordion h3,
.manual-red-title,
.country-label {
	order: 1;
	margin-bottom: 10px;
}

.tag-bar {
	order: 2;
	margin-bottom: 8px;
}

.news-date-full,
.date-manual {
	order: 3;
	margin-top: 5px;
}

/* The Arrow (Visible State) */
.news-accordion summary::after {
	content: "▼";
	display: block;
	color: #ff3399;
	font-size: 1.2rem;
	margin: 15px auto 0 auto;
}

/* THE DISAPPEARING ACT: When [open] is active */
.news-accordion[open] summary::after {
	opacity: 0;
	height: 0;
	margin-top: 15px;
	transform: scale(0); /* Shrinks it to nothing */
	pointer-events: none;
	overflow: hidden;
}

/* Smooth Hover */
.news-accordion:not([open]):hover summary::after {
	color: #ff66b2;
	transform: scale(1.3);
	animation: none; /* Stops pulsing when the user is hovering to click */
}

/* TEXT STYLING */

.news-accordion .country-label {
	display: inline-block !important;
	color: #ffffff !important;
	font-weight: 900 !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.3rem;
	text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
	margin-bottom: 8px;
	position: relative;
	z-index: 5;
}

.country-label.manual-red-title {
	display: inline-block !important;
	color: #ff3366 !important;
	font-weight: 900 !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.3rem;
	text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
	margin-bottom: 8px;
	position: relative;
	z-index: 5;
}

.news-accordion h3,
.news-date-full,
.country-label {
	color: #ffffff;
	text-decoration: none;
	margin: 5px 0;
	opacity: 1;
}

.news-accordion h3 {
	display: inline-block !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-size: 1.3rem;
	text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
	margin-bottom: 8px;
	position: relative;
	z-index: 5;
}

.news-date-full {
	font-size: 1.1rem;
	font-weight: 400;
}

.news-content-expanded p {
	color: #ffffff;
	font-size: 1.2rem;
	line-height: 1.7;
	margin-bottom: 25px;
	text-align: left;
	padding: 0 30px;
}

/* THE BUTTON: White Glass Effect */
.news-accordion .news-content-expanded a,
.manual-pinned .news-content-expanded a {
	display: inline-block !important;

	/* 1. THE GLASS EFFECT */
	background: rgba(22, 7, 230, 0.99);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	/* 2. THE BORDER & TEXT (Frozen Blue) */
	color: #ffffff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.993) !important;

	/* 3. THE SIZE (Refined) */
	padding: 10px 24px !important;
	font-size: 0.8rem !important;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 50px;

	/* 4. THE SPACING */
	margin-top: 15px !important;
	margin-bottom: 35px !important;

	text-decoration: none !important;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer !important;
}

/* THE HOVER: "Glowing Glass" */
.news-accordion .news-content-expanded a:hover,
.manual-pinned .news-content-expanded a:hover {
	background: rgba(22, 7, 230, 0.99);
	border-color: #ffffff !important;
	color: #ffffff !important;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CATEGORY TAGS & RIGHTS TREND
   ============================================ */

.tag-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.tag {
	position: relative;
	z-index: 10;
	opacity: 1 !important;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	background-image: none !important;
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 0.7rem;
	font-weight: 800;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.tag-legal {
	background-color: #0b63f1;
}
.tag-discrimination {
	background-color: #f59e0b;
}
.tag-living {
	background-color: #14b8a6;
}
.tag-travel {
	background-color: #06b6d4;
}
.tag-health {
	background-color: #15cf5a;
}
.tag-safety {
	background-color: #ef4444;
}
.tag-down {
	background-color: #ef4444;
}
.tag-unchanged {
	background-color: #a39802;
}
.tag-up {
	background-color: #05bd49;
}

/* ============================================
   DATE STYLING (Solid White & Same Size)
   ============================================ */

.news-date-full {
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 500;
	margin-top: 10px;
	opacity: 1;
	text-transform: none;
	letter-spacing: 0.02rem;
	display: block;
}

.date-manual {
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 500;
	margin-top: 10px;
	opacity: 1;
	text-transform: none;
	letter-spacing: 0.02rem;
	display: block;
	width: 100%;
}

.news-accordion summary *,
.news-date-full {
	text-decoration: none;
}

.country-label {
	font-size: 1.1rem;
	font-weight: 900;
	letter-spacing: 0.1rem;
	color: #ffffff;
	margin-bottom: 8px;
	text-transform: uppercase;
}

/* --- 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;
	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: 5px 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);
}

/* ============================================
   MOBILE GUTTER FIX (Phones)
   ============================================ */

@media (max-width: 600px) {
	.master-grid-container {
		width: 100%;
		padding: 0 10px;
	}

	#manual-news-portal,
	#automated-news-feed {
		width: 96%;
		gap: 15px;
	}

	.news-accordion summary {
		padding: 15px 10px;
		min-height: 120px;
	}

	.news-content-expanded {
		padding: 20px 15px;
	}
}
