* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Plump star with rounded points, used to cut out the flags */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,20 61.8,36.8 81.4,42.8 69,59.2 69.4,79.7 50,73 30.6,79.7 31,59.2 18.6,42.8 38.2,36.8' fill='black' stroke='black' stroke-width='12' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body {
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  color: #fff;
}

h1, h2, .pill-nav a {
  font-family: "Kanit", "Segoe UI", Arial, sans-serif;
}

/* Navigation pill */
.topbar {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 24px 8px 8px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}

.pill-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}

.arrow {
  font-size: 0.8rem;
}

.pill-nav .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ff1f6d;
  border-radius: 50%;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 40px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("hero.png") center / cover no-repeat;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
}

.highlight {
  color: #ff1f6d;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  padding: 14px 52px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 999px;
}

.button:hover {
  background: #ff1f6d;
  color: #fff;
}

/* News section */
.news {
  background: linear-gradient(110deg, #0b94f0, #02309a);
  padding: 40px 48px 70px;
}

.news h2 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 24px;
}

/* Article card */
.news-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 16px 28px;
  background: rgba(0, 45, 120, 0.45);
  color: #fff;
  text-decoration: none;
  border-radius: 32px;
  transition: transform 0.2s, background 0.2s;
}

.news-item:hover {
  background: rgba(0, 45, 120, 0.7);
  transform: translateY(-4px);
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 20, 70, 0.6);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item h3 {
  padding: 0 12px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

/* Country badge: star flag + white pill tucked behind it */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
}

/* Star: white star underneath, flag on top, soft shadow around both */
.star {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

.star::before {
  inset: 0;
  background: #fff;
}

.star::after {
  inset: 5px;
  background: var(--flag) center / cover no-repeat;
}

/* Pill: square left end hidden under the star, only the right end is rounded */
.country {
  display: flex;
  align-items: center;
  height: 50px;
  margin-left: -42px;
  padding: 0 30px 0 46px;
  background: #fff;
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  border-radius: 0 999px 999px 0;
}

/* Flags: the class on the card picks the flag */
.albania     { --flag: url("flags/albania.png"); }
.australia   { --flag: url("flags/australia.png"); }
.bosnia      { --flag: url("flags/bosnia.png"); }
.bulgaria    { --flag: url("flags/bulgaria.png"); }
.canada      { --flag: url("flags/canada.png"); }
.czechia     { --flag: url("flags/czechia.png"); }
.denmark     { --flag: url("flags/denmark.png"); }
.france      { --flag: url("flags/france.png"); }
.korea       { --flag: url("flags/korea.png"); }
.kosovo      { --flag: url("flags/kosovo.png"); }
.latvia      { --flag: url("flags/latvia.png"); }
.lithuania   { --flag: url("flags/lithuania.png"); }
.macedonia   { --flag: url("flags/macedonia.png"); }
.moldova     { --flag: url("flags/moldova.png"); }
.netherlands { --flag: url("flags/netherlands.png"); }
.poland      { --flag: url("flags/poland.png"); }
.romania     { --flag: url("flags/romania.png"); }
.sweden      { --flag: url("flags/sweden.png"); }
.ukraine     { --flag: url("flags/ukraine.png"); }
.uk          { --flag: url("flags/uk.png"); }
.austria     { --flag: url("flags/austria.png"); }
.serbia      { --flag: url("flags/serbia.png"); }