body {
  margin: 0;
  background-color: white;
  color: black;
  font-family: Georgia, serif;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

header {
  background-color: #fff;
  border-bottom: 4px solid black;
  padding: 20px 40px;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

nav a {
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: black;
  padding: 6px 10px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  border-bottom: 3px solid red;
  color: #0033a0;
}


main {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
  background: white;
  position: relative;
  z-index: 2;
}

h1 {
  font-family: Helvetica, Arial, sans-serif;
  color: #0033a0;
  border-bottom: 6px solid #ffcc00;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 24px;
}


.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}


.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide.atCenter {
  opacity: 1;
  transform: translateX(0);
  z-index: 3;
}

.carousel-slide.atLeft {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 2;
}

.carousel-slide.atRight {
  transform: translateX(100%);
  opacity: 1;
  z-index: 2;
}


.carousel-pagination {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  position: absolute;
  bottom: 10px;
}

.carousel-paginate {
  background: none;
  border: none;
  font-size: 16px;
  color: white;
  opacity: .5;
  cursor: pointer;
}

.carousel-paginate.active {
  opacity: 1;
}



#lightbox {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

#lightbox img {
  margin: auto;
  display: block;
  max-width: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 45px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}


.line-red {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100vh;
  background: red;
}

.line-blue {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 60%;
  background: #0033a0;
}

.line-yellow {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 10px;
 background: #ffcc00;
}


.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.gallery img {
  max-width: 80%;
  height: auto;
  border: 8px solid black;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Buttons */
.mainpage-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mainpage-btn:hover {
  background-color: #cc0000;
}


.tab-menu {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background-color: #eee;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #ddd;
}

.tab-btn.active {
  background-color: #ff0000;
  color: white;
}

.tab-content {
  margin-top: 20px;
}


.content-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px 40px;
  margin-bottom: 50px;
}

.content-grid-wrapper h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

.grid-section h3 {
  grid-column: span 12;
}

.col-span-12 {
  grid-column: span 12;
}

.col-span-6 {
  grid-column: span 6;
}

@media (max-width: 768px) {
  nav {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  main {
    margin: 40px auto;
  }

  .gallery img,
  .carousel,
  #lightbox img {
    max-width: 95%;
  }

  .content-grid-wrapper {
    padding: 0 10px;
  }

  .col-span-6,
  .col-span-12 {
    grid-column: span 12;
  }

  .grid-section {
    gap: 20px 0;
  }
}


footer {
  background-color: #ffcc00;
  color: black;
  padding: 20px 0;
  border-top: 4px solid black;
  font-family: Helvetica, Arial, sans-serif;
}
