
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

header {
  background: #0078d7;
  color: white;
  text-align: center;
  padding: 1rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 2rem;
}

.logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
}

.dropdown {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  cursor: pointer;
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 150px;
  border: 1px solid black;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background-color: lightgray;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: black;
  background: lightblue;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: skyblue;
}

.btn:active {
  background: #004578;
  transform: scale(0.97);
}


.layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "leftSideTop bodyTop rightSide"
    "leftSideMid bodyMid rightSide"
    "leftSideBottom bodyLow rightSide"
    "leftSideBottom bodyLower rightSide"
    "footer footer footer";
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

.layout div {
  border-radius: 8px;
  padding: 10px;
  margin: 4px;
  text-align: center;
}

.leftSideTop, .leftSideMid, .leftSideBottom {
  background-color: rgb(70, 202, 70);
}

.bodyTop, .bodyMid, .bodyLow, .bodyLower {
  background-color: lightslategrey;
  color: white;
}

.footer {
  grid-area: footer;
  background-color: black;
  color: white;
  padding: 1rem;
}

h1, h2 {
  margin: 5px 0;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  
}

p, a {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.5rem;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }


@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "leftSideTop bodyTop"
      "leftSideMid bodyMid"
      "leftSideBottom bodyLow"
      "bodyLower rightSide"
      "footer footer";
  }
  img {
    size: 80%;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }

  img {
    size: 80%;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "leftSideTop"
      "leftSideMid"
      "leftSideBottom"
      "bodyTop"
      "bodyMid"
      "bodyLow"
      "bodyLower"
      "rightSide"
      "footer";
  }

  .carousel {
    max-width: 90%;
  }

  .btn {
    width: 80%;
    text-align: center;
  }
}
