body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  width: 100%;
}

header {
  text-align: center;
  padding: 20px;
  background-color: #f28b27;
  color: #fff;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin: 0;
}

.language-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  background-color: #ddd;
  border-bottom: 2px solid #004085;
}

.language-bar button {
  background-color: #004085;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-bar button:hover {
  background-color: #003366;
}

.language-bar button:focus {
  outline: none;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background-color: #f28b27;
  color: white;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #003366;
  text-decoration: none;
}

.section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
  margin-top: 0;
  color: #004085;
}

.section ul {
  padding-left: 20px;
}

.section ul li {
  margin: 10px 0;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f28b27;
  color: #fff;
}

footer img {
  width: 100px;
  height: 100px;
  border-radius: 10%;
  margin-bottom: 5px;
}

#embassy-search-form {
  margin-bottom: 20px;
}

#country-name {
  padding: 10px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
}

#country-list {
  list-style: none;
  padding-left: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

#country-list li {
  padding: 10px;
  cursor: pointer;
}

#country-list li:hover {
  background-color: #f0f0f0;
}

#embassy-info {
  margin-top: 20px;
}

#embassy-info h3 {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .language-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  nav {
    display: none;
  }

  #country-name {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    margin-bottom: 10px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fff;
  margin: 3% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  position: relative;
  margin-top: 20px;
}

.slide {
  height: 20vh;
  width: auto;
  max-width: 60%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.prev, .next {
  background-color: #004085;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
  background-color: #003366;
}

body.modal-open {
  overflow: hidden;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.styled-button {
  background-color: #004085;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.styled-button:hover {
  background-color: #003366;
}
@media (max-width: 768px) {
  .modal-content {
    width: 85%;
    margin: 5% auto;
    padding: 15px;
    height: 90%;
    overflow-y: auto;
  }

  .slide {
    height: 30vh;
    max-width: 100%;
    width: 100%;
  }

  .prev, .next {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .carousel {
    flex-direction: column;
    gap: 20px;
  }

  .button-container {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

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

  .carousel {
    flex-direction: column;
    gap: 20px;
  }

  .carousel-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}
