* {
  box-sizing: border-box;
  font-family: "Fonti";
}

@font-face {
  font-family: "Fonti";
  src: url("../fonts/bpg_arial_2009.ttf");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  color: #333;
  background-color: #C7E3ED;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  border-bottom: 1px solid lightgray;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .logo img {
  height: 55px;
  transition: transform 0.3s;
}

.main-header .logo img:hover {
  transform: scale(1.05);
}

/* NAV  */
.main-header nav {
  display: flex;
  align-items: center;
  gap: 8px; 
}

/* LINKS  */
.main-header nav a {
  margin-left: 12px;   
  font-weight: 500;
  font-size: 14px;
  color: #444;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

/* underline */
.main-header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #007bff;
  transition: width 0.25s ease;
}

.main-header nav a:hover {
  color: #007bff;
}

.main-header nav a:hover::after {
  width: 100%;
}

/* flag icon */
.fi {
  font-size: 18px;
}

/* ================= CONTENT ================= */

.alert-box {
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  background-color: #d1ecf1;
  color: #0c5460;
  border-radius: 5px;
  max-width: 900px;
}

.serviceinfo {
  max-width: 900px;
  margin: auto;
  padding: 15px;
}

.serviceinfo table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.serviceinfo th,
.serviceinfo td {
  border: 1px solid #bbb;
  padding: 12px;
  transition: background-color 0.3s;
}

.serviceinfo th {
  background-color: whitesmoke;
  font-weight: bold;
}

.serviceinfo tbody tr:hover {
  background-color: whitesmoke;
}

/* ================= FOOTER ================= */

.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* ================= LAYOUT (FLAGS / CATEGORIES) ================= */

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 15px;
  text-align: center;
}

.container h2 {
  margin-bottom: 5px;
}

.subtitle {
  color: #666;
  margin-bottom: 20px;
}

.category {
  background-color: #eef5f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.category h3 {
  margin-bottom: 5px;
}

.category p {
  font-size: 14px;
  margin-bottom: 10px;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.flags img {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #aaa;
  transition: transform 0.2s;
}

.flags img:hover {
  transform: scale(1.1);
}

/* ================= ANIMATION ================= */

.category {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .main-header {
    flex-direction: column;
    align-items: center;
  }

  .main-header nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; /* 🔥 fix: removes left shift */
    gap: 3px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
    align-items: center;
  }

  .main-header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
  }

  .main-header nav::-webkit-scrollbar {
    display: none;
  }
}