html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #FAFAFA;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch;
}

main {
  max-width: calc(100% - 40px);
  width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
  flex: 1;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  margin: 20px 0;
}

.min-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
  background-color: #C0392B;
  box-shadow: 0px 4px 21px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  left: 0;
}

.favicon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logoimg {
  width: 150px;
  border-radius: 20px;
}

.headerlinks {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.headerlinks li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s;
}

.headerlinks li a:hover {
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: black;
  border-radius: 3px;
}

footer {
  background-color: #C0392B;
  color: #fff;
  padding: 20px 15px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo img {
  width: 55px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.footer-logo p {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.footer-links a {
  color: #f8d46a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.85rem;
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  -ms-word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 908px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    gap: 8px;
    max-width: 100%;
  }

  .logoimg {
    width: 92px;
    border-radius: 12px;
  }

  .menu-toggle {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 8px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: #000;
  }

  .headerlinks {
    position: absolute;
    top: 56px;
    right: 12px;
    background: #C0392B;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    width: 200px;
    display: none;
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    transform-origin: top right;
    transition: transform 0.18s ease, opacity 0.18s ease;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  .headerlinks.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .headerlinks li a {
    color: white;
    padding: 8px 10px;
    display: block;
    font-weight: 600;
  }

  .social-icon {
    width: 34px;
    height: 34px;
    margin-left: 6px;
  }

  header {
    padding: 0;
    box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.25);
  }

  header,
  .header-container {
    height: auto;
    min-height: 56px;
  }

  main {
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .logoimg {
    width: 80px;
  }

  .headerlinks {
    right: 8px;
    top: 52px;
    width: 170px;
    padding: 10px;
    gap: 10px;
  }

  .headerlinks li a {
    font-size: 0.95rem;
    padding: 8px 8px;
  }

  main {
    padding: 0 0px;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.8px;
  }
}

.contact-form textarea {
  resize: none;
}