html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e0dfdf;
  color: #1a1a1a;
  box-sizing: border-box;
}



header {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('IMG/polusa3.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.test {
  display: flex;
  background-color: black;
  padding: 10px 20px;
  text-align: center;
  flex-direction: row;
  justify-content: space-around;
}

.test h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, rgba(191, 149, 63, 1) 0%, rgba(252, 246, 186, 1) 30%, rgba(179, 135, 40, 1) 48%, rgba(251, 245, 183, 1) 70%, rgba(170, 119, 28, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
  word-break: break-word;
  font-family: Brush Script MT, Brush Script Std, cursive;
}

.test p {
  font-size: 1rem;
  color: white;
  margin: 0.3rem 0;
  font-family: Apple Chancery, cursive;
}



/* Top sub-navigation */
.subnav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background-color: #f7f7f7;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.subnav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: #fff;
  border: 1px solid #ccc;
  border-bottom: 3px solid purple ;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.subnav a:hover {
  background: #eaeaea;
}

/* Header with smaller padding */
.subpage-header.small {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Main section */
.visa-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Visa Block */
.visa-block {
  margin-bottom: 3rem;
  background-color: #fdfdfd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.visa-block h2 {
  margin-bottom: 1rem;
  border-bottom: 3px solid purple;
  padding-bottom: 0.5rem;
}

/* News item */
.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e2e2;
}

.news-item h3 {
  margin: 0 0 0.5rem;
}

.news-item a {
  color: #0073e6;
}

/* Guide list */
.guide-list {
  list-style: none;
  padding: 0;
}

.guide-list li {
  margin: 0.6rem 0;
}

.guide-list a {
  color: #004f9e;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.main-nav {
  z-index: 999;
  background: #ffffff;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  height: 5vh;
  position: sticky;
  top: 0;
}
.main-nav button{
  border: none;
  cursor: pointer;
  background-color: white;
}
.sidebar button{
  background-color: black;
  margin: 20px 0px;
}
.container {  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 10px 10px;
  grid-auto-flow: row;
  grid-template-areas:
    "tourism visa"
    "Culture Recommandations"
    "Property Forum"
    "Feedback Test";

}

.tourism { grid-area: tourism; }

.visa { grid-area: visa; }

.Culture { grid-area: Culture; }

.Recommandations { grid-area: Recommandations; }

.Property { grid-area: Property; }

.Forum { grid-area: Forum; }

.Feedback { grid-area: Feedback; }

.Test { grid-area: Test; }

.option{
  color: white;
  display: flex;
  min-height: 20px;
  min-width: 20px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  flex-direction: column;
}
.option:hover{
  background-color: gray;
}
.option h3 {
  font-size: 1rem;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.2;
}
.option i {
  font-size: 2rem;
  color: #c8102e;
  display: block;
  margin-bottom: 0.5rem;
}
.banner{
  background-color: #eee;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 80vh;
}
.banner h1{
  background: linear-gradient(90deg, rgba(191, 149, 63, 1) 0%, rgba(252, 246, 186, 1) 30%, rgba(179, 135, 40, 1) 48%, rgba(251, 245, 183, 1) 70%, rgba(170, 119, 28, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 50px;
}
main.visa-section {
  padding: 2rem;
  transition: all 0.3s ease;
}

.menu-button {
  display: none;
  background: #222;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 1rem;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  border-radius: 5px;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  min-width: fit-content;
  z-index: 1000;
  background-color: black;
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  padding-top: 2rem;
  padding: 10px;
}
.sidebar a{
  color: white;
  text-decoration: none;
}
@media (max-width: 768px) {
  .menu-button {
    display: block;
  }
  .hideOnMobile{
    display: none;
  }
  .desktop-nav {
    display: none;
  }

  .banner{
    height: 40vh;
  }
  .test{
    flex-direction: column;
    justify-content: center;
  }
  .search-box{
    width: 30vh;
  }
}

@media (min-width: 769px) {
  .sidebar {
    display: none;
    height: 100%;
    width: 200px;
  }
  .hideOnPC{
    display: none;

  }
}

.section {
  display: none;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section.active {
  display: block;
}
.search-box {
  margin: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-box input {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px;
}

.search-box button {
  background-color: #003366;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  color: white;

}
.top{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 3px solid purple;
}

.section1 {
  flex-direction: column;
}

.article {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  
}

.article h2 {
  margin: 0 0 10px 0;
  color: black;
}

.article p {
  margin: 10px 0;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;    
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-link {
  text-decoration: none;
  display: block;
  padding: 10px 0;
  color: gray;
}