* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  width: 100%;
}

.home-header {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.logo {
  width: 20%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  margin-top: 0;
}

.menu-container {
  margin-top: 0;
  margin-bottom: 0;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-buttons a {
  text-decoration: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.active-button {
  background-color: #d90718;
}

.website-buttons {
  background-color: #333;
}

.nav-buttons a:hover {
  background-color: #cf5b71;
}

.website-buttons:hover {
  background-color: #555;
}

main {
  flex: 1;
  margin-top: 2rem;
}

#home {
  color: #fff;
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

#home .container {
  margin-top: 5%;
  max-width: 700px;
}

.carousel {
  position: relative;
  width: 90%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  margin-top: 2%;
}

.carousel-item {
  text-align: center;
}

.carousel-image-wrapper {
  position: relative;
  display: block;
}

.carousel-image-wrapper::after {
  content: "\002B";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-image-wrapper:hover::after {
  opacity: 1;
}

.carousel-item img {
  width: 100% !important;
  height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: grey;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  font-size: 1rem;
  color: #fff;
}

.carousel-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-indicators li {
  background-color: grey;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: darkgrey;
}

.banner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banner img {
  margin-left: 25%;
  width: 50%;
  height: auto;
  display: block;
  margin-bottom: -1%;
  margin-top: 2%;
  border-radius: 5%;
}

.section-padding {
  margin-top: 2rem;
}

#comment-section {
  width: clamp(710px, 60vw, 820px); /* narrower than before */
  align-self: stretch; /* ignore body's center alignment */
  margin: 80px auto; /* Increased from 40px to 80px for more space at the top */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  font-family: "Arial", sans-serif;
}

#comment-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

#comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

#comment-form input[type="text"],
#comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.3s ease;
  background-color: #fafafa;
}

#comment-form input[type="text"]:focus,
#comment-form textarea:focus {
  border-color: #d90718;
  outline: none;
  background-color: #fff;
}

#comment-form button {
  padding: 12px 20px;
  background-color: #d90718;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

#comment-form button:hover {
  background-color: #cf5b71;
  transform: translateY(-1px);
}

#comments-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-comment {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-left: 4px solid #d90718;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.3s ease;
}

.single-comment:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.single-comment p {
  margin: 0 0 6px 0;
  line-height: 1.6;
  text-align: left;
  max-width: none;
  color: #444;
}

.single-comment strong {
  font-weight: 600;
  color: #333;
}

.single-comment small {
  color: #888;
  font-size: 0.85em;
  display: block;
  margin-top: 8px;
}

.personalContactContainer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.personalContact {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
}

.portrait {
  width: 100px;
  margin: 1rem auto;
  border-radius: 10px;
}

#home p {
  font-size: 1.25rem;
  margin: 1rem 0;
  color: black;
}

#home .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: #333;
  background: #f4a261;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#home .btn:hover {
  background: #e76f51;
}

.section-padding {
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.about-container p {
  width: 600px;
  max-width: 90%;
  margin: 0 auto 20px auto;
  padding-left: 20px;
  text-align: left;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

h2 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

p {
  text-align: center;
  max-width: 600px;
  margin: auto;
}

.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 2px solid #d90718;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 450px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 1rem;
  color: #d90718;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d90718;
  font-weight: bold;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.tfv-image {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
  margin-bottom: 1rem;
  object-position: top;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.card-content > .card-side-images {
  margin-left: 2rem;
}

.card-side-images {
  text-align: right;
}

.card-content ul {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-side-image {
  max-width: 150px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.card-side-image-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.card-side-image-wrapper::after {
  content: "\002B"; /* Plus sign */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-side-image-wrapper:hover::after {
  opacity: 1;
}

.carousel-image-wrapper {
  position: relative;
  display: block;
  cursor: pointer;
}

.carousel-image-wrapper::after {
  content: "\002B";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-image-wrapper:hover::after {
  opacity: 1;
}

/* Footer styles */
footer {
  background-color: #333;
  text-align: center;
  padding: 50px 0;
  color: white;
  width: 100%;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

footer .social-icons a {
  text-decoration: none;
  color: #fff;
  font-size: 48px;
}

footer .social-icons a:hover {
  color: #d90718;
}

@media (max-width: 768px) {
  .home-header {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .nav-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .section-padding {
    padding: 2rem 0;
  }
  .container {
    padding: 0 10px;
  }
  .logo {
    width: 60%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    margin-top: 0;
  }
  .about-container p {
    width: 100%;
    padding: 0 10px;
    margin: 0 0 20px;
    box-sizing: border-box;
  }
  .banner img {
    margin-left: 15%;
    width: 70%;
    height: auto;
    display: block;
    margin-bottom: -1%;
    margin-top: 2%;
    border-radius: 5%;
  }
  #comment-section {
    width: clamp(390px, 30vw, 420px); /* narrower than before */
    align-self: stretch; /* ignore body's center alignment */
    margin: 80px auto; /* Increased from 40px to 80px for more space at the top */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    font-family: "Arial", sans-serif;
  }
}

@media (max-width: 480px) {
  .home-header {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .nav-buttons {
    flex-direction: column;
  }
  .nav-buttons a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .product-cards {
    flex-direction: column;
  }
  .card {
    width: 100%;
  }
  .about-container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .about-container p {
    width: 100%;
    padding: 0 10px;
    margin: 0 0 20px;
    box-sizing: border-box;
  }
  .banner img {
    margin-left: 5%;
    width: 90%;
    height: auto;
    display: block;
    margin-bottom: -1%;
    margin-top: 2%;
    border-radius: 5%;
  }
}
